Bridge

<back to all web services

ETSForwardOptions

ETS
The following routes are available for this service:
GET/ETS/Forward-Options
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ETSForwardOptions implements IConvertible
{
    String? QuoteId;
    int? Quantity;
    int? MonthNumber;
    String? StartDate;

    ETSForwardOptions({this.QuoteId,this.Quantity,this.MonthNumber,this.StartDate});
    ETSForwardOptions.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        QuoteId = json['QuoteId'];
        Quantity = json['Quantity'];
        MonthNumber = json['MonthNumber'];
        StartDate = json['StartDate'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'QuoteId': QuoteId,
        'Quantity': Quantity,
        'MonthNumber': MonthNumber,
        'StartDate': StartDate
    };

    getTypeName() => "ETSForwardOptions";
    TypeContext? context = _ctx;
}

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<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> 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<String, dynamic> 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<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> 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<String, dynamic> 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<GetETSForwardDepositOptionsForEntityContactViewModel>? 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<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> 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<GetETSForwardDepositOptionsForEntityContactViewModel>',context!);
        return this;
    }

    Map<String, dynamic> 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<GetETSForwardDepositOptionsForEntityContactViewModel>',context!)
    };

    getTypeName() => "ETSForwardOptionsViewModel";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'ETSForwardOptions': TypeInfo(TypeOf.Class, create:() => ETSForwardOptions()),
    'ETSQuoteViewModel': TypeInfo(TypeOf.Class, create:() => ETSQuoteViewModel()),
    'GetETSForwardDepositOptionsForEntityContactViewModel': TypeInfo(TypeOf.Class, create:() => GetETSForwardDepositOptionsForEntityContactViewModel()),
    'ETSForwardOptionsViewModel': TypeInfo(TypeOf.Class, create:() => ETSForwardOptionsViewModel()),
    'List<GetETSForwardDepositOptionsForEntityContactViewModel>': TypeInfo(TypeOf.Class, create:() => <GetETSForwardDepositOptionsForEntityContactViewModel>[]),
});

Dart ETSForwardOptions DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /ETS/Forward-Options HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"QuoteGuid":"00000000000000000000000000000000","Quantity":0,"MonthNumber":0,"StartDate":"0001-01-01T00:00:00.0000000","InvoicedBy":"String","SelectedDepositPercentage":"String","SelectedForwardOption":"String","ThirdPartyName":"String","CurrentServerTime":"0001-01-01T00:00:00.0000000","IsBridgeClient":false,"ETSQuote":{"Id":0,"QuoteGuid":"00000000000000000000000000000000","QuoteDateTime":"0001-01-01T00:00:00.0000000","Quantity":0,"GreyEpochPrice":0,"GreyEpochFee":0,"PayNowTotal":0,"ServiceFeeType":"String","ServiceFee":0,"FinanceStatus":"String","FinanceFee":0,"FinanceTotal":0,"ServiceFeeDescription":"String","FinancePercentage":0,"ServiceFeeValue":0,"DeviceType":"String"},"GetETSForwardDepositOptionsForEntityContact":[{"InvoiceFrom":"String","AllowanceCostEach":0,"DepAvailable":false,"CreditAvailable":false,"MarkupPercentage":0,"EUAPrice":0,"OrderTotalValue":0,"DepositPercentage":0,"DepositTotalValue":0,"MarginPercentageCovered":0,"MarginCoveredTo":0,"ServiceFeeType":"String","TotalServiceFee":0,"DepositCashRequired":0,"MarginCashRisk":0,"TotalCashRisk":0,"DepositTitle":"String","HeaderBarText":"String","HeaderBarValue":"String","MoreDetailsString":"String","PriceToBridge":0,"BridgeDepositValue":0,"ExternalFeePerTicket":0,"OurCommission":0,"Sort":0,"ServiceFeeDescription":"String","ApiToUse":"String","AitherSettlementUUID":"String"}]}