Booster.Microservices

<back to all web services

RetrieveWarrantyCardRequest

Requires Authentication
The following routes are available for this service:
GET/warranty/v1/card/{cardId}

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 LookupInt implements ILookupInt
{
    public object: string;
    public id: number;

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

export class Article
{
    public ref: string;
    public serial: string;
    public name: string;
    public site: LookupInt;
    public brand: string;
    public isConsignment: boolean;

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

export class Address
{
    public line1: string;
    public line2: string;
    public city: string;
    public zipCode: string;
    public countryCode: string;

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

export class Site
{
    public object: string;
    public id: string;
    public name: string;
    public address: Address;
    public crmPrivacyPolicyMandatory: boolean;
    public crmAllowStoreDataAbroadVisible: boolean;
    public isTimeVallee: boolean;
    public crmPrivacyPolicyTimeValleeMandatory: boolean;
    public crmAllowStoreDataAbroadTimeValleeVisible: boolean;
    public allowToCreateEndCustomerOutsideChina: boolean;
    public displayFirstLastNameNotLatin: boolean;
    public languageTransliteration: string;
    public doNotDisplayPOSDataInDisclaimers: boolean;
    public crmFirstNameMandatory: boolean;
    public crmCityMandatory: boolean;
    public manageOwnStock: boolean;

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

export class Warranty
{
    public article: Article[];
    public warrantyId: string;
    public createdBy: string;
    public createdAt: string;
    public issuedBy: string;
    public selloutId: string;
    public activationDate: string;
    public pin: string;
    public promoterTypeId: string;
    public promoterTypeDs: string;
    public site: Site;
    public crmEnabled: boolean;
    public canBeExtended: boolean;
    public canBeRetriggered: boolean;

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

export class RetrieveWarrantyCardResponse extends BaseResponse
{
    public warranty: Warranty;

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

export class RetrieveWarrantyCardRequest extends BaseRequest<RetrieveWarrantyCardResponse>
{
    public cardId: string;

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

TypeScript RetrieveWarrantyCardRequest DTOs

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

HTTP + JSV

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

GET /warranty/v1/card/{cardId} HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	warranty: 
	{
		article: 
		[
			{
				ref: String,
				serial: String,
				name: String,
				shortDesc: String,
				brand: String,
				warrantyStatusId: 0,
				warrantyStatusDesc: String,
				warrantyStatusCode: String,
				isConsignment: False
			}
		],
		warrantyId: String,
		createdBy: String,
		createdAt: String,
		issuedBy: String,
		selloutId: String,
		activationDate: String,
		pin: String,
		promoterTypeId: String,
		promoterTypeDs: String,
		site: 
		{
			object: String,
			id: String,
			name: String,
			address: 
			{
				line1: String,
				line2: String,
				city: String,
				zipCode: String,
				countryCode: String
			},
			crmPrivacyPolicyMandatory: False,
			crmAllowStoreDataAbroadVisible: False,
			isTimeVallee: False,
			crmPrivacyPolicyTimeValleeMandatory: False,
			crmAllowStoreDataAbroadTimeValleeVisible: False,
			allowToCreateEndCustomerOutsideChina: False,
			displayFirstLastNameNotLatin: False,
			languageTransliteration: String,
			doNotDisplayPOSDataInDisclaimers: False,
			crmFirstNameMandatory: False,
			crmCityMandatory: False,
			manageOwnStock: False
		},
		crmEnabled: False,
		canBeExtended: False,
		canBeRetriggered: False
	},
	_xmlns: String,
	_type: String,
	_source: String,
	_tstamp: String,
	_user: String,
	_env: String,
	_uri: String,
	_query: String
}