| POST | /warranty/v1/createCustomer |
|---|
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 CreateCustomerResponse extends BaseResponse
{
public customerId?: string;
public boosterCustomerId?: number;
public constructor(init?: Partial<CreateCustomerResponse>) { super(init); (Object as any).assign(this, init); }
}
export class CreateCustomerRequest extends BaseRequest<CreateCustomerResponse>
{
public customerRef: string;
public title: number;
public firstName: string;
public lastName: string;
public firstNameNotLatin: string;
public lastNameNotLatin: string;
public birthday?: 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 brandTrigram: string;
public weddingDate?: string;
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 salePersonId: string;
public privacyPolicyAcceptanceStorage?: boolean;
public allowStoreDataAbroad?: boolean;
public tvPrivacyPolicyAcceptanceStorage?: boolean;
public tvAllowStoreDataAbroad?: boolean;
public contactByMail: boolean;
public contactByEmail: boolean;
public contactByPhone: boolean;
public contactBySMS: boolean;
public contactBySocialMedia: boolean;
public constructor(init?: Partial<CreateCustomerRequest>) { super(init); (Object as any).assign(this, init); }
}
TypeScript CreateCustomerRequest 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/createCustomer HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"customerRef":"String","title":0,"firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"\/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,"brandTrigram":"String","weddingDate":"\/Date(-62135596800000-0000)\/","street":"String","houseNumber":"String","city":"String","postalCode":"String","region":"String","street2":"String","street3":"String","street4":"String","street5":"String","salePersonId":"String","privacyPolicyAcceptanceStorage":false,"allowStoreDataAbroad":false,"tvPrivacyPolicyAcceptanceStorage":false,"tvAllowStoreDataAbroad":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"customerId":"00000000000000000000000000000000","boosterCustomerId":0,"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}