| GET | /purchase/pos | Get a list of authorized pos that can place orders |
|---|
import Foundation
import ServiceStack
public class GetPurchasablePos : IPagedRequest, Codable
{
/**
* Index of the result set returned
*/
// @ApiMember(Description="Index of the result set returned", IsRequired=true)
public var page:Int
/**
* Size of the result set returned
*/
// @ApiMember(Description="Size of the result set returned", IsRequired=true)
public var items:Int
/**
* Omit precise record count - save on performance
*/
// @ApiMember(Description="Omit precise record count - save on performance")
public var noCount:Bool
/**
* Sorting expression
*/
// @ApiMember(Description="Sorting expression")
public var sortBy:String
/**
* Brand Trigram
*/
// @ApiMember(Description="Brand Trigram", IsRequired=true)
public var brand:String
/**
* Brand Context ID
*/
// @ApiMember(Description="Brand Context ID")
public var boosterContextId:String
required public init(){}
}
public class GetPurchasablePosResponse : Codable
{
/**
* Index of the result set returnedr
*/
// @ApiMember(Description="Index of the result set returnedr", IsRequired=true)
public var page:Int
/**
* Size of the result set returned
*/
// @ApiMember(Description="Size of the result set returned", IsRequired=true)
public var items:Int
/**
* Total amount of pages / result sets
*/
// @ApiMember(Description="Total amount of pages / result sets", IsRequired=true)
public var totalPages:Int
/**
* Total amount of results
*/
// @ApiMember(Description="Total amount of results", IsRequired=true)
public var totalResults:Int
/**
* List of Pos
*/
// @ApiMember(Description="List of Pos", IsRequired=true)
public var elements:[Pos] = []
required public init(){}
}
public class Pos : Codable
{
/**
* POS Code
*/
// @ApiMember(Description="POS Code", IsRequired=true)
public var posCode:String
/**
* Name of the POS
*/
// @ApiMember(Description="Name of the POS", IsRequired=true)
public var name:String
/**
* City of the POS
*/
// @ApiMember(Description="City of the POS", IsRequired=true)
public var city:String
/**
* Address of the POS
*/
// @ApiMember(Description="Address of the POS", IsRequired=true)
public var address:String
/**
* Country of the POS
*/
// @ApiMember(Description="Country of the POS", IsRequired=true)
public var country:String
/**
* Brand of the POS
*/
// @ApiMember(Description="Brand of the POS", IsRequired=true)
public var brand:String
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /purchase/pos HTTP/1.1 Host: dev-api-booster.richemont.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
page: 0,
items: 0,
totalPages: 0,
totalResults: 0
}