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 .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.

POST /ETS/Place-Order HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
Content-Type: text/csv
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,"ExternalFeePerTicket":0,"OurCommissionForOrder":0,"EUAPrice":0,"UnitCostPrice":0,"ThirdParty":false,"ThirdPartyName":"String","APIToUse":"String","IoIId":"String","OfferIoi":"String","SpotAdditionalMargin":0,"AitherSettlementUUID":"String","LinkedVessels":[{"Deleted":false,"VesselId":0,"Quantity":0,"MohaAccount":"String","IsQuote":false}],"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"GuidId":"00000000000000000000000000000000","Status":"Success","Errors":[{"Error":"String"}]}