Required role: | Customer |
POST | /TwilioCC/PrepaidInstantConsultCallBack/ |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class PrepaidInstantConsultRequest : ITwilioRequest
{
override var UserId:Int? = null
open var UserName:String? = null
open var FullName:String? = null
open var FullName_ar:String? = null
open var UserCountry:String? = null
open var UserTenant:String? = null
open var Info:String? = null
open var Info_ar:String? = null
open var Info_tr:String? = null
open var ProfilePic:String? = null
open var RequestedSpecialtyId:Int? = null
open var RequestedSpecialtyTitle:String? = null
open var CaseBriefDescription:String? = null
open var ConsultForSameUser:Boolean? = null
open var PatientGender:String? = null
open var PatientAge:Int? = null
open var Created:Date? = null
open var UserCulture:String? = null
open var OrderItemId:Int? = null
open var OrganizationId:Int? = null
override var OrganizationCode:String? = null
open var ClientId:String? = null
open var AdditionalAttributes:HashMap<String,Object> = HashMap<String,Object>()
open var PatientVitalSignsIdsDto:PatientVitalSignsIdsDto? = null
open var CaseBriefVoiceMessageId:String? = null
}
open class PatientVitalSignsIdsDto
{
open var OXId:Int? = null
open var BTId:Int? = null
open var BPId:Int? = null
}
open class PrepaidInstantConsultRequestResponse
{
open var RequestId:Int? = null
open var TaskSid:String? = null
open var ConsultationOrderContactCenter:ConsultationOrderContactCenterDto? = null
open var ResponseStatus:ResponseStatus? = null
}
open class ConsultationOrderContactCenterDto
{
open var Id:String? = null
open var LastState:String? = null
open var Refunded:Boolean? = null
}
Kotlin PrepaidInstantConsultRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /TwilioCC/PrepaidInstantConsultCallBack/ HTTP/1.1
Host: api-demo-1.cura.healthcare
Accept: application/json
Content-Type: application/json
Content-Length: length
{"UserId":0,"UserName":"String","FullName":"String","FullName_ar":"String","UserCountry":"String","UserTenant":"String","Info":"String","Info_ar":"String","Info_tr":"String","ProfilePic":"String","RequestedSpecialtyId":0,"RequestedSpecialtyTitle":"String","CaseBriefDescription":"String","ConsultForSameUser":false,"PatientGender":"String","PatientAge":0,"Created":"0001-01-01T00:00:00.0000000Z","UserCulture":"String","OrderItemId":0,"OrganizationId":0,"OrganizationCode":"String","ClientId":"String","AdditionalAttributes":{"String":{}},"PatientVitalSignsIdsDto":{"OXId":0,"BTId":0,"BPId":0},"CaseBriefVoiceMessageId":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"RequestId":0,"TaskSid":"String","ConsultationOrderContactCenter":{"Id":"String","LastState":"String","Refunded":false},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}