| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ETSOrderDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels"> <BridgeArrangementFee>String</BridgeArrangementFee> <CurrentPrice>String</CurrentPrice> <Deposit>String</Deposit> <DepositValue>String</DepositValue> <EUAPrice>String</EUAPrice> <EUATotalPaid>String</EUATotalPaid> <Financed>false</Financed> <FontColour>String</FontColour> <Forward>false</Forward> <GreyEpochBrokerPrice>String</GreyEpochBrokerPrice> <Id>0</Id> <MarginCoveredTo>String</MarginCoveredTo> <OrderGuid>00000000-0000-0000-0000-000000000000</OrderGuid> <OrderPlacedBy>String</OrderPlacedBy> <OrderPlacedByImageGuid>00000000-0000-0000-0000-000000000000</OrderPlacedByImageGuid> <OrderPlacedDateTime>String</OrderPlacedDateTime> <OrderTotal>String</OrderTotal> <OrderType>String</OrderType> <PaymentRequests>String</PaymentRequests> <Position>String</Position> <Quantity>String</Quantity> <ShowMarkToMarket>false</ShowMarkToMarket> <Status>String</Status> <ThirdParty>false</ThirdParty> <ThirdPartyName>String</ThirdPartyName> <TotalPosition>String</TotalPosition> <Vessels>String</Vessels> </ETSOrderDetailsViewModel>