| POST | /warranty/v1/editCustomer |
|---|
export class BaseRequest<TResponse> implements IRequest
{
public sid: string;
public app: string;
public _os: string;
public _appVersion: string;
public _searchMethod: string;
public constructor(init?: Partial<BaseRequest<TResponse>>) { (Object as any).assign(this, init); }
}
export class BaseResponse implements IRespose
{
public _xmlns: string;
public _type: string;
public _source: string;
public _tstamp: string;
public _user: string;
public _env: string;
public _uri: string;
public _query: string;
public constructor(init?: Partial<BaseResponse>) { (Object as any).assign(this, init); }
}
export class EditCustomerResponse extends BaseResponse
{
public constructor(init?: Partial<EditCustomerResponse>) { super(init); (Object as any).assign(this, init); }
}
export class EditCustomerRequest extends BaseRequest<EditCustomerResponse>
{
public customerId: string;
public personId: string;
public addressId: string;
public phoneId?: string;
public emailId?: string;
public cardId: string;
public customerRef: string;
public title?: number;
public firstName: string;
public lastName: string;
public firstNameNotLatin: string;
public lastNameNotLatin: string;
public birthday?: string;
public weddingDate?: string;
public email: string;
public canBeContacted: boolean;
public language: string;
public nameSuffix: string;
public gender: string;
public middleName: string;
public countryId: string;
public phoneCountryId: string;
public prefixCountryId: string;
public phone: string;
public posId: number;
public birthDayEventId?: string;
public salePersonId: string;
public allowStoreDataAbroad?: boolean;
public tvAllowStoreDataAbroad?: boolean;
public contactByMail: boolean;
public contactByEmail: boolean;
public contactByPhone: boolean;
public contactBySMS: boolean;
public contactBySocialMedia: boolean;
public street: string;
public houseNumber: string;
public city: string;
public postalCode: string;
public region: string;
public street2: string;
public street3: string;
public street4: string;
public street5: string;
public constructor(init?: Partial<EditCustomerRequest>) { super(init); (Object as any).assign(this, init); }
}
TypeScript 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
}