POST | /v1/backorder/vehicleimports |
---|
import 'package:servicestack/servicestack.dart';
class UpdateBackOrderVehicleImportsResponse implements IConvertible
{
UpdateBackOrderVehicleImportsResponse();
UpdateBackOrderVehicleImportsResponse.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "UpdateBackOrderVehicleImportsResponse";
TypeContext? context = _ctx;
}
class Vehicle implements IConvertible
{
String? Vin;
Vehicle({this.Vin});
Vehicle.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Vin = json['Vin'];
return this;
}
Map<String, dynamic> toJson() => {
'Vin': Vin
};
getTypeName() => "Vehicle";
TypeContext? context = _ctx;
}
class VehicleCriteriaMatch implements IConvertible
{
bool? Fuel;
bool? Transmission;
bool? Colour;
bool? Upholstery;
bool? Line;
bool? Engine;
bool? BodyStyle;
bool? Packages;
VehicleCriteriaMatch({this.Fuel,this.Transmission,this.Colour,this.Upholstery,this.Line,this.Engine,this.BodyStyle,this.Packages});
VehicleCriteriaMatch.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Fuel = json['Fuel'];
Transmission = json['Transmission'];
Colour = json['Colour'];
Upholstery = json['Upholstery'];
Line = json['Line'];
Engine = json['Engine'];
BodyStyle = json['BodyStyle'];
Packages = json['Packages'];
return this;
}
Map<String, dynamic> toJson() => {
'Fuel': Fuel,
'Transmission': Transmission,
'Colour': Colour,
'Upholstery': Upholstery,
'Line': Line,
'Engine': Engine,
'BodyStyle': BodyStyle,
'Packages': Packages
};
getTypeName() => "VehicleCriteriaMatch";
TypeContext? context = _ctx;
}
enum OfferPriceProductType
{
LIST_PRICE,
NUMBER_PLATE_FEE,
DELIVERY_CHARGE,
FUEL_CHARGE,
MANUFACTURER_OFFER,
PERSONALISED_MONEYOFFER,
PERSONALISED_NONMONEYOFFER,
PERSONALISED_NONMONEYOFFER_NEG,
SERVICE,
SERVICE_NEG,
GOVERNMENT_GRANT,
OUTRIGHT_PURCHASE_DISCOUNT,
VIP_OFFER,
WALLBOX_OFFER,
WALLBOX_OFFER_NEG,
ROAD_FUND_LICENCE,
FIRST_REGISTRATION_FEE,
NOT_FOUND,
ACCESSORY_OFFER,
ACCESSORY_OFFER_NEG,
MOTABILITY_DISCOUNT,
}
class Price implements IConvertible
{
String? Id;
String? Description;
double? Net;
double? VAT;
double? Gross;
OfferPriceProductType? Product;
Price({this.Id,this.Description,this.Net,this.VAT,this.Gross,this.Product});
Price.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Description = json['Description'];
Net = JsonConverters.toDouble(json['Net']);
VAT = JsonConverters.toDouble(json['VAT']);
Gross = JsonConverters.toDouble(json['Gross']);
Product = JsonConverters.fromJson(json['Product'],'OfferPriceProductType',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Description': Description,
'Net': Net,
'VAT': VAT,
'Gross': Gross,
'Product': JsonConverters.toJson(Product,'OfferPriceProductType',context!)
};
getTypeName() => "Price";
TypeContext? context = _ctx;
}
class RetailerOpeningTime implements IConvertible
{
String? Day;
String? OpenFrom;
String? OpenTo;
String? Special;
RetailerOpeningTime({this.Day,this.OpenFrom,this.OpenTo,this.Special});
RetailerOpeningTime.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Day = json['Day'];
OpenFrom = json['OpenFrom'];
OpenTo = json['OpenTo'];
Special = json['Special'];
return this;
}
Map<String, dynamic> toJson() => {
'Day': Day,
'OpenFrom': OpenFrom,
'OpenTo': OpenTo,
'Special': Special
};
getTypeName() => "RetailerOpeningTime";
TypeContext? context = _ctx;
}
class RetailerOpeningTimes implements IConvertible
{
List<RetailerOpeningTime>? New = [];
List<RetailerOpeningTime>? Used = [];
RetailerOpeningTimes({this.New,this.Used});
RetailerOpeningTimes.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
New = JsonConverters.fromJson(json['New'],'List<RetailerOpeningTime>',context!);
Used = JsonConverters.fromJson(json['Used'],'List<RetailerOpeningTime>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'New': JsonConverters.toJson(New,'List<RetailerOpeningTime>',context!),
'Used': JsonConverters.toJson(Used,'List<RetailerOpeningTime>',context!)
};
getTypeName() => "RetailerOpeningTimes";
TypeContext? context = _ctx;
}
class Retailer implements IConvertible
{
int? Id;
String? GssnId;
String? Description;
String? Street;
String? City;
String? Postcode;
String? GoogleMapPostcode;
String? Phone;
String? Fax;
String? Email;
String? Website;
String? RetailerGroupId;
String? RetailerGroupName;
bool? IsOnline;
bool? IsNewCarRetailer;
bool? IsUsedCarRetailer;
bool? IsCentralRetailer;
bool? ChatEnabled;
bool? TradeInEnabled;
bool? smart;
String? DisplayPhoneNumberNew;
String? DisplayPhoneNumberUsed;
double? Latitude;
double? Longitude;
String? smartDescription;
String? smartWebsite;
String? smartPhone;
String? LegacyId;
bool? Agent;
int? MarketAreaId;
String? DigitalLoungeParentGssnId;
bool? SendLeadsToDigitalLoungeParent;
RetailerOpeningTimes? OpeningTimes;
Retailer({this.Id,this.GssnId,this.Description,this.Street,this.City,this.Postcode,this.GoogleMapPostcode,this.Phone,this.Fax,this.Email,this.Website,this.RetailerGroupId,this.RetailerGroupName,this.IsOnline,this.IsNewCarRetailer,this.IsUsedCarRetailer,this.IsCentralRetailer,this.ChatEnabled,this.TradeInEnabled,this.smart,this.DisplayPhoneNumberNew,this.DisplayPhoneNumberUsed,this.Latitude,this.Longitude,this.smartDescription,this.smartWebsite,this.smartPhone,this.LegacyId,this.Agent,this.MarketAreaId,this.DigitalLoungeParentGssnId,this.SendLeadsToDigitalLoungeParent,this.OpeningTimes});
Retailer.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
GssnId = json['GssnId'];
Description = json['Description'];
Street = json['Street'];
City = json['City'];
Postcode = json['Postcode'];
GoogleMapPostcode = json['GoogleMapPostcode'];
Phone = json['Phone'];
Fax = json['Fax'];
Email = json['Email'];
Website = json['Website'];
RetailerGroupId = json['RetailerGroupId'];
RetailerGroupName = json['RetailerGroupName'];
IsOnline = json['IsOnline'];
IsNewCarRetailer = json['IsNewCarRetailer'];
IsUsedCarRetailer = json['IsUsedCarRetailer'];
IsCentralRetailer = json['IsCentralRetailer'];
ChatEnabled = json['ChatEnabled'];
TradeInEnabled = json['TradeInEnabled'];
smart = json['smart'];
DisplayPhoneNumberNew = json['DisplayPhoneNumberNew'];
DisplayPhoneNumberUsed = json['DisplayPhoneNumberUsed'];
Latitude = JsonConverters.toDouble(json['Latitude']);
Longitude = JsonConverters.toDouble(json['Longitude']);
smartDescription = json['smartDescription'];
smartWebsite = json['smartWebsite'];
smartPhone = json['smartPhone'];
LegacyId = json['LegacyId'];
Agent = json['Agent'];
MarketAreaId = json['MarketAreaId'];
DigitalLoungeParentGssnId = json['DigitalLoungeParentGssnId'];
SendLeadsToDigitalLoungeParent = json['SendLeadsToDigitalLoungeParent'];
OpeningTimes = JsonConverters.fromJson(json['OpeningTimes'],'RetailerOpeningTimes',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'GssnId': GssnId,
'Description': Description,
'Street': Street,
'City': City,
'Postcode': Postcode,
'GoogleMapPostcode': GoogleMapPostcode,
'Phone': Phone,
'Fax': Fax,
'Email': Email,
'Website': Website,
'RetailerGroupId': RetailerGroupId,
'RetailerGroupName': RetailerGroupName,
'IsOnline': IsOnline,
'IsNewCarRetailer': IsNewCarRetailer,
'IsUsedCarRetailer': IsUsedCarRetailer,
'IsCentralRetailer': IsCentralRetailer,
'ChatEnabled': ChatEnabled,
'TradeInEnabled': TradeInEnabled,
'smart': smart,
'DisplayPhoneNumberNew': DisplayPhoneNumberNew,
'DisplayPhoneNumberUsed': DisplayPhoneNumberUsed,
'Latitude': Latitude,
'Longitude': Longitude,
'smartDescription': smartDescription,
'smartWebsite': smartWebsite,
'smartPhone': smartPhone,
'LegacyId': LegacyId,
'Agent': Agent,
'MarketAreaId': MarketAreaId,
'DigitalLoungeParentGssnId': DigitalLoungeParentGssnId,
'SendLeadsToDigitalLoungeParent': SendLeadsToDigitalLoungeParent,
'OpeningTimes': JsonConverters.toJson(OpeningTimes,'RetailerOpeningTimes',context!)
};
getTypeName() => "Retailer";
TypeContext? context = _ctx;
}
class VehicleBaseDetail extends Vehicle implements ICommissionNumber, IConvertible
{
String? Description;
String? CommissionNumber;
String? PortArrivalDate;
String? OfferExpiryDate;
String? Fuel;
String? Transmission;
String? TransmissionType;
String? Colour;
String? ColourDescription;
String? ImageUrl;
bool? Specialist;
VehicleCriteriaMatch? VehicleCriteriaMatch;
String? ColourGroup;
String? Model;
String? BodyStyle;
String? Brand;
String? Engine;
String? EngineDescription;
String? Line;
String? Upholstery;
String? UpholsteryDescription;
List<String>? Packages = [];
double? P11D;
List<Price>? Prices = [];
String? VehicleClass;
String? ProductRange;
String? VehicleType;
double? Emission;
String? Baumuster;
bool? IsSellable;
String? Bm7NST;
double? ElectricRange;
double? ElectricConsumption;
bool? IsDisplayStock;
int? DisplayRetailer_Id;
String? DisplayRetailer;
String? DisplayRetailerGssnId;
Retailer? Retailer;
int? Age;
String? ModelYearCode;
String? HalfModelYearCode;
String? FullModelYearCode;
String? ProductionDate;
String? ChassisNumber;
bool? EligibleForIntegratedServiceCare;
VehicleBaseDetail({this.Description,this.CommissionNumber,this.PortArrivalDate,this.OfferExpiryDate,this.Fuel,this.Transmission,this.TransmissionType,this.Colour,this.ColourDescription,this.ImageUrl,this.Specialist,this.VehicleCriteriaMatch,this.ColourGroup,this.Model,this.BodyStyle,this.Brand,this.Engine,this.EngineDescription,this.Line,this.Upholstery,this.UpholsteryDescription,this.Packages,this.P11D,this.Prices,this.VehicleClass,this.ProductRange,this.VehicleType,this.Emission,this.Baumuster,this.IsSellable,this.Bm7NST,this.ElectricRange,this.ElectricConsumption,this.IsDisplayStock,this.DisplayRetailer_Id,this.DisplayRetailer,this.DisplayRetailerGssnId,this.Retailer,this.Age,this.ModelYearCode,this.HalfModelYearCode,this.FullModelYearCode,this.ProductionDate,this.ChassisNumber,this.EligibleForIntegratedServiceCare});
VehicleBaseDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Description = json['Description'];
CommissionNumber = json['CommissionNumber'];
PortArrivalDate = json['PortArrivalDate'];
OfferExpiryDate = json['OfferExpiryDate'];
Fuel = json['Fuel'];
Transmission = json['Transmission'];
TransmissionType = json['TransmissionType'];
Colour = json['Colour'];
ColourDescription = json['ColourDescription'];
ImageUrl = json['ImageUrl'];
Specialist = json['Specialist'];
VehicleCriteriaMatch = JsonConverters.fromJson(json['VehicleCriteriaMatch'],'VehicleCriteriaMatch',context!);
ColourGroup = json['ColourGroup'];
Model = json['Model'];
BodyStyle = json['BodyStyle'];
Brand = json['Brand'];
Engine = json['Engine'];
EngineDescription = json['EngineDescription'];
Line = json['Line'];
Upholstery = json['Upholstery'];
UpholsteryDescription = json['UpholsteryDescription'];
Packages = JsonConverters.fromJson(json['Packages'],'List<String>',context!);
P11D = JsonConverters.toDouble(json['P11D']);
Prices = JsonConverters.fromJson(json['Prices'],'List<Price>',context!);
VehicleClass = json['VehicleClass'];
ProductRange = json['ProductRange'];
VehicleType = json['VehicleType'];
Emission = JsonConverters.toDouble(json['Emission']);
Baumuster = json['Baumuster'];
IsSellable = json['IsSellable'];
Bm7NST = json['Bm7NST'];
ElectricRange = JsonConverters.toDouble(json['ElectricRange']);
ElectricConsumption = JsonConverters.toDouble(json['ElectricConsumption']);
IsDisplayStock = json['IsDisplayStock'];
DisplayRetailer_Id = json['DisplayRetailer_Id'];
DisplayRetailer = json['DisplayRetailer'];
DisplayRetailerGssnId = json['DisplayRetailerGssnId'];
Retailer = JsonConverters.fromJson(json['Retailer'],'Retailer',context!);
Age = json['Age'];
ModelYearCode = json['ModelYearCode'];
HalfModelYearCode = json['HalfModelYearCode'];
FullModelYearCode = json['FullModelYearCode'];
ProductionDate = json['ProductionDate'];
ChassisNumber = json['ChassisNumber'];
EligibleForIntegratedServiceCare = json['EligibleForIntegratedServiceCare'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Description': Description,
'CommissionNumber': CommissionNumber,
'PortArrivalDate': PortArrivalDate,
'OfferExpiryDate': OfferExpiryDate,
'Fuel': Fuel,
'Transmission': Transmission,
'TransmissionType': TransmissionType,
'Colour': Colour,
'ColourDescription': ColourDescription,
'ImageUrl': ImageUrl,
'Specialist': Specialist,
'VehicleCriteriaMatch': JsonConverters.toJson(VehicleCriteriaMatch,'VehicleCriteriaMatch',context!),
'ColourGroup': ColourGroup,
'Model': Model,
'BodyStyle': BodyStyle,
'Brand': Brand,
'Engine': Engine,
'EngineDescription': EngineDescription,
'Line': Line,
'Upholstery': Upholstery,
'UpholsteryDescription': UpholsteryDescription,
'Packages': JsonConverters.toJson(Packages,'List<String>',context!),
'P11D': P11D,
'Prices': JsonConverters.toJson(Prices,'List<Price>',context!),
'VehicleClass': VehicleClass,
'ProductRange': ProductRange,
'VehicleType': VehicleType,
'Emission': Emission,
'Baumuster': Baumuster,
'IsSellable': IsSellable,
'Bm7NST': Bm7NST,
'ElectricRange': ElectricRange,
'ElectricConsumption': ElectricConsumption,
'IsDisplayStock': IsDisplayStock,
'DisplayRetailer_Id': DisplayRetailer_Id,
'DisplayRetailer': DisplayRetailer,
'DisplayRetailerGssnId': DisplayRetailerGssnId,
'Retailer': JsonConverters.toJson(Retailer,'Retailer',context!),
'Age': Age,
'ModelYearCode': ModelYearCode,
'HalfModelYearCode': HalfModelYearCode,
'FullModelYearCode': FullModelYearCode,
'ProductionDate': ProductionDate,
'ChassisNumber': ChassisNumber,
'EligibleForIntegratedServiceCare': EligibleForIntegratedServiceCare
});
getTypeName() => "VehicleBaseDetail";
TypeContext? context = _ctx;
}
class VehicleConsumption implements IConvertible
{
int? Id;
double? Lkm;
double? Mpg;
VehicleConsumption({this.Id,this.Lkm,this.Mpg});
VehicleConsumption.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Lkm = JsonConverters.toDouble(json['Lkm']);
Mpg = JsonConverters.toDouble(json['Mpg']);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Lkm': Lkm,
'Mpg': Mpg
};
getTypeName() => "VehicleConsumption";
TypeContext? context = _ctx;
}
class Equipment implements IConvertible
{
int? Id;
String? Code;
String? Description;
Equipment({this.Id,this.Code,this.Description});
Equipment.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Code = json['Code'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Code': Code,
'Description': Description
};
getTypeName() => "Equipment";
TypeContext? context = _ctx;
}
class Equipmentv2 extends Equipment implements IConvertible
{
int? Importance;
bool? IsAdditional;
Equipmentv2({this.Importance,this.IsAdditional});
Equipmentv2.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Importance = json['Importance'];
IsAdditional = json['IsAdditional'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Importance': Importance,
'IsAdditional': IsAdditional
});
getTypeName() => "Equipmentv2";
TypeContext? context = _ctx;
}
class VehicleEquipmentCategory implements IConvertible
{
int? Order;
String? Code;
String? Description;
List<Equipmentv2>? Equipment;
VehicleEquipmentCategory({this.Order,this.Code,this.Description,this.Equipment});
VehicleEquipmentCategory.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Order = json['Order'];
Code = json['Code'];
Description = json['Description'];
Equipment = JsonConverters.fromJson(json['Equipment'],'List<Equipmentv2>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Order': Order,
'Code': Code,
'Description': Description,
'Equipment': JsonConverters.toJson(Equipment,'List<Equipmentv2>',context!)
};
getTypeName() => "VehicleEquipmentCategory";
TypeContext? context = _ctx;
}
class VehicleEmissionClass implements IConvertible
{
String? Colour;
String? Rating;
VehicleEmissionClass({this.Colour,this.Rating});
VehicleEmissionClass.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Colour = json['Colour'];
Rating = json['Rating'];
return this;
}
Map<String, dynamic> toJson() => {
'Colour': Colour,
'Rating': Rating
};
getTypeName() => "VehicleEmissionClass";
TypeContext? context = _ctx;
}
class VehicleAttribute implements IConvertible
{
String? Description;
String? Value;
VehicleAttribute({this.Description,this.Value});
VehicleAttribute.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Description = json['Description'];
Value = json['Value'];
return this;
}
Map<String, dynamic> toJson() => {
'Description': Description,
'Value': Value
};
getTypeName() => "VehicleAttribute";
TypeContext? context = _ctx;
}
class VehicleIntegratedServiceCareOption implements IConvertible
{
String? OptionCode;
String? BM7NST;
String? FullModelYear;
String? IntegratedProductType;
String? CustomerDescription;
String? OneAgentProductType;
VehicleIntegratedServiceCareOption({this.OptionCode,this.BM7NST,this.FullModelYear,this.IntegratedProductType,this.CustomerDescription,this.OneAgentProductType});
VehicleIntegratedServiceCareOption.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
OptionCode = json['OptionCode'];
BM7NST = json['BM7NST'];
FullModelYear = json['FullModelYear'];
IntegratedProductType = json['IntegratedProductType'];
CustomerDescription = json['CustomerDescription'];
OneAgentProductType = json['OneAgentProductType'];
return this;
}
Map<String, dynamic> toJson() => {
'OptionCode': OptionCode,
'BM7NST': BM7NST,
'FullModelYear': FullModelYear,
'IntegratedProductType': IntegratedProductType,
'CustomerDescription': CustomerDescription,
'OneAgentProductType': OneAgentProductType
};
getTypeName() => "VehicleIntegratedServiceCareOption";
TypeContext? context = _ctx;
}
class VehicleDetail extends VehicleBaseDetail implements IConvertible
{
String? RetailPrice_ExVAT;
String? OTR;
String? ActualPrice;
String? TotalOfferValue;
bool? IsHOBackOrderAccountVehicle;
VehicleConsumption? ConsumptionCombined;
VehicleConsumption? ConsumptionExtraUrban;
VehicleConsumption? ConsumptionUrban;
VehicleConsumption? WltpFuelConsumptionCombined;
VehicleConsumption? WltpFuelConsumptionExtraHigh;
VehicleConsumption? WltpFuelConsumptionHigh;
VehicleConsumption? WltpFuelConsumptionLow;
VehicleConsumption? WltpFuelConsumptionMedium;
List<VehicleEquipmentCategory>? EquipmentCategories;
VehicleEmissionClass? VehicleEnergyEfficiencyClass;
List<VehicleAttribute>? VehicleData;
List<VehicleIntegratedServiceCareOption>? IntegratedProducts = [];
List<String>? IspVehicleCustomerDescriptions;
String? ColourCode;
String? UpholsteryCode;
VehicleDetail({this.RetailPrice_ExVAT,this.OTR,this.ActualPrice,this.TotalOfferValue,this.IsHOBackOrderAccountVehicle,this.ConsumptionCombined,this.ConsumptionExtraUrban,this.ConsumptionUrban,this.WltpFuelConsumptionCombined,this.WltpFuelConsumptionExtraHigh,this.WltpFuelConsumptionHigh,this.WltpFuelConsumptionLow,this.WltpFuelConsumptionMedium,this.EquipmentCategories,this.VehicleEnergyEfficiencyClass,this.VehicleData,this.IntegratedProducts,this.IspVehicleCustomerDescriptions,this.ColourCode,this.UpholsteryCode});
VehicleDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
RetailPrice_ExVAT = json['RetailPrice_ExVAT'];
OTR = json['OTR'];
ActualPrice = json['ActualPrice'];
TotalOfferValue = json['TotalOfferValue'];
IsHOBackOrderAccountVehicle = json['IsHOBackOrderAccountVehicle'];
ConsumptionCombined = JsonConverters.fromJson(json['ConsumptionCombined'],'VehicleConsumption',context!);
ConsumptionExtraUrban = JsonConverters.fromJson(json['ConsumptionExtraUrban'],'VehicleConsumption',context!);
ConsumptionUrban = JsonConverters.fromJson(json['ConsumptionUrban'],'VehicleConsumption',context!);
WltpFuelConsumptionCombined = JsonConverters.fromJson(json['WltpFuelConsumptionCombined'],'VehicleConsumption',context!);
WltpFuelConsumptionExtraHigh = JsonConverters.fromJson(json['WltpFuelConsumptionExtraHigh'],'VehicleConsumption',context!);
WltpFuelConsumptionHigh = JsonConverters.fromJson(json['WltpFuelConsumptionHigh'],'VehicleConsumption',context!);
WltpFuelConsumptionLow = JsonConverters.fromJson(json['WltpFuelConsumptionLow'],'VehicleConsumption',context!);
WltpFuelConsumptionMedium = JsonConverters.fromJson(json['WltpFuelConsumptionMedium'],'VehicleConsumption',context!);
EquipmentCategories = JsonConverters.fromJson(json['EquipmentCategories'],'List<VehicleEquipmentCategory>',context!);
VehicleEnergyEfficiencyClass = JsonConverters.fromJson(json['VehicleEnergyEfficiencyClass'],'VehicleEmissionClass',context!);
VehicleData = JsonConverters.fromJson(json['VehicleData'],'List<VehicleAttribute>',context!);
IntegratedProducts = JsonConverters.fromJson(json['IntegratedProducts'],'List<VehicleIntegratedServiceCareOption>',context!);
IspVehicleCustomerDescriptions = JsonConverters.fromJson(json['IspVehicleCustomerDescriptions'],'List<String>',context!);
ColourCode = json['ColourCode'];
UpholsteryCode = json['UpholsteryCode'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'RetailPrice_ExVAT': RetailPrice_ExVAT,
'OTR': OTR,
'ActualPrice': ActualPrice,
'TotalOfferValue': TotalOfferValue,
'IsHOBackOrderAccountVehicle': IsHOBackOrderAccountVehicle,
'ConsumptionCombined': JsonConverters.toJson(ConsumptionCombined,'VehicleConsumption',context!),
'ConsumptionExtraUrban': JsonConverters.toJson(ConsumptionExtraUrban,'VehicleConsumption',context!),
'ConsumptionUrban': JsonConverters.toJson(ConsumptionUrban,'VehicleConsumption',context!),
'WltpFuelConsumptionCombined': JsonConverters.toJson(WltpFuelConsumptionCombined,'VehicleConsumption',context!),
'WltpFuelConsumptionExtraHigh': JsonConverters.toJson(WltpFuelConsumptionExtraHigh,'VehicleConsumption',context!),
'WltpFuelConsumptionHigh': JsonConverters.toJson(WltpFuelConsumptionHigh,'VehicleConsumption',context!),
'WltpFuelConsumptionLow': JsonConverters.toJson(WltpFuelConsumptionLow,'VehicleConsumption',context!),
'WltpFuelConsumptionMedium': JsonConverters.toJson(WltpFuelConsumptionMedium,'VehicleConsumption',context!),
'EquipmentCategories': JsonConverters.toJson(EquipmentCategories,'List<VehicleEquipmentCategory>',context!),
'VehicleEnergyEfficiencyClass': JsonConverters.toJson(VehicleEnergyEfficiencyClass,'VehicleEmissionClass',context!),
'VehicleData': JsonConverters.toJson(VehicleData,'List<VehicleAttribute>',context!),
'IntegratedProducts': JsonConverters.toJson(IntegratedProducts,'List<VehicleIntegratedServiceCareOption>',context!),
'IspVehicleCustomerDescriptions': JsonConverters.toJson(IspVehicleCustomerDescriptions,'List<String>',context!),
'ColourCode': ColourCode,
'UpholsteryCode': UpholsteryCode
});
getTypeName() => "VehicleDetail";
TypeContext? context = _ctx;
}
class VehicleImport extends Vehicle implements IConvertible
{
String? CommissionNumber;
bool? Sellable;
VehicleDetail? Vehicle;
VehicleImport({this.CommissionNumber,this.Sellable,this.Vehicle});
VehicleImport.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
CommissionNumber = json['CommissionNumber'];
Sellable = json['Sellable'];
Vehicle = JsonConverters.fromJson(json['Vehicle'],'VehicleDetail',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'CommissionNumber': CommissionNumber,
'Sellable': Sellable,
'Vehicle': JsonConverters.toJson(Vehicle,'VehicleDetail',context!)
});
getTypeName() => "VehicleImport";
TypeContext? context = _ctx;
}
// @ApiResponse(Description="Success", StatusCode=200)
// @ApiResponse(Description="BadRequest", StatusCode=400)
class UpdateBackOrderVehicleImportsRequest implements IPost, IConvertible
{
List<VehicleImport>? VehicleImports = [];
UpdateBackOrderVehicleImportsRequest({this.VehicleImports});
UpdateBackOrderVehicleImportsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
VehicleImports = JsonConverters.fromJson(json['VehicleImports'],'List<VehicleImport>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'VehicleImports': JsonConverters.toJson(VehicleImports,'List<VehicleImport>',context!)
};
getTypeName() => "UpdateBackOrderVehicleImportsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'UpdateBackOrderVehicleImportsResponse': TypeInfo(TypeOf.Class, create:() => UpdateBackOrderVehicleImportsResponse()),
'Vehicle': TypeInfo(TypeOf.Class, create:() => Vehicle()),
'VehicleCriteriaMatch': TypeInfo(TypeOf.Class, create:() => VehicleCriteriaMatch()),
'OfferPriceProductType': TypeInfo(TypeOf.Enum, enumValues:OfferPriceProductType.values),
'Price': TypeInfo(TypeOf.Class, create:() => Price()),
'RetailerOpeningTime': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTime()),
'RetailerOpeningTimes': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTimes()),
'List<RetailerOpeningTime>': TypeInfo(TypeOf.Class, create:() => <RetailerOpeningTime>[]),
'Retailer': TypeInfo(TypeOf.Class, create:() => Retailer()),
'VehicleBaseDetail': TypeInfo(TypeOf.Class, create:() => VehicleBaseDetail()),
'List<Price>': TypeInfo(TypeOf.Class, create:() => <Price>[]),
'VehicleConsumption': TypeInfo(TypeOf.Class, create:() => VehicleConsumption()),
'Equipment': TypeInfo(TypeOf.Class, create:() => Equipment()),
'Equipmentv2': TypeInfo(TypeOf.Class, create:() => Equipmentv2()),
'VehicleEquipmentCategory': TypeInfo(TypeOf.Class, create:() => VehicleEquipmentCategory()),
'List<Equipmentv2>': TypeInfo(TypeOf.Class, create:() => <Equipmentv2>[]),
'VehicleEmissionClass': TypeInfo(TypeOf.Class, create:() => VehicleEmissionClass()),
'VehicleAttribute': TypeInfo(TypeOf.Class, create:() => VehicleAttribute()),
'VehicleIntegratedServiceCareOption': TypeInfo(TypeOf.Class, create:() => VehicleIntegratedServiceCareOption()),
'VehicleDetail': TypeInfo(TypeOf.Class, create:() => VehicleDetail()),
'List<VehicleEquipmentCategory>': TypeInfo(TypeOf.Class, create:() => <VehicleEquipmentCategory>[]),
'List<VehicleAttribute>': TypeInfo(TypeOf.Class, create:() => <VehicleAttribute>[]),
'List<VehicleIntegratedServiceCareOption>': TypeInfo(TypeOf.Class, create:() => <VehicleIntegratedServiceCareOption>[]),
'VehicleImport': TypeInfo(TypeOf.Class, create:() => VehicleImport()),
'UpdateBackOrderVehicleImportsRequest': TypeInfo(TypeOf.Class, create:() => UpdateBackOrderVehicleImportsRequest()),
'List<VehicleImport>': TypeInfo(TypeOf.Class, create:() => <VehicleImport>[]),
});
Dart UpdateBackOrderVehicleImportsRequest 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.
POST /v1/backorder/vehicleimports HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
VehicleImports:
[
{
CommissionNumber: String,
Sellable: False,
Vehicle:
{
RetailPrice_ExVAT: String,
OTR: String,
ActualPrice: String,
TotalOfferValue: String,
IsHOBackOrderAccountVehicle: False,
ConsumptionCombined:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
ConsumptionExtraUrban:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
ConsumptionUrban:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
WltpFuelConsumptionCombined:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
WltpFuelConsumptionExtraHigh:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
WltpFuelConsumptionHigh:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
WltpFuelConsumptionLow:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
WltpFuelConsumptionMedium:
{
Id: 0,
Lkm: 0,
Mpg: 0
},
EquipmentCategories:
[
{
Order: 0,
Code: String,
Description: String,
Equipment:
[
{
Importance: 0,
IsAdditional: False,
Id: 0,
Code: String,
Description: String
}
]
}
],
VehicleEnergyEfficiencyClass:
{
Colour: String,
Rating: String
},
VehicleData:
[
{
Description: String,
Value: String
}
],
IntegratedProducts:
[
{
OptionCode: String,
BM7NST: String,
FullModelYear: String,
IntegratedProductType: String,
CustomerDescription: String,
OneAgentProductType: String
}
],
IspVehicleCustomerDescriptions:
[
String
],
ColourCode: String,
UpholsteryCode: String,
Description: String,
CommissionNumber: String,
PortArrivalDate: String,
OfferExpiryDate: String,
Fuel: String,
Transmission: String,
TransmissionType: String,
Colour: String,
ColourDescription: String,
ImageUrl: String,
Specialist: False,
VehicleCriteriaMatch:
{
Fuel: False,
Transmission: False,
Colour: False,
Upholstery: False,
Line: False,
Engine: False,
BodyStyle: False,
Packages: False
},
ColourGroup: String,
Model: String,
BodyStyle: String,
Brand: String,
Engine: String,
EngineDescription: String,
Line: String,
Upholstery: String,
UpholsteryDescription: String,
Packages:
[
String
],
P11D: 0,
Prices:
[
{
Id: String,
Description: String,
Net: 0,
VAT: 0,
Gross: 0,
Product: LIST_PRICE
}
],
VehicleClass: String,
ProductRange: String,
VehicleType: String,
Emission: 0,
Baumuster: String,
IsSellable: False,
Bm7NST: String,
ElectricRange: 0,
ElectricConsumption: 0,
IsDisplayStock: False,
DisplayRetailer_Id: 0,
DisplayRetailer: String,
DisplayRetailerGssnId: String,
Retailer:
{
Id: 0,
GssnId: String,
Description: String,
Street: String,
City: String,
Postcode: String,
GoogleMapPostcode: String,
Phone: String,
Fax: String,
Email: String,
Website: String,
RetailerGroupId: String,
RetailerGroupName: String,
IsOnline: False,
IsNewCarRetailer: False,
IsUsedCarRetailer: False,
IsCentralRetailer: False,
ChatEnabled: False,
TradeInEnabled: False,
smart: False,
DisplayPhoneNumberNew: String,
DisplayPhoneNumberUsed: String,
Latitude: 0,
Longitude: 0,
smartDescription: String,
smartWebsite: String,
smartPhone: String,
LegacyId: String,
Agent: False,
MarketAreaId: 0,
DigitalLoungeParentGssnId: String,
SendLeadsToDigitalLoungeParent: False,
OpeningTimes:
{
New:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
],
Used:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
]
}
},
Age: 0,
ModelYearCode: String,
HalfModelYearCode: String,
FullModelYearCode: String,
ProductionDate: String,
ChassisNumber: String,
EligibleForIntegratedServiceCare: False,
Vin: String
},
Vin: String
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { }