| GET | /ETS/Order-Details |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ETSOrderDetails
{
public UUID Id = null;
public UUID getId() { return Id; }
public ETSOrderDetails setId(UUID value) { this.Id = value; return this; }
}
public static class ETSOrderDetailsViewModel
{
public Integer Id = null;
public UUID OrderGuid = null;
public String OrderPlacedBy = null;
public UUID OrderPlacedByImageGuid = null;
public String OrderPlacedDateTime = null;
public String Quantity = null;
public String Status = null;
public String Vessels = null;
public Boolean Forward = null;
public String OrderType = null;
public String EUAPrice = null;
public String GreyEpochBrokerPrice = null;
public String BridgeArrangementFee = null;
public String EUATotalPaid = null;
public String OrderTotal = null;
public String Deposit = null;
public String DepositValue = null;
public String MarginCoveredTo = null;
public String PaymentRequests = null;
public String CurrentPrice = null;
public String Position = null;
public String TotalPosition = null;
public String FontColour = null;
public Boolean ThirdParty = null;
public String ThirdPartyName = null;
public Boolean Financed = null;
public Boolean ShowMarkToMarket = null;
public Integer getId() { return Id; }
public ETSOrderDetailsViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getOrderGuid() { return OrderGuid; }
public ETSOrderDetailsViewModel setOrderGuid(UUID value) { this.OrderGuid = value; return this; }
public String getOrderPlacedBy() { return OrderPlacedBy; }
public ETSOrderDetailsViewModel setOrderPlacedBy(String value) { this.OrderPlacedBy = value; return this; }
public UUID getOrderPlacedByImageGuid() { return OrderPlacedByImageGuid; }
public ETSOrderDetailsViewModel setOrderPlacedByImageGuid(UUID value) { this.OrderPlacedByImageGuid = value; return this; }
public String getOrderPlacedDateTime() { return OrderPlacedDateTime; }
public ETSOrderDetailsViewModel setOrderPlacedDateTime(String value) { this.OrderPlacedDateTime = value; return this; }
public String getQuantity() { return Quantity; }
public ETSOrderDetailsViewModel setQuantity(String value) { this.Quantity = value; return this; }
public String getStatus() { return Status; }
public ETSOrderDetailsViewModel setStatus(String value) { this.Status = value; return this; }
public String getVessels() { return Vessels; }
public ETSOrderDetailsViewModel setVessels(String value) { this.Vessels = value; return this; }
public Boolean isForward() { return Forward; }
public ETSOrderDetailsViewModel setForward(Boolean value) { this.Forward = value; return this; }
public String getOrderType() { return OrderType; }
public ETSOrderDetailsViewModel setOrderType(String value) { this.OrderType = value; return this; }
public String getEuaPrice() { return EUAPrice; }
public ETSOrderDetailsViewModel setEuaPrice(String value) { this.EUAPrice = value; return this; }
public String getGreyEpochBrokerPrice() { return GreyEpochBrokerPrice; }
public ETSOrderDetailsViewModel setGreyEpochBrokerPrice(String value) { this.GreyEpochBrokerPrice = value; return this; }
public String getBridgeArrangementFee() { return BridgeArrangementFee; }
public ETSOrderDetailsViewModel setBridgeArrangementFee(String value) { this.BridgeArrangementFee = value; return this; }
public String getEuaTotalPaid() { return EUATotalPaid; }
public ETSOrderDetailsViewModel setEuaTotalPaid(String value) { this.EUATotalPaid = value; return this; }
public String getOrderTotal() { return OrderTotal; }
public ETSOrderDetailsViewModel setOrderTotal(String value) { this.OrderTotal = value; return this; }
public String getDeposit() { return Deposit; }
public ETSOrderDetailsViewModel setDeposit(String value) { this.Deposit = value; return this; }
public String getDepositValue() { return DepositValue; }
public ETSOrderDetailsViewModel setDepositValue(String value) { this.DepositValue = value; return this; }
public String getMarginCoveredTo() { return MarginCoveredTo; }
public ETSOrderDetailsViewModel setMarginCoveredTo(String value) { this.MarginCoveredTo = value; return this; }
public String getPaymentRequests() { return PaymentRequests; }
public ETSOrderDetailsViewModel setPaymentRequests(String value) { this.PaymentRequests = value; return this; }
public String getCurrentPrice() { return CurrentPrice; }
public ETSOrderDetailsViewModel setCurrentPrice(String value) { this.CurrentPrice = value; return this; }
public String getPosition() { return Position; }
public ETSOrderDetailsViewModel setPosition(String value) { this.Position = value; return this; }
public String getTotalPosition() { return TotalPosition; }
public ETSOrderDetailsViewModel setTotalPosition(String value) { this.TotalPosition = value; return this; }
public String getFontColour() { return FontColour; }
public ETSOrderDetailsViewModel setFontColour(String value) { this.FontColour = value; return this; }
public Boolean isThirdParty() { return ThirdParty; }
public ETSOrderDetailsViewModel setThirdParty(Boolean value) { this.ThirdParty = value; return this; }
public String getThirdPartyName() { return ThirdPartyName; }
public ETSOrderDetailsViewModel setThirdPartyName(String value) { this.ThirdPartyName = value; return this; }
public Boolean isFinanced() { return Financed; }
public ETSOrderDetailsViewModel setFinanced(Boolean value) { this.Financed = value; return this; }
public Boolean isShowMarkToMarket() { return ShowMarkToMarket; }
public ETSOrderDetailsViewModel setShowMarkToMarket(Boolean value) { this.ShowMarkToMarket = 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/Order-Details HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ETSOrderDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels"> <BridgeArrangementFee>String</BridgeArrangementFee> <CurrentPrice>String</CurrentPrice> <Deposit>String</Deposit> <DepositValue>String</DepositValue> <EUAPrice>String</EUAPrice> <EUATotalPaid>String</EUATotalPaid> <Financed>false</Financed> <FontColour>String</FontColour> <Forward>false</Forward> <GreyEpochBrokerPrice>String</GreyEpochBrokerPrice> <Id>0</Id> <MarginCoveredTo>String</MarginCoveredTo> <OrderGuid>00000000-0000-0000-0000-000000000000</OrderGuid> <OrderPlacedBy>String</OrderPlacedBy> <OrderPlacedByImageGuid>00000000-0000-0000-0000-000000000000</OrderPlacedByImageGuid> <OrderPlacedDateTime>String</OrderPlacedDateTime> <OrderTotal>String</OrderTotal> <OrderType>String</OrderType> <PaymentRequests>String</PaymentRequests> <Position>String</Position> <Quantity>String</Quantity> <ShowMarkToMarket>false</ShowMarkToMarket> <Status>String</Status> <ThirdParty>false</ThirdParty> <ThirdPartyName>String</ThirdPartyName> <TotalPosition>String</TotalPosition> <Vessels>String</Vessels> </ETSOrderDetailsViewModel>