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