| GET | /purchase/pos | Get a list of authorized pos that can place orders |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetPurchasablePos : IPagedRequest
{
/**
* Index of the result set returned
*/
@ApiMember(Description="Index of the result set returned", IsRequired=true)
var page:Int? = null
/**
* Size of the result set returned
*/
@ApiMember(Description="Size of the result set returned", IsRequired=true)
var items:Int? = null
/**
* Omit precise record count - save on performance
*/
@ApiMember(Description="Omit precise record count - save on performance")
var noCount:Boolean? = null
/**
* Sorting expression
*/
@ApiMember(Description="Sorting expression")
var sortBy:String? = null
/**
* Brand Trigram
*/
@ApiMember(Description="Brand Trigram", IsRequired=true)
var brand:String? = null
/**
* Brand Context ID
*/
@ApiMember(Description="Brand Context ID")
var boosterContextId:String? = null
}
open class GetPurchasablePosResponse
{
/**
* Index of the result set returnedr
*/
@ApiMember(Description="Index of the result set returnedr", IsRequired=true)
var page:Int? = null
/**
* Size of the result set returned
*/
@ApiMember(Description="Size of the result set returned", IsRequired=true)
var items:Int? = null
/**
* Total amount of pages / result sets
*/
@ApiMember(Description="Total amount of pages / result sets", IsRequired=true)
var totalPages:Int? = null
/**
* Total amount of results
*/
@ApiMember(Description="Total amount of results", IsRequired=true)
var totalResults:Int? = null
/**
* List of Pos
*/
@ApiMember(Description="List of Pos", IsRequired=true)
var elements:ArrayList<Pos> = ArrayList<Pos>()
}
open class Pos
{
/**
* POS Code
*/
@ApiMember(Description="POS Code", IsRequired=true)
var posCode:String? = null
/**
* Name of the POS
*/
@ApiMember(Description="Name of the POS", IsRequired=true)
var name:String? = null
/**
* City of the POS
*/
@ApiMember(Description="City of the POS", IsRequired=true)
var city:String? = null
/**
* Address of the POS
*/
@ApiMember(Description="Address of the POS", IsRequired=true)
var address:String? = null
/**
* Country of the POS
*/
@ApiMember(Description="Country of the POS", IsRequired=true)
var country:String? = null
/**
* Brand of the POS
*/
@ApiMember(Description="Brand of the POS", IsRequired=true)
var brand:String? = null
}
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
}