| POST | /warranty/v1/GetCustomerSuggestion |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetCustomerSuggestion extends BaseRequest<GetCustomerSuggestionResponse>
{
public String emailAddress = null;
public Integer posId = null;
public String brandTrigram = null;
public String phoneNumber = null;
public String prefixCountryId = null;
public String countryId = null;
public String getEmailAddress() { return emailAddress; }
public GetCustomerSuggestion setEmailAddress(String value) { this.emailAddress = value; return this; }
public Integer getPosId() { return posId; }
public GetCustomerSuggestion setPosId(Integer value) { this.posId = value; return this; }
public String getBrandTrigram() { return brandTrigram; }
public GetCustomerSuggestion setBrandTrigram(String value) { this.brandTrigram = value; return this; }
public String getPhoneNumber() { return phoneNumber; }
public GetCustomerSuggestion setPhoneNumber(String value) { this.phoneNumber = value; return this; }
public String getPrefixCountryId() { return prefixCountryId; }
public GetCustomerSuggestion setPrefixCountryId(String value) { this.prefixCountryId = value; return this; }
public String getCountryId() { return countryId; }
public GetCustomerSuggestion setCountryId(String value) { this.countryId = value; return this; }
}
public static class BaseRequest<TResponse> implements IRequest
{
public String sid = null;
public String app = null;
public String _os = null;
public String _appVersion = null;
public String _searchMethod = null;
public String getSid() { return sid; }
public BaseRequest<TResponse> setSid(String value) { this.sid = value; return this; }
public String getApp() { return app; }
public BaseRequest<TResponse> setApp(String value) { this.app = value; return this; }
public String getOs() { return _os; }
public BaseRequest<TResponse> setOs(String value) { this._os = value; return this; }
public String getAppVersion() { return _appVersion; }
public BaseRequest<TResponse> setAppVersion(String value) { this._appVersion = value; return this; }
public String getSearchMethod() { return _searchMethod; }
public BaseRequest<TResponse> setSearchMethod(String value) { this._searchMethod = value; return this; }
}
public static class GetCustomerSuggestionResponse extends BaseResponse
{
public String customerType = null;
public String customerRef = null;
public Integer title = null;
public String titleDs = null;
public String firstName = null;
public String lastName = null;
public String firstNameNotLatin = null;
public String lastNameNotLatin = null;
public String birthday = null;
public UUID birthDayEventId = null;
public String weddingDate = null;
public Boolean canBeContacted = null;
public UUID seller = null;
public String language = null;
public String languageDs = null;
public String nameSuffix = null;
public String gender = null;
public String companyName = null;
public String middleName = null;
public UUID customerId = null;
public UUID personId = null;
public Integer boosterCustomerId = null;
public Integer posOwnerId = null;
public String brandOwnerId = null;
public Integer businessUnitId = null;
public String sapGenderId = null;
public Boolean allowStoreDataAbroad = null;
public Boolean privacyPolicyAcceptanceStorage = null;
public Boolean tvAllowStoreDataAbroad = null;
public Boolean tvPrivacyPolicyAcceptanceStorage = null;
public Boolean contactByMail = null;
public Boolean contactByEmail = null;
public Boolean contactByPhone = null;
public Boolean contactBySMS = null;
public Boolean contactBySocialMedia = null;
public ArrayList<CustomerAddress> addresses = null;
public ArrayList<CustomerEmail> emails = null;
public ArrayList<CustomerPhone> phones = null;
public ResponseStatus ResponseStatus = null;
public String getCustomerType() { return customerType; }
public GetCustomerSuggestionResponse setCustomerType(String value) { this.customerType = value; return this; }
public String getCustomerRef() { return customerRef; }
public GetCustomerSuggestionResponse setCustomerRef(String value) { this.customerRef = value; return this; }
public Integer getTitle() { return title; }
public GetCustomerSuggestionResponse setTitle(Integer value) { this.title = value; return this; }
public String getTitleDs() { return titleDs; }
public GetCustomerSuggestionResponse setTitleDs(String value) { this.titleDs = value; return this; }
public String getFirstName() { return firstName; }
public GetCustomerSuggestionResponse setFirstName(String value) { this.firstName = value; return this; }
public String getLastName() { return lastName; }
public GetCustomerSuggestionResponse setLastName(String value) { this.lastName = value; return this; }
public String getFirstNameNotLatin() { return firstNameNotLatin; }
public GetCustomerSuggestionResponse setFirstNameNotLatin(String value) { this.firstNameNotLatin = value; return this; }
public String getLastNameNotLatin() { return lastNameNotLatin; }
public GetCustomerSuggestionResponse setLastNameNotLatin(String value) { this.lastNameNotLatin = value; return this; }
public String getBirthday() { return birthday; }
public GetCustomerSuggestionResponse setBirthday(String value) { this.birthday = value; return this; }
public UUID getBirthDayEventId() { return birthDayEventId; }
public GetCustomerSuggestionResponse setBirthDayEventId(UUID value) { this.birthDayEventId = value; return this; }
public String getWeddingDate() { return weddingDate; }
public GetCustomerSuggestionResponse setWeddingDate(String value) { this.weddingDate = value; return this; }
public Boolean isCanBeContacted() { return canBeContacted; }
public GetCustomerSuggestionResponse setCanBeContacted(Boolean value) { this.canBeContacted = value; return this; }
public UUID getSeller() { return seller; }
public GetCustomerSuggestionResponse setSeller(UUID value) { this.seller = value; return this; }
public String getLanguage() { return language; }
public GetCustomerSuggestionResponse setLanguage(String value) { this.language = value; return this; }
public String getLanguageDs() { return languageDs; }
public GetCustomerSuggestionResponse setLanguageDs(String value) { this.languageDs = value; return this; }
public String getNameSuffix() { return nameSuffix; }
public GetCustomerSuggestionResponse setNameSuffix(String value) { this.nameSuffix = value; return this; }
public String getGender() { return gender; }
public GetCustomerSuggestionResponse setGender(String value) { this.gender = value; return this; }
public String getCompanyName() { return companyName; }
public GetCustomerSuggestionResponse setCompanyName(String value) { this.companyName = value; return this; }
public String getMiddleName() { return middleName; }
public GetCustomerSuggestionResponse setMiddleName(String value) { this.middleName = value; return this; }
public UUID getCustomerId() { return customerId; }
public GetCustomerSuggestionResponse setCustomerId(UUID value) { this.customerId = value; return this; }
public UUID getPersonId() { return personId; }
public GetCustomerSuggestionResponse setPersonId(UUID value) { this.personId = value; return this; }
public Integer getBoosterCustomerId() { return boosterCustomerId; }
public GetCustomerSuggestionResponse setBoosterCustomerId(Integer value) { this.boosterCustomerId = value; return this; }
public Integer getPosOwnerId() { return posOwnerId; }
public GetCustomerSuggestionResponse setPosOwnerId(Integer value) { this.posOwnerId = value; return this; }
public String getBrandOwnerId() { return brandOwnerId; }
public GetCustomerSuggestionResponse setBrandOwnerId(String value) { this.brandOwnerId = value; return this; }
public Integer getBusinessUnitId() { return businessUnitId; }
public GetCustomerSuggestionResponse setBusinessUnitId(Integer value) { this.businessUnitId = value; return this; }
public String getSapGenderId() { return sapGenderId; }
public GetCustomerSuggestionResponse setSapGenderId(String value) { this.sapGenderId = value; return this; }
public Boolean isAllowStoreDataAbroad() { return allowStoreDataAbroad; }
public GetCustomerSuggestionResponse setAllowStoreDataAbroad(Boolean value) { this.allowStoreDataAbroad = value; return this; }
public Boolean isPrivacyPolicyAcceptanceStorage() { return privacyPolicyAcceptanceStorage; }
public GetCustomerSuggestionResponse setPrivacyPolicyAcceptanceStorage(Boolean value) { this.privacyPolicyAcceptanceStorage = value; return this; }
public Boolean isTvAllowStoreDataAbroad() { return tvAllowStoreDataAbroad; }
public GetCustomerSuggestionResponse setTvAllowStoreDataAbroad(Boolean value) { this.tvAllowStoreDataAbroad = value; return this; }
public Boolean isTvPrivacyPolicyAcceptanceStorage() { return tvPrivacyPolicyAcceptanceStorage; }
public GetCustomerSuggestionResponse setTvPrivacyPolicyAcceptanceStorage(Boolean value) { this.tvPrivacyPolicyAcceptanceStorage = value; return this; }
public Boolean isContactByMail() { return contactByMail; }
public GetCustomerSuggestionResponse setContactByMail(Boolean value) { this.contactByMail = value; return this; }
public Boolean isContactByEmail() { return contactByEmail; }
public GetCustomerSuggestionResponse setContactByEmail(Boolean value) { this.contactByEmail = value; return this; }
public Boolean isContactByPhone() { return contactByPhone; }
public GetCustomerSuggestionResponse setContactByPhone(Boolean value) { this.contactByPhone = value; return this; }
public Boolean isContactBySMS() { return contactBySMS; }
public GetCustomerSuggestionResponse setContactBySMS(Boolean value) { this.contactBySMS = value; return this; }
public Boolean isContactBySocialMedia() { return contactBySocialMedia; }
public GetCustomerSuggestionResponse setContactBySocialMedia(Boolean value) { this.contactBySocialMedia = value; return this; }
public ArrayList<CustomerAddress> getAddresses() { return addresses; }
public GetCustomerSuggestionResponse setAddresses(ArrayList<CustomerAddress> value) { this.addresses = value; return this; }
public ArrayList<CustomerEmail> getEmails() { return emails; }
public GetCustomerSuggestionResponse setEmails(ArrayList<CustomerEmail> value) { this.emails = value; return this; }
public ArrayList<CustomerPhone> getPhones() { return phones; }
public GetCustomerSuggestionResponse setPhones(ArrayList<CustomerPhone> value) { this.phones = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public GetCustomerSuggestionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class BaseResponse implements IRespose
{
public String _xmlns = null;
public String _type = null;
public String _source = null;
public String _tstamp = null;
public String _user = null;
public String _env = null;
public String _uri = null;
public String _query = null;
public String getXmlns() { return _xmlns; }
public BaseResponse setXmlns(String value) { this._xmlns = value; return this; }
public String getType() { return _type; }
public BaseResponse setType(String value) { this._type = value; return this; }
public String getSource() { return _source; }
public BaseResponse setSource(String value) { this._source = value; return this; }
public String getTstamp() { return _tstamp; }
public BaseResponse setTstamp(String value) { this._tstamp = value; return this; }
public String getUser() { return _user; }
public BaseResponse setUser(String value) { this._user = value; return this; }
public String getEnv() { return _env; }
public BaseResponse setEnv(String value) { this._env = value; return this; }
public String getUri() { return _uri; }
public BaseResponse setUri(String value) { this._uri = value; return this; }
public String getQuery() { return _query; }
public BaseResponse setQuery(String value) { this._query = value; return this; }
}
public static class CustomerAddress
{
public UUID addressId = null;
public String description = null;
public String addressLine1 = null;
public String addressLine2 = null;
public String addressLine3 = null;
public String addressLine4 = null;
public String addressLine5 = null;
public String houseNumber = null;
public String city = null;
public String region = null;
public String county = null;
public String stateOrProvinceId = null;
public String countryId = null;
public String countryDs = null;
public String zipCode = null;
public String addressTypeId = null;
public Boolean isMailingAddress = null;
public Boolean isMainAddress = null;
public UUID getAddressId() { return addressId; }
public CustomerAddress setAddressId(UUID value) { this.addressId = value; return this; }
public String getDescription() { return description; }
public CustomerAddress setDescription(String value) { this.description = value; return this; }
public String getAddressLine1() { return addressLine1; }
public CustomerAddress setAddressLine1(String value) { this.addressLine1 = value; return this; }
public String getAddressLine2() { return addressLine2; }
public CustomerAddress setAddressLine2(String value) { this.addressLine2 = value; return this; }
public String getAddressLine3() { return addressLine3; }
public CustomerAddress setAddressLine3(String value) { this.addressLine3 = value; return this; }
public String getAddressLine4() { return addressLine4; }
public CustomerAddress setAddressLine4(String value) { this.addressLine4 = value; return this; }
public String getAddressLine5() { return addressLine5; }
public CustomerAddress setAddressLine5(String value) { this.addressLine5 = value; return this; }
public String getHouseNumber() { return houseNumber; }
public CustomerAddress setHouseNumber(String value) { this.houseNumber = value; return this; }
public String getCity() { return city; }
public CustomerAddress setCity(String value) { this.city = value; return this; }
public String getRegion() { return region; }
public CustomerAddress setRegion(String value) { this.region = value; return this; }
public String getCounty() { return county; }
public CustomerAddress setCounty(String value) { this.county = value; return this; }
public String getStateOrProvinceId() { return stateOrProvinceId; }
public CustomerAddress setStateOrProvinceId(String value) { this.stateOrProvinceId = value; return this; }
public String getCountryId() { return countryId; }
public CustomerAddress setCountryId(String value) { this.countryId = value; return this; }
public String getCountryDs() { return countryDs; }
public CustomerAddress setCountryDs(String value) { this.countryDs = value; return this; }
public String getZipCode() { return zipCode; }
public CustomerAddress setZipCode(String value) { this.zipCode = value; return this; }
public String getAddressTypeId() { return addressTypeId; }
public CustomerAddress setAddressTypeId(String value) { this.addressTypeId = value; return this; }
public Boolean getIsMailingAddress() { return isMailingAddress; }
public CustomerAddress setIsMailingAddress(Boolean value) { this.isMailingAddress = value; return this; }
public Boolean getIsMainAddress() { return isMainAddress; }
public CustomerAddress setIsMainAddress(Boolean value) { this.isMainAddress = value; return this; }
}
public static class CustomerEmail
{
public UUID emailId = null;
public String description = null;
public String email = null;
public Boolean isMainEmail = null;
public Lookup<String> type = null;
public UUID getEmailId() { return emailId; }
public CustomerEmail setEmailId(UUID value) { this.emailId = value; return this; }
public String getDescription() { return description; }
public CustomerEmail setDescription(String value) { this.description = value; return this; }
public String getEmail() { return email; }
public CustomerEmail setEmail(String value) { this.email = value; return this; }
public Boolean getIsMainEmail() { return isMainEmail; }
public CustomerEmail setIsMainEmail(Boolean value) { this.isMainEmail = value; return this; }
public Lookup<String> getType() { return type; }
public CustomerEmail setType(Lookup<String> value) { this.type = value; return this; }
}
public static class Lookup<T>
{
public T Id = null;
public String Description = null;
public T getId() { return Id; }
public Lookup<T> setId(T value) { this.Id = value; return this; }
public String getDescription() { return Description; }
public Lookup<T> setDescription(String value) { this.Description = value; return this; }
}
public static class CustomerPhone
{
public UUID phoneId = null;
public String description = null;
public String phone = null;
public Boolean isMainPhone = null;
public String prefixCountryId = null;
public String telephonePrefix = null;
public Lookup<Integer> type = null;
public UUID getPhoneId() { return phoneId; }
public CustomerPhone setPhoneId(UUID value) { this.phoneId = value; return this; }
public String getDescription() { return description; }
public CustomerPhone setDescription(String value) { this.description = value; return this; }
public String getPhone() { return phone; }
public CustomerPhone setPhone(String value) { this.phone = value; return this; }
public Boolean getIsMainPhone() { return isMainPhone; }
public CustomerPhone setIsMainPhone(Boolean value) { this.isMainPhone = value; return this; }
public String getPrefixCountryId() { return prefixCountryId; }
public CustomerPhone setPrefixCountryId(String value) { this.prefixCountryId = value; return this; }
public String getTelephonePrefix() { return telephonePrefix; }
public CustomerPhone setTelephonePrefix(String value) { this.telephonePrefix = value; return this; }
public Lookup<Integer> getType() { return type; }
public CustomerPhone setType(Lookup<Integer> value) { this.type = value; return this; }
}
}
Java GetCustomerSuggestion DTOs
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 /warranty/v1/GetCustomerSuggestion HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetCustomerSuggestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
<_appVersion xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_appVersion>
<_os xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_os>
<_searchMethod xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_searchMethod>
<app xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</app>
<sid xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</sid>
<brandTrigram>String</brandTrigram>
<countryId>String</countryId>
<emailAddress>String</emailAddress>
<phoneNumber>String</phoneNumber>
<posId>0</posId>
<prefixCountryId>String</prefixCountryId>
</GetCustomerSuggestion>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetCustomerSuggestionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
<_env xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_env>
<_query xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_query>
<_source xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_source>
<_tstamp xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_tstamp>
<_type xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_type>
<_uri xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_uri>
<_user xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_user>
<_xmlns xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_xmlns>
<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>
<addresses>
<CustomerAddress>
<addressId>00000000-0000-0000-0000-000000000000</addressId>
<addressLine1>String</addressLine1>
<addressLine2>String</addressLine2>
<addressLine3>String</addressLine3>
<addressLine4>String</addressLine4>
<addressLine5>String</addressLine5>
<addressTypeId>String</addressTypeId>
<city>String</city>
<countryDs>String</countryDs>
<countryId>String</countryId>
<county>String</county>
<description>String</description>
<houseNumber>String</houseNumber>
<isMailingAddress>false</isMailingAddress>
<isMainAddress>false</isMainAddress>
<region>String</region>
<stateOrProvinceId>String</stateOrProvinceId>
<zipCode>String</zipCode>
</CustomerAddress>
</addresses>
<allowStoreDataAbroad>false</allowStoreDataAbroad>
<birthDayEventId>00000000-0000-0000-0000-000000000000</birthDayEventId>
<birthday>String</birthday>
<boosterCustomerId>0</boosterCustomerId>
<brandOwnerId>String</brandOwnerId>
<businessUnitId>0</businessUnitId>
<canBeContacted>false</canBeContacted>
<companyName>String</companyName>
<contactByEmail>false</contactByEmail>
<contactByMail>false</contactByMail>
<contactByPhone>false</contactByPhone>
<contactBySMS>false</contactBySMS>
<contactBySocialMedia>false</contactBySocialMedia>
<customerId>00000000-0000-0000-0000-000000000000</customerId>
<customerRef>String</customerRef>
<customerType>String</customerType>
<emails>
<CustomerEmail>
<description>String</description>
<email>String</email>
<emailId>00000000-0000-0000-0000-000000000000</emailId>
<isMainEmail>false</isMainEmail>
<type xmlns:d4p1="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">
<d4p1:Description>String</d4p1:Description>
<d4p1:Id>0</d4p1:Id>
</type>
</CustomerEmail>
</emails>
<firstName>String</firstName>
<firstNameNotLatin>String</firstNameNotLatin>
<gender>String</gender>
<language>String</language>
<languageDs>String</languageDs>
<lastName>String</lastName>
<lastNameNotLatin>String</lastNameNotLatin>
<middleName>String</middleName>
<nameSuffix>String</nameSuffix>
<personId>00000000-0000-0000-0000-000000000000</personId>
<phones>
<CustomerPhone>
<description>String</description>
<isMainPhone>false</isMainPhone>
<phone>String</phone>
<phoneId>00000000-0000-0000-0000-000000000000</phoneId>
<prefixCountryId>String</prefixCountryId>
<telephonePrefix>String</telephonePrefix>
<type xmlns:d4p1="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">
<d4p1:Description>String</d4p1:Description>
<d4p1:Id>0</d4p1:Id>
</type>
</CustomerPhone>
</phones>
<posOwnerId>0</posOwnerId>
<privacyPolicyAcceptanceStorage>false</privacyPolicyAcceptanceStorage>
<sapGenderId>String</sapGenderId>
<seller>00000000-0000-0000-0000-000000000000</seller>
<title>0</title>
<titleDs>String</titleDs>
<tvAllowStoreDataAbroad>false</tvAllowStoreDataAbroad>
<tvPrivacyPolicyAcceptanceStorage>false</tvPrivacyPolicyAcceptanceStorage>
<weddingDate>String</weddingDate>
</GetCustomerSuggestionResponse>