| POST | /warranty/v1/editCustomer |
|---|
"use strict";
/** @typedef TResponse {any} */
export class BaseRequest {
/** @param {{sid?:string,app?:string,_os?:string,_appVersion?:string,_searchMethod?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
sid;
/** @type {string} */
app;
/** @type {string} */
_os;
/** @type {string} */
_appVersion;
/** @type {string} */
_searchMethod;
}
export class BaseResponse {
/** @param {{_xmlns?:string,_type?:string,_source?:string,_tstamp?:string,_user?:string,_env?:string,_uri?:string,_query?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
_xmlns;
/** @type {string} */
_type;
/** @type {string} */
_source;
/** @type {string} */
_tstamp;
/** @type {string} */
_user;
/** @type {string} */
_env;
/** @type {string} */
_uri;
/** @type {string} */
_query;
}
export class EditCustomerResponse extends BaseResponse {
/** @param {{_xmlns?:string,_type?:string,_source?:string,_tstamp?:string,_user?:string,_env?:string,_uri?:string,_query?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
}
export class EditCustomerRequest extends BaseRequest {
/** @param {{customerId?:string,personId?:string,addressId?:string,phoneId?:string,emailId?:string,cardId?:string,customerRef?:string,title?:number,firstName?:string,lastName?:string,firstNameNotLatin?:string,lastNameNotLatin?:string,birthday?:string,weddingDate?:string,email?:string,canBeContacted?:boolean,language?:string,nameSuffix?:string,gender?:string,middleName?:string,countryId?:string,phoneCountryId?:string,prefixCountryId?:string,phone?:string,posId?:number,birthDayEventId?:string,salePersonId?:string,allowStoreDataAbroad?:boolean,tvAllowStoreDataAbroad?:boolean,contactByMail?:boolean,contactByEmail?:boolean,contactByPhone?:boolean,contactBySMS?:boolean,contactBySocialMedia?:boolean,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}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
customerId;
/** @type {string} */
personId;
/** @type {string} */
addressId;
/** @type {?string} */
phoneId;
/** @type {?string} */
emailId;
/** @type {string} */
cardId;
/** @type {string} */
customerRef;
/** @type {?number} */
title;
/** @type {string} */
firstName;
/** @type {string} */
lastName;
/** @type {string} */
firstNameNotLatin;
/** @type {string} */
lastNameNotLatin;
/** @type {?string} */
birthday;
/** @type {?string} */
weddingDate;
/** @type {string} */
email;
/** @type {boolean} */
canBeContacted;
/** @type {string} */
language;
/** @type {string} */
nameSuffix;
/** @type {string} */
gender;
/** @type {string} */
middleName;
/** @type {string} */
countryId;
/** @type {string} */
phoneCountryId;
/** @type {string} */
prefixCountryId;
/** @type {string} */
phone;
/** @type {number} */
posId;
/** @type {?string} */
birthDayEventId;
/** @type {string} */
salePersonId;
/** @type {?boolean} */
allowStoreDataAbroad;
/** @type {?boolean} */
tvAllowStoreDataAbroad;
/** @type {boolean} */
contactByMail;
/** @type {boolean} */
contactByEmail;
/** @type {boolean} */
contactByPhone;
/** @type {boolean} */
contactBySMS;
/** @type {boolean} */
contactBySocialMedia;
/** @type {string} */
street;
/** @type {string} */
houseNumber;
/** @type {string} */
city;
/** @type {string} */
postalCode;
/** @type {string} */
region;
/** @type {string} */
street2;
/** @type {string} */
street3;
/** @type {string} */
street4;
/** @type {string} */
street5;
}
JavaScript EditCustomerRequest 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/editCustomer HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsv
Content-Type: text/jsv
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: 0001-01-01,
weddingDate: 0001-01-01,
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/jsv
Content-Length: length
{
_xmlns: String,
_type: String,
_source: String,
_tstamp: String,
_user: String,
_env: String,
_uri: String,
_query: String
}