GET | /v1/backorder/othermatchcsv/{Guid} | Get Back Order Matches by Guid |
---|
import 'package:servicestack/servicestack.dart';
class GetBackOrderMatchRequest implements IConvertible
{
String? Guid;
GetBackOrderMatchRequest({this.Guid});
GetBackOrderMatchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['Guid'];
return this;
}
Map<String, dynamic> toJson() => {
'Guid': Guid
};
getTypeName() => "GetBackOrderMatchRequest";
TypeContext? context = _ctx;
}
class BackOrderVehicleCsv implements IConvertible
{
String? VehicleType;
String? Vid;
String? Vin;
String? Fin;
String? CommissionNumber;
String? ChassisNumber;
String? Line;
List<String>? Packages = [];
String? ModelYear;
String? ModelYearCode;
String? Description;
String? VehicleClass;
String? RetailPrice_ExVAT;
double? RetailPrice_IncVAT;
String? OTR;
String? ActualPrice;
String? BodyStyle;
String? Model;
String? Colour;
String? ColourGroup;
String? Fuel;
String? ProductRange;
String? Engine;
bool? IsAMG;
String? Transmission;
String? Upholstery;
String? Nst;
String? BM7NST;
double? Acceleration;
double? BootCapacity;
double? TopSpeed;
String? DriveConcept;
double? CombustionPowerHp;
double? ElectricPowerKw;
double? ElectricPowerHp;
double? CombinedPowerKw;
double? CombinedPowerHP;
double? ElectricRange;
double? ElectricConsumption;
String? EmissionCombined;
String? EmissionExtraUrban;
String? EmissionUrban;
double? Emission;
String? EmissionDirective;
String? EnergyEfficiencyClass;
double? WltpCombined;
double? WltpLow;
double? WltpMedium;
double? WltpHigh;
double? WltpExtraHigh;
double? WltpEmissionCombined;
String? PortArrivalDate;
DateTime? CreationDate;
DateTime? LastUpdated;
bool? IsDisplayStock;
String? DisplayStockAgent;
bool? IsSpecialistCar;
String? Account;
String? Location;
String? CesarIdShipToParty;
String? VehicleUsageCode;
bool? IsSellable;
bool? UnderOffer;
bool? MbukSecured;
String? HalfModelYearCode;
String? FullModelYearCode;
String? ProductionDate;
bool? IsMotability;
BackOrderVehicleCsv({this.VehicleType,this.Vid,this.Vin,this.Fin,this.CommissionNumber,this.ChassisNumber,this.Line,this.Packages,this.ModelYear,this.ModelYearCode,this.Description,this.VehicleClass,this.RetailPrice_ExVAT,this.RetailPrice_IncVAT,this.OTR,this.ActualPrice,this.BodyStyle,this.Model,this.Colour,this.ColourGroup,this.Fuel,this.ProductRange,this.Engine,this.IsAMG,this.Transmission,this.Upholstery,this.Nst,this.BM7NST,this.Acceleration,this.BootCapacity,this.TopSpeed,this.DriveConcept,this.CombustionPowerHp,this.ElectricPowerKw,this.ElectricPowerHp,this.CombinedPowerKw,this.CombinedPowerHP,this.ElectricRange,this.ElectricConsumption,this.EmissionCombined,this.EmissionExtraUrban,this.EmissionUrban,this.Emission,this.EmissionDirective,this.EnergyEfficiencyClass,this.WltpCombined,this.WltpLow,this.WltpMedium,this.WltpHigh,this.WltpExtraHigh,this.WltpEmissionCombined,this.PortArrivalDate,this.CreationDate,this.LastUpdated,this.IsDisplayStock,this.DisplayStockAgent,this.IsSpecialistCar,this.Account,this.Location,this.CesarIdShipToParty,this.VehicleUsageCode,this.IsSellable,this.UnderOffer,this.MbukSecured,this.HalfModelYearCode,this.FullModelYearCode,this.ProductionDate,this.IsMotability});
BackOrderVehicleCsv.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
VehicleType = json['VehicleType'];
Vid = json['Vid'];
Vin = json['Vin'];
Fin = json['Fin'];
CommissionNumber = json['CommissionNumber'];
ChassisNumber = json['ChassisNumber'];
Line = json['Line'];
Packages = JsonConverters.fromJson(json['Packages'],'List<String>',context!);
ModelYear = json['ModelYear'];
ModelYearCode = json['ModelYearCode'];
Description = json['Description'];
VehicleClass = json['VehicleClass'];
RetailPrice_ExVAT = json['RetailPrice_ExVAT'];
RetailPrice_IncVAT = JsonConverters.toDouble(json['RetailPrice_IncVAT']);
OTR = json['OTR'];
ActualPrice = json['ActualPrice'];
BodyStyle = json['BodyStyle'];
Model = json['Model'];
Colour = json['Colour'];
ColourGroup = json['ColourGroup'];
Fuel = json['Fuel'];
ProductRange = json['ProductRange'];
Engine = json['Engine'];
IsAMG = json['IsAMG'];
Transmission = json['Transmission'];
Upholstery = json['Upholstery'];
Nst = json['Nst'];
BM7NST = json['BM7NST'];
Acceleration = JsonConverters.toDouble(json['Acceleration']);
BootCapacity = JsonConverters.toDouble(json['BootCapacity']);
TopSpeed = JsonConverters.toDouble(json['TopSpeed']);
DriveConcept = json['DriveConcept'];
CombustionPowerHp = JsonConverters.toDouble(json['CombustionPowerHp']);
ElectricPowerKw = JsonConverters.toDouble(json['ElectricPowerKw']);
ElectricPowerHp = JsonConverters.toDouble(json['ElectricPowerHp']);
CombinedPowerKw = JsonConverters.toDouble(json['CombinedPowerKw']);
CombinedPowerHP = JsonConverters.toDouble(json['CombinedPowerHP']);
ElectricRange = JsonConverters.toDouble(json['ElectricRange']);
ElectricConsumption = JsonConverters.toDouble(json['ElectricConsumption']);
EmissionCombined = json['EmissionCombined'];
EmissionExtraUrban = json['EmissionExtraUrban'];
EmissionUrban = json['EmissionUrban'];
Emission = JsonConverters.toDouble(json['Emission']);
EmissionDirective = json['EmissionDirective'];
EnergyEfficiencyClass = json['EnergyEfficiencyClass'];
WltpCombined = JsonConverters.toDouble(json['WltpCombined']);
WltpLow = JsonConverters.toDouble(json['WltpLow']);
WltpMedium = JsonConverters.toDouble(json['WltpMedium']);
WltpHigh = JsonConverters.toDouble(json['WltpHigh']);
WltpExtraHigh = JsonConverters.toDouble(json['WltpExtraHigh']);
WltpEmissionCombined = JsonConverters.toDouble(json['WltpEmissionCombined']);
PortArrivalDate = json['PortArrivalDate'];
CreationDate = JsonConverters.fromJson(json['CreationDate'],'DateTime',context!);
LastUpdated = JsonConverters.fromJson(json['LastUpdated'],'DateTime',context!);
IsDisplayStock = json['IsDisplayStock'];
DisplayStockAgent = json['DisplayStockAgent'];
IsSpecialistCar = json['IsSpecialistCar'];
Account = json['Account'];
Location = json['Location'];
CesarIdShipToParty = json['CesarIdShipToParty'];
VehicleUsageCode = json['VehicleUsageCode'];
IsSellable = json['IsSellable'];
UnderOffer = json['UnderOffer'];
MbukSecured = json['MbukSecured'];
HalfModelYearCode = json['HalfModelYearCode'];
FullModelYearCode = json['FullModelYearCode'];
ProductionDate = json['ProductionDate'];
IsMotability = json['IsMotability'];
return this;
}
Map<String, dynamic> toJson() => {
'VehicleType': VehicleType,
'Vid': Vid,
'Vin': Vin,
'Fin': Fin,
'CommissionNumber': CommissionNumber,
'ChassisNumber': ChassisNumber,
'Line': Line,
'Packages': JsonConverters.toJson(Packages,'List<String>',context!),
'ModelYear': ModelYear,
'ModelYearCode': ModelYearCode,
'Description': Description,
'VehicleClass': VehicleClass,
'RetailPrice_ExVAT': RetailPrice_ExVAT,
'RetailPrice_IncVAT': RetailPrice_IncVAT,
'OTR': OTR,
'ActualPrice': ActualPrice,
'BodyStyle': BodyStyle,
'Model': Model,
'Colour': Colour,
'ColourGroup': ColourGroup,
'Fuel': Fuel,
'ProductRange': ProductRange,
'Engine': Engine,
'IsAMG': IsAMG,
'Transmission': Transmission,
'Upholstery': Upholstery,
'Nst': Nst,
'BM7NST': BM7NST,
'Acceleration': Acceleration,
'BootCapacity': BootCapacity,
'TopSpeed': TopSpeed,
'DriveConcept': DriveConcept,
'CombustionPowerHp': CombustionPowerHp,
'ElectricPowerKw': ElectricPowerKw,
'ElectricPowerHp': ElectricPowerHp,
'CombinedPowerKw': CombinedPowerKw,
'CombinedPowerHP': CombinedPowerHP,
'ElectricRange': ElectricRange,
'ElectricConsumption': ElectricConsumption,
'EmissionCombined': EmissionCombined,
'EmissionExtraUrban': EmissionExtraUrban,
'EmissionUrban': EmissionUrban,
'Emission': Emission,
'EmissionDirective': EmissionDirective,
'EnergyEfficiencyClass': EnergyEfficiencyClass,
'WltpCombined': WltpCombined,
'WltpLow': WltpLow,
'WltpMedium': WltpMedium,
'WltpHigh': WltpHigh,
'WltpExtraHigh': WltpExtraHigh,
'WltpEmissionCombined': WltpEmissionCombined,
'PortArrivalDate': PortArrivalDate,
'CreationDate': JsonConverters.toJson(CreationDate,'DateTime',context!),
'LastUpdated': JsonConverters.toJson(LastUpdated,'DateTime',context!),
'IsDisplayStock': IsDisplayStock,
'DisplayStockAgent': DisplayStockAgent,
'IsSpecialistCar': IsSpecialistCar,
'Account': Account,
'Location': Location,
'CesarIdShipToParty': CesarIdShipToParty,
'VehicleUsageCode': VehicleUsageCode,
'IsSellable': IsSellable,
'UnderOffer': UnderOffer,
'MbukSecured': MbukSecured,
'HalfModelYearCode': HalfModelYearCode,
'FullModelYearCode': FullModelYearCode,
'ProductionDate': ProductionDate,
'IsMotability': IsMotability
};
getTypeName() => "BackOrderVehicleCsv";
TypeContext? context = _ctx;
}
class GetBackOrderVehicleOtherMatchCsvResponse implements IConvertible
{
List<BackOrderVehicleCsv>? Vehicles = [];
GetBackOrderVehicleOtherMatchCsvResponse({this.Vehicles});
GetBackOrderVehicleOtherMatchCsvResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Vehicles = JsonConverters.fromJson(json['Vehicles'],'List<BackOrderVehicleCsv>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Vehicles': JsonConverters.toJson(Vehicles,'List<BackOrderVehicleCsv>',context!)
};
getTypeName() => "GetBackOrderVehicleOtherMatchCsvResponse";
TypeContext? context = _ctx;
}
class GetBackOrderVehicleOtherMatchCsvRequest extends GetBackOrderMatchRequest implements IGet, IConvertible
{
GetBackOrderVehicleOtherMatchCsvRequest();
GetBackOrderVehicleOtherMatchCsvRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "GetBackOrderVehicleOtherMatchCsvRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'GetBackOrderMatchRequest': TypeInfo(TypeOf.Class, create:() => GetBackOrderMatchRequest()),
'BackOrderVehicleCsv': TypeInfo(TypeOf.Class, create:() => BackOrderVehicleCsv()),
'GetBackOrderVehicleOtherMatchCsvResponse': TypeInfo(TypeOf.Class, create:() => GetBackOrderVehicleOtherMatchCsvResponse()),
'List<BackOrderVehicleCsv>': TypeInfo(TypeOf.Class, create:() => <BackOrderVehicleCsv>[]),
'GetBackOrderVehicleOtherMatchCsvRequest': TypeInfo(TypeOf.Class, create:() => GetBackOrderVehicleOtherMatchCsvRequest()),
});
Dart GetBackOrderVehicleOtherMatchCsvRequest 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/othermatchcsv/{Guid} 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 { Vehicles: [ { VehicleType: String, Vid: String, Vin: String, Fin: String, CommissionNumber: String, ChassisNumber: String, Line: String, Packages: [ String ], ModelYear: String, ModelYearCode: String, Description: String, VehicleClass: String, RetailPrice_ExVAT: String, RetailPrice_IncVAT: 0, OTR: String, ActualPrice: String, BodyStyle: String, Model: String, Colour: String, ColourGroup: String, Fuel: String, ProductRange: String, Engine: String, IsAMG: False, Transmission: String, Upholstery: String, Nst: String, BM7NST: String, Acceleration: 0, BootCapacity: 0, TopSpeed: 0, DriveConcept: String, CombustionPowerHp: 0, ElectricPowerKw: 0, ElectricPowerHp: 0, CombinedPowerKw: 0, CombinedPowerHP: 0, ElectricRange: 0, ElectricConsumption: 0, EmissionCombined: String, EmissionExtraUrban: String, EmissionUrban: String, Emission: 0, EmissionDirective: String, EnergyEfficiencyClass: String, WltpCombined: 0, WltpLow: 0, WltpMedium: 0, WltpHigh: 0, WltpExtraHigh: 0, WltpEmissionCombined: 0, PortArrivalDate: String, CreationDate: 0001-01-01, LastUpdated: 0001-01-01, IsDisplayStock: False, DisplayStockAgent: String, IsSpecialistCar: False, Account: String, Location: String, CesarIdShipToParty: String, VehicleUsageCode: String, IsSellable: False, UnderOffer: False, MbukSecured: False, HalfModelYearCode: String, FullModelYearCode: String, ProductionDate: String, IsMotability: False } ] }