| GET | /ETS/Forward-Options |
|---|
import Foundation
import ServiceStack
public class ETSForwardOptions : Codable
{
public var quoteId:String
public var quantity:Int
public var monthNumber:Int
public var startDate:String
required public init(){}
}
public class ETSForwardOptionsViewModel : Codable
{
public var quoteGuid:String
public var quantity:Int
public var monthNumber:Int
public var startDate:Date
public var invoicedBy:String
public var selectedDepositPercentage:String
public var selectedForwardOption:String
public var thirdPartyName:String
public var currentServerTime:Date
public var isBridgeClient:Bool
public var etsQuote:ETSQuoteViewModel
public var getETSForwardDepositOptionsForEntityContact:[GetETSForwardDepositOptionsForEntityContactViewModel] = []
required public init(){}
}
public class ETSQuoteViewModel : Codable
{
public var id:Int
public var quoteGuid:String
public var quoteDateTime:Date
public var quantity:Int
public var greyEpochPrice:Double
public var greyEpochFee:Double
public var payNowTotal:Double
public var serviceFeeType:String
public var serviceFee:Double
public var financeStatus:String
public var financeFee:Double
public var financeTotal:Double
public var serviceFeeDescription:String
public var financePercentage:Double
public var serviceFeeValue:Double
public var deviceType:String
required public init(){}
}
public class GetETSForwardDepositOptionsForEntityContactViewModel : Codable
{
public var invoiceFrom:String
public var allowanceCostEach:Double
public var depAvailable:Bool
public var creditAvailable:Bool
public var markupPercentage:Double
public var euaPrice:Double
public var orderTotalValue:Double
public var depositPercentage:Double
public var depositTotalValue:Double
public var marginPercentageCovered:Double
public var marginCoveredTo:Double
public var serviceFeeType:String
public var totalServiceFee:Double
public var depositCashRequired:Double
public var marginCashRisk:Double
public var totalCashRisk:Double
public var depositTitle:String
public var headerBarText:String
public var headerBarValue:String
public var moreDetailsString:String
public var priceToBridge:Double
public var bridgeDepositValue:Double
public var externalFeePerTicket:Double
public var ourCommission:Double
public var sort:Int
public var serviceFeeDescription:String
public var apiToUse:String
public var aitherSettlementUUID:String
required public init(){}
}
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>