Bridge

<back to all web services

SubmitDealRecap

Deal Recaps
The following routes are available for this service:
POST/Submit-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 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 SubmitDealRecapReturnViewModel
            Public Overridable Property RecapId As Integer
            Public Overridable Property RecapGuid As String
            Public Overridable Property DocumentTitle As String
            Public Overridable Property ChattingWithEntityContactId As Integer
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class SubmitDealRecap
            Public Sub New()
                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 DealRecapEnquiryGrades As List(Of DealRecapEnquiryGradesViewModel)
        End Class
    End Namespace
End Namespace

VB.NET SubmitDealRecap 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 /Submit-Deal-Recap HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EnquiryId: 0,
	EnquiryGuid: 00000000000000000000000000000000,
	ChatGuid: 00000000000000000000000000000000,
	IMONumber: 0,
	VesselId: 0,
	VesselName: String,
	BuyerAccountName: String,
	DateFrom: 0001-01-01,
	DateTo: 0001-01-01,
	PortId: 0,
	DeliveryMethodId: 0,
	BuyerSellerAccountId: 0,
	RequestedTermsType: String,
	CreditTermDays: 0,
	RecapComments: String,
	Agent: String,
	AdditionalCosts: String,
	FromEntityContactId: 0,
	DocumentTitle: String,
	RecapCanBeSent: 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
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RecapId: 0,
	RecapGuid: String,
	DocumentTitle: String,
	ChattingWithEntityContactId: 0
}