| GET | /ETS/Order-Details |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ETSOrderDetails implements IConvertible
{
String? Id;
ETSOrderDetails({this.Id});
ETSOrderDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id
};
getTypeName() => "ETSOrderDetails";
TypeContext? context = _ctx;
}
class ETSOrderDetailsViewModel implements IConvertible
{
int? Id;
String? OrderGuid;
String? OrderPlacedBy;
String? OrderPlacedByImageGuid;
String? OrderPlacedDateTime;
String? Quantity;
String? Status;
String? Vessels;
bool? Forward;
String? OrderType;
String? EUAPrice;
String? GreyEpochBrokerPrice;
String? BridgeArrangementFee;
String? EUATotalPaid;
String? OrderTotal;
String? Deposit;
String? DepositValue;
String? MarginCoveredTo;
String? PaymentRequests;
String? CurrentPrice;
String? Position;
String? TotalPosition;
String? FontColour;
bool? ThirdParty;
String? ThirdPartyName;
bool? Financed;
bool? ShowMarkToMarket;
ETSOrderDetailsViewModel({this.Id,this.OrderGuid,this.OrderPlacedBy,this.OrderPlacedByImageGuid,this.OrderPlacedDateTime,this.Quantity,this.Status,this.Vessels,this.Forward,this.OrderType,this.EUAPrice,this.GreyEpochBrokerPrice,this.BridgeArrangementFee,this.EUATotalPaid,this.OrderTotal,this.Deposit,this.DepositValue,this.MarginCoveredTo,this.PaymentRequests,this.CurrentPrice,this.Position,this.TotalPosition,this.FontColour,this.ThirdParty,this.ThirdPartyName,this.Financed,this.ShowMarkToMarket});
ETSOrderDetailsViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
OrderGuid = json['OrderGuid'];
OrderPlacedBy = json['OrderPlacedBy'];
OrderPlacedByImageGuid = json['OrderPlacedByImageGuid'];
OrderPlacedDateTime = json['OrderPlacedDateTime'];
Quantity = json['Quantity'];
Status = json['Status'];
Vessels = json['Vessels'];
Forward = json['Forward'];
OrderType = json['OrderType'];
EUAPrice = json['EUAPrice'];
GreyEpochBrokerPrice = json['GreyEpochBrokerPrice'];
BridgeArrangementFee = json['BridgeArrangementFee'];
EUATotalPaid = json['EUATotalPaid'];
OrderTotal = json['OrderTotal'];
Deposit = json['Deposit'];
DepositValue = json['DepositValue'];
MarginCoveredTo = json['MarginCoveredTo'];
PaymentRequests = json['PaymentRequests'];
CurrentPrice = json['CurrentPrice'];
Position = json['Position'];
TotalPosition = json['TotalPosition'];
FontColour = json['FontColour'];
ThirdParty = json['ThirdParty'];
ThirdPartyName = json['ThirdPartyName'];
Financed = json['Financed'];
ShowMarkToMarket = json['ShowMarkToMarket'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'OrderGuid': OrderGuid,
'OrderPlacedBy': OrderPlacedBy,
'OrderPlacedByImageGuid': OrderPlacedByImageGuid,
'OrderPlacedDateTime': OrderPlacedDateTime,
'Quantity': Quantity,
'Status': Status,
'Vessels': Vessels,
'Forward': Forward,
'OrderType': OrderType,
'EUAPrice': EUAPrice,
'GreyEpochBrokerPrice': GreyEpochBrokerPrice,
'BridgeArrangementFee': BridgeArrangementFee,
'EUATotalPaid': EUATotalPaid,
'OrderTotal': OrderTotal,
'Deposit': Deposit,
'DepositValue': DepositValue,
'MarginCoveredTo': MarginCoveredTo,
'PaymentRequests': PaymentRequests,
'CurrentPrice': CurrentPrice,
'Position': Position,
'TotalPosition': TotalPosition,
'FontColour': FontColour,
'ThirdParty': ThirdParty,
'ThirdPartyName': ThirdPartyName,
'Financed': Financed,
'ShowMarkToMarket': ShowMarkToMarket
};
getTypeName() => "ETSOrderDetailsViewModel";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
'ETSOrderDetails': TypeInfo(TypeOf.Class, create:() => ETSOrderDetails()),
'ETSOrderDetailsViewModel': TypeInfo(TypeOf.Class, create:() => ETSOrderDetailsViewModel()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ETS/Order-Details HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Id":0,"OrderGuid":"00000000000000000000000000000000","OrderPlacedBy":"String","OrderPlacedByImageGuid":"00000000000000000000000000000000","OrderPlacedDateTime":"String","Quantity":"String","Status":"String","Vessels":"String","Forward":false,"OrderType":"String","EUAPrice":"String","GreyEpochBrokerPrice":"String","BridgeArrangementFee":"String","EUATotalPaid":"String","OrderTotal":"String","Deposit":"String","DepositValue":"String","MarginCoveredTo":"String","PaymentRequests":"String","CurrentPrice":"String","Position":"String","TotalPosition":"String","FontColour":"String","ThirdParty":false,"ThirdPartyName":"String","Financed":false,"ShowMarkToMarket":false}