| GET | /warranty/v1/cards/paged |
|---|
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 ListWarrantyCardsPagedResponse extends BaseResponse
{
public page: number;
public items: number;
public totalPages: number;
public totalResults: number;
public elements: Warranty[];
public constructor(init?: Partial<ListWarrantyCardsPagedResponse>) { super(init); (Object as any).assign(this, init); }
}
export class ListWarrantyCardsPagedRequest extends BaseRequest<ListWarrantyCardsPagedResponse> implements IPagedRequest
{
public referenceId: string;
public serial: string;
public brand: string;
public siteId: number;
public page: number;
public items: number;
public noCount: boolean;
public sortBy: string;
public constructor(init?: Partial<ListWarrantyCardsPagedRequest>) { super(init); (Object as any).assign(this, init); }
}
TypeScript ListWarrantyCardsPagedRequest 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.
GET /warranty/v1/cards/paged HTTP/1.1 Host: qp-microservices-booster.richemont.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"page":0,"items":0,"totalPages":0,"totalResults":0,"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}