| 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 .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"emailAddress":"String","posId":0,"brandTrigram":"String","phoneNumber":"String","prefixCountryId":"String","countryId":"String","sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"customerType":"String","customerRef":"String","title":0,"titleDs":"String","firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"String","birthDayEventId":"00000000000000000000000000000000","weddingDate":"String","canBeContacted":false,"seller":"00000000000000000000000000000000","language":"String","languageDs":"String","nameSuffix":"String","gender":"String","companyName":"String","middleName":"String","customerId":"00000000000000000000000000000000","personId":"00000000000000000000000000000000","boosterCustomerId":0,"posOwnerId":0,"brandOwnerId":"String","businessUnitId":0,"sapGenderId":"String","allowStoreDataAbroad":false,"privacyPolicyAcceptanceStorage":false,"tvAllowStoreDataAbroad":false,"tvPrivacyPolicyAcceptanceStorage":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"addresses":[{"addressId":"00000000000000000000000000000000","description":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","houseNumber":"String","city":"String","region":"String","county":"String","stateOrProvinceId":"String","countryId":"String","countryDs":"String","zipCode":"String","addressTypeId":"String","isMailingAddress":false,"isMainAddress":false}],"emails":[{"emailId":"00000000000000000000000000000000","description":"String","email":"String","isMainEmail":false,"type":{"Id":"\u0000","Description":"String"}}],"phones":[{"phoneId":"00000000000000000000000000000000","description":"String","phone":"String","isMainPhone":false,"prefixCountryId":"String","telephonePrefix":"String","type":{"Id":0,"Description":"String"}}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}