| POST | /warranty/v1/GetCustomerSuggestion |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetCustomerSuggestion : BaseRequest<GetCustomerSuggestionResponse>()
{
var emailAddress:String? = null
var posId:Int? = null
var brandTrigram:String? = null
var phoneNumber:String? = null
var prefixCountryId:String? = null
var countryId:String? = null
}
open class BaseRequest<TResponse> : IRequest
{
var sid:String? = null
var app:String? = null
var _os:String? = null
var _appVersion:String? = null
var _searchMethod:String? = null
}
open class GetCustomerSuggestionResponse : BaseResponse()
{
var customerType:String? = null
var customerRef:String? = null
var title:Int? = null
var titleDs:String? = null
var firstName:String? = null
var lastName:String? = null
var firstNameNotLatin:String? = null
var lastNameNotLatin:String? = null
var birthday:String? = null
var birthDayEventId:UUID? = null
var weddingDate:String? = null
var canBeContacted:Boolean? = null
var seller:UUID? = null
var language:String? = null
var languageDs:String? = null
var nameSuffix:String? = null
var gender:String? = null
var companyName:String? = null
var middleName:String? = null
var customerId:UUID? = null
var personId:UUID? = null
var boosterCustomerId:Int? = null
var posOwnerId:Int? = null
var brandOwnerId:String? = null
var businessUnitId:Int? = null
var sapGenderId:String? = null
var allowStoreDataAbroad:Boolean? = null
var privacyPolicyAcceptanceStorage:Boolean? = null
var tvAllowStoreDataAbroad:Boolean? = null
var tvPrivacyPolicyAcceptanceStorage:Boolean? = null
var contactByMail:Boolean? = null
var contactByEmail:Boolean? = null
var contactByPhone:Boolean? = null
var contactBySMS:Boolean? = null
var contactBySocialMedia:Boolean? = null
var addresses:ArrayList<CustomerAddress> = ArrayList<CustomerAddress>()
var emails:ArrayList<CustomerEmail> = ArrayList<CustomerEmail>()
var phones:ArrayList<CustomerPhone> = ArrayList<CustomerPhone>()
var ResponseStatus:ResponseStatus? = null
}
open class BaseResponse : IRespose
{
var _xmlns:String? = null
var _type:String? = null
var _source:String? = null
var _tstamp:String? = null
var _user:String? = null
var _env:String? = null
var _uri:String? = null
var _query:String? = null
}
open class CustomerAddress
{
var addressId:UUID? = null
var description:String? = null
var addressLine1:String? = null
var addressLine2:String? = null
var addressLine3:String? = null
var addressLine4:String? = null
var addressLine5:String? = null
var houseNumber:String? = null
var city:String? = null
var region:String? = null
var county:String? = null
var stateOrProvinceId:String? = null
var countryId:String? = null
var countryDs:String? = null
var zipCode:String? = null
var addressTypeId:String? = null
var isMailingAddress:Boolean? = null
var isMainAddress:Boolean? = null
}
open class CustomerEmail
{
var emailId:UUID? = null
var description:String? = null
var email:String? = null
var isMainEmail:Boolean? = null
@SerializedName("type") var Type:Lookup<String>? = null
}
open class Lookup<T>
{
var Id:T? = null
var Description:String? = null
}
open class CustomerPhone
{
var phoneId:UUID? = null
var description:String? = null
var phone:String? = null
var isMainPhone:Boolean? = null
var prefixCountryId:String? = null
var telephonePrefix:String? = null
@SerializedName("type") var Type:Lookup<Int>? = null
}
Kotlin GetCustomerSuggestion DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
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/jsv
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: ,
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
}