| GET | /Deal-Recap/Decline |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class DealRecapDecline implements IConvertible
{
String? Guid;
DealRecapDecline({this.Guid});
DealRecapDecline.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['Guid'];
return this;
}
Map<String, dynamic> toJson() => {
'Guid': Guid
};
getTypeName() => "DealRecapDecline";
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> {
'DealRecapDecline': TypeInfo(TypeOf.Class, create:() => DealRecapDecline()),
'GetRecapDetailsViewModel': TypeInfo(TypeOf.Class, create:() => GetRecapDetailsViewModel()),
'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Deal-Recap/Decline HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Guid":"00000000000000000000000000000000","DocumentTitle":"String","GeneralComments":"String","EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","CompanyLogo":"AA==","FromContactName":"String","ContactGuid":"00000000000000000000000000000000","EntityName":"String","VesselName":"String","IMONumber":0,"PortCode":"String","PortName":"String","CountryName":"String","CountryFlag":"AA==","DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","BuyerAccountName":"String","DeliveryMethod":"String","AgentDetails":"String","RecapTerms":"String","AdditionalCosts":"String","RecapGrades":"String","Accepted":false,"Rejected":false,"FromEntityContactId":0,"ToEntityContactId":0,"RecapComments":"String","TermsAndConditions":"String","ImageGuid":"00000000000000000000000000000000","VesselId":0,"ConfirmationOnly":false}