Bridge

<back to all web services

SendDealRecap

Deal Recaps
The following routes are available for this service:
GET/Send-Deal-Recap
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels

Namespace Global

    Namespace Bridge.Core.ViewModels

        Public Partial Class APISendDealRecapViewModel
            Public Sub New()
                GetPortList = New List(Of GetPortListViewModel)
                GetDeliveryMethods = New List(Of GetDeliveryMethodsViewModel)
                GetProducts = New List(Of GetProductsViewModel)
                GetBuyerSellerAccounts = New List(Of EntityAccountsViewModel)
                GetVersions = New List(Of GetVersionsViewModel)
                GetGrades = New List(Of GetGradesViewModel)
                GetUnits = New List(Of GetUnitsViewModel)
                GetCurrencies = New List(Of GetCurrenciesViewModel)
                DealRecapEnquiryGrades = New List(Of DealRecapEnquiryGradesViewModel)
            End Sub

            Public Overridable Property EnquiryId As Integer
            Public Overridable Property EnquiryGuid As Guid
            Public Overridable Property ChatGuid As Guid
            Public Overridable Property IMONumber As Integer
            Public Overridable Property VesselId As Integer
            Public Overridable Property VesselName As String
            Public Overridable Property BuyerAccountName As String
            Public Overridable Property DateFrom As Nullable(Of Date)
            Public Overridable Property DateTo As Nullable(Of Date)
            Public Overridable Property PortId As Nullable(Of Integer)
            Public Overridable Property DeliveryMethodId As Nullable(Of Integer)
            Public Overridable Property BuyerSellerAccountId As Nullable(Of Integer)
            Public Overridable Property RequestedTermsType As String
            Public Overridable Property CreditTermDays As Nullable(Of Integer)
            Public Overridable Property RecapComments As String
            Public Overridable Property Agent As String
            Public Overridable Property AdditionalCosts As String
            Public Overridable Property FromEntityContactId As Integer
            Public Overridable Property DocumentTitle As String
            Public Overridable Property RecapCanBeSent As Boolean
            Public Overridable Property GetPortList As List(Of GetPortListViewModel)
            Public Overridable Property GetDeliveryMethods As List(Of GetDeliveryMethodsViewModel)
            Public Overridable Property GetProducts As List(Of GetProductsViewModel)
            Public Overridable Property GetBuyerSellerAccounts As List(Of EntityAccountsViewModel)
            Public Overridable Property GetVersions As List(Of GetVersionsViewModel)
            Public Overridable Property GetGrades As List(Of GetGradesViewModel)
            Public Overridable Property GetUnits As List(Of GetUnitsViewModel)
            Public Overridable Property GetCurrencies As List(Of GetCurrenciesViewModel)
            Public Overridable Property DealRecapEnquiryGrades As List(Of DealRecapEnquiryGradesViewModel)
        End Class

        Public Partial Class DealRecapEnquiryGradesViewModel
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property Deleted As Boolean
            Public Overridable Property ProductId As Nullable(Of Integer)
            Public Overridable Property VersionId As Nullable(Of Integer)
            Public Overridable Property GradeId As Nullable(Of Integer)
            Public Overridable Property SpecificationComments As String
            Public Overridable Property VolumeFrom As Nullable(Of Integer)
            Public Overridable Property VolumeTo As Nullable(Of Integer)
            Public Overridable Property UnitId As Nullable(Of Integer)
            Public Overridable Property VolumeUnitId As Nullable(Of Integer)
            Public Overridable Property UnitPrice As Nullable(Of Double)
            Public Overridable Property CurrencyId As Nullable(Of Integer)
        End Class

        Public Partial Class EntityAccountsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Type As String
            Public Overridable Property Name As String
            Public Overridable Property LinkedVesselId As Integer
        End Class

        Public Partial Class GetCurrenciesViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Code As String
            Public Overridable Property Description As String
            Public Overridable Property Symbol As String
            Public Overridable Property Index As Integer
            Public Overridable Property Deleted As Boolean
        End Class

        Public Partial Class GetDeliveryMethodsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Name As String
        End Class

        Public Partial Class GetGradesViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Index As Integer
            Public Overridable Property Name As String
            Public Overridable Property Deleted As Boolean
        End Class

        Public Partial Class GetPortListViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Guid As Guid
            Public Overridable Property Name As String
            Public Overridable Property Code As String
            Public Overridable Property Latitude As Double
            Public Overridable Property Longitude As Double
            Public Overridable Property CountryId As Integer
            Public Overridable Property CountryName As String
        End Class

        Public Partial Class GetProductsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Index As Integer
            Public Overridable Property Name As String
            Public Overridable Property Deleted As Boolean
            Public Overridable Property ETSMultiplication As Double
        End Class

        Public Partial Class GetUnitsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Code As String
            Public Overridable Property Deleted As Boolean
        End Class

        Public Partial Class GetVersionsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Index As Integer
            Public Overridable Property Name As String
            Public Overridable Property Deleted As Boolean
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class SendDealRecap
            Public Overridable Property Guid As Guid
            Public Overridable Property FromEntityContactId As Integer
            Public Overridable Property ChatGuid As Guid
            Public Overridable Property ToBuyerContactId As Integer
        End Class
    End Namespace
End Namespace

VB.NET SendDealRecap DTOs

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

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","ChatGuid":"00000000000000000000000000000000","IMONumber":0,"VesselId":0,"VesselName":"String","BuyerAccountName":"String","DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","PortId":0,"DeliveryMethodId":0,"BuyerSellerAccountId":0,"RequestedTermsType":"String","CreditTermDays":0,"RecapComments":"String","Agent":"String","AdditionalCosts":"String","FromEntityContactId":0,"DocumentTitle":"String","RecapCanBeSent":false,"GetPortList":[{"Id":0,"Guid":"00000000000000000000000000000000","Name":"String","Code":"String","Latitude":0,"Longitude":0,"CountryId":0,"CountryName":"String"}],"GetDeliveryMethods":[{"Id":0,"Name":"String"}],"GetProducts":[{"Id":0,"Index":0,"Name":"String","Deleted":false,"ETSMultiplication":0}],"GetBuyerSellerAccounts":[{"Id":0,"Type":"String","Name":"String","LinkedVesselId":0}],"GetVersions":[{"Id":0,"Index":0,"Name":"String","Deleted":false}],"GetGrades":[{"Id":0,"Index":0,"Name":"String","Deleted":false}],"GetUnits":[{"Id":0,"Code":"String","Deleted":false}],"GetCurrencies":[{"Id":0,"Code":"String","Description":"String","Symbol":"String","Index":0,"Deleted":false}],"DealRecapEnquiryGrades":[{"Id":0,"Deleted":false,"ProductId":0,"VersionId":0,"GradeId":0,"SpecificationComments":"String","VolumeFrom":0,"VolumeTo":0,"UnitId":0,"VolumeUnitId":0,"UnitPrice":0,"CurrencyId":0}]}