Bridge

<back to all web services

SendDealRecap

Deal Recaps
The following routes are available for this service:
GET/Send-Deal-Recap
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class SendDealRecap implements IConvertible
{
    String? Guid;
    int? FromEntityContactId;
    String? ChatGuid;
    int? ToBuyerContactId;

    SendDealRecap({this.Guid,this.FromEntityContactId,this.ChatGuid,this.ToBuyerContactId});
    SendDealRecap.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['Guid'];
        FromEntityContactId = json['FromEntityContactId'];
        ChatGuid = json['ChatGuid'];
        ToBuyerContactId = json['ToBuyerContactId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Guid': Guid,
        'FromEntityContactId': FromEntityContactId,
        'ChatGuid': ChatGuid,
        'ToBuyerContactId': ToBuyerContactId
    };

    getTypeName() => "SendDealRecap";
    TypeContext? context = _ctx;
}

class GetPortListViewModel implements IConvertible
{
    int? Id;
    String? Guid;
    String? Name;
    String? Code;
    double? Latitude;
    double? Longitude;
    int? CountryId;
    String? CountryName;

    GetPortListViewModel({this.Id,this.Guid,this.Name,this.Code,this.Latitude,this.Longitude,this.CountryId,this.CountryName});
    GetPortListViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Guid = json['Guid'];
        Name = json['Name'];
        Code = json['Code'];
        Latitude = JsonConverters.toDouble(json['Latitude']);
        Longitude = JsonConverters.toDouble(json['Longitude']);
        CountryId = json['CountryId'];
        CountryName = json['CountryName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Guid': Guid,
        'Name': Name,
        'Code': Code,
        'Latitude': Latitude,
        'Longitude': Longitude,
        'CountryId': CountryId,
        'CountryName': CountryName
    };

    getTypeName() => "GetPortListViewModel";
    TypeContext? context = _ctx;
}

class GetDeliveryMethodsViewModel implements IConvertible
{
    int? Id;
    String? Name;

    GetDeliveryMethodsViewModel({this.Id,this.Name});
    GetDeliveryMethodsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Name = json['Name'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Name': Name
    };

    getTypeName() => "GetDeliveryMethodsViewModel";
    TypeContext? context = _ctx;
}

class GetProductsViewModel implements IConvertible
{
    int? Id;
    int? Index;
    String? Name;
    bool? Deleted;
    double? ETSMultiplication;

    GetProductsViewModel({this.Id,this.Index,this.Name,this.Deleted,this.ETSMultiplication});
    GetProductsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Index = json['Index'];
        Name = json['Name'];
        Deleted = json['Deleted'];
        ETSMultiplication = JsonConverters.toDouble(json['ETSMultiplication']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Index': Index,
        'Name': Name,
        'Deleted': Deleted,
        'ETSMultiplication': ETSMultiplication
    };

    getTypeName() => "GetProductsViewModel";
    TypeContext? context = _ctx;
}

class EntityAccountsViewModel implements IConvertible
{
    int? Id;
    String? Type;
    String? Name;
    int? LinkedVesselId;

    EntityAccountsViewModel({this.Id,this.Type,this.Name,this.LinkedVesselId});
    EntityAccountsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Type = json['Type'];
        Name = json['Name'];
        LinkedVesselId = json['LinkedVesselId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Type': Type,
        'Name': Name,
        'LinkedVesselId': LinkedVesselId
    };

    getTypeName() => "EntityAccountsViewModel";
    TypeContext? context = _ctx;
}

class GetVersionsViewModel implements IConvertible
{
    int? Id;
    int? Index;
    String? Name;
    bool? Deleted;

    GetVersionsViewModel({this.Id,this.Index,this.Name,this.Deleted});
    GetVersionsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Index = json['Index'];
        Name = json['Name'];
        Deleted = json['Deleted'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Index': Index,
        'Name': Name,
        'Deleted': Deleted
    };

    getTypeName() => "GetVersionsViewModel";
    TypeContext? context = _ctx;
}

class GetGradesViewModel implements IConvertible
{
    int? Id;
    int? Index;
    String? Name;
    bool? Deleted;

