Bridge

<back to all web services

ETSOrders

ETS
The following routes are available for this service:
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; }
    }

}

Java ETSOrders DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"CanPurchaseEUA":false,"GetETSPriceDayChange":{"Id":0,"Today":"0001-01-01T00:00:00.0000000","PreviousClose":0,"ClosePrice":0,"PercentageChange":0,"EURChange":0,"LabelDescription":"String","ShowGetQuoteButton":false,"ShowPriceSection":false,"MinutesRemaining":0,"MarketCountdownLabel":"String","IsRegistered":"String"},"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"},"GetETSOrderListNewIncludingForwards":[{"Id":0,"OrderGuid":"00000000000000000000000000000000","Company":"String","Status":"String","OrderByName":"String","OrderByImageGuid":"00000000000000000000000000000000","Quantity":0,"OrderPlacedDateTime":"String","OrderVesselCount":0,"UnitPrice":0,"TotalPrice":0,"IsForward":false,"ForwardMonth":"String","IsThirdParty":false,"ThirdPartyName":"String","CurrentValue":0,"EUAMarkToMarket":0,"MonthStartingDate":"0001-01-01T00:00:00.0000000","ShowMarkToMarket":false}]}