GET | /v1/backorder/detail/{BackOrderGuid} | Get Back Order detail by Guid |
---|
import 'package:servicestack/servicestack.dart';
class GetBackOrderDetailRequest implements IConvertible
{
String? BackOrderGuid;
GetBackOrderDetailRequest({this.BackOrderGuid});
GetBackOrderDetailRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BackOrderGuid = json['BackOrderGuid'];
return this;
}
Map<String, dynamic> toJson() => {
'BackOrderGuid': BackOrderGuid
};
getTypeName() => "GetBackOrderDetailRequest";
TypeContext? context = _ctx;
}
class BackOrderResolveDetail implements IConvertible
{
String? Guid;
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;
BackOrderResolveDetail({this.Guid,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});
BackOrderResolveDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['Guid'];
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'];
return this;
}
Map<String, dynamic> toJson() => {
'Guid': Guid,
'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
};
getTypeName() => "BackOrderResolveDetail";
TypeContext? context = _ctx;
}
class GetBackOrderDetailResponse implements IConvertible
{
BackOrderResolveDetail? BackOrder;
GetBackOrderDetailResponse({this.BackOrder});
GetBackOrderDetailResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BackOrder = JsonConverters.fromJson(json['BackOrder'],'BackOrderResolveDetail',context!);
return this;
}
Map<String, dynamic> toJson() => {
'BackOrder': JsonConverters.toJson(BackOrder,'BackOrderResolveDetail',context!)
};
getTypeName() => "GetBackOrderDetailResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'GetBackOrderDetailRequest': TypeInfo(TypeOf.Class, create:() => GetBackOrderDetailRequest()),
'BackOrderResolveDetail': TypeInfo(TypeOf.Class, create:() => BackOrderResolveDetail()),
'GetBackOrderDetailResponse': TypeInfo(TypeOf.Class, create:() => GetBackOrderDetailResponse()),
});
Dart GetBackOrderDetailRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/backorder/detail/{BackOrderGuid} HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { BackOrder: { Guid: 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 } }