Bridge

<back to all web services

SendDealRecap

Deal Recaps
The following routes are available for this service:
GET/Send-Deal-Recap
import Foundation
import ServiceStack

public class SendDealRecap : Codable
{
    public var guid:String
    public var fromEntityContactId:Int
    public var chatGuid:String
    public var toBuyerContactId:Int

    required public init(){}
}

public class APISendDealRecapViewModel : Codable
{
    public var enquiryId:Int
    public var enquiryGuid:String
    public var chatGuid:String
    public var imoNumber:Int
    public var vesselId:Int
    public var vesselName:String
    public var buyerAccountName:String
    public var dateFrom:Date?
    public var dateTo:Date?
    public var portId:Int?
    public var deliveryMethodId:Int?
    public var buyerSellerAccountId:Int?
    public var requestedTermsType:String
    public var creditTermDays:Int?
    public var recapComments:String
    public var agent:String
    public var additionalCosts:String
    public var fromEntityContactId:Int
    public var documentTitle:String
    public var recapCanBeSent:Bool
    public var getPortList:[GetPortListViewModel] = []
    public var getDeliveryMethods:[GetDeliveryMethodsViewModel] = []
    public var getProducts:[GetProductsViewModel] = []
    public var getBuyerSellerAccounts:[EntityAccountsViewModel] = []
    public var getVersions:[GetVersionsViewModel] = []
    public var getGrades:[GetGradesViewModel] = []
    public var getUnits:[GetUnitsViewModel] = []
    public var getCurrencies:[GetCurrenciesViewModel] = []
    public var dealRecapEnquiryGrades:[DealRecapEnquiryGradesViewModel] = []

    required public init(){}
}

public class GetPortListViewModel : Codable
{
    public var id:Int
    public var guid:String
    public var name:String
    public var code:String
    public var latitude:Double
    public var longitude:Double
    public var countryId:Int
    public var countryName:String

    required public init(){}
}

public class GetDeliveryMethodsViewModel : Codable
{
    public var id:Int
    public var name:String

    required public init(){}
}

public class GetProductsViewModel : Codable
{
    public var id:Int
    public var index:Int
    public var name:String
    public var deleted:Bool
    public var etsMultiplication:Double

    required public init(){}
}

public class EntityAccountsViewModel : Codable
{
    public var id:Int
    public var type:String
    public var name:String
    public var linkedVesselId:Int

    required public init(){}
}

public class GetVersionsViewModel : Codable
{
    public var id:Int
    public var index:Int
    public var name:String
    public var deleted:Bool

    required public init(){}
}

public class GetGradesViewModel : Codable
{
    public var id:Int
    public var index:Int
    public var name:String
    public var deleted:Bool

    required public init(){}
}

public class GetUnitsViewModel : Codable
{
    public var id:Int
    public var code:String
    public var deleted:Bool

    required public init(){}
}

public class GetCurrenciesViewModel : Codable
{
    public var id:Int
    public var code:String
    public var Description:String
    public var symbol:String
    public var index:Int
    public var deleted:Bool

    required public init(){}
}

public class DealRecapEnquiryGradesViewModel : Codable
{
    public var id:Int?
    public var deleted:Bool
    public var productId:Int?
    public var versionId:Int?
    public var gradeId:Int?
    public var specificationComments:String
    public var volumeFrom:Int?
    public var volumeTo:Int?
    public var unitId:Int?
    public var volumeUnitId:Int?
    public var unitPrice:Double?
    public var currencyId:Int?

    required public init(){}
}


Swift SendDealRecap 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.

GET /Send-Deal-Recap HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<APISendDealRecapViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <AdditionalCosts>String</AdditionalCosts>
  <Agent>String</Agent>
  <BuyerAccountName>String</BuyerAccountName>
  <BuyerSellerAccountId>0</BuyerSellerAccountId>
  <ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid>
  <CreditTermDays>0</CreditTermDays>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <DealRecapEnquiryGrades>
    <DealRecapEnquiryGradesViewModel>
      <CurrencyId>0</CurrencyId>
      <Deleted>false</Deleted>
      <GradeId>0</GradeId>
      <Id>0</Id>
      <ProductId>0</ProductId>
      <SpecificationComments>String</SpecificationComments>
      <UnitId>0</UnitId>
      <UnitPrice>0</UnitPrice>
      <VersionId>0</VersionId>
      <VolumeFrom>0</VolumeFrom>
      <VolumeTo>0</VolumeTo>
      <VolumeUnitId>0</VolumeUnitId>
    </DealRecapEnquiryGradesViewModel>
  </DealRecapEnquiryGrades>
  <DeliveryMethodId>0</DeliveryMethodId>
  <DocumentTitle>String</DocumentTitle>
  <EnquiryGuid>00000000-0000-0000-0000-000000000000</EnquiryGuid>
  <EnquiryId>0</EnquiryId>
  <FromEntityContactId>0</FromEntityContactId>
  <GetBuyerSellerAccounts>
    <EntityAccountsViewModel>
      <Id>0</Id>
      <LinkedVesselId>0</LinkedVesselId>
      <Name>String</Name>
      <Type>String</Type>
    </EntityAccountsViewModel>
  </GetBuyerSellerAccounts>
  <GetCurrencies>
    <GetCurrenciesViewModel>
      <Code>String</Code>
      <Deleted>false</Deleted>
      <Description>String</Description>
      <Id>0</Id>
      <Index>0</Index>
      <Symbol>String</Symbol>
    </GetCurrenciesViewModel>
  </GetCurrencies>
  <GetDeliveryMethods>
    <GetDeliveryMethodsViewModel>
      <Id>0</Id>
      <Name>String</Name>
    </GetDeliveryMethodsViewModel>
  </GetDeliveryMethods>
  <GetGrades>
    <GetGradesViewModel>
      <Deleted>false</Deleted>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetGradesViewModel>
  </GetGrades>
  <GetPortList>
    <GetPortListViewModel>
      <Code>String</Code>
      <CountryId>0</CountryId>
      <CountryName>String</CountryName>
      <Guid>00000000-0000-0000-0000-000000000000</Guid>
      <Id>0</Id>
      <Latitude>0</Latitude>
      <Longitude>0</Longitude>
      <Name>String</Name>
    </GetPortListViewModel>
  </GetPortList>
  <GetProducts>
    <GetProductsViewModel>
      <Deleted>false</Deleted>
      <ETSMultiplication>0</ETSMultiplication>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetProductsViewModel>
  </GetProducts>
  <GetUnits>
    <GetUnitsViewModel>
      <Code>String</Code>
      <Deleted>false</Deleted>
      <Id>0</Id>
    </GetUnitsViewModel>
  </GetUnits>
  <GetVersions>
    <GetVersionsViewModel>
      <Deleted>false</Deleted>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetVersionsViewModel>
  </GetVersions>
  <IMONumber>0</IMONumber>
  <PortId>0</PortId>
  <RecapCanBeSent>false</RecapCanBeSent>
  <RecapComments>String</RecapComments>
  <RequestedTermsType>String</RequestedTermsType>
  <VesselId>0</VesselId>
  <VesselName>String</VesselName>
</APISendDealRecapViewModel>