GET | /v1/order/detail/{OrderGuid} | Get Order by Guid |
---|
import 'package:servicestack/servicestack.dart';
class GetOrderDetailByGuidRequest implements IConvertible
{
String? OrderGuid;
GetOrderDetailByGuidRequest({this.OrderGuid});
GetOrderDetailByGuidRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
OrderGuid = json['OrderGuid'];
return this;
}
Map<String, dynamic> toJson() => {
'OrderGuid': OrderGuid
};
getTypeName() => "GetOrderDetailByGuidRequest";
TypeContext? context = _ctx;
}
class OrderDetailByGuid implements IConvertible
{
String? Guid;
String? BackOrderReference;
String? Reference;
String? Agent;
String? Vin;
String? Description;
String? ImageUrl;
String? OutrightPurchaseCorporation;
String? NetPrice;
String? OtrPrice;
String? ActualPrice;
String? CommissionNumber;
String? BodyStyle;
String? Line;
String? Engine;
String? Transmission;
String? Fuel;
String? Colour;
String? Upholstery;
String? Package;
String? FullModelYearCode;
String? PortArrivalDate;
String? ProductionDate;
List<String>? PersonalisedOffer = [];
OrderDetailByGuid({this.Guid,this.BackOrderReference,this.Reference,this.Agent,this.Vin,this.Description,this.ImageUrl,this.OutrightPurchaseCorporation,this.NetPrice,this.OtrPrice,this.ActualPrice,this.CommissionNumber,this.BodyStyle,this.Line,this.Engine,this.Transmission,this.Fuel,this.Colour,this.Upholstery,this.Package,this.FullModelYearCode,this.PortArrivalDate,this.ProductionDate,this.PersonalisedOffer});
OrderDetailByGuid.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['Guid'];
BackOrderReference = json['BackOrderReference'];
Reference = json['Reference'];
Agent = json['Agent'];
Vin = json['Vin'];
Description = json['Description'];
ImageUrl = json['ImageUrl'];
OutrightPurchaseCorporation = json['OutrightPurchaseCorporation'];
NetPrice = json['NetPrice'];
OtrPrice = json['OtrPrice'];
ActualPrice = json['ActualPrice'];
CommissionNumber = json['CommissionNumber'];
BodyStyle = json['BodyStyle'];
Line = json['Line'];
Engine = json['Engine'];
Transmission = json['Transmission'];
Fuel = json['Fuel'];
Colour = json['Colour'];
Upholstery = json['Upholstery'];
Package = json['Package'];
FullModelYearCode = json['FullModelYearCode'];
PortArrivalDate = json['PortArrivalDate'];
ProductionDate = json['ProductionDate'];
PersonalisedOffer = JsonConverters.fromJson(json['PersonalisedOffer'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Guid': Guid,
'BackOrderReference': BackOrderReference,
'Reference': Reference,
'Agent': Agent,
'Vin': Vin,
'Description': Description,
'ImageUrl': ImageUrl,
'OutrightPurchaseCorporation': OutrightPurchaseCorporation,
'NetPrice': NetPrice,
'OtrPrice': OtrPrice,
'ActualPrice': ActualPrice,
'CommissionNumber': CommissionNumber,
'BodyStyle': BodyStyle,
'Line': Line,
'Engine': Engine,
'Transmission': Transmission,
'Fuel': Fuel,
'Colour': Colour,
'Upholstery': Upholstery,
'Package': Package,
'FullModelYearCode': FullModelYearCode,
'PortArrivalDate': PortArrivalDate,
'ProductionDate': ProductionDate,
'PersonalisedOffer': JsonConverters.toJson(PersonalisedOffer,'List<String>',context!)
};
getTypeName() => "OrderDetailByGuid";
TypeContext? context = _ctx;
}
class GetOrderDetailByGuidResponse implements IConvertible
{
OrderDetailByGuid? Order;
GetOrderDetailByGuidResponse({this.Order});
GetOrderDetailByGuidResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Order = JsonConverters.fromJson(json['Order'],'OrderDetailByGuid',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Order': JsonConverters.toJson(Order,'OrderDetailByGuid',context!)
};
getTypeName() => "GetOrderDetailByGuidResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'GetOrderDetailByGuidRequest': TypeInfo(TypeOf.Class, create:() => GetOrderDetailByGuidRequest()),
'OrderDetailByGuid': TypeInfo(TypeOf.Class, create:() => OrderDetailByGuid()),
'GetOrderDetailByGuidResponse': TypeInfo(TypeOf.Class, create:() => GetOrderDetailByGuidResponse()),
});
Dart GetOrderDetailByGuidRequest DTOs
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 /v1/order/detail/{OrderGuid} HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Order":{"Guid":"String","BackOrderReference":"String","Reference":"String","Agent":"String","Vin":"String","Description":"String","ImageUrl":"String","OutrightPurchaseCorporation":"String","NetPrice":"String","OtrPrice":"String","ActualPrice":"String","CommissionNumber":"String","BodyStyle":"String","Line":"String","Engine":"String","Transmission":"String","Fuel":"String","Colour":"String","Upholstery":"String","Package":"String","FullModelYearCode":"String","PortArrivalDate":"String","ProductionDate":"String","PersonalisedOffer":["String"]}}