Bridge

<back to all web services

DealRecapAccept

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

class DealRecapAccept implements IConvertible
{
    String? Guid;

    DealRecapAccept({this.Guid});
    DealRecapAccept.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class GetRecapDetailsViewModel implements IConvertible
{
    String? Guid;
    String? DocumentTitle;
    String? GeneralComments;
    int? EnquiryId;
    String? EnquiryGuid;
    Uint8List? CompanyLogo;
    String? FromContactName;
    String? ContactGuid;
    String? EntityName;
    String? VesselName;
    int? IMONumber;
    String? PortCode;
    String? PortName;
    String? CountryName;
    Uint8List? CountryFlag;
    DateTime? DateFrom;
    DateTime? DateTo;
    String? BuyerAccountName;
    String? DeliveryMethod;
    String? AgentDetails;
    String? RecapTerms;
    String? AdditionalCosts;
    String? RecapGrades;
    bool? Accepted;
    bool? Rejected;
    int? FromEntityContactId;
    int? ToEntityContactId;
    String? RecapComments;
    String? TermsAndConditions;
    String? ImageGuid;
    int? VesselId;
    bool? ConfirmationOnly;

    GetRecapDetailsViewModel({this.Guid,this.DocumentTitle,this.GeneralComments,this.EnquiryId,this.EnquiryGuid,this.CompanyLogo,this.FromContactName,this.ContactGuid,this.EntityName,this.VesselName,this.IMONumber,this.PortCode,this.PortName,this.CountryName,this.CountryFlag,this.DateFrom,this.DateTo,this.BuyerAccountName,this.DeliveryMethod,this.AgentDetails,this.RecapTerms,this.AdditionalCosts,this.RecapGrades,this.Accepted,this.Rejected,this.FromEntityContactId,this.ToEntityContactId,this.RecapComments,this.TermsAndConditions,this.ImageGuid,this.VesselId,this.ConfirmationOnly});
    GetRecapDetailsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['Guid'];
        DocumentTitle = json['DocumentTitle'];
        GeneralComments = json['GeneralComments'];
        EnquiryId = json['EnquiryId'];
        EnquiryGuid = json['EnquiryGuid'];
        CompanyLogo = JsonConverters.fromJson(json['CompanyLogo'],'Uint8List',context!);
        FromContactName = json['FromContactName'];
        ContactGuid = json['ContactGuid'];
        EntityName = json['EntityName'];
        VesselName = json['VesselName'];
        IMONumber = json['IMONumber'];
        PortCode = json['PortCode'];
        PortName = json['PortName'];
        CountryName = json['CountryName'];
        CountryFlag = JsonConverters.fromJson(json['CountryFlag'],'Uint8List',context!);
        DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!);
        DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!);
        BuyerAccountName = json['BuyerAccountName'];
        DeliveryMethod = json['DeliveryMethod'];
        AgentDetails = json['AgentDetails'];
        RecapTerms = json['RecapTerms'];
        AdditionalCosts = json['AdditionalCosts'];
        RecapGrades = json['RecapGrades'];
        Accepted = json['Accepted'];
        Rejected = json['Rejected'];
        FromEntityContactId = json['FromEntityContactId'];
        ToEntityContactId = json['ToEntityContactId'];
        RecapComments = json['RecapComments'];
        TermsAndConditions = json['TermsAndConditions'];
        ImageGuid = json['ImageGuid'];
        VesselId = json['VesselId'];
        ConfirmationOnly = json['ConfirmationOnly'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Guid': Guid,
        'DocumentTitle': DocumentTitle,
        'GeneralComments': GeneralComments,
        'EnquiryId': EnquiryId,
        'EnquiryGuid': EnquiryGuid,
        'CompanyLogo': JsonConverters.toJson(CompanyLogo,'Uint8List',context!),
        'FromContactName': FromContactName,
        'ContactGuid': ContactGuid,
        'EntityName': EntityName,
        'VesselName': VesselName,
        'IMONumber': IMONumber,
        'PortCode': PortCode,
        'PortName': PortName,
        'CountryName': CountryName,
        'CountryFlag': JsonConverters.toJson(CountryFlag,'Uint8List',context!),
        'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!),
        'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!),
        'BuyerAccountName': BuyerAccountName,
        'DeliveryMethod': DeliveryMethod,
        'AgentDetails': AgentDetails,
        'RecapTerms': RecapTerms,
        'AdditionalCosts': AdditionalCosts,
        'RecapGrades': RecapGrades,
        'Accepted': Accepted,
        'Rejected': Rejected,
        'FromEntityContactId': FromEntityContactId,
        'ToEntityContactId': ToEntityContactId,
        'RecapComments': RecapComments,
        'TermsAndConditions': TermsAndConditions,
        'ImageGuid': ImageGuid,
        'VesselId': VesselId,
        'ConfirmationOnly': ConfirmationOnly
    };

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

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'DealRecapAccept': TypeInfo(TypeOf.Class, create:() => DealRecapAccept()),
    'GetRecapDetailsViewModel': TypeInfo(TypeOf.Class, create:() => GetRecapDetailsViewModel()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});

Dart DealRecapAccept 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 /Deal-Recap/Accept HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetRecapDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <Accepted>false</Accepted>
  <AdditionalCosts>String</AdditionalCosts>
  <AgentDetails>String</AgentDetails>
  <BuyerAccountName>String</BuyerAccountName>
  <CompanyLogo>AA==</CompanyLogo>
  <ConfirmationOnly>false</ConfirmationOnly>
  <ContactGuid>00000000-0000-0000-0000-000000000000</ContactGuid>
  <CountryFlag>AA==</CountryFlag>
  <CountryName>String</CountryName>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <DeliveryMethod>String</DeliveryMethod>
  <DocumentTitle>String</DocumentTitle>
  <EnquiryGuid>00000000-0000-0000-0000-000000000000</EnquiryGuid>
  <EnquiryId>0</EnquiryId>
  <EntityName>String</EntityName>
  <FromContactName>String</FromContactName>
  <FromEntityContactId>0</FromEntityContactId>
  <GeneralComments>String</GeneralComments>
  <Guid>00000000-0000-0000-0000-000000000000</Guid>
  <IMONumber>0</IMONumber>
  <ImageGuid>00000000-0000-0000-0000-000000000000</ImageGuid>
  <PortCode>String</PortCode>
  <PortName>String</PortName>
  <RecapComments>String</RecapComments>
  <RecapGrades>String</RecapGrades>
  <RecapTerms>String</RecapTerms>
  <Rejected>false</Rejected>
  <TermsAndConditions>String</TermsAndConditions>
  <ToEntityContactId>0</ToEntityContactId>
  <VesselId>0</VesselId>
  <VesselName>String</VesselName>
</GetRecapDetailsViewModel>