    GetGradesViewModel({this.Id,this.Index,this.Name,this.Deleted});
    GetGradesViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Index = json['Index'];
        Name = json['Name'];
        Deleted = json['Deleted'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Index': Index,
        'Name': Name,
        'Deleted': Deleted
    };

    getTypeName() => "GetGradesViewModel";
    TypeContext? context = _ctx;
}

class GetUnitsViewModel implements IConvertible
{
    int? Id;
    String? Code;
    bool? Deleted;

    GetUnitsViewModel({this.Id,this.Code,this.Deleted});
    GetUnitsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Code = json['Code'];
        Deleted = json['Deleted'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Code': Code,
        'Deleted': Deleted
    };

    getTypeName() => "GetUnitsViewModel";
    TypeContext? context = _ctx;
}

class GetCurrenciesViewModel implements IConvertible
{
    int? Id;
    String? Code;
    String? Description;
    String? Symbol;
    int? Index;
    bool? Deleted;

    GetCurrenciesViewModel({this.Id,this.Code,this.Description,this.Symbol,this.Index,this.Deleted});
    GetCurrenciesViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Code = json['Code'];
        Description = json['Description'];
        Symbol = json['Symbol'];
        Index = json['Index'];
        Deleted = json['Deleted'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Code': Code,
        'Description': Description,
        'Symbol': Symbol,
        'Index': Index,
        'Deleted': Deleted
    };

    getTypeName() => "GetCurrenciesViewModel";
    TypeContext? context = _ctx;
}

class DealRecapEnquiryGradesViewModel implements IConvertible
{
    int? Id;
    bool? Deleted;
    int? ProductId;
    int? VersionId;
    int? GradeId;
    String? SpecificationComments;
    int? VolumeFrom;
    int? VolumeTo;
    int? UnitId;
    int? VolumeUnitId;
    double? UnitPrice;
    int? CurrencyId;

    DealRecapEnquiryGradesViewModel({this.Id,this.Deleted,this.ProductId,this.VersionId,this.GradeId,this.SpecificationComments,this.VolumeFrom,this.VolumeTo,this.UnitId,this.VolumeUnitId,this.UnitPrice,this.CurrencyId});
    DealRecapEnquiryGradesViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Deleted = json['Deleted'];
        ProductId = json['ProductId'];
        VersionId = json['VersionId'];
        GradeId = json['GradeId'];
        SpecificationComments = json['SpecificationComments'];
        VolumeFrom = json['VolumeFrom'];
        VolumeTo = json['VolumeTo'];
        UnitId = json['UnitId'];
        VolumeUnitId = json['VolumeUnitId'];
        UnitPrice = JsonConverters.toDouble(json['UnitPrice']);
        CurrencyId = json['CurrencyId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Deleted': Deleted,
        'ProductId': ProductId,
        'VersionId': VersionId,
        'GradeId': GradeId,
        'SpecificationComments': SpecificationComments,
        'VolumeFrom': VolumeFrom,
        'VolumeTo': VolumeTo,
        'UnitId': UnitId,
        'VolumeUnitId': VolumeUnitId,
        'UnitPrice': UnitPrice,
        'CurrencyId': CurrencyId
    };

    getTypeName() => "DealRecapEnquiryGradesViewModel";
    TypeContext? context = _ctx;
}

class APISendDealRecapViewModel implements IConvertible
{
    int? EnquiryId;
    String? EnquiryGuid;
    String? ChatGuid;
    int? IMONumber;
    int? VesselId;
    String? VesselName;
    String? BuyerAccountName;
    DateTime? DateFrom;
    DateTime? DateTo;
    int? PortId;
    int? DeliveryMethodId;
    int? BuyerSellerAccountId;
    String? RequestedTermsType;
    int? CreditTermDays;
    String? RecapComments;
    String? Agent;
    String? AdditionalCosts;
    int? FromEntityContactId;
    String? DocumentTitle;
    bool? RecapCanBeSent;
    List<GetPortListViewModel>? GetPortList;
    List<GetDeliveryMethodsViewModel>? GetDeliveryMethods;
    List<GetProductsViewModel>? GetProducts;
    List<EntityAccountsViewModel>? GetBuyerSellerAccounts;
    List<GetVersionsViewModel>? GetVersions;
    List<GetGradesViewModel>? GetGrades;
    List<GetUnitsViewModel>? GetUnits;
    List<GetCurrenciesViewModel>? GetCurrencies;
    List<DealRecapEnquiryGradesViewModel>? DealRecapEnquiryGrades;

