/* Options: Date: 2026-04-05 18:23:13 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: ETSGetPrice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ETSLinkedVesselsViewModel implements IConvertible { bool? Deleted; int? VesselId; int? Quantity; String? MohaAccount; bool? IsQuote; ETSLinkedVesselsViewModel({this.Deleted,this.VesselId,this.Quantity,this.MohaAccount,this.IsQuote}); ETSLinkedVesselsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Deleted = json['Deleted']; VesselId = json['VesselId']; Quantity = json['Quantity']; MohaAccount = json['MohaAccount']; IsQuote = json['IsQuote']; return this; } Map toJson() => { 'Deleted': Deleted, 'VesselId': VesselId, 'Quantity': Quantity, 'MohaAccount': MohaAccount, 'IsQuote': IsQuote }; getTypeName() => "ETSLinkedVesselsViewModel"; TypeContext? context = _ctx; } class GetETSRegistrationStatusViewModel implements IConvertible { String? Status; String? AppliedBy; GetETSRegistrationStatusViewModel({this.Status,this.AppliedBy}); GetETSRegistrationStatusViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; AppliedBy = json['AppliedBy']; return this; } Map toJson() => { 'Status': Status, 'AppliedBy': AppliedBy }; getTypeName() => "GetETSRegistrationStatusViewModel"; TypeContext? context = _ctx; } class GetETSForwardPricesForEntityContactSimpleViewModel implements IConvertible { int? MonthNumber; DateTime? StartingDate; String? DateForGreyEpoch; String? DateForUserInterface; int? Over1000; double? OurCommissionForOrder; double? ExternalFeePerTicket; double? ServiceFeeValue; String? ServiceFeeDescription; double? MarketPrice; double? UnitCostPrice; String? APIToUse; double? SpotAdditionalMargin; String? UserContactNumber; String? AitherSettlementUUID; GetETSForwardPricesForEntityContactSimpleViewModel({this.MonthNumber,this.StartingDate,this.DateForGreyEpoch,this.DateForUserInterface,this.Over1000,this.OurCommissionForOrder,this.ExternalFeePerTicket,this.ServiceFeeValue,this.ServiceFeeDescription,this.MarketPrice,this.UnitCostPrice,this.APIToUse,this.SpotAdditionalMargin,this.UserContactNumber,this.AitherSettlementUUID}); GetETSForwardPricesForEntityContactSimpleViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MonthNumber = json['MonthNumber']; StartingDate = JsonConverters.fromJson(json['StartingDate'],'DateTime',context!); DateForGreyEpoch = json['DateForGreyEpoch']; DateForUserInterface = json['DateForUserInterface']; Over1000 = json['Over1000']; OurCommissionForOrder = JsonConverters.toDouble(json['OurCommissionForOrder']); ExternalFeePerTicket = JsonConverters.toDouble(json['ExternalFeePerTicket']); ServiceFeeValue = JsonConverters.toDouble(json['ServiceFeeValue']); ServiceFeeDescription = json['ServiceFeeDescription']; MarketPrice = JsonConverters.toDouble(json['MarketPrice']); UnitCostPrice = JsonConverters.toDouble(json['UnitCostPrice']); APIToUse = json['APIToUse']; SpotAdditionalMargin = JsonConverters.toDouble(json['SpotAdditionalMargin']); UserContactNumber = json['UserContactNumber']; AitherSettlementUUID = json['AitherSettlementUUID']; return this; } Map toJson() => { 'MonthNumber': MonthNumber, 'StartingDate': JsonConverters.toJson(StartingDate,'DateTime',context!), 'DateForGreyEpoch': DateForGreyEpoch, 'DateForUserInterface': DateForUserInterface, 'Over1000': Over1000, 'OurCommissionForOrder': OurCommissionForOrder, 'ExternalFeePerTicket': ExternalFeePerTicket, 'ServiceFeeValue': ServiceFeeValue, 'ServiceFeeDescription': ServiceFeeDescription, 'MarketPrice': MarketPrice, 'UnitCostPrice': UnitCostPrice, 'APIToUse': APIToUse, 'SpotAdditionalMargin': SpotAdditionalMargin, 'UserContactNumber': UserContactNumber, 'AitherSettlementUUID': AitherSettlementUUID }; getTypeName() => "GetETSForwardPricesForEntityContactSimpleViewModel"; TypeContext? context = _ctx; } class ETSPlaceOrderViewModel implements IConvertible { String? OrderType; String? QuoteGuid; double? UnitPrice; double? Price; double? FinancingPrice; String? FinancingStatus; double? ArrangementFee; String? ArrangementFeeDescription; String? ETSOrderInfoTextNonFinanced; String? ETSOrderInfoTextFinanced; String? PaymentType; int? Quantity; int? OriginalQuantity; String? CompanyName; String? FullName; String? EmailAddress; bool? CanPurchaseEUA; bool? ThirdParty; String? ThirdPartyName; double? ExternalFeePerTicket; double? OurCommissionForOrder; double? EUAPrice; double? RawPrice; bool? RegenerateQuote; String? GetETSMarketHoursMessage; bool? IsBridgeClient; String? APIToUse; String? IoiId; String? OfferIoi; DateTime? IoiExpiresAt; double? SpotAdditionalMargin; String? AitherSettlementUUID; List? GetVessels; List? LinkedVessels; List? GetETSForwardPricesForEntityContactSimple; GetETSRegistrationStatusViewModel? GetETSRegistrationStatus; ETSPlaceOrderViewModel({this.OrderType,this.QuoteGuid,this.UnitPrice,this.Price,this.FinancingPrice,this.FinancingStatus,this.ArrangementFee,this.ArrangementFeeDescription,this.ETSOrderInfoTextNonFinanced,this.ETSOrderInfoTextFinanced,this.PaymentType,this.Quantity,this.OriginalQuantity,this.CompanyName,this.FullName,this.EmailAddress,this.CanPurchaseEUA,this.ThirdParty,this.ThirdPartyName,this.ExternalFeePerTicket,this.OurCommissionForOrder,this.EUAPrice,this.RawPrice,this.RegenerateQuote,this.GetETSMarketHoursMessage,this.IsBridgeClient,this.APIToUse,this.IoiId,this.OfferIoi,this.IoiExpiresAt,this.SpotAdditionalMargin,this.AitherSettlementUUID,this.GetVessels,this.LinkedVessels,this.GetETSForwardPricesForEntityContactSimple,this.GetETSRegistrationStatus}); ETSPlaceOrderViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OrderType = json['OrderType']; QuoteGuid = json['QuoteGuid']; UnitPrice = JsonConverters.toDouble(json['UnitPrice']); Price = JsonConverters.toDouble(json['Price']); FinancingPrice = JsonConverters.toDouble(json['FinancingPrice']); FinancingStatus = json['FinancingStatus']; ArrangementFee = JsonConverters.toDouble(json['ArrangementFee']); ArrangementFeeDescription = json['ArrangementFeeDescription']; ETSOrderInfoTextNonFinanced = json['ETSOrderInfoTextNonFinanced']; ETSOrderInfoTextFinanced = json['ETSOrderInfoTextFinanced']; PaymentType = json['PaymentType']; Quantity = json['Quantity']; OriginalQuantity = json['OriginalQuantity']; CompanyName = json['CompanyName']; FullName = json['FullName']; EmailAddress = json['EmailAddress']; CanPurchaseEUA = json['CanPurchaseEUA']; ThirdParty = json['ThirdParty']; ThirdPartyName = json['ThirdPartyName']; ExternalFeePerTicket = JsonConverters.toDouble(json['ExternalFeePerTicket']); OurCommissionForOrder = JsonConverters.toDouble(json['OurCommissionForOrder']); EUAPrice = JsonConverters.toDouble(json['EUAPrice']); RawPrice = JsonConverters.toDouble(json['RawPrice']); RegenerateQuote = json['RegenerateQuote']; GetETSMarketHoursMessage = json['GetETSMarketHoursMessage']; IsBridgeClient = json['IsBridgeClient']; APIToUse = json['APIToUse']; IoiId = json['IoiId']; OfferIoi = json['OfferIoi']; IoiExpiresAt = JsonConverters.fromJson(json['IoiExpiresAt'],'DateTime',context!); SpotAdditionalMargin = JsonConverters.toDouble(json['SpotAdditionalMargin']); AitherSettlementUUID = json['AitherSettlementUUID']; GetVessels = JsonConverters.fromJson(json['GetVessels'],'List',context!); LinkedVessels = JsonConverters.fromJson(json['LinkedVessels'],'List',context!); GetETSForwardPricesForEntityContactSimple = JsonConverters.fromJson(json['GetETSForwardPricesForEntityContactSimple'],'List',context!); GetETSRegistrationStatus = JsonConverters.fromJson(json['GetETSRegistrationStatus'],'GetETSRegistrationStatusViewModel',context!); return this; } Map toJson() => { 'OrderType': OrderType, 'QuoteGuid': QuoteGuid, 'UnitPrice': UnitPrice, 'Price': Price, 'FinancingPrice': FinancingPrice, 'FinancingStatus': FinancingStatus, 'ArrangementFee': ArrangementFee, 'ArrangementFeeDescription': ArrangementFeeDescription, 'ETSOrderInfoTextNonFinanced': ETSOrderInfoTextNonFinanced, 'ETSOrderInfoTextFinanced': ETSOrderInfoTextFinanced, 'PaymentType': PaymentType, 'Quantity': Quantity, 'OriginalQuantity': OriginalQuantity, 'CompanyName': CompanyName, 'FullName': FullName, 'EmailAddress': EmailAddress, 'CanPurchaseEUA': CanPurchaseEUA, 'ThirdParty': ThirdParty, 'ThirdPartyName': ThirdPartyName, 'ExternalFeePerTicket': ExternalFeePerTicket, 'OurCommissionForOrder': OurCommissionForOrder, 'EUAPrice': EUAPrice, 'RawPrice': RawPrice, 'RegenerateQuote': RegenerateQuote, 'GetETSMarketHoursMessage': GetETSMarketHoursMessage, 'IsBridgeClient': IsBridgeClient, 'APIToUse': APIToUse, 'IoiId': IoiId, 'OfferIoi': OfferIoi, 'IoiExpiresAt': JsonConverters.toJson(IoiExpiresAt,'DateTime',context!), 'SpotAdditionalMargin': SpotAdditionalMargin, 'AitherSettlementUUID': AitherSettlementUUID, 'GetVessels': JsonConverters.toJson(GetVessels,'List',context!), 'LinkedVessels': JsonConverters.toJson(LinkedVessels,'List',context!), 'GetETSForwardPricesForEntityContactSimple': JsonConverters.toJson(GetETSForwardPricesForEntityContactSimple,'List',context!), 'GetETSRegistrationStatus': JsonConverters.toJson(GetETSRegistrationStatus,'GetETSRegistrationStatusViewModel',context!) }; getTypeName() => "ETSPlaceOrderViewModel"; TypeContext? context = _ctx; } // @Route("/ETS/Price", "POST") class ETSGetPrice implements IReturn, IConvertible, IPost { String? OrderType; int? Quantity; bool? InsertQuote; List? LinkedVessels; ETSGetPrice({this.OrderType,this.Quantity,this.InsertQuote,this.LinkedVessels}); ETSGetPrice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OrderType = json['OrderType']; Quantity = json['Quantity']; InsertQuote = json['InsertQuote']; LinkedVessels = JsonConverters.fromJson(json['LinkedVessels'],'List',context!); return this; } Map toJson() => { 'OrderType': OrderType, 'Quantity': Quantity, 'InsertQuote': InsertQuote, 'LinkedVessels': JsonConverters.toJson(LinkedVessels,'List',context!) }; createResponse() => ETSPlaceOrderViewModel(); getResponseTypeName() => "ETSPlaceOrderViewModel"; getTypeName() => "ETSGetPrice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'ETSLinkedVesselsViewModel': TypeInfo(TypeOf.Class, create:() => ETSLinkedVesselsViewModel()), 'GetETSRegistrationStatusViewModel': TypeInfo(TypeOf.Class, create:() => GetETSRegistrationStatusViewModel()), 'GetETSForwardPricesForEntityContactSimpleViewModel': TypeInfo(TypeOf.Class, create:() => GetETSForwardPricesForEntityContactSimpleViewModel()), 'ETSPlaceOrderViewModel': TypeInfo(TypeOf.Class, create:() => ETSPlaceOrderViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SelectListItem': TypeInfo(TypeOf.Class, create:() => SelectListItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ETSGetPrice': TypeInfo(TypeOf.Class, create:() => ETSGetPrice()), });