| GET | /partner/warranty/equipment | Read CPO Sellout | Read CPO Sellout API |
|---|
import Foundation
import ServiceStack
public class ReadEquipmentWarrantyPartner : Codable
{
/**
* Brand Trigram, e.g. CAR, IWC
*/
// @ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)
public var brand:String
/**
* Richemont POS code, e.g. 102048
*/
// @ApiMember(Description="Richemont POS code, e.g. 102048", IsRequired=true)
public var posCode:String
/**
* Cpo sellout Id, e.g a0RbW000000qIyXUAU
*/
// @ApiMember(Description="Cpo sellout Id, e.g a0RbW000000qIyXUAU", IsRequired=true)
public var cpoSelloutId:String
required public init(){}
}
public class ReadEquipmentWarrantyPartnerResponse : Codable
{
/**
* Maison
*/
// @ApiMember(Description="Maison")
public var maison:String
/**
* Cpo sellout id
*/
// @ApiMember(Description="Cpo sellout id")
public var cpoSelloutId:String
/**
* pos
*/
// @ApiMember(Description="pos")
public var pos:String
/**
* Sellout date
*/
// @ApiMember(Description="Sellout date")
public var selloutDate:Date?
/**
* Sellout status
*/
// @ApiMember(Description="Sellout status")
public var selloutStatus:String
/**
* Sold by
*/
// @ApiMember(Description="Sold by")
public var soldBy:String
/**
* Cpo sellout items
*/
// @ApiMember(Description="Cpo sellout items")
public var readCpoSelloutResponseItems:[ReadEquipmentWarrantyPartnerResponseItem] = []
required public init(){}
}
public class ReadEquipmentWarrantyPartnerResponseItem : Codable
{
/**
* Product name
*/
// @ApiMember(Description="Product name")
public var productName:String
/**
* Product description
*/
// @ApiMember(Description="Product description")
public var productDescription:String
/**
* Product reference
*/
// @ApiMember(Description="Product reference")
public var reference:String
/**
* Product serial number
*/
// @ApiMember(Description="Product serial number")
public var serialNumber:String
/**
* Quantity
*/
// @ApiMember(Description="Quantity")
public var quantity:Float?
/**
* Status
*/
// @ApiMember(Description="Status")
public var status:String
/**
* Return reason
*/
// @ApiMember(Description="Return reason")
public var returnReason:String
/**
* Additional notes
*/
// @ApiMember(Description="Additional notes")
public var additionalNotes:String
/**
* Warranty end date
*/
// @ApiMember(Description="Warranty end date")
public var warrantyEndDate:Date?
required public init(){}
}
Swift ReadEquipmentWarrantyPartner 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 /partner/warranty/equipment HTTP/1.1 Host: dev-api-booster.richemont.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReadEquipmentWarrantyPartnerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel">
<cpoSelloutId>String</cpoSelloutId>
<maison>String</maison>
<pos>String</pos>
<readCpoSelloutResponseItems>
<ReadEquipmentWarrantyPartnerResponseItem>
<additionalNotes>String</additionalNotes>
<productDescription>String</productDescription>
<productName>String</productName>
<quantity>0</quantity>
<reference>String</reference>
<returnReason>String</returnReason>
<serialNumber>String</serialNumber>
<status>String</status>
<warrantyEndDate>0001-01-01T00:00:00</warrantyEndDate>
</ReadEquipmentWarrantyPartnerResponseItem>
</readCpoSelloutResponseItems>
<selloutDate>0001-01-01T00:00:00</selloutDate>
<selloutStatus>String</selloutStatus>
<soldBy>String</soldBy>
</ReadEquipmentWarrantyPartnerResponse>