Booster.Microservices

<back to all web services

EditAndConnectCustomerRequest

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/card/{cardId}/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 EditAndConnectCustomerResponse extends BaseResponse
{

    public constructor(init?: Partial<EditAndConnectCustomerResponse>) { super(init); (Object as any).assign(this, init); }
}

export class EditAndConnectCustomerRequest extends BaseRequest<EditAndConnectCustomerResponse>
{
    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<EditAndConnectCustomerRequest>) { super(init); (Object as any).assign(this, init); }
}

TypeScript EditAndConnectCustomerRequest 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/card/{cardId}/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"}