/* Options: Date: 2026-11-20 18:59:46 Version: 10.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.testenv.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: IssueSelfServiceDevice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Money implements IConvertible { double amount = 0; String currency = ""; Money({this.amount=0,this.currency=""}); Money.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']) ?? 0; currency = json['currency'] ?? ""; return this; } Map toJson() => { 'amount': amount, 'currency': currency }; getTypeName() => "Money"; TypeContext? context = _ctx; } class Ref implements IConvertible { String id = ""; String val = ""; Ref({this.id="",this.val=""}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id'] ?? ""; val = json['val'] ?? ""; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } class RefEx extends Ref implements IConvertible { RecordDictionary? data; RefEx({this.data}); RefEx.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'RecordDictionary',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'RecordDictionary',context!) }); getTypeName() => "RefEx"; TypeContext? context = _ctx; } class RecordDictionary extends Map implements IConvertible { RecordDictionary(); RecordDictionary.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "RecordDictionary<$TKey,$TVal>"; TypeContext? context = _ctx; } class IdentificationDocumentType { static const IdentificationDocumentType IdentityCard = const IdentificationDocumentType._(1); static const IdentificationDocumentType Passport = const IdentificationDocumentType._(2); final int _value; const IdentificationDocumentType._(this._value); int get value => _value; static List get values => const [IdentityCard,Passport]; } class PatronIdentity implements IConvertible { String? fullName; String? identificationNumber; IdentificationDocumentType? identificationDocumentType; PatronIdentity({this.fullName,this.identificationNumber,this.identificationDocumentType}); PatronIdentity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { fullName = json['fullName']; identificationNumber = json['identificationNumber']; identificationDocumentType = JsonConverters.fromJson(json['identificationDocumentType'],'IdentificationDocumentType',context!); return this; } Map toJson() => { 'fullName': fullName, 'identificationNumber': identificationNumber, 'identificationDocumentType': JsonConverters.toJson(identificationDocumentType,'IdentificationDocumentType',context!) }; getTypeName() => "PatronIdentity"; TypeContext? context = _ctx; } class BettingApp implements IConvertible { String? name; String? version; BettingApp({this.name,this.version}); BettingApp.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; version = json['version']; return this; } Map toJson() => { 'name': name, 'version': version }; getTypeName() => "BettingApp"; TypeContext? context = _ctx; } class Origin implements IConvertible { BettingApp? application; String? ip; RefEx? organization; Ref? region; Ref? locationGroup; RefEx? location; RefEx? device; Ref? clerk; Origin({this.application,this.ip,this.organization,this.region,this.locationGroup,this.location,this.device,this.clerk}); Origin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { application = JsonConverters.fromJson(json['application'],'BettingApp',context!); ip = json['ip']; organization = JsonConverters.fromJson(json['organization'],'RefEx',context!); region = JsonConverters.fromJson(json['region'],'Ref',context!); locationGroup = JsonConverters.fromJson(json['locationGroup'],'Ref',context!); location = JsonConverters.fromJson(json['location'],'RefEx',context!); device = JsonConverters.fromJson(json['device'],'RefEx',context!); clerk = JsonConverters.fromJson(json['clerk'],'Ref',context!); return this; } Map toJson() => { 'application': JsonConverters.toJson(application,'BettingApp',context!), 'ip': ip, 'organization': JsonConverters.toJson(organization,'RefEx',context!), 'region': JsonConverters.toJson(region,'Ref',context!), 'locationGroup': JsonConverters.toJson(locationGroup,'Ref',context!), 'location': JsonConverters.toJson(location,'RefEx',context!), 'device': JsonConverters.toJson(device,'RefEx',context!), 'clerk': JsonConverters.toJson(clerk,'Ref',context!) }; getTypeName() => "Origin"; TypeContext? context = _ctx; } // @Route("/cmd/self-service-device-betting-sessions/issue", "POST") class IssueSelfServiceDevice implements IReturn, IConvertible, IPost { String? sessionId; String? deviceId; Money? initialCredit; PatronIdentity? patron; Origin? origin; IssueSelfServiceDevice({this.sessionId,this.deviceId,this.initialCredit,this.patron,this.origin}); IssueSelfServiceDevice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sessionId = json['sessionId']; deviceId = json['deviceId']; initialCredit = JsonConverters.fromJson(json['initialCredit'],'Money',context!); patron = JsonConverters.fromJson(json['patron'],'PatronIdentity',context!); origin = JsonConverters.fromJson(json['origin'],'Origin',context!); return this; } Map toJson() => { 'sessionId': sessionId, 'deviceId': deviceId, 'initialCredit': JsonConverters.toJson(initialCredit,'Money',context!), 'patron': JsonConverters.toJson(patron,'PatronIdentity',context!), 'origin': JsonConverters.toJson(origin,'Origin',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "IssueSelfServiceDevice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.testenv.webhop.biz', types: { 'Money': TypeInfo(TypeOf.Class, create:() => Money()), 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'IdentificationDocumentType': TypeInfo(TypeOf.Enum, enumValues:IdentificationDocumentType.values), 'PatronIdentity': TypeInfo(TypeOf.Class, create:() => PatronIdentity()), 'BettingApp': TypeInfo(TypeOf.Class, create:() => BettingApp()), 'Origin': TypeInfo(TypeOf.Class, create:() => Origin()), 'IssueSelfServiceDevice': TypeInfo(TypeOf.Class, create:() => IssueSelfServiceDevice()), });