| 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 .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"maison":"String","cpoSelloutId":"String","pos":"String","selloutDate":"\/Date(-62135596800000-0000)\/","selloutStatus":"String","soldBy":"String","readCpoSelloutResponseItems":[{"productName":"String","productDescription":"String","reference":"String","serialNumber":"String","quantity":0,"status":"String","returnReason":"String","additionalNotes":"String","warrantyEndDate":"\/Date(-62135596800000-0000)\/"}]}