Bridge

<back to all web services

ETSPlaceOrderSubmit

ETS
The following routes are available for this service:
POST/ETS/Place-Order
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ETSPlaceOrderSubmit
    {
        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 Double ExternalFeePerTicket = null;
        public Double OurCommissionForOrder = null;
        public Double EUAPrice = null;
        public Double UnitCostPrice = null;
        public Boolean ThirdParty = null;
        public String ThirdPartyName = null;
        public String APIToUse = null;
        public String IoIId = null;
        public String OfferIoi = null;
        public Double SpotAdditionalMargin = null;
        public String AitherSettlementUUID = null;
        public ArrayList<ETSLinkedVesselsViewModel> LinkedVessels = null;
        public GetETSRegistrationStatusViewModel GetETSRegistrationStatus = null;
        
        public String getOrderType() { return OrderType; }
        public ETSPlaceOrderSubmit setOrderType(String value) { this.OrderType = value; return this; }
        public UUID getQuoteGuid() { return QuoteGuid; }
        public ETSPlaceOrderSubmit setQuoteGuid(UUID value) { this.QuoteGuid = value; return this; }
        public Double getUnitPrice() { return UnitPrice; }
        public ETSPlaceOrderSubmit setUnitPrice(Double value) { this.UnitPrice = value; return this; }
        public Double getPrice() { return Price; }
        public ETSPlaceOrderSubmit setPrice(Double value) { this.Price = value; return this; }
        public Double getFinancingPrice() { return FinancingPrice; }
        public ETSPlaceOrderSubmit setFinancingPrice(Double value) { this.FinancingPrice = value; return this; }
        public String getFinancingStatus() { return FinancingStatus; }
        public ETSPlaceOrderSubmit setFinancingStatus(String value) { this.FinancingStatus = value; return this; }
        public Double getArrangementFee() { return ArrangementFee; }
        public ETSPlaceOrderSubmit setArrangementFee(Double value) { this.ArrangementFee = value; return this; }
        public String getArrangementFeeDescription() { return ArrangementFeeDescription; }
        public ETSPlaceOrderSubmit setArrangementFeeDescription(String value) { this.ArrangementFeeDescription = value; return this; }
        public String getEtsOrderInfoTextNonFinanced() { return ETSOrderInfoTextNonFinanced; }
        public ETSPlaceOrderSubmit setEtsOrderInfoTextNonFinanced(String value) { this.ETSOrderInfoTextNonFinanced = value; return this; }
        public String getEtsOrderInfoTextFinanced() { return ETSOrderInfoTextFinanced; }
        public ETSPlaceOrderSubmit setEtsOrderInfoTextFinanced(String value) { this.ETSOrderInfoTextFinanced = value; return this; }
        public String getPaymentType() { return PaymentType; }
        public ETSPlaceOrderSubmit setPaymentType(String value) { this.PaymentType = value; return this; }
        public Integer getQuantity() { return Quantity; }
        public ETSPlaceOrderSubmit setQuantity(Integer value) { this.Quantity = value; return this; }
        public Integer getOriginalQuantity() { return OriginalQuantity; }
        public ETSPlaceOrderSubmit setOriginalQuantity(Integer value) { this.OriginalQuantity = value; return this; }
        public String getCompanyName() { return CompanyName; }
        public ETSPlaceOrderSubmit setCompanyName(String value) { this.CompanyName = value; return this; }
        public String getFullName() { return FullName; }
        public ETSPlaceOrderSubmit setFullName(String value) { this.FullName = value; return this; }
        public String getEmailAddress() { return EmailAddress; }
        public ETSPlaceOrderSubmit setEmailAddress(String value) { this.EmailAddress = value; return this; }
        public Boolean isCanPurchaseEUA() { return CanPurchaseEUA; }
        public ETSPlaceOrderSubmit setCanPurchaseEUA(Boolean value) { this.CanPurchaseEUA = value; return this; }
        public Double getExternalFeePerTicket() { return ExternalFeePerTicket; }
        public ETSPlaceOrderSubmit setExternalFeePerTicket(Double value) { this.ExternalFeePerTicket = value; return this; }
        public Double getOurCommissionForOrder() { return OurCommissionForOrder; }
        public ETSPlaceOrderSubmit setOurCommissionForOrder(Double value) { this.OurCommissionForOrder = value; return this; }
        public Double getEuaPrice() { return EUAPrice; }
        public ETSPlaceOrderSubmit setEuaPrice(Double value) { this.EUAPrice = value; return this; }
        public Double getUnitCostPrice() { return UnitCostPrice; }
        public ETSPlaceOrderSubmit setUnitCostPrice(Double value) { this.UnitCostPrice = value; return this; }
        public Boolean isThirdParty() { return ThirdParty; }
        public ETSPlaceOrderSubmit setThirdParty(Boolean value) { this.ThirdParty = value; return this; }
        public String getThirdPartyName() { return ThirdPartyName; }
        public ETSPlaceOrderSubmit setThirdPartyName(String value) { this.ThirdPartyName = value; return this; }
        public String getApiToUse() { return APIToUse; }
        public ETSPlaceOrderSubmit setApiToUse(String value) { this.APIToUse = value; return this; }
        public String getIoIId() { return IoIId; }
        public ETSPlaceOrderSubmit setIoIId(String value) { this.IoIId = value; return this; }
        public String getOfferIoi() { return OfferIoi; }
        public ETSPlaceOrderSubmit setOfferIoi(String value) { this.OfferIoi = value; return this; }
        public Double getSpotAdditionalMargin() { return SpotAdditionalMargin; }
        public ETSPlaceOrderSubmit setSpotAdditionalMargin(Double value) { this.SpotAdditionalMargin = value; return this; }
        public String getAitherSettlementUUID() { return AitherSettlementUUID; }
        public ETSPlaceOrderSubmit setAitherSettlementUUID(String value) { this.AitherSettlementUUID = value; return this; }
        public ArrayList<ETSLinkedVesselsViewModel> getLinkedVessels() { return LinkedVessels; }
        public ETSPlaceOrderSubmit setLinkedVessels(ArrayList<ETSLinkedVesselsViewModel> value) { this.LinkedVessels = value; return this; }
        public GetETSRegistrationStatusViewModel getGetETSRegistrationStatus() { return GetETSRegistrationStatus; }
        public ETSPlaceOrderSubmit setGetETSRegistrationStatus(GetETSRegistrationStatusViewModel value) { this.GetETSRegistrationStatus = 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 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 SavingResult
    {
        public Integer Id = null;
        public UUID GuidId = null;
        public SavingResultStatus Status = null;
        public ArrayList<SavingResultErrors> Errors = null;
        
        public Integer getId() { return Id; }
        public SavingResult setId(Integer value) { this.Id = value; return this; }
        public UUID getGuidId() { return GuidId; }
        public SavingResult setGuidId(UUID value) { this.GuidId = value; return this; }
        public SavingResultStatus getStatus() { return Status; }
        public SavingResult setStatus(SavingResultStatus value) { this.Status = value; return this; }
        public ArrayList<SavingResultErrors> getErrors() { return Errors; }
        public SavingResult setErrors(ArrayList<SavingResultErrors> value) { this.Errors = value; return this; }
    }

    public static enum SavingResultStatus
    {
        Success,
        Error;
    }

    public static class SavingResultErrors
    {
        public String Error = null;
        
        public String getError() { return Error; }
        public SavingResultErrors setError(String value) { this.Error = value; return this; }
    }

}

Java ETSPlaceOrderSubmit DTOs

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ETS/Place-Order HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ETSPlaceOrderSubmit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
  <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>
  <GetETSRegistrationStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
    <d2p1:AppliedBy>String</d2p1:AppliedBy>
    <d2p1:Status>String</d2p1:Status>
  </GetETSRegistrationStatus>
  <IoIId>String</IoIId>
  <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>
  <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>
  <SpotAdditionalMargin>0</SpotAdditionalMargin>
  <ThirdParty>false</ThirdParty>
  <ThirdPartyName>String</ThirdPartyName>
  <UnitCostPrice>0</UnitCostPrice>
  <UnitPrice>0</UnitPrice>
</ETSPlaceOrderSubmit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SavingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.Results">
  <Errors>
    <SavingResultErrors>
      <Error>String</Error>
    </SavingResultErrors>
  </Errors>
  <GuidId>00000000-0000-0000-0000-000000000000</GuidId>
  <Id>0</Id>
  <Status>Success</Status>
</SavingResult>