| GET | /ETS/Forward-Options |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ETSForwardOptions
{
public String QuoteId = null;
public Integer Quantity = null;
public Integer MonthNumber = null;
public String StartDate = null;
public String getQuoteId() { return QuoteId; }
public ETSForwardOptions setQuoteId(String value) { this.QuoteId = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSForwardOptions setQuantity(Integer value) { this.Quantity = value; return this; }
public Integer getMonthNumber() { return MonthNumber; }
public ETSForwardOptions setMonthNumber(Integer value) { this.MonthNumber = value; return this; }
public String getStartDate() { return StartDate; }
public ETSForwardOptions setStartDate(String value) { this.StartDate = value; return this; }
}
public static class ETSForwardOptionsViewModel
{
public UUID QuoteGuid = null;
public Integer Quantity = null;
public Integer MonthNumber = null;
public Date StartDate = null;
public String InvoicedBy = null;
public String SelectedDepositPercentage = null;
public String SelectedForwardOption = null;
public String ThirdPartyName = null;
public Date CurrentServerTime = null;
public Boolean IsBridgeClient = null;
public ETSQuoteViewModel ETSQuote = null;
public ArrayList<GetETSForwardDepositOptionsForEntityContactViewModel> GetETSForwardDepositOptionsForEntityContact = null;
public UUID getQuoteGuid() { return QuoteGuid; }
public ETSForwardOptionsViewModel setQuoteGuid(UUID value) { this.QuoteGuid = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSForwardOptionsViewModel setQuantity(Integer value) { this.Quantity = value; return this; }
public Integer getMonthNumber() { return MonthNumber; }
public ETSForwardOptionsViewModel setMonthNumber(Integer value) { this.MonthNumber = value; return this; }
public Date getStartDate() { return StartDate; }
public ETSForwardOptionsViewModel setStartDate(Date value) { this.StartDate = value; return this; }
public String getInvoicedBy() { return InvoicedBy; }
public ETSForwardOptionsViewModel setInvoicedBy(String value) { this.InvoicedBy = value; return this; }
public String getSelectedDepositPercentage() { return SelectedDepositPercentage; }
public ETSForwardOptionsViewModel setSelectedDepositPercentage(String value) { this.SelectedDepositPercentage = value; return this; }
public String getSelectedForwardOption() { return SelectedForwardOption; }
public ETSForwardOptionsViewModel setSelectedForwardOption(String value) { this.SelectedForwardOption = value; return this; }
public String getThirdPartyName() { return ThirdPartyName; }
public ETSForwardOptionsViewModel setThirdPartyName(String value) { this.ThirdPartyName = value; return this; }
public Date getCurrentServerTime() { return CurrentServerTime; }
public ETSForwardOptionsViewModel setCurrentServerTime(Date value) { this.CurrentServerTime = value; return this; }
public Boolean getIsBridgeClient() { return IsBridgeClient; }
public ETSForwardOptionsViewModel setIsBridgeClient(Boolean value) { this.IsBridgeClient = value; return this; }
public ETSQuoteViewModel getEtsQuote() { return ETSQuote; }
public ETSForwardOptionsViewModel setEtsQuote(ETSQuoteViewModel value) { this.ETSQuote = value; return this; }
public ArrayList<GetETSForwardDepositOptionsForEntityContactViewModel> getGetETSForwardDepositOptionsForEntityContact() { return GetETSForwardDepositOptionsForEntityContact; }
public ETSForwardOptionsViewModel setGetETSForwardDepositOptionsForEntityContact(ArrayList<GetETSForwardDepositOptionsForEntityContactViewModel> value) { this.GetETSForwardDepositOptionsForEntityContact = value; return this; }
}
public static class ETSQuoteViewModel
{
public Integer Id = null;
public UUID QuoteGuid = null;
public Date QuoteDateTime = null;
public Integer Quantity = null;
public Double GreyEpochPrice = null;
public Double GreyEpochFee = null;
public Double PayNowTotal = null;
public String ServiceFeeType = null;
public Double ServiceFee = null;
public String FinanceStatus = null;
public Double FinanceFee = null;
public Double FinanceTotal = null;
public String ServiceFeeDescription = null;
public Double FinancePercentage = null;
public Double ServiceFeeValue = null;
public String DeviceType = null;
public Integer getId() { return Id; }
public ETSQuoteViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getQuoteGuid() { return QuoteGuid; }
public ETSQuoteViewModel setQuoteGuid(UUID value) { this.QuoteGuid = value; return this; }
public Date getQuoteDateTime() { return QuoteDateTime; }
public ETSQuoteViewModel setQuoteDateTime(Date value) { this.QuoteDateTime = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSQuoteViewModel setQuantity(Integer value) { this.Quantity = value; return this; }
public Double getGreyEpochPrice() { return GreyEpochPrice; }
public ETSQuoteViewModel setGreyEpochPrice(Double value) { this.GreyEpochPrice = value; return this; }
public Double getGreyEpochFee() { return GreyEpochFee; }
public ETSQuoteViewModel setGreyEpochFee(Double value) { this.GreyEpochFee = value; return this; }
public Double getPayNowTotal() { return PayNowTotal; }
public ETSQuoteViewModel setPayNowTotal(Double value) { this.PayNowTotal = value; return this; }
public String getServiceFeeType() { return ServiceFeeType; }
public ETSQuoteViewModel setServiceFeeType(String value) { this.ServiceFeeType = value; return this; }
public Double getServiceFee() { return ServiceFee; }
public ETSQuoteViewModel setServiceFee(Double value) { this.ServiceFee = value; return this; }
public String getFinanceStatus() { return FinanceStatus; }
public ETSQuoteViewModel setFinanceStatus(String value) { this.FinanceStatus = value; return this; }
public Double getFinanceFee() { return FinanceFee; }
public ETSQuoteViewModel setFinanceFee(Double value) { this.FinanceFee = value; return this; }
public Double getFinanceTotal() { return FinanceTotal; }
public ETSQuoteViewModel setFinanceTotal(Double value) { this.FinanceTotal = value; return this; }
public String getServiceFeeDescription() { return ServiceFeeDescription; }
public ETSQuoteViewModel setServiceFeeDescription(String value) { this.ServiceFeeDescription = value; return this; }
public Double getFinancePercentage() { return FinancePercentage; }
public ETSQuoteViewModel setFinancePercentage(Double value) { this.FinancePercentage = value; return this; }
public Double getServiceFeeValue() { return ServiceFeeValue; }
public ETSQuoteViewModel setServiceFeeValue(Double value) { this.ServiceFeeValue = value; return this; }
public String getDeviceType() { return DeviceType; }
public ETSQuoteViewModel setDeviceType(String value) { this.DeviceType = value; return this; }
}
public static class GetETSForwardDepositOptionsForEntityContactViewModel
{
public String InvoiceFrom = null;
public Double AllowanceCostEach = null;
public Boolean DepAvailable = null;
public Boolean CreditAvailable = null;
public Double MarkupPercentage = null;
public Double EUAPrice = null;
public Double OrderTotalValue = null;
public Double DepositPercentage = null;
public Double DepositTotalValue = null;
public Double MarginPercentageCovered = null;
public Double MarginCoveredTo = null;
public String ServiceFeeType = null;
public Double TotalServiceFee = null;
public Double DepositCashRequired = null;
public Double MarginCashRisk = null;
public Double TotalCashRisk = null;
public String DepositTitle = null;
public String HeaderBarText = null;
public String HeaderBarValue = null;
public String MoreDetailsString = null;
public Double PriceToBridge = null;
public Double BridgeDepositValue = null;
public Double ExternalFeePerTicket = null;
public Double OurCommission = null;
public Integer Sort = null;
public String ServiceFeeDescription = null;
public String ApiToUse = null;
public String AitherSettlementUUID = null;
public String getInvoiceFrom() { return InvoiceFrom; }
public GetETSForwardDepositOptionsForEntityContactViewModel setInvoiceFrom(String value) { this.InvoiceFrom = value; return this; }
public Double getAllowanceCostEach() { return AllowanceCostEach; }
public GetETSForwardDepositOptionsForEntityContactViewModel setAllowanceCostEach(Double value) { this.AllowanceCostEach = value; return this; }
public Boolean isDepAvailable() { return DepAvailable; }
public GetETSForwardDepositOptionsForEntityContactViewModel setDepAvailable(Boolean value) { this.DepAvailable = value; return this; }
public Boolean isCreditAvailable() { return CreditAvailable; }
public GetETSForwardDepositOptionsForEntityContactViewModel setCreditAvailable(Boolean value) { this.CreditAvailable = value; return this; }
public Double getMarkupPercentage() { return MarkupPercentage; }
public GetETSForwardDepositOptionsForEntityContactViewModel setMarkupPercentage(Double value) { this.MarkupPercentage = value; return this; }
public Double getEuaPrice() { return EUAPrice; }
public GetETSForwardDepositOptionsForEntityContactViewModel setEuaPrice(Double value) { this.EUAPrice = value; return this; }
public Double getOrderTotalValue() { return OrderTotalValue; }
public GetETSForwardDepositOptionsForEntityContactViewModel setOrderTotalValue(Double value) { this.OrderTotalValue = value; return this; }
public Double getDepositPercentage() { return DepositPercentage; }
public GetETSForwardDepositOptionsForEntityContactViewModel setDepositPercentage(Double value) { this.DepositPercentage = value; return this; }
public Double getDepositTotalValue() { return DepositTotalValue; }
public GetETSForwardDepositOptionsForEntityContactViewModel setDepositTotalValue(Double value) { this.DepositTotalValue = value; return this; }
public Double getMarginPercentageCovered() { return MarginPercentageCovered; }
public GetETSForwardDepositOptionsForEntityContactViewModel setMarginPercentageCovered(Double value) { this.MarginPercentageCovered = value; return this; }
public Double getMarginCoveredTo() { return MarginCoveredTo; }
public GetETSForwardDepositOptionsForEntityContactViewModel setMarginCoveredTo(Double value) { this.MarginCoveredTo = value; return this; }
public String getServiceFeeType() { return ServiceFeeType; }
public GetETSForwardDepositOptionsForEntityContactViewModel setServiceFeeType(String value) { this.ServiceFeeType = value; return this; }
public Double getTotalServiceFee() { return TotalServiceFee; }
public GetETSForwardDepositOptionsForEntityContactViewModel setTotalServiceFee(Double value) { this.TotalServiceFee = value; return this; }
public Double getDepositCashRequired() { return DepositCashRequired; }
public GetETSForwardDepositOptionsForEntityContactViewModel setDepositCashRequired(Double value) { this.DepositCashRequired = value; return this; }
public Double getMarginCashRisk() { return MarginCashRisk; }
public GetETSForwardDepositOptionsForEntityContactViewModel setMarginCashRisk(Double value) { this.MarginCashRisk = value; return this; }
public Double getTotalCashRisk() { return TotalCashRisk; }
public GetETSForwardDepositOptionsForEntityContactViewModel setTotalCashRisk(Double value) { this.TotalCashRisk = value; return this; }
public String getDepositTitle() { return DepositTitle; }
public GetETSForwardDepositOptionsForEntityContactViewModel setDepositTitle(String value) { this.DepositTitle = value; return this; }
public String getHeaderBarText() { return HeaderBarText; }
public GetETSForwardDepositOptionsForEntityContactViewModel setHeaderBarText(String value) { this.HeaderBarText = value; return this; }
public String getHeaderBarValue() { return HeaderBarValue; }
public GetETSForwardDepositOptionsForEntityContactViewModel setHeaderBarValue(String value) { this.HeaderBarValue = value; return this; }
public String getMoreDetailsString() { return MoreDetailsString; }
public GetETSForwardDepositOptionsForEntityContactViewModel setMoreDetailsString(String value) { this.MoreDetailsString = value; return this; }
public Double getPriceToBridge() { return PriceToBridge; }
public GetETSForwardDepositOptionsForEntityContactViewModel setPriceToBridge(Double value) { this.PriceToBridge = value; return this; }
public Double getBridgeDepositValue() { return BridgeDepositValue; }
public GetETSForwardDepositOptionsForEntityContactViewModel setBridgeDepositValue(Double value) { this.BridgeDepositValue = value; return this; }
public Double getExternalFeePerTicket() { return ExternalFeePerTicket; }
public GetETSForwardDepositOptionsForEntityContactViewModel setExternalFeePerTicket(Double value) { this.ExternalFeePerTicket = value; return this; }
public Double getOurCommission() { return OurCommission; }
public GetETSForwardDepositOptionsForEntityContactViewModel setOurCommission(Double value) { this.OurCommission = value; return this; }
public Integer getSort() { return Sort; }
public GetETSForwardDepositOptionsForEntityContactViewModel setSort(Integer value) { this.Sort = value; return this; }
public String getServiceFeeDescription() { return ServiceFeeDescription; }
public GetETSForwardDepositOptionsForEntityContactViewModel setServiceFeeDescription(String value) { this.ServiceFeeDescription = value; return this; }
public String getApiToUse() { return ApiToUse; }
public GetETSForwardDepositOptionsForEntityContactViewModel setApiToUse(String value) { this.ApiToUse = value; return this; }
public String getAitherSettlementUUID() { return AitherSettlementUUID; }
public GetETSForwardDepositOptionsForEntityContactViewModel setAitherSettlementUUID(String value) { this.AitherSettlementUUID = value; return this; }
}
}
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>