Bridge

<back to all web services

ETSGetPrice

ETS
The following routes are available for this service:
POST/ETS/Price
import Foundation
import ServiceStack

public class ETSGetPrice : Codable
{
    public var orderType:String
    public var quantity:Int
    public var insertQuote:Bool
    public var linkedVessels:[ETSLinkedVesselsViewModel] = []

    required public init(){}
}

public class ETSLinkedVesselsViewModel : Codable
{
    public var deleted:Bool
    public var vesselId:Int
    public var quantity:Int?
    public var mohaAccount:String
    public var isQuote:Bool

    required public init(){}
}

public class ETSPlaceOrderViewModel : Codable
{
    public var orderType:String
    public var quoteGuid:String
    public var unitPrice:Double
    public var price:Double
    public var financingPrice:Double
    public var financingStatus:String
    public var arrangementFee:Double
    public var arrangementFeeDescription:String
    public var etsOrderInfoTextNonFinanced:String
    public var etsOrderInfoTextFinanced:String
    public var paymentType:String
    public var quantity:Int?
    public var originalQuantity:Int?
    public var companyName:String
    public var fullName:String
    public var emailAddress:String
    public var canPurchaseEUA:Bool
    public var thirdParty:Bool
    public var thirdPartyName:String
    public var externalFeePerTicket:Double
    public var ourCommissionForOrder:Double
    public var euaPrice:Double
    public var rawPrice:Double
    public var regenerateQuote:Bool
    public var getETSMarketHoursMessage:String
    public var isBridgeClient:Bool
    public var apiToUse:String
    public var ioiId:String
    public var offerIoi:String
    public var ioiExpiresAt:Date
    public var spotAdditionalMargin:Double
    public var aitherSettlementUUID:String
    public var getVessels:[SelectListItem] = []
    public var linkedVessels:[ETSLinkedVesselsViewModel] = []
    public var getETSForwardPricesForEntityContactSimple:[GetETSForwardPricesForEntityContactSimpleViewModel] = []
    public var getETSRegistrationStatus:GetETSRegistrationStatusViewModel

    required public init(){}
}

public class GetETSForwardPricesForEntityContactSimpleViewModel : Codable
{
    public var monthNumber:Int
    public var startingDate:Date?
    public var dateForGreyEpoch:String
    public var dateForUserInterface:String
    public var over1000:Int
    public var ourCommissionForOrder:Double
    public var externalFeePerTicket:Double
    public var serviceFeeValue:Double
    public var serviceFeeDescription:String
    public var marketPrice:Double
    public var unitCostPrice:Double
    public var apiToUse:String
    public var spotAdditionalMargin:Double?
    public var userContactNumber:String
    public var aitherSettlementUUID:String

    required public init(){}
}

public class GetETSRegistrationStatusViewModel : Codable
{
    public var status:String
    public var appliedBy:String

    required public init(){}
}


Swift 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"}}