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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
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/jsv
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-01,
	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-01,
			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
	}
}