| 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>[]),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ETSForwardOptionsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<CurrentServerTime>0001-01-01T00:00:00</CurrentServerTime>
<ETSQuote>
<DeviceType>String</DeviceType>
<FinanceFee>0</FinanceFee>
<FinancePercentage>0</FinancePercentage>
<FinanceStatus>String</FinanceStatus>
<FinanceTotal>0</FinanceTotal>
<GreyEpochFee>0</GreyEpochFee>
<GreyEpochPrice>0</GreyEpochPrice>
<Id>0</Id>
<PayNowTotal>0</PayNowTotal>
<Quantity>0</Quantity>
<QuoteDateTime>0001-01-01T00:00:00</QuoteDateTime>
<QuoteGuid>00000000-0000-0000-0000-000000000000</QuoteGuid>
<ServiceFee>0</ServiceFee>
<ServiceFeeDescription>String</ServiceFeeDescription>
<ServiceFeeType>String</ServiceFeeType>
<ServiceFeeValue>0</ServiceFeeValue>
</ETSQuote>
<GetETSForwardDepositOptionsForEntityContact>
<GetETSForwardDepositOptionsForEntityContactViewModel>
<AitherSettlementUUID>String</AitherSettlementUUID>
<AllowanceCostEach>0</AllowanceCostEach>
<ApiToUse>String</ApiToUse>
<BridgeDepositValue>0</BridgeDepositValue>
<CreditAvailable>false</CreditAvailable>
<DepAvailable>false</DepAvailable>
<DepositCashRequired>0</DepositCashRequired>
<DepositPercentage>0</DepositPercentage>
<DepositTitle>String</DepositTitle>
<DepositTotalValue>0</DepositTotalValue>
<EUAPrice>0</EUAPrice>
<ExternalFeePerTicket>0</ExternalFeePerTicket>
<HeaderBarText>String</HeaderBarText>
<HeaderBarValue>String</HeaderBarValue>
<InvoiceFrom>String</InvoiceFrom>
<MarginCashRisk>0</MarginCashRisk>
<MarginCoveredTo>0</MarginCoveredTo>
<MarginPercentageCovered>0</MarginPercentageCovered>
<MarkupPercentage>0</MarkupPercentage>
<MoreDetailsString>String</MoreDetailsString>
<OrderTotalValue>0</OrderTotalValue>
<OurCommission>0</OurCommission>
<PriceToBridge>0</PriceToBridge>
<ServiceFeeDescription>String</ServiceFeeDescription>
<ServiceFeeType>String</ServiceFeeType>
<Sort>0</Sort>
<TotalCashRisk>0</TotalCashRisk>
<TotalServiceFee>0</TotalServiceFee>
</GetETSForwardDepositOptionsForEntityContactViewModel>
</GetETSForwardDepositOptionsForEntityContact>
<InvoicedBy>String</InvoicedBy>
<IsBridgeClient>false</IsBridgeClient>
<MonthNumber>0</MonthNumber>
<Quantity>0</Quantity>
<QuoteGuid>00000000-0000-0000-0000-000000000000</QuoteGuid>
<SelectedDepositPercentage>String</SelectedDepositPercentage>
<SelectedForwardOption>String</SelectedForwardOption>
<StartDate>0001-01-01T00:00:00</StartDate>
<ThirdPartyName>String</ThirdPartyName>
</ETSForwardOptionsViewModel>