Richemont.Booster2.PublicApi

<back to all web services

GetPurchasablePos

Requires Authentication
The following routes are available for this service:
GET/purchase/posGet 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(){}
}


Swift GetPurchasablePos DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetPurchasablePosResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel">
  <elements i:nil="true" />
  <items>0</items>
  <page>0</page>
  <totalPages>0</totalPages>
  <totalResults>0</totalResults>
</GetPurchasablePosResponse>