/* Options: Date: 2026-04-05 18:21:17 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://internal.thebunkerbridge.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ETSForwardOptions.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ETSQuoteViewModel implements IConvertible { int? Id; String? QuoteGuid; DateTime? QuoteDateTime; int? Quantity; double? GreyEpochPrice; double? GreyEpochFee; double? PayNowTotal; String? ServiceFeeType; double? ServiceFee; String? FinanceStatus; double? FinanceFee; double? FinanceTotal; String? ServiceFeeDescription; double? FinancePercentage; double? ServiceFeeValue; String? DeviceType; ETSQuoteViewModel({this.Id,this.QuoteGuid,this.QuoteDateTime,this.Quantity,this.GreyEpochPrice,this.GreyEpochFee,this.PayNowTotal,this.ServiceFeeType,this.ServiceFee,this.FinanceStatus,this.FinanceFee,this.FinanceTotal,this.ServiceFeeDescription,this.FinancePercentage,this.ServiceFeeValue,this.DeviceType}); ETSQuoteViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; QuoteGuid = json['QuoteGuid']; QuoteDateTime = JsonConverters.fromJson(json['QuoteDateTime'],'DateTime',context!); Quantity = json['Quantity']; GreyEpochPrice = JsonConverters.toDouble(json['GreyEpochPrice']); GreyEpochFee = JsonConverters.toDouble(json['GreyEpochFee']); PayNowTotal = JsonConverters.toDouble(json['PayNowTotal']); ServiceFeeType = json['ServiceFeeType']; ServiceFee = JsonConverters.toDouble(json['ServiceFee']); FinanceStatus = json['FinanceStatus']; FinanceFee = JsonConverters.toDouble(json['FinanceFee']); FinanceTotal = JsonConverters.toDouble(json['FinanceTotal']); ServiceFeeDescription = json['ServiceFeeDescription']; FinancePercentage = JsonConverters.toDouble(json['FinancePercentage']); ServiceFeeValue = JsonConverters.toDouble(json['ServiceFeeValue']); DeviceType = json['DeviceType']; return this; } Map toJson() => { 'Id': Id, 'QuoteGuid': QuoteGuid, 'QuoteDateTime': JsonConverters.toJson(QuoteDateTime,'DateTime',context!), 'Quantity': Quantity, 'GreyEpochPrice': GreyEpochPrice, 'GreyEpochFee': GreyEpochFee, 'PayNowTotal': PayNowTotal, 'ServiceFeeType': ServiceFeeType, 'ServiceFee': ServiceFee, 'FinanceStatus': FinanceStatus, 'FinanceFee': FinanceFee, 'FinanceTotal': FinanceTotal, 'ServiceFeeDescription': ServiceFeeDescription, 'FinancePercentage': FinancePercentage, 'ServiceFeeValue': ServiceFeeValue, 'DeviceType': DeviceType }; getTypeName() => "ETSQuoteViewModel"; TypeContext? context = _ctx; } class GetETSForwardDepositOptionsForEntityContactViewModel implements IConvertible { String? InvoiceFrom; double? AllowanceCostEach; bool? DepAvailable; bool? CreditAvailable; double? MarkupPercentage; double? EUAPrice; double? OrderTotalValue; double? DepositPercentage; double? DepositTotalValue; double? MarginPercentageCovered; double? MarginCoveredTo; String? ServiceFeeType; double? TotalServiceFee; double? DepositCashRequired; double? MarginCashRisk; double? TotalCashRisk; String? DepositTitle; String? HeaderBarText; String? HeaderBarValue; String? MoreDetailsString; double? PriceToBridge; double? BridgeDepositValue; double? ExternalFeePerTicket; double? OurCommission; int? Sort; String? ServiceFeeDescription; String? ApiToUse; String? AitherSettlementUUID; GetETSForwardDepositOptionsForEntityContactViewModel({this.InvoiceFrom,this.AllowanceCostEach,this.DepAvailable,this.CreditAvailable,this.MarkupPercentage,this.EUAPrice,this.OrderTotalValue,this.DepositPercentage,this.DepositTotalValue,this.MarginPercentageCovered,this.MarginCoveredTo,this.ServiceFeeType,this.TotalServiceFee,this.DepositCashRequired,this.MarginCashRisk,this.TotalCashRisk,this.DepositTitle,this.HeaderBarText,this.HeaderBarValue,this.MoreDetailsString,this.PriceToBridge,this.BridgeDepositValue,this.ExternalFeePerTicket,this.OurCommission,this.Sort,this.ServiceFeeDescription,this.ApiToUse,this.AitherSettlementUUID}); GetETSForwardDepositOptionsForEntityContactViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceFrom = json['InvoiceFrom']; AllowanceCostEach = JsonConverters.toDouble(json['AllowanceCostEach']); DepAvailable = json['DepAvailable']; CreditAvailable = json['CreditAvailable']; MarkupPercentage = JsonConverters.toDouble(json['MarkupPercentage']); EUAPrice = JsonConverters.toDouble(json['EUAPrice']); OrderTotalValue = JsonConverters.toDouble(json['OrderTotalValue']); DepositPercentage = JsonConverters.toDouble(json['DepositPercentage']); DepositTotalValue = JsonConverters.toDouble(json['DepositTotalValue']); MarginPercentageCovered = JsonConverters.toDouble(json['MarginPercentageCovered']); MarginCoveredTo = JsonConverters.toDouble(json['MarginCoveredTo']); ServiceFeeType = json['ServiceFeeType']; TotalServiceFee = JsonConverters.toDouble(json['TotalServiceFee']); DepositCashRequired = JsonConverters.toDouble(json['DepositCashRequired']); MarginCashRisk = JsonConverters.toDouble(json['MarginCashRisk']); TotalCashRisk = JsonConverters.toDouble(json['TotalCashRisk']); DepositTitle = json['DepositTitle']; HeaderBarText = json['HeaderBarText']; HeaderBarValue = json['HeaderBarValue']; MoreDetailsString = json['MoreDetailsString']; PriceToBridge = JsonConverters.toDouble(json['PriceToBridge']); BridgeDepositValue = JsonConverters.toDouble(json['BridgeDepositValue']); ExternalFeePerTicket = JsonConverters.toDouble(json['ExternalFeePerTicket']); OurCommission = JsonConverters.toDouble(json['OurCommission']); Sort = json['Sort']; ServiceFeeDescription = json['ServiceFeeDescription']; ApiToUse = json['ApiToUse']; AitherSettlementUUID = json['AitherSettlementUUID']; return this; } Map toJson() => { 'InvoiceFrom': InvoiceFrom, 'AllowanceCostEach': AllowanceCostEach, 'DepAvailable': DepAvailable, 'CreditAvailable': CreditAvailable, 'MarkupPercentage': MarkupPercentage, 'EUAPrice': EUAPrice, 'OrderTotalValue': OrderTotalValue, 'DepositPercentage': DepositPercentage, 'DepositTotalValue': DepositTotalValue, 'MarginPercentageCovered': MarginPercentageCovered, 'MarginCoveredTo': MarginCoveredTo, 'ServiceFeeType': ServiceFeeType, 'TotalServiceFee': TotalServiceFee, 'DepositCashRequired': DepositCashRequired, 'MarginCashRisk': MarginCashRisk, 'TotalCashRisk': TotalCashRisk, 'DepositTitle': DepositTitle, 'HeaderBarText': HeaderBarText, 'HeaderBarValue': HeaderBarValue, 'MoreDetailsString': MoreDetailsString, 'PriceToBridge': PriceToBridge, 'BridgeDepositValue': BridgeDepositValue, 'ExternalFeePerTicket': ExternalFeePerTicket, 'OurCommission': OurCommission, 'Sort': Sort, 'ServiceFeeDescription': ServiceFeeDescription, 'ApiToUse': ApiToUse, 'AitherSettlementUUID': AitherSettlementUUID }; getTypeName() => "GetETSForwardDepositOptionsForEntityContactViewModel"; TypeContext? context = _ctx; } class ETSForwardOptionsViewModel implements IConvertible { String? QuoteGuid; int? Quantity; int? MonthNumber; DateTime? StartDate; String? InvoicedBy; String? SelectedDepositPercentage; String? SelectedForwardOption; String? ThirdPartyName; DateTime? CurrentServerTime; bool? IsBridgeClient; ETSQuoteViewModel? ETSQuote; List? GetETSForwardDepositOptionsForEntityContact; ETSForwardOptionsViewModel({this.QuoteGuid,this.Quantity,this.MonthNumber,this.StartDate,this.InvoicedBy,this.SelectedDepositPercentage,this.SelectedForwardOption,this.ThirdPartyName,this.CurrentServerTime,this.IsBridgeClient,this.ETSQuote,this.GetETSForwardDepositOptionsForEntityContact}); ETSForwardOptionsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { QuoteGuid = json['QuoteGuid']; Quantity = json['Quantity']; MonthNumber = json['MonthNumber']; StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); InvoicedBy = json['InvoicedBy']; SelectedDepositPercentage = json['SelectedDepositPercentage']; SelectedForwardOption = json['SelectedForwardOption']; ThirdPartyName = json['ThirdPartyName']; CurrentServerTime = JsonConverters.fromJson(json['CurrentServerTime'],'DateTime',context!); IsBridgeClient = json['IsBridgeClient']; ETSQuote = JsonConverters.fromJson(json['ETSQuote'],'ETSQuoteViewModel',context!); GetETSForwardDepositOptionsForEntityContact = JsonConverters.fromJson(json['GetETSForwardDepositOptionsForEntityContact'],'List',context!); return this; } Map toJson() => { 'QuoteGuid': QuoteGuid, 'Quantity': Quantity, 'MonthNumber': MonthNumber, 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'InvoicedBy': InvoicedBy, 'SelectedDepositPercentage': SelectedDepositPercentage, 'SelectedForwardOption': SelectedForwardOption, 'ThirdPartyName': ThirdPartyName, 'CurrentServerTime': JsonConverters.toJson(CurrentServerTime,'DateTime',context!), 'IsBridgeClient': IsBridgeClient, 'ETSQuote': JsonConverters.toJson(ETSQuote,'ETSQuoteViewModel',context!), 'GetETSForwardDepositOptionsForEntityContact': JsonConverters.toJson(GetETSForwardDepositOptionsForEntityContact,'List',context!) }; getTypeName() => "ETSForwardOptionsViewModel"; TypeContext? context = _ctx; } // @Route("/ETS/Forward-Options", "GET") class ETSForwardOptions implements IReturn, IConvertible, IGet { String? QuoteId; int? Quantity; int? MonthNumber; String? StartDate; ETSForwardOptions({this.QuoteId,this.Quantity,this.MonthNumber,this.StartDate}); ETSForwardOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { QuoteId = json['QuoteId']; Quantity = json['Quantity']; MonthNumber = json['MonthNumber']; StartDate = json['StartDate']; return this; } Map toJson() => { 'QuoteId': QuoteId, 'Quantity': Quantity, 'MonthNumber': MonthNumber, 'StartDate': StartDate }; createResponse() => ETSForwardOptionsViewModel(); getResponseTypeName() => "ETSForwardOptionsViewModel"; getTypeName() => "ETSForwardOptions"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'ETSQuoteViewModel': TypeInfo(TypeOf.Class, create:() => ETSQuoteViewModel()), 'GetETSForwardDepositOptionsForEntityContactViewModel': TypeInfo(TypeOf.Class, create:() => GetETSForwardDepositOptionsForEntityContactViewModel()), 'ETSForwardOptionsViewModel': TypeInfo(TypeOf.Class, create:() => ETSForwardOptionsViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ETSForwardOptions': TypeInfo(TypeOf.Class, create:() => ETSForwardOptions()), });