/* Options: Date: 2026-08-27 08:00:55 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPurchasablePos.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IPagedRequest { int page = 0; int items = 0; bool? noCount; String? sortBy; } class Pos implements IConvertible { /** * POS Code */ // @ApiMember(Description="POS Code", IsRequired=true) String posCode = ""; /** * Name of the POS */ // @ApiMember(Description="Name of the POS", IsRequired=true) String name = ""; /** * City of the POS */ // @ApiMember(Description="City of the POS", IsRequired=true) String city = ""; /** * Address of the POS */ // @ApiMember(Description="Address of the POS", IsRequired=true) String address = ""; /** * Country of the POS */ // @ApiMember(Description="Country of the POS", IsRequired=true) String country = ""; /** * Brand of the POS */ // @ApiMember(Description="Brand of the POS", IsRequired=true) String brand = ""; Pos({this.posCode="",this.name="",this.city="",this.address="",this.country="",this.brand=""}); Pos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { posCode = json['posCode'] ?? ""; name = json['name'] ?? ""; city = json['city'] ?? ""; address = json['address'] ?? ""; country = json['country'] ?? ""; brand = json['brand'] ?? ""; return this; } Map toJson() => { 'posCode': posCode, 'name': name, 'city': city, 'address': address, 'country': country, 'brand': brand }; getTypeName() => "Pos"; TypeContext? context = _ctx; } class Pos implements IConvertible { /** * Name of the POS */ // @ApiMember(Description="Name of the POS", IsRequired=true) String name = ""; /** * POS Code */ // @ApiMember(Description="POS Code", IsRequired=true) String posCode = ""; /** * Pos Code To Be Displayed */ // @ApiMember(Description="Pos Code To Be Displayed", IsRequired=true) String posCodeToBeDisplayed = ""; /** * Country of the POS */ // @ApiMember(Description="Country of the POS", IsRequired=true) String country = ""; /** * City of the POS */ // @ApiMember(Description="City of the POS", IsRequired=true) String city = ""; /** * Postal Code */ // @ApiMember(Description="Postal Code", IsRequired=true) String postalCode = ""; /** * State */ // @ApiMember(Description="State", IsRequired=true) String state = ""; /** * Street */ // @ApiMember(Description="Street", IsRequired=true) String street = ""; Pos({this.name="",this.posCode="",this.posCodeToBeDisplayed="",this.country="",this.city="",this.postalCode="",this.state="",this.street=""}); Pos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; posCode = json['posCode'] ?? ""; posCodeToBeDisplayed = json['posCodeToBeDisplayed'] ?? ""; country = json['country'] ?? ""; city = json['city'] ?? ""; postalCode = json['postalCode'] ?? ""; state = json['state'] ?? ""; street = json['street'] ?? ""; return this; } Map toJson() => { 'name': name, 'posCode': posCode, 'posCodeToBeDisplayed': posCodeToBeDisplayed, 'country': country, 'city': city, 'postalCode': postalCode, 'state': state, 'street': street }; getTypeName() => "Pos"; TypeContext? context = _ctx; } class GetPurchasablePosResponse implements IConvertible { /** * Index of the result set returnedr */ // @ApiMember(Description="Index of the result set returnedr", IsRequired=true) int page = 0; /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) int items = 0; /** * Total amount of pages / result sets */ // @ApiMember(Description="Total amount of pages / result sets", IsRequired=true) int totalPages = 0; /** * Total amount of results */ // @ApiMember(Description="Total amount of results", IsRequired=true) int totalResults = 0; /** * List of Pos */ // @ApiMember(Description="List of Pos", IsRequired=true) List? elements; GetPurchasablePosResponse({this.page=0,this.items=0,this.totalPages=0,this.totalResults=0,this.elements}); GetPurchasablePosResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page'] ?? 0; items = json['items'] ?? 0; totalPages = json['totalPages'] ?? 0; totalResults = json['totalResults'] ?? 0; elements = JsonConverters.fromJson(json['elements'],'List',context!); return this; } Map toJson() => { 'page': page, 'items': items, 'totalPages': totalPages, 'totalResults': totalResults, 'elements': JsonConverters.toJson(elements,'List',context!) }; getTypeName() => "GetPurchasablePosResponse"; TypeContext? context = _ctx; } // @Route("/purchase/pos", "GET") class GetPurchasablePos implements IReturn, IPagedRequest, IConvertible, IGet { /** * Index of the result set returned */ // @ApiMember(Description="Index of the result set returned", IsRequired=true) int page = 0; /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) int items = 0; /** * Omit precise record count - save on performance */ // @ApiMember(Description="Omit precise record count - save on performance") bool? noCount; /** * Sorting expression */ // @ApiMember(Description="Sorting expression") String? sortBy; /** * Brand Trigram */ // @ApiMember(Description="Brand Trigram", IsRequired=true) String brand = ""; /** * Brand Context ID */ // @ApiMember(Description="Brand Context ID") String? boosterContextId; GetPurchasablePos({this.page=0,this.items=0,this.noCount,this.sortBy,this.brand="",this.boosterContextId}); GetPurchasablePos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page'] ?? 0; items = json['items'] ?? 0; noCount = json['noCount']; sortBy = json['sortBy']; brand = json['brand'] ?? ""; boosterContextId = json['boosterContextId']; return this; } Map toJson() => { 'page': page, 'items': items, 'noCount': noCount, 'sortBy': sortBy, 'brand': brand, 'boosterContextId': boosterContextId }; createResponse() => GetPurchasablePosResponse(); getResponseTypeName() => "GetPurchasablePosResponse"; getTypeName() => "GetPurchasablePos"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'IPagedRequest': TypeInfo(TypeOf.Interface), 'Pos': TypeInfo(TypeOf.Class, create:() => Pos()), 'GetPurchasablePosResponse': TypeInfo(TypeOf.Class, create:() => GetPurchasablePosResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetPurchasablePos': TypeInfo(TypeOf.Class, create:() => GetPurchasablePos()), });