/* Options: Date: 2026-05-19 09:53:17 SwiftVersion: 5.0 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetPurchasablePos.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/purchase/pos", "GET") public class GetPurchasablePos : IReturn, IPagedRequest, Codable { public typealias Return = GetPurchasablePosResponse /** * 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 protocol IPagedRequest { var page:Int { get set } var items:Int { get set } var noCount:Bool { get set } var sortBy:String { get set } } 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(){} } public class Pos : Codable { /** * Name of the POS */ // @ApiMember(Description="Name of the POS", IsRequired=true) public var name:String /** * POS Code */ // @ApiMember(Description="POS Code", IsRequired=true) public var posCode:String /** * Pos Code To Be Displayed */ // @ApiMember(Description="Pos Code To Be Displayed", IsRequired=true) public var posCodeToBeDisplayed:String /** * Country of the POS */ // @ApiMember(Description="Country of the POS", IsRequired=true) public var country:String /** * City of the POS */ // @ApiMember(Description="City of the POS", IsRequired=true) public var city:String /** * Postal Code */ // @ApiMember(Description="Postal Code", IsRequired=true) public var postalCode:String /** * State */ // @ApiMember(Description="State", IsRequired=true) public var state:String /** * Street */ // @ApiMember(Description="Street", IsRequired=true) public var street:String required public init(){} }