Booster.Microservices

<back to all web services

EditCustomerRequest

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/editCustomer
import java.math.*
import java.util.*
import net.servicestack.client.*


open class EditCustomerRequest : BaseRequest<EditCustomerResponse>()
{
    var customerId:UUID? = null
    var personId:UUID? = null
    var addressId:UUID? = null
    var phoneId:UUID? = null
    var emailId:UUID? = null
    var cardId:String? = null
    var customerRef:String? = null
    var title:Int? = null
    var firstName:String? = null
    var lastName:String? = null
    var firstNameNotLatin:String? = null
    var lastNameNotLatin:String? = null
    var birthday:Date? = null
    var weddingDate:Date? = null
    var email:String? = null
    var canBeContacted:Boolean? = null
    var language:String? = null
    var nameSuffix:String? = null
    var gender:String? = null
    var middleName:String? = null
    var countryId:String? = null
    var phoneCountryId:String? = null
    var prefixCountryId:String? = null
    var phone:String? = null
    var posId:Int? = null
    var birthDayEventId:UUID? = null
    var salePersonId:String? = null
    var allowStoreDataAbroad:Boolean? = null
    var tvAllowStoreDataAbroad:Boolean? = null
    var contactByMail:Boolean? = null
    var contactByEmail:Boolean? = null
    var contactByPhone:Boolean? = null
    var contactBySMS:Boolean? = null
    var contactBySocialMedia:Boolean? = null
    var street:String? = null
    var houseNumber:String? = null
    var city:String? = null
    var postalCode:String? = null
    var region:String? = null
    var street2:String? = null
    var street3:String? = null
    var street4:String? = null
    var street5: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 EditCustomerResponse : BaseResponse()
{
}

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
}

Kotlin EditCustomerRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /warranty/v1/editCustomer HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"customerId":"00000000000000000000000000000000","personId":"00000000000000000000000000000000","addressId":"00000000000000000000000000000000","phoneId":"00000000000000000000000000000000","emailId":"00000000000000000000000000000000","cardId":"String","customerRef":"String","title":0,"firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"\/Date(-62135596800000-0000)\/","weddingDate":"\/Date(-62135596800000-0000)\/","email":"String","canBeContacted":false,"language":"String","nameSuffix":"String","gender":"String","middleName":"String","countryId":"String","phoneCountryId":"String","prefixCountryId":"String","phone":"String","posId":0,"birthDayEventId":"00000000000000000000000000000000","salePersonId":"String","allowStoreDataAbroad":false,"tvAllowStoreDataAbroad":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"street":"String","houseNumber":"String","city":"String","postalCode":"String","region":"String","street2":"String","street3":"String","street4":"String","street5":"String","sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}