Bridge

<back to all web services

ETSGetPrice

ETS
The following routes are available for this service:
POST/ETS/Price
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Bridge.Private.Api.DTO;
using Bridge.Core.ViewModels;

namespace Bridge.Core.ViewModels
{
    public partial class ETSLinkedVesselsViewModel
    {
        public virtual bool Deleted { get; set; }
        public virtual int VesselId { get; set; }
        public virtual int? Quantity { get; set; }
        public virtual string MohaAccount { get; set; }
        public virtual bool IsQuote { get; set; }
    }

    public partial class ETSPlaceOrderViewModel
    {
        public ETSPlaceOrderViewModel()
        {
            GetVessels = new List<SelectListItem>{};
            LinkedVessels = new List<ETSLinkedVesselsViewModel>{};
            GetETSForwardPricesForEntityContactSimple = new List<GetETSForwardPricesForEntityContactSimpleViewModel>{};
        }

        public virtual string OrderType { get; set; }
        public virtual Guid QuoteGuid { get; set; }
        public virtual double UnitPrice { get; set; }
        public virtual double Price { get; set; }
        public virtual double FinancingPrice { get; set; }
        public virtual string FinancingStatus { get; set; }
        public virtual double ArrangementFee { get; set; }
        public virtual string ArrangementFeeDescription { get; set; }
        public virtual string ETSOrderInfoTextNonFinanced { get; set; }
        public virtual string ETSOrderInfoTextFinanced { get; set; }
        public virtual string PaymentType { get; set; }
        public virtual int? Quantity { get; set; }
        public virtual int? OriginalQuantity { get; set; }
        public virtual string CompanyName { get; set; }
        public virtual string FullName { get; set; }
        public virtual string EmailAddress { get; set; }
        public virtual bool CanPurchaseEUA { get; set; }
        public virtual bool ThirdParty { get; set; }
        public virtual string ThirdPartyName { get; set; }
        public virtual double ExternalFeePerTicket { get; set; }
        public virtual double OurCommissionForOrder { get; set; }
        public virtual double EUAPrice { get; set; }
        public virtual double RawPrice { get; set; }
        public virtual bool RegenerateQuote { get; set; }
        public virtual string GetETSMarketHoursMessage { get; set; }
        public virtual bool IsBridgeClient { get; set; }
        public virtual string APIToUse { get; set; }
        public virtual string IoiId { get; set; }
        public virtual string OfferIoi { get; set; }
        public virtual DateTime IoiExpiresAt { get; set; }
        public virtual decimal SpotAdditionalMargin { get; set; }
        public virtual string AitherSettlementUUID { get; set; }
        public virtual List<SelectListItem> GetVessels { get; set; }
        public virtual List<ETSLinkedVesselsViewModel> LinkedVessels { get; set; }
        public virtual List<GetETSForwardPricesForEntityContactSimpleViewModel> GetETSForwardPricesForEntityContactSimple { get; set; }
        public virtual GetETSRegistrationStatusViewModel GetETSRegistrationStatus { get; set; }
    }

    public partial class GetETSForwardPricesForEntityContactSimpleViewModel
    {
        public virtual int MonthNumber { get; set; }
        public virtual DateTime? StartingDate { get; set; }
        public virtual string DateForGreyEpoch { get; set; }
        public virtual string DateForUserInterface { get; set; }
        public virtual int Over1000 { get; set; }
        public virtual double OurCommissionForOrder { get; set; }
        public virtual double ExternalFeePerTicket { get; set; }
        public virtual double ServiceFeeValue { get; set; }
        public virtual string ServiceFeeDescription { get; set; }
        public virtual double MarketPrice { get; set; }
        public virtual double UnitCostPrice { get; set; }
        public virtual string APIToUse { get; set; }
        public virtual double? SpotAdditionalMargin { get; set; }
        public virtual string UserContactNumber { get; set; }
        public virtual string AitherSettlementUUID { get; set; }
    }

    public partial class GetETSRegistrationStatusViewModel
    {
        public virtual string Status { get; set; }
        public virtual string AppliedBy { get; set; }
    }

}

namespace Bridge.Private.Api.DTO
{
    public partial class ETSGetPrice
    {
        public ETSGetPrice()
        {
            LinkedVessels = new List<ETSLinkedVesselsViewModel>{};
        }

        public virtual string OrderType { get; set; }
        public virtual int Quantity { get; set; }
        public virtual bool InsertQuote { get; set; }
        public virtual List<ETSLinkedVesselsViewModel> LinkedVessels { get; set; }
    }

}

C# ETSGetPrice DTOs

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

HTTP + 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>