| POST | /ETS/Price |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ETSGetPrice
{
public String OrderType = null;
public Integer Quantity = null;
public Boolean InsertQuote = null;
public ArrayList<ETSLinkedVesselsViewModel> LinkedVessels = null;
public String getOrderType() { return OrderType; }
public ETSGetPrice setOrderType(String value) { this.OrderType = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSGetPrice setQuantity(Integer value) { this.Quantity = value; return this; }
public Boolean isInsertQuote() { return InsertQuote; }
public ETSGetPrice setInsertQuote(Boolean value) { this.InsertQuote = value; return this; }
public ArrayList<ETSLinkedVesselsViewModel> getLinkedVessels() { return LinkedVessels; }
public ETSGetPrice setLinkedVessels(ArrayList<ETSLinkedVesselsViewModel> value) { this.LinkedVessels = value; return this; }
}
public static class ETSLinkedVesselsViewModel
{
public Boolean Deleted = null;
public Integer VesselId = null;
public Integer Quantity = null;
public String MohaAccount = null;
public Boolean IsQuote = null;
public Boolean isDeleted() { return Deleted; }
public ETSLinkedVesselsViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
public Integer getVesselId() { return VesselId; }
public ETSLinkedVesselsViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSLinkedVesselsViewModel setQuantity(Integer value) { this.Quantity = value; return this; }
public String getMohaAccount() { return MohaAccount; }
public ETSLinkedVesselsViewModel setMohaAccount(String value) { this.MohaAccount = value; return this; }
public Boolean getIsQuote() { return IsQuote; }
public ETSLinkedVesselsViewModel setIsQuote(Boolean value) { this.IsQuote = value; return this; }
}
public static class ETSPlaceOrderViewModel
{
public String OrderType = null;
public UUID QuoteGuid = null;
public Double UnitPrice = null;
public Double Price = null;
public Double FinancingPrice = null;
public String FinancingStatus = null;
public Double ArrangementFee = null;
public String ArrangementFeeDescription = null;
public String ETSOrderInfoTextNonFinanced = null;
public String ETSOrderInfoTextFinanced = null;
public String PaymentType = null;
public Integer Quantity = null;
public Integer OriginalQuantity = null;
public String CompanyName = null;
public String FullName = null;
public String EmailAddress = null;
public Boolean CanPurchaseEUA = null;
public Boolean ThirdParty = null;
public String ThirdPartyName = null;
public Double ExternalFeePerTicket = null;
public Double OurCommissionForOrder = null;
public Double EUAPrice = null;
public Double RawPrice = null;
public Boolean RegenerateQuote = null;
public String GetETSMarketHoursMessage = null;
public Boolean IsBridgeClient = null;
public String APIToUse = null;
public String IoiId = null;
public String OfferIoi = null;
public Date IoiExpiresAt = null;
public BigDecimal SpotAdditionalMargin = null;
public String AitherSettlementUUID = null;
public ArrayList<SelectListItem> GetVessels = null;
public ArrayList<ETSLinkedVesselsViewModel> LinkedVessels = null;
public ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel> GetETSForwardPricesForEntityContactSimple = null;
public GetETSRegistrationStatusViewModel GetETSRegistrationStatus = null;
public String getOrderType() { return OrderType; }
public ETSPlaceOrderViewModel setOrderType(String value) { this.OrderType = value; return this; }
public UUID getQuoteGuid() { return QuoteGuid; }
public ETSPlaceOrderViewModel setQuoteGuid(UUID value) { this.QuoteGuid = value; return this; }
public Double getUnitPrice() { return UnitPrice; }
public ETSPlaceOrderViewModel setUnitPrice(Double value) { this.UnitPrice = value; return this; }
public Double getPrice() { return Price; }
public ETSPlaceOrderViewModel setPrice(Double value) { this.Price = value; return this; }
public Double getFinancingPrice() { return FinancingPrice; }
public ETSPlaceOrderViewModel setFinancingPrice(Double value) { this.FinancingPrice = value; return this; }
public String getFinancingStatus() { return FinancingStatus; }
public ETSPlaceOrderViewModel setFinancingStatus(String value) { this.FinancingStatus = value; return this; }
public Double getArrangementFee() { return ArrangementFee; }
public ETSPlaceOrderViewModel setArrangementFee(Double value) { this.ArrangementFee = value; return this; }
public String getArrangementFeeDescription() { return ArrangementFeeDescription; }
public ETSPlaceOrderViewModel setArrangementFeeDescription(String value) { this.ArrangementFeeDescription = value; return this; }
public String getEtsOrderInfoTextNonFinanced() { return ETSOrderInfoTextNonFinanced; }
public ETSPlaceOrderViewModel setEtsOrderInfoTextNonFinanced(String value) { this.ETSOrderInfoTextNonFinanced = value; return this; }
public String getEtsOrderInfoTextFinanced() { return ETSOrderInfoTextFinanced; }
public ETSPlaceOrderViewModel setEtsOrderInfoTextFinanced(String value) { this.ETSOrderInfoTextFinanced = value; return this; }
public String getPaymentType() { return PaymentType; }
public ETSPlaceOrderViewModel setPaymentType(String value) { this.PaymentType = value; return this; }
public Integer getQuantity() { return Quantity; }
public ETSPlaceOrderViewModel setQuantity(Integer value) { this.Quantity = value; return this; }
public Integer getOriginalQuantity() { return OriginalQuantity; }
public ETSPlaceOrderViewModel setOriginalQuantity(Integer value) { this.OriginalQuantity = value; return this; }
public String getCompanyName() { return CompanyName; }
public ETSPlaceOrderViewModel setCompanyName(String value) { this.CompanyName = value; return this; }
public String getFullName() { return FullName; }
public ETSPlaceOrderViewModel setFullName(String value) { this.FullName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public ETSPlaceOrderViewModel setEmailAddress(String value) { this.EmailAddress = value; return this; }
public Boolean isCanPurchaseEUA() { return CanPurchaseEUA; }
public ETSPlaceOrderViewModel setCanPurchaseEUA(Boolean value) { this.CanPurchaseEUA = value; return this; }
public Boolean isThirdParty() { return ThirdParty; }
public ETSPlaceOrderViewModel setThirdParty(Boolean value) { this.ThirdParty = value; return this; }
public String getThirdPartyName() { return ThirdPartyName; }
public ETSPlaceOrderViewModel setThirdPartyName(String value) { this.ThirdPartyName = value; return this; }
public Double getExternalFeePerTicket() { return ExternalFeePerTicket; }
public ETSPlaceOrderViewModel setExternalFeePerTicket(Double value) { this.ExternalFeePerTicket = value; return this; }
public Double getOurCommissionForOrder() { return OurCommissionForOrder; }
public ETSPlaceOrderViewModel setOurCommissionForOrder(Double value) { this.OurCommissionForOrder = value; return this; }
public Double getEuaPrice() { return EUAPrice; }
public ETSPlaceOrderViewModel setEuaPrice(Double value) { this.EUAPrice = value; return this; }
public Double getRawPrice() { return RawPrice; }
public ETSPlaceOrderViewModel setRawPrice(Double value) { this.RawPrice = value; return this; }
public Boolean isRegenerateQuote() { return RegenerateQuote; }
public ETSPlaceOrderViewModel setRegenerateQuote(Boolean value) { this.RegenerateQuote = value; return this; }
public String getGetETSMarketHoursMessage() { return GetETSMarketHoursMessage; }
public ETSPlaceOrderViewModel setGetETSMarketHoursMessage(String value) { this.GetETSMarketHoursMessage = value; return this; }
public Boolean getIsBridgeClient() { return IsBridgeClient; }
public ETSPlaceOrderViewModel setIsBridgeClient(Boolean value) { this.IsBridgeClient = value; return this; }
public String getApiToUse() { return APIToUse; }
public ETSPlaceOrderViewModel setApiToUse(String value) { this.APIToUse = value; return this; }
public String getIoiId() { return IoiId; }
public ETSPlaceOrderViewModel setIoiId(String value) { this.IoiId = value; return this; }
public String getOfferIoi() { return OfferIoi; }
public ETSPlaceOrderViewModel setOfferIoi(String value) { this.OfferIoi = value; return this; }
public Date getIoiExpiresAt() { return IoiExpiresAt; }
public ETSPlaceOrderViewModel setIoiExpiresAt(Date value) { this.IoiExpiresAt = value; return this; }
public BigDecimal getSpotAdditionalMargin() { return SpotAdditionalMargin; }
public ETSPlaceOrderViewModel setSpotAdditionalMargin(BigDecimal value) { this.SpotAdditionalMargin = value; return this; }
public String getAitherSettlementUUID() { return AitherSettlementUUID; }
public ETSPlaceOrderViewModel setAitherSettlementUUID(String value) { this.AitherSettlementUUID = value; return this; }
public ArrayList<SelectListItem> getGetVessels() { return GetVessels; }
public ETSPlaceOrderViewModel setGetVessels(ArrayList<SelectListItem> value) { this.GetVessels = value; return this; }
public ArrayList<ETSLinkedVesselsViewModel> getLinkedVessels() { return LinkedVessels; }
public ETSPlaceOrderViewModel setLinkedVessels(ArrayList<ETSLinkedVesselsViewModel> value) { this.LinkedVessels = value; return this; }
public ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel> getGetETSForwardPricesForEntityContactSimple() { return GetETSForwardPricesForEntityContactSimple; }
public ETSPlaceOrderViewModel setGetETSForwardPricesForEntityContactSimple(ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel> value) { this.GetETSForwardPricesForEntityContactSimple = value; return this; }
public GetETSRegistrationStatusViewModel getGetETSRegistrationStatus() { return GetETSRegistrationStatus; }
public ETSPlaceOrderViewModel setGetETSRegistrationStatus(GetETSRegistrationStatusViewModel value) { this.GetETSRegistrationStatus = value; return this; }
}
public static class GetETSForwardPricesForEntityContactSimpleViewModel
{
public Integer MonthNumber = null;
public Date StartingDate = null;
public String DateForGreyEpoch = null;
public String DateForUserInterface = null;
public Integer Over1000 = null;
public Double OurCommissionForOrder = null;
public Double ExternalFeePerTicket = null;
public Double ServiceFeeValue = null;
public String ServiceFeeDescription = null;
public Double MarketPrice = null;
public Double UnitCostPrice = null;
public String APIToUse = null;
public Double SpotAdditionalMargin = null;
public String UserContactNumber = null;
public String AitherSettlementUUID = null;
public Integer getMonthNumber() { return MonthNumber; }
public GetETSForwardPricesForEntityContactSimpleViewModel setMonthNumber(Integer value) { this.MonthNumber = value; return this; }
public Date getStartingDate() { return StartingDate; }
public GetETSForwardPricesForEntityContactSimpleViewModel setStartingDate(Date value) { this.StartingDate = value; return this; }
public String getDateForGreyEpoch() { return DateForGreyEpoch; }
public GetETSForwardPricesForEntityContactSimpleViewModel setDateForGreyEpoch(String value) { this.DateForGreyEpoch = value; return this; }
public String getDateForUserInterface() { return DateForUserInterface; }
public GetETSForwardPricesForEntityContactSimpleViewModel setDateForUserInterface(String value) { this.DateForUserInterface = value; return this; }
public Integer getOver1000() { return Over1000; }
public GetETSForwardPricesForEntityContactSimpleViewModel setOver1000(Integer value) { this.Over1000 = value; return this; }
public Double getOurCommissionForOrder() { return OurCommissionForOrder; }
public GetETSForwardPricesForEntityContactSimpleViewModel setOurCommissionForOrder(Double value) { this.OurCommissionForOrder = value; return this; }
public Double getExternalFeePerTicket() { return ExternalFeePerTicket; }
public GetETSForwardPricesForEntityContactSimpleViewModel setExternalFeePerTicket(Double value) { this.ExternalFeePerTicket = value; return this; }
public Double getServiceFeeValue() { return ServiceFeeValue; }
public GetETSForwardPricesForEntityContactSimpleViewModel setServiceFeeValue(Double value) { this.ServiceFeeValue = value; return this; }
public String getServiceFeeDescription() { return ServiceFeeDescription; }
public GetETSForwardPricesForEntityContactSimpleViewModel setServiceFeeDescription(String value) { this.ServiceFeeDescription = value; return this; }
public Double getMarketPrice() { return MarketPrice; }
public GetETSForwardPricesForEntityContactSimpleViewModel setMarketPrice(Double value) { this.MarketPrice = value; return this; }
public Double getUnitCostPrice() { return UnitCostPrice; }
public GetETSForwardPricesForEntityContactSimpleViewModel setUnitCostPrice(Double value) { this.UnitCostPrice = value; return this; }
public String getApiToUse() { return APIToUse; }
public GetETSForwardPricesForEntityContactSimpleViewModel setApiToUse(String value) { this.APIToUse = value; return this; }
public Double getSpotAdditionalMargin() { return SpotAdditionalMargin; }
public GetETSForwardPricesForEntityContactSimpleViewModel setSpotAdditionalMargin(Double value) { this.SpotAdditionalMargin = value; return this; }
public String getUserContactNumber() { return UserContactNumber; }
public GetETSForwardPricesForEntityContactSimpleViewModel setUserContactNumber(String value) { this.UserContactNumber = value; return this; }
public String getAitherSettlementUUID() { return AitherSettlementUUID; }
public GetETSForwardPricesForEntityContactSimpleViewModel setAitherSettlementUUID(String value) { this.AitherSettlementUUID = 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ETS/Price HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"OrderType":"String","Quantity":0,"InsertQuote":false,"LinkedVessels":[{"Deleted":false,"VesselId":0,"Quantity":0,"MohaAccount":"String","IsQuote":false}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"OrderType":"String","QuoteGuid":"00000000000000000000000000000000","UnitPrice":0,"Price":0,"FinancingPrice":0,"FinancingStatus":"String","ArrangementFee":0,"ArrangementFeeDescription":"String","ETSOrderInfoTextNonFinanced":"String","ETSOrderInfoTextFinanced":"String","PaymentType":"String","Quantity":0,"OriginalQuantity":0,"CompanyName":"String","FullName":"String","EmailAddress":"String","CanPurchaseEUA":false,"ThirdParty":false,"ThirdPartyName":"String","ExternalFeePerTicket":0,"OurCommissionForOrder":0,"EUAPrice":0,"RawPrice":0,"RegenerateQuote":false,"GetETSMarketHoursMessage":"String","IsBridgeClient":false,"APIToUse":"String","IoiId":"String","OfferIoi":"String","IoiExpiresAt":"0001-01-01T00:00:00.0000000","SpotAdditionalMargin":0,"AitherSettlementUUID":"String","GetVessels":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}],"LinkedVessels":[{"Deleted":false,"VesselId":0,"Quantity":0,"MohaAccount":"String","IsQuote":false}],"GetETSForwardPricesForEntityContactSimple":[{"MonthNumber":0,"StartingDate":"0001-01-01T00:00:00.0000000","DateForGreyEpoch":"String","DateForUserInterface":"String","Over1000":0,"OurCommissionForOrder":0,"ExternalFeePerTicket":0,"ServiceFeeValue":0,"ServiceFeeDescription":"String","MarketPrice":0,"UnitCostPrice":0,"APIToUse":"String","SpotAdditionalMargin":0,"UserContactNumber":"String","AitherSettlementUUID":"String"}],"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"}}