/* Options: Date: 2026-05-19 09:53:06 Version: 8.22 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; int? items; 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; /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) int? items; /** * Total amount of pages / result sets */ // @ApiMember(Description="Total amount of pages / result sets", IsRequired=true) int? totalPages; /** * Total amount of results */ // @ApiMember(Description="Total amount of results", IsRequired=true) int? totalResults; /** * List of Pos */ // @ApiMember(Description="List of Pos", IsRequired=true) List? elements; GetPurchasablePosResponse({this.page,this.items,this.totalPages,this.totalResults,this.elements}); GetPurchasablePosResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page']; items = json['items']; totalPages = json['totalPages']; totalResults = json['totalResults']; 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; /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) int? items; /** * 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,this.items,this.noCount,this.sortBy,this.brand,this.boosterContextId}); GetPurchasablePos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page']; items = json['items']; 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()), });