| GET | /ETS/Orders |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ETSOrders
{
public Date DateFrom = null;
public Date DateTo = null;
public Integer VesselId = null;
public Date getDateFrom() { return DateFrom; }
public ETSOrders setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public ETSOrders setDateTo(Date value) { this.DateTo = value; return this; }
public Integer getVesselId() { return VesselId; }
public ETSOrders setVesselId(Integer value) { this.VesselId = value; return this; }
}
public static class ETSViewModel
{
public Boolean CanPurchaseEUA = null;
public GetETSPriceDayChangeViewModel GetETSPriceDayChange = null;
public GetETSRegistrationStatusViewModel GetETSRegistrationStatus = null;
public ArrayList<GetETSOrderListNewIncludingForwardsViewModel> GetETSOrderListNewIncludingForwards = null;
public Boolean isCanPurchaseEUA() { return CanPurchaseEUA; }
public ETSViewModel setCanPurchaseEUA(Boolean value) { this.CanPurchaseEUA = value; return this; }
public GetETSPriceDayChangeViewModel getGetETSPriceDayChange() { return GetETSPriceDayChange; }
public ETSViewModel setGetETSPriceDayChange(GetETSPriceDayChangeViewModel value) { this.GetETSPriceDayChange = value; return this; }
public GetETSRegistrationStatusViewModel getGetETSRegistrationStatus() { return GetETSRegistrationStatus; }
public ETSViewModel setGetETSRegistrationStatus(GetETSRegistrationStatusViewModel value) { this.GetETSRegistrationStatus = value; return this; }
public ArrayList<GetETSOrderListNewIncludingForwardsViewModel> getGetETSOrderListNewIncludingForwards() { return GetETSOrderListNewIncludingForwards; }
public ETSViewModel setGetETSOrderListNewIncludingForwards(ArrayList<GetETSOrderListNewIncludingForwardsViewModel> value) { this.GetETSOrderListNewIncludingForwards = value; return this; }
}
public static class GetETSPriceDayChangeViewModel
{
public Integer Id = null;
public Date Today = null;
public Double PreviousClose = null;
public Double ClosePrice = null;
public Double PercentageChange = null;
public Double EURChange = null;
public String LabelDescription = null;
public Boolean ShowGetQuoteButton = null;
public Boolean ShowPriceSection = null;
public Integer MinutesRemaining = null;
public String MarketCountdownLabel = null;
public String IsRegistered = null;
public Integer getId() { return Id; }
public GetETSPriceDayChangeViewModel setId(Integer value) { this.Id = value; return this; }
public Date getToday() { return Today; }
public GetETSPriceDayChangeViewModel setToday(Date value) { this.Today = value; return this; }
public Double getPreviousClose() { return PreviousClose; }
public GetETSPriceDayChangeViewModel setPreviousClose(Double value) { this.PreviousClose = value; return this; }
public Double getClosePrice() { return ClosePrice; }
public GetETSPriceDayChangeViewModel setClosePrice(Double value) { this.ClosePrice = value; return this; }
public Double getPercentageChange() { return PercentageChange; }
public GetETSPriceDayChangeViewModel setPercentageChange(Double value) { this.PercentageChange = value; return this; }
public Double getEurChange() { return EURChange; }
public GetETSPriceDayChangeViewModel setEurChange(Double value) { this.EURChange = value; return this; }
public String getLabelDescription() { return LabelDescription; }
public GetETSPriceDayChangeViewModel setLabelDescription(String value) { this.LabelDescription = value; return this; }
public Boolean isShowGetQuoteButton() { return ShowGetQuoteButton; }
public GetETSPriceDayChangeViewModel setShowGetQuoteButton(Boolean value) { this.ShowGetQuoteButton = value; return this; }
public Boolean isShowPriceSection() { return ShowPriceSection; }
public GetETSPriceDayChangeViewModel setShowPriceSection(Boolean value) { this.ShowPriceSection = value; return this; }
public Integer getMinutesRemaining() { return MinutesRemaining; }
public GetETSPriceDayChangeViewModel setMinutesRemaining(Integer value) { this.MinutesRemaining = value; return this; }
public String getMarketCountdownLabel() { return MarketCountdownLabel; }
public GetETSPriceDayChangeViewModel setMarketCountdownLabel(String value) { this.MarketCountdownLabel = value; return this; }
public String getIsRegistered() { return IsRegistered; }
public GetETSPriceDayChangeViewModel setIsRegistered(String value) { this.IsRegistered = value; return this; }
}
public static class GetETSRegistrationStatusViewModel
{
public String Status = null;
public String AppliedBy = null;
public String getStatus() { return Status; }
public GetETSRegistrationStatusViewModel setStatus(String value) { this.Status = value; return this; }
public String getAppliedBy() { return AppliedBy; }
public GetETSRegistrationStatusViewModel setAppliedBy(String value) { this.AppliedBy = value; return this; }
}
public static class GetETSOrderListNewIncludingForwardsViewModel
{
public Integer Id = null;
public UUID OrderGuid = null;
public String Company = null;
public String Status = null;
public String OrderByName = null;
public UUID OrderByImageGuid = null;
public Integer Quantity = null;
public String OrderPlacedDateTime = null;
public Integer OrderVesselCount = null;
public Double UnitPrice = null;
public Double TotalPrice = null;
public Boolean IsForward = null;
public String ForwardMonth = null;
public Boolean IsThirdParty = null;
public String ThirdPartyName = null;
public Double CurrentValue = null;
public Double EUAMarkToMarket = null;
public Date MonthStartingDate = null;
public Boolean ShowMarkToMarket = null;
public Integer getId() { return Id; }
public GetETSOrderListNewIncludingForwardsViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getOrderGuid() { return OrderGuid; }
public GetETSOrderListNewIncludingForwardsViewModel setOrderGuid(UUID value) { this.OrderGuid = value; return this; }
public String getCompany() { return Company; }
public GetETSOrderListNewIncludingForwardsViewModel setCompany(String value) { this.Company = value; return this; }
public String getStatus() { return Status; }
public GetETSOrderListNewIncludingForwardsViewModel setStatus(String value) { this.Status = value; return this; }
public String getOrderByName() { return OrderByName; }
public GetETSOrderListNewIncludingForwardsViewModel setOrderByName(String value) { this.OrderByName = value; return this; }
public UUID getOrderByImageGuid() { return OrderByImageGuid; }
public GetETSOrderListNewIncludingForwardsViewModel setOrderByImageGuid(UUID value) { this.OrderByImageGuid = value; return this; }
public Integer getQuantity() { return Quantity; }
public GetETSOrderListNewIncludingForwardsViewModel setQuantity(Integer value) { this.Quantity = value; return this; }
public String getOrderPlacedDateTime() { return OrderPlacedDateTime; }
public GetETSOrderListNewIncludingForwardsViewModel setOrderPlacedDateTime(String value) { this.OrderPlacedDateTime = value; return this; }
public Integer getOrderVesselCount() { return OrderVesselCount; }
public GetETSOrderListNewIncludingForwardsViewModel setOrderVesselCount(Integer value) { this.OrderVesselCount = value; return this; }
public Double getUnitPrice() { return UnitPrice; }
public GetETSOrderListNewIncludingForwardsViewModel setUnitPrice(Double value) { this.UnitPrice = value; return this; }
public Double getTotalPrice() { return TotalPrice; }
public GetETSOrderListNewIncludingForwardsViewModel setTotalPrice(Double value) { this.TotalPrice = value; return this; }
public Boolean getIsForward() { return IsForward; }
public GetETSOrderListNewIncludingForwardsViewModel setIsForward(Boolean value) { this.IsForward = value; return this; }
public String getForwardMonth() { return ForwardMonth; }
public GetETSOrderListNewIncludingForwardsViewModel setForwardMonth(String value) { this.ForwardMonth = value; return this; }
public Boolean getIsThirdParty() { return IsThirdParty; }
public GetETSOrderListNewIncludingForwardsViewModel setIsThirdParty(Boolean value) { this.IsThirdParty = value; return this; }
public String getThirdPartyName() { return ThirdPartyName; }
public GetETSOrderListNewIncludingForwardsViewModel setThirdPartyName(String value) { this.ThirdPartyName = value; return this; }
public Double getCurrentValue() { return CurrentValue; }
public GetETSOrderListNewIncludingForwardsViewModel setCurrentValue(Double value) { this.CurrentValue = value; return this; }
public Double getEuaMarkToMarket() { return EUAMarkToMarket; }
public GetETSOrderListNewIncludingForwardsViewModel setEuaMarkToMarket(Double value) { this.EUAMarkToMarket = value; return this; }
public Date getMonthStartingDate() { return MonthStartingDate; }
public GetETSOrderListNewIncludingForwardsViewModel setMonthStartingDate(Date value) { this.MonthStartingDate = value; return this; }
public Boolean isShowMarkToMarket() { return ShowMarkToMarket; }
public GetETSOrderListNewIncludingForwardsViewModel 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/Orders HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ETSViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<CanPurchaseEUA>false</CanPurchaseEUA>
<GetETSOrderListNewIncludingForwards>
<GetETSOrderListNewIncludingForwardsViewModel>
<Company>String</Company>
<CurrentValue>0</CurrentValue>
<EUAMarkToMarket>0</EUAMarkToMarket>
<ForwardMonth>String</ForwardMonth>
<Id>0</Id>
<IsForward>false</IsForward>
<IsThirdParty>false</IsThirdParty>
<MonthStartingDate>0001-01-01T00:00:00</MonthStartingDate>
<OrderByImageGuid>00000000-0000-0000-0000-000000000000</OrderByImageGuid>
<OrderByName>String</OrderByName>
<OrderGuid>00000000-0000-0000-0000-000000000000</OrderGuid>
<OrderPlacedDateTime>String</OrderPlacedDateTime>
<OrderVesselCount>0</OrderVesselCount>
<Quantity>0</Quantity>
<ShowMarkToMarket>false</ShowMarkToMarket>
<Status>String</Status>
<ThirdPartyName>String</ThirdPartyName>
<TotalPrice>0</TotalPrice>
<UnitPrice>0</UnitPrice>
</GetETSOrderListNewIncludingForwardsViewModel>
</GetETSOrderListNewIncludingForwards>
<GetETSPriceDayChange>
<ClosePrice>0</ClosePrice>
<EURChange>0</EURChange>
<Id>0</Id>
<IsRegistered>String</IsRegistered>
<LabelDescription>String</LabelDescription>
<MarketCountdownLabel>String</MarketCountdownLabel>
<MinutesRemaining>0</MinutesRemaining>
<PercentageChange>0</PercentageChange>
<PreviousClose>0</PreviousClose>
<ShowGetQuoteButton>false</ShowGetQuoteButton>
<ShowPriceSection>false</ShowPriceSection>
<Today>0001-01-01T00:00:00</Today>
</GetETSPriceDayChange>
<GetETSRegistrationStatus>
<AppliedBy>String</AppliedBy>
<Status>String</Status>
</GetETSRegistrationStatus>
</ETSViewModel>