    APISendDealRecapViewModel({this.EnquiryId,this.EnquiryGuid,this.ChatGuid,this.IMONumber,this.VesselId,this.VesselName,this.BuyerAccountName,this.DateFrom,this.DateTo,this.PortId,this.DeliveryMethodId,this.BuyerSellerAccountId,this.RequestedTermsType,this.CreditTermDays,this.RecapComments,this.Agent,this.AdditionalCosts,this.FromEntityContactId,this.DocumentTitle,this.RecapCanBeSent,this.GetPortList,this.GetDeliveryMethods,this.GetProducts,this.GetBuyerSellerAccounts,this.GetVersions,this.GetGrades,this.GetUnits,this.GetCurrencies,this.DealRecapEnquiryGrades});
    APISendDealRecapViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        EnquiryId = json['EnquiryId'];
        EnquiryGuid = json['EnquiryGuid'];
        ChatGuid = json['ChatGuid'];
        IMONumber = json['IMONumber'];
        VesselId = json['VesselId'];
        VesselName = json['VesselName'];
        BuyerAccountName = json['BuyerAccountName'];
        DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!);
        DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!);
        PortId = json['PortId'];
        DeliveryMethodId = json['DeliveryMethodId'];
        BuyerSellerAccountId = json['BuyerSellerAccountId'];
        RequestedTermsType = json['RequestedTermsType'];
        CreditTermDays = json['CreditTermDays'];
        RecapComments = json['RecapComments'];
        Agent = json['Agent'];
        AdditionalCosts = json['AdditionalCosts'];
        FromEntityContactId = json['FromEntityContactId'];
        DocumentTitle = json['DocumentTitle'];
        RecapCanBeSent = json['RecapCanBeSent'];
        GetPortList = JsonConverters.fromJson(json['GetPortList'],'List<GetPortListViewModel>',context!);
        GetDeliveryMethods = JsonConverters.fromJson(json['GetDeliveryMethods'],'List<GetDeliveryMethodsViewModel>',context!);
        GetProducts = JsonConverters.fromJson(json['GetProducts'],'List<GetProductsViewModel>',context!);
        GetBuyerSellerAccounts = JsonConverters.fromJson(json['GetBuyerSellerAccounts'],'List<EntityAccountsViewModel>',context!);
        GetVersions = JsonConverters.fromJson(json['GetVersions'],'List<GetVersionsViewModel>',context!);
        GetGrades = JsonConverters.fromJson(json['GetGrades'],'List<GetGradesViewModel>',context!);
        GetUnits = JsonConverters.fromJson(json['GetUnits'],'List<GetUnitsViewModel>',context!);
        GetCurrencies = JsonConverters.fromJson(json['GetCurrencies'],'List<GetCurrenciesViewModel>',context!);
        DealRecapEnquiryGrades = JsonConverters.fromJson(json['DealRecapEnquiryGrades'],'List<DealRecapEnquiryGradesViewModel>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'EnquiryId': EnquiryId,
        'EnquiryGuid': EnquiryGuid,
        'ChatGuid': ChatGuid,
        'IMONumber': IMONumber,
        'VesselId': VesselId,
        'VesselName': VesselName,
        'BuyerAccountName': BuyerAccountName,
        'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!),
        'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!),
        'PortId': PortId,
        'DeliveryMethodId': DeliveryMethodId,
        'BuyerSellerAccountId': BuyerSellerAccountId,
        'RequestedTermsType': RequestedTermsType,
        'CreditTermDays': CreditTermDays,
        'RecapComments': RecapComments,
        'Agent': Agent,
        'AdditionalCosts': AdditionalCosts,
        'FromEntityContactId': FromEntityContactId,
        'DocumentTitle': DocumentTitle,
        'RecapCanBeSent': RecapCanBeSent,
        'GetPortList': JsonConverters.toJson(GetPortList,'List<GetPortListViewModel>',context!),
        'GetDeliveryMethods': JsonConverters.toJson(GetDeliveryMethods,'List<GetDeliveryMethodsViewModel>',context!),
        'GetProducts': JsonConverters.toJson(GetProducts,'List<GetProductsViewModel>',context!),
        'GetBuyerSellerAccounts': JsonConverters.toJson(GetBuyerSellerAccounts,'List<EntityAccountsViewModel>',context!),
        'GetVersions': JsonConverters.toJson(GetVersions,'List<GetVersionsViewModel>',context!),
        'GetGrades': JsonConverters.toJson(GetGrades,'List<GetGradesViewModel>',context!),
        'GetUnits': JsonConverters.toJson(GetUnits,'List<GetUnitsViewModel>',context!),
        'GetCurrencies': JsonConverters.toJson(GetCurrencies,'List<GetCurrenciesViewModel>',context!),
        'DealRecapEnquiryGrades': JsonConverters.toJson(DealRecapEnquiryGrades,'List<DealRecapEnquiryGradesViewModel>',context!)
    };

    getTypeName() => "APISendDealRecapViewModel";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'SendDealRecap': TypeInfo(TypeOf.Class, create:() => SendDealRecap()),
    'GetPortListViewModel': TypeInfo(TypeOf.Class, create:() => GetPortListViewModel()),
    'GetDeliveryMethodsViewModel': TypeInfo(TypeOf.Class, create:() => GetDeliveryMethodsViewModel()),
    'GetProductsViewModel': TypeInfo(TypeOf.Class, create:() => GetProductsViewModel()),
    'EntityAccountsViewModel': TypeInfo(TypeOf.Class, create:() => EntityAccountsViewModel()),
    'GetVersionsViewModel': TypeInfo(TypeOf.Class, create:() => GetVersionsViewModel()),
    'GetGradesViewModel': TypeInfo(TypeOf.Class, create:() => GetGradesViewModel()),
    'GetUnitsViewModel': TypeInfo(TypeOf.Class, create:() => GetUnitsViewModel()),
    'GetCurrenciesViewModel': TypeInfo(TypeOf.Class, create:() => GetCurrenciesViewModel()),
    'DealRecapEnquiryGradesViewModel': TypeInfo(TypeOf.Class, create:() => DealRecapEnquiryGradesViewModel()),
    'APISendDealRecapViewModel': TypeInfo(TypeOf.Class, create:() => APISendDealRecapViewModel()),
    'List<GetPortListViewModel>': TypeInfo(TypeOf.Class, create:() => <GetPortListViewModel>[]),
    'List<GetDeliveryMethodsViewModel>': TypeInfo(TypeOf.Class, create:() => <GetDeliveryMethodsViewModel>[]),
    'List<GetProductsViewModel>': TypeInfo(TypeOf.Class, create:() => <GetProductsViewModel>[]),
    'List<EntityAccountsViewModel>': TypeInfo(TypeOf.Class, create:() => <EntityAccountsViewModel>[]),
    'List<GetVersionsViewModel>': TypeInfo(TypeOf.Class, create:() => <GetVersionsViewModel>[]),
    'List<GetGradesViewModel>': TypeInfo(TypeOf.Class, create:() => <GetGradesViewModel>[]),
    'List<GetUnitsViewModel>': TypeInfo(TypeOf.Class, create:() => <GetUnitsViewModel>[]),
    'List<GetCurrenciesViewModel>': TypeInfo(TypeOf.Class, create:() => <GetCurrenciesViewModel>[]),
    'List<DealRecapEnquiryGradesViewModel>': TypeInfo(TypeOf.Class, create:() => <DealRecapEnquiryGradesViewModel>[]),
});

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

GET /Send-Deal-Recap HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsv
HTTP/1.1 200 OK
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,
	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
		}
	]
}