Bridge

<back to all web services

ETSGetPrice

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


open class ETSGetPrice
{
    var OrderType:String? = null
    var Quantity:Int? = null
    var InsertQuote:Boolean? = null
    var LinkedVessels:ArrayList<ETSLinkedVesselsViewModel> = ArrayList<ETSLinkedVesselsViewModel>()
}

open class ETSLinkedVesselsViewModel
{
    var Deleted:Boolean? = null
    var VesselId:Int? = null
    var Quantity:Int? = null
    var MohaAccount:String? = null
    var IsQuote:Boolean? = null
}

open class ETSPlaceOrderViewModel
{
    var OrderType:String? = null
    var QuoteGuid:UUID? = null
    var UnitPrice:Double? = null
    var Price:Double? = null
    var FinancingPrice:Double? = null
    var FinancingStatus:String? = null
    var ArrangementFee:Double? = null
    var ArrangementFeeDescription:String? = null
    var ETSOrderInfoTextNonFinanced:String? = null
    var ETSOrderInfoTextFinanced:String? = null
    var PaymentType:String? = null
    var Quantity:Int? = null
    var OriginalQuantity:Int? = null
    var CompanyName:String? = null
    var FullName:String? = null
    var EmailAddress:String? = null
    var CanPurchaseEUA:Boolean? = null
    var ThirdParty:Boolean? = null
    var ThirdPartyName:String? = null
    var ExternalFeePerTicket:Double? = null
    var OurCommissionForOrder:Double? = null
    var EUAPrice:Double? = null
    var RawPrice:Double? = null
    var RegenerateQuote:Boolean? = null
    var GetETSMarketHoursMessage:String? = null
    var IsBridgeClient:Boolean? = null
    var APIToUse:String? = null
    var IoiId:String? = null
    var OfferIoi:String? = null
    var IoiExpiresAt:Date? = null
    var SpotAdditionalMargin:BigDecimal? = null
    var AitherSettlementUUID:String? = null
    var GetVessels:ArrayList<SelectListItem> = ArrayList<SelectListItem>()
    var LinkedVessels:ArrayList<ETSLinkedVesselsViewModel> = ArrayList<ETSLinkedVesselsViewModel>()
    var GetETSForwardPricesForEntityContactSimple:ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel> = ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel>()
    var GetETSRegistrationStatus:GetETSRegistrationStatusViewModel? = null
}

open class GetETSForwardPricesForEntityContactSimpleViewModel
{
    var MonthNumber:Int? = null
    var StartingDate:Date? = null
    var DateForGreyEpoch:String? = null
    var DateForUserInterface:String? = null
    var Over1000:Int? = null
    var OurCommissionForOrder:Double? = null
    var ExternalFeePerTicket:Double? = null
    var ServiceFeeValue:Double? = null
    var ServiceFeeDescription:String? = null
    var MarketPrice:Double? = null
    var UnitCostPrice:Double? = null
    var APIToUse:String? = null
    var SpotAdditionalMargin:Double? = null
    var UserContactNumber:String? = null
    var AitherSettlementUUID:String? = null
}

open class GetETSRegistrationStatusViewModel
{
    var Status:String? = null
    var AppliedBy:String? = null
}

Kotlin ETSGetPrice DTOs

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

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
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: text/jsonl
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"}}