| 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 .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Id":0,"OrderGuid":"00000000000000000000000000000000","OrderPlacedBy":"String","OrderPlacedByImageGuid":"00000000000000000000000000000000","OrderPlacedDateTime":"String","Quantity":"String","Status":"String","Vessels":"String","Forward":false,"OrderType":"String","EUAPrice":"String","GreyEpochBrokerPrice":"String","BridgeArrangementFee":"String","EUATotalPaid":"String","OrderTotal":"String","Deposit":"String","DepositValue":"String","MarginCoveredTo":"String","PaymentRequests":"String","CurrentPrice":"String","Position":"String","TotalPosition":"String","FontColour":"String","ThirdParty":false,"ThirdPartyName":"String","Financed":false,"ShowMarkToMarket":false}