| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RetrieveWarrantyCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
<_env xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_env>
<_query xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_query>
<_source xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_source>
<_tstamp xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_tstamp>
<_type xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_type>
<_uri xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_uri>
<_user xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_user>
<_xmlns xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_xmlns>
<warranty>
<activationDate>String</activationDate>
<article>
<Article>
<brand>String</brand>
<isConsignment>false</isConsignment>
<name>String</name>
<ref>String</ref>
<serial>String</serial>
<shortDesc>String</shortDesc>
<warrantyStatusCode>String</warrantyStatusCode>
<warrantyStatusDesc>String</warrantyStatusDesc>
<warrantyStatusId>0</warrantyStatusId>
</Article>
</article>
<canBeExtended>false</canBeExtended>
<canBeRetriggered>false</canBeRetriggered>
<createdAt>String</createdAt>
<createdBy>String</createdBy>
<crmEnabled>false</crmEnabled>
<issuedBy>String</issuedBy>
<pin>String</pin>
<promoterTypeDs>String</promoterTypeDs>
<promoterTypeId>String</promoterTypeId>
<selloutId>String</selloutId>
<site>
<address>
<city>String</city>
<countryCode>String</countryCode>
<line1>String</line1>
<line2>String</line2>
<zipCode>String</zipCode>
</address>
<allowToCreateEndCustomerOutsideChina>false</allowToCreateEndCustomerOutsideChina>
<crmAllowStoreDataAbroadTimeValleeVisible>false</crmAllowStoreDataAbroadTimeValleeVisible>
<crmAllowStoreDataAbroadVisible>false</crmAllowStoreDataAbroadVisible>
<crmCityMandatory>false</crmCityMandatory>
<crmFirstNameMandatory>false</crmFirstNameMandatory>
<crmPrivacyPolicyMandatory>false</crmPrivacyPolicyMandatory>
<crmPrivacyPolicyTimeValleeMandatory>false</crmPrivacyPolicyTimeValleeMandatory>
<displayFirstLastNameNotLatin>false</displayFirstLastNameNotLatin>
<doNotDisplayPOSDataInDisclaimers>false</doNotDisplayPOSDataInDisclaimers>
<id>String</id>
<isTimeVallee>false</isTimeVallee>
<languageTransliteration>String</languageTransliteration>
<manageOwnStock>false</manageOwnStock>
<name>String</name>
<object>String</object>
</site>
<warrantyId>String</warrantyId>
</warranty>
</RetrieveWarrantyCardResponse>