POST | /RegisterCustomer/ |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class RegisterCustomer
{
public Integer Id = null;
public String FirstName = null;
public String LastName = null;
public String Gender = null;
public String MobileNumber = null;
public String DeviceToken = null;
public String SNSEndPointArn = null;
public String VoIPDeviceToken = null;
public String SNSVoIPEndPointArn = null;
public String UserName = null;
public String DisplayName = null;
public String Email = null;
public String Password = null;
public Boolean AutoLogin = null;
public String Continue = null;
public Date Birthdate = null;
public String InvitationCode = null;
public Integer LocationCountryId = null;
public Integer TokensBalance = null;
public Date Created = null;
public Date Modified = null;
public String IntegratorUserId = null;
public Integer getId() { return Id; }
public RegisterCustomer setId(Integer value) { this.Id = value; return this; }
public String getFirstName() { return FirstName; }
public RegisterCustomer setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public RegisterCustomer setLastName(String value) { this.LastName = value; return this; }
public String getGender() { return Gender; }
public RegisterCustomer setGender(String value) { this.Gender = value; return this; }
public String getMobileNumber() { return MobileNumber; }
public RegisterCustomer setMobileNumber(String value) { this.MobileNumber = value; return this; }
public String getDeviceToken() { return DeviceToken; }
public RegisterCustomer setDeviceToken(String value) { this.DeviceToken = value; return this; }
public String getSnsEndPointArn() { return SNSEndPointArn; }
public RegisterCustomer setSnsEndPointArn(String value) { this.SNSEndPointArn = value; return this; }
public String getVoIPDeviceToken() { return VoIPDeviceToken; }
public RegisterCustomer setVoIPDeviceToken(String value) { this.VoIPDeviceToken = value; return this; }
public String getSnsVoIPEndPointArn() { return SNSVoIPEndPointArn; }
public RegisterCustomer setSnsVoIPEndPointArn(String value) { this.SNSVoIPEndPointArn = value; return this; }
public String getUserName() { return UserName; }
public RegisterCustomer setUserName(String value) { this.UserName = value; return this; }
public String getDisplayName() { return DisplayName; }
public RegisterCustomer setDisplayName(String value) { this.DisplayName = value; return this; }
public String getEmail() { return Email; }
public RegisterCustomer setEmail(String value) { this.Email = value; return this; }
public String getPassword() { return Password; }
public RegisterCustomer setPassword(String value) { this.Password = value; return this; }
public Boolean isAutoLogin() { return AutoLogin; }
public RegisterCustomer setAutoLogin(Boolean value) { this.AutoLogin = value; return this; }
public String getContinue() { return Continue; }
public RegisterCustomer setContinue(String value) { this.Continue = value; return this; }
public Date getBirthdate() { return Birthdate; }
public RegisterCustomer setBirthdate(Date value) { this.Birthdate = value; return this; }
public String getInvitationCode() { return InvitationCode; }
public RegisterCustomer setInvitationCode(String value) { this.InvitationCode = value; return this; }
public Integer getLocationCountryId() { return LocationCountryId; }
public RegisterCustomer setLocationCountryId(Integer value) { this.LocationCountryId = value; return this; }
public Integer getTokensBalance() { return TokensBalance; }
public RegisterCustomer setTokensBalance(Integer value) { this.TokensBalance = value; return this; }
public Date getCreated() { return Created; }
public RegisterCustomer setCreated(Date value) { this.Created = value; return this; }
public Date getModified() { return Modified; }
public RegisterCustomer setModified(Date value) { this.Modified = value; return this; }
public String getIntegratorUserId() { return IntegratorUserId; }
public RegisterCustomer setIntegratorUserId(String value) { this.IntegratorUserId = value; return this; }
}
public static class RegisterCustomerResponse
{
public Boolean Result = null;
public String UserId = null;
public String CountryName_en = null;
public String TenantName_en = null;
public String OrganizationId = null;
public String OrganizationName_en = null;
public String OrganizationType = null;
public ResponseStatus ResponseStatus = null;
public Boolean isResult() { return Result; }
public RegisterCustomerResponse setResult(Boolean value) { this.Result = value; return this; }
public String getUserId() { return UserId; }
public RegisterCustomerResponse setUserId(String value) { this.UserId = value; return this; }
public String getCountryNameEn() { return CountryName_en; }
public RegisterCustomerResponse setCountryNameEn(String value) { this.CountryName_en = value; return this; }
public String getTenantNameEn() { return TenantName_en; }
public RegisterCustomerResponse setTenantNameEn(String value) { this.TenantName_en = value; return this; }
public String getOrganizationId() { return OrganizationId; }
public RegisterCustomerResponse setOrganizationId(String value) { this.OrganizationId = value; return this; }
public String getOrganizationNameEn() { return OrganizationName_en; }
public RegisterCustomerResponse setOrganizationNameEn(String value) { this.OrganizationName_en = value; return this; }
public String getOrganizationType() { return OrganizationType; }
public RegisterCustomerResponse setOrganizationType(String value) { this.OrganizationType = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public RegisterCustomerResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RegisterCustomer/ HTTP/1.1
Host: api-demo-1.cura.healthcare
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RegisterCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cura.Backend.Service.ServiceModel">
<AutoLogin>false</AutoLogin>
<Birthdate>0001-01-01T00:00:00</Birthdate>
<Continue>String</Continue>
<Created>0001-01-01T00:00:00</Created>
<DeviceToken>String</DeviceToken>
<DisplayName>String</DisplayName>
<Email>String</Email>
<FirstName>String</FirstName>
<Gender>String</Gender>
<Id>0</Id>
<IntegratorUserId>String</IntegratorUserId>
<InvitationCode>String</InvitationCode>
<LastName>String</LastName>
<LocationCountryId>0</LocationCountryId>
<MobileNumber>String</MobileNumber>
<Modified>0001-01-01T00:00:00</Modified>
<Password>String</Password>
<SNSEndPointArn>String</SNSEndPointArn>
<SNSVoIPEndPointArn>String</SNSVoIPEndPointArn>
<TokensBalance>0</TokensBalance>
<UserName>String</UserName>
<VoIPDeviceToken>String</VoIPDeviceToken>
</RegisterCustomer>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RegisterCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cura.Backend.Service.ServiceModel"> <CountryName_en>String</CountryName_en> <OrganizationId>String</OrganizationId> <OrganizationName_en>String</OrganizationName_en> <OrganizationType>String</OrganizationType> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <Result>false</Result> <TenantName_en>String</TenantName_en> <UserId>String</UserId> </RegisterCustomerResponse>