| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<ETSGetPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
<InsertQuote>false</InsertQuote>
<LinkedVessels xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<d2p1:ETSLinkedVesselsViewModel>
<d2p1:Deleted>false</d2p1:Deleted>
<d2p1:IsQuote>false</d2p1:IsQuote>
<d2p1:MohaAccount>String</d2p1:MohaAccount>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:VesselId>0</d2p1:VesselId>
</d2p1:ETSLinkedVesselsViewModel>
</LinkedVessels>
<OrderType>String</OrderType>
<Quantity>0</Quantity>
</ETSGetPrice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ETSPlaceOrderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<APIToUse>String</APIToUse>
<AitherSettlementUUID>String</AitherSettlementUUID>
<ArrangementFee>0</ArrangementFee>
<ArrangementFeeDescription>String</ArrangementFeeDescription>
<CanPurchaseEUA>false</CanPurchaseEUA>
<CompanyName>String</CompanyName>
<ETSOrderInfoTextFinanced>String</ETSOrderInfoTextFinanced>
<ETSOrderInfoTextNonFinanced>String</ETSOrderInfoTextNonFinanced>
<EUAPrice>0</EUAPrice>
<EmailAddress>String</EmailAddress>
<ExternalFeePerTicket>0</ExternalFeePerTicket>
<FinancingPrice>0</FinancingPrice>
<FinancingStatus>String</FinancingStatus>
<FullName>String</FullName>
<GetETSForwardPricesForEntityContactSimple>
<GetETSForwardPricesForEntityContactSimpleViewModel>
<APIToUse>String</APIToUse>
<AitherSettlementUUID>String</AitherSettlementUUID>
<DateForGreyEpoch>String</DateForGreyEpoch>
<DateForUserInterface>String</DateForUserInterface>
<ExternalFeePerTicket>0</ExternalFeePerTicket>
<MarketPrice>0</MarketPrice>
<MonthNumber>0</MonthNumber>
<OurCommissionForOrder>0</OurCommissionForOrder>
<Over1000>0</Over1000>
<ServiceFeeDescription>String</ServiceFeeDescription>
<ServiceFeeValue>0</ServiceFeeValue>
<SpotAdditionalMargin>0</SpotAdditionalMargin>
<StartingDate>0001-01-01T00:00:00</StartingDate>
<UnitCostPrice>0</UnitCostPrice>
<UserContactNumber>String</UserContactNumber>
</GetETSForwardPricesForEntityContactSimpleViewModel>
</GetETSForwardPricesForEntityContactSimple>
<GetETSMarketHoursMessage>String</GetETSMarketHoursMessage>
<GetETSRegistrationStatus>
<AppliedBy>String</AppliedBy>
<Status>String</Status>
</GetETSRegistrationStatus>
<GetVessels xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d2p1:SelectListItem>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Name>String</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>false</d2p1:Selected>
<d2p1:Text>String</d2p1:Text>
<d2p1:Value>String</d2p1:Value>
</d2p1:SelectListItem>
</GetVessels>
<IoiExpiresAt>0001-01-01T00:00:00</IoiExpiresAt>
<IoiId>String</IoiId>
<IsBridgeClient>false</IsBridgeClient>
<LinkedVessels>
<ETSLinkedVesselsViewModel>
<Deleted>false</Deleted>
<IsQuote>false</IsQuote>
<MohaAccount>String</MohaAccount>
<Quantity>0</Quantity>
<VesselId>0</VesselId>
</ETSLinkedVesselsViewModel>
</LinkedVessels>
<OfferIoi>String</OfferIoi>
<OrderType>String</OrderType>
<OriginalQuantity>0</OriginalQuantity>
<OurCommissionForOrder>0</OurCommissionForOrder>
<PaymentType>String</PaymentType>
<Price>0</Price>
<Quantity>0</Quantity>
<QuoteGuid>00000000-0000-0000-0000-000000000000</QuoteGuid>
<RawPrice>0</RawPrice>
<RegenerateQuote>false</RegenerateQuote>
<SpotAdditionalMargin>0</SpotAdditionalMargin>
<ThirdParty>false</ThirdParty>
<ThirdPartyName>String</ThirdPartyName>
<UnitPrice>0</UnitPrice>
</ETSPlaceOrderViewModel>