| 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(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<ETSGetPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
<InsertQuote>false</InsertQuote>
<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>
<OrderType>String</OrderType>
<Quantity>0</Quantity>
</ETSGetPrice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ETSPlaceOrderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<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>
<GetETSForwardPricesForEntityContactSimple>
<GetETSForwardPricesForEntityContactSimpleViewModel>
<APIToUse>String</APIToUse>
<AitherSettlementUUID>String</AitherSettlementUUID>
<DateForGreyEpoch>String</DateForGreyEpoch>
<DateForUserInterface>String</DateForUserInterface>
<ExternalFeePerTicket>0</ExternalFeePerTicket>
<MarketPrice>0</MarketPrice>
<MonthNumber>0</MonthNumber>
<OurCommissionForOrder>0</OurCommissionForOrder>
<Over1000>0</Over1000>
<ServiceFeeDescription>String</ServiceFeeDescription>
<ServiceFeeValue>0</ServiceFeeValue>
<SpotAdditionalMargin>0</SpotAdditionalMargin>
<StartingDate>0001-01-01T00:00:00</StartingDate>
<UnitCostPrice>0</UnitCostPrice>
<UserContactNumber>String</UserContactNumber>
</GetETSForwardPricesForEntityContactSimpleViewModel>
</GetETSForwardPricesForEntityContactSimple>
<GetETSMarketHoursMessage>String</GetETSMarketHoursMessage>
<GetETSRegistrationStatus>
<AppliedBy>String</AppliedBy>
<Status>String</Status>
</GetETSRegistrationStatus>
<GetVessels xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d2p1:SelectListItem>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Name>String</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>false</d2p1:Selected>
<d2p1:Text>String</d2p1:Text>
<d2p1:Value>String</d2p1:Value>
</d2p1:SelectListItem>
</GetVessels>
<IoiExpiresAt>0001-01-01T00:00:00</IoiExpiresAt>
<IoiId>String</IoiId>
<IsBridgeClient>false</IsBridgeClient>
<LinkedVessels>
<ETSLinkedVesselsViewModel>
<Deleted>false</Deleted>
<IsQuote>false</IsQuote>
<MohaAccount>String</MohaAccount>
<Quantity>0</Quantity>
<VesselId>0</VesselId>
</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>
<RawPrice>0</RawPrice>
<RegenerateQuote>false</RegenerateQuote>
<SpotAdditionalMargin>0</SpotAdditionalMargin>
<ThirdParty>false</ThirdParty>
<ThirdPartyName>String</ThirdPartyName>
<UnitPrice>0</UnitPrice>
</ETSPlaceOrderViewModel>