Mercedes.VehicleManagement.API

<back to all web services

VehicleRejectRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/Vehicle/Reject/{vehicleIdentifier}Get vehicle details and rejections by VIN or Commission NumberCalls Vehicle Data API. Returns vehicle details from the DB if found, otherwise from the Rejects table.
import 'package:servicestack/servicestack.dart';

class VehicleDataBase implements IConvertible
{
    String vin = "";
    String description = "";
    String model = "";
    String otr = "";
    String retailPriceExVAT = "";
    String actualPrice = "";
    String p11D = "";
    String fuelType = "";
    String transmission = "";
    String transmissionType = "";
    String colour = "";
    String colourCode = "";
    String colourDescription = "";
    String commissionNumber = "";
    bool? offerAvailable;
    int campaignDiscountOfferTotal = 0;
    int campaignDiscountOfferTotalCurrent = 0;
    int campaignDiscountOfferTotalPending = 0;
    int campaignServiceOfferTotal = 0;
    int campaignServiceOfferTotalCurrent = 0;
    int campaignServiceOfferTotalPending = 0;
    int campaignCustomOfferTotal = 0;
    int campaignPersonalisedOfferTotalCurrent = 0;
    int campaignPersonalisedOfferTotalPending = 0;
    int campaignPersonalisedOfferTotal = 0;
    int campaignCustomOfferTotalCurrent = 0;
    int campaignCustomOfferTotalPending = 0;
    int campaignOtherOfferTotal = 0;
    int campaignOtherOfferTotalCurrent = 0;
    int campaignOtherOfferTotalPending = 0;
    int retailerDiscountOfferTotal = 0;
    int retailerDiscountOfferTotalCurrent = 0;
    int retailerDiscountOfferTotalPending = 0;
    int retailerServiceOfferTotal = 0;
    int retailerServiceOfferTotalCurrent = 0;
    int retailerServiceOfferTotalPending = 0;
    int retailerCustomOfferTotal = 0;
    int retailerCustomOfferTotalCurrent = 0;
    int retailerCustomOfferTotalPending = 0;
    int retailerWarrantyOfferTotal = 0;
    int retailerWarrantyOfferTotalCurrent = 0;
    int retailerWarrantyOfferTotalPending = 0;
    int retailerOfferTotal = 0;
    int retailerOfferTotalCurrent = 0;
    int retailerOfferTotalPending = 0;
    int campaignOfferTotal = 0;
    int campaignOfferTotalCurrent = 0;
    int campaignOfferTotalPending = 0;
    int campaignAndOfferTotal = 0;
    int campaignAndOfferTotalCurrent = 0;
    int campaignAndOfferTotalPending = 0;
    int offerTotal = 0;
    int offerTotalCurrent = 0;
    int offerTotalPending = 0;
    String creation = "";
    String modified = "";
    int electricRange = 0;
    int electricConsumption = 0;
    DateTime? portArrivalDate;
    int? daysSincePortArrival;
    double retailPriceIncVAT = 0;
    String bodyStyle = "";
    String upholstery = "";
    String upholsteryCode = "";
    String upholsteryType = "";
    List<String> packageNames = [];
    String line = "";
    String mappedLine = "";
    double currentRetailerOfferPrice = 0;
    String retailPrice = "";
    bool? vatQualifying;
    int retailerId = 0;
    String gssnId = "";
    bool? noImage;
    String imageUrl = "";
    bool? isAvailableOnline;
    bool? isBackOrdered;
    String creationDate = "";
    String maintenanceDate = "";
    String registrationNumber = "";
    DateTime? registrationDate;
    int? mileage;
    DateTime? tradeInDate;
    String source = "";
    String vehicleType = "";
    String offerAmount = "";
    String offerExpiry = "";
    List<int> activeOffers = [];
    int campaignMessagesTotal = 0;
    bool? underOffer;
    bool? isDisplayStock;
    String displayRetailer = "";
    String displayRetailerGssnId = "";
    String location = "";
    String account = "";
    String accountType = "";
    String usageCode = "";
    String bm7NST = "";
    bool? isSellable;
    bool? secured;
    bool? specialist;
    bool? isMotabilityRetailer;
    String upholsteryDescription = "";
    bool? inBackOrderAccount;
    String? fullModelYearCode;
    String baumuster = "";
    bool? isMotability;
    double? pipAdvanceRentalGross;
    double? wpmsAdvanceRentalGross;
    List<String>? ispVehicleCustomerDescriptions;
    bool? eligibleForMaTransfer;
    String? confirmedProductionDate;
    String? forecastedArrivalDate;

    VehicleDataBase({this.vin="",this.description="",this.model="",this.otr="",this.retailPriceExVAT="",this.actualPrice="",this.p11D="",this.fuelType="",this.transmission="",this.transmissionType="",this.colour="",this.colourCode="",this.colourDescription="",this.commissionNumber="",this.offerAvailable,this.campaignDiscountOfferTotal=0,this.campaignDiscountOfferTotalCurrent=0,this.campaignDiscountOfferTotalPending=0,this.campaignServiceOfferTotal=0,this.campaignServiceOfferTotalCurrent=0,this.campaignServiceOfferTotalPending=0,this.campaignCustomOfferTotal=0,this.campaignPersonalisedOfferTotalCurrent=0,this.campaignPersonalisedOfferTotalPending=0,this.campaignPersonalisedOfferTotal=0,this.campaignCustomOfferTotalCurrent=0,this.campaignCustomOfferTotalPending=0,this.campaignOtherOfferTotal=0,this.campaignOtherOfferTotalCurrent=0,this.campaignOtherOfferTotalPending=0,this.retailerDiscountOfferTotal=0,this.retailerDiscountOfferTotalCurrent=0,this.retailerDiscountOfferTotalPending=0,this.retailerServiceOfferTotal=0,this.retailerServiceOfferTotalCurrent=0,this.retailerServiceOfferTotalPending=0,this.retailerCustomOfferTotal=0,this.retailerCustomOfferTotalCurrent=0,this.retailerCustomOfferTotalPending=0,this.retailerWarrantyOfferTotal=0,this.retailerWarrantyOfferTotalCurrent=0,this.retailerWarrantyOfferTotalPending=0,this.retailerOfferTotal=0,this.retailerOfferTotalCurrent=0,this.retailerOfferTotalPending=0,this.campaignOfferTotal=0,this.campaignOfferTotalCurrent=0,this.campaignOfferTotalPending=0,this.campaignAndOfferTotal=0,this.campaignAndOfferTotalCurrent=0,this.campaignAndOfferTotalPending=0,this.offerTotal=0,this.offerTotalCurrent=0,this.offerTotalPending=0,this.creation="",this.modified="",this.electricRange=0,this.electricConsumption=0,this.portArrivalDate,this.daysSincePortArrival,this.retailPriceIncVAT=0,this.bodyStyle="",this.upholstery="",this.upholsteryCode="",this.upholsteryType="",this.packageNames=const [],this.line="",this.mappedLine="",this.currentRetailerOfferPrice=0,this.retailPrice="",this.vatQualifying,this.retailerId=0,this.gssnId="",this.noImage,this.imageUrl="",this.isAvailableOnline,this.isBackOrdered,this.creationDate="",this.maintenanceDate="",this.registrationNumber="",this.registrationDate,this.mileage,this.tradeInDate,this.source="",this.vehicleType="",this.offerAmount="",this.offerExpiry="",this.activeOffers=const [],this.campaignMessagesTotal=0,this.underOffer,this.isDisplayStock,this.displayRetailer="",this.displayRetailerGssnId="",this.location="",this.account="",this.accountType="",this.usageCode="",this.bm7NST="",this.isSellable,this.secured,this.specialist,this.isMotabilityRetailer,this.upholsteryDescription="",this.inBackOrderAccount,this.fullModelYearCode,this.baumuster="",this.isMotability,this.pipAdvanceRentalGross,this.wpmsAdvanceRentalGross,this.ispVehicleCustomerDescriptions,this.eligibleForMaTransfer,this.confirmedProductionDate,this.forecastedArrivalDate});
    VehicleDataBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        vin = json['vin'] ?? "";
        description = json['description'] ?? "";
        model = json['model'] ?? "";
        otr = json['otr'] ?? "";
        retailPriceExVAT = json['retailPriceExVAT'] ?? "";
        actualPrice = json['actualPrice'] ?? "";
        p11D = json['p11D'] ?? "";
        fuelType = json['fuelType'] ?? "";
        transmission = json['transmission'] ?? "";
        transmissionType = json['transmissionType'] ?? "";
        colour = json['colour'] ?? "";
        colourCode = json['colourCode'] ?? "";
        colourDescription = json['colourDescription'] ?? "";
        commissionNumber = json['commissionNumber'] ?? "";
        offerAvailable = json['offerAvailable'];
        campaignDiscountOfferTotal = json['campaignDiscountOfferTotal'] ?? 0;
        campaignDiscountOfferTotalCurrent = json['campaignDiscountOfferTotalCurrent'] ?? 0;
        campaignDiscountOfferTotalPending = json['campaignDiscountOfferTotalPending'] ?? 0;
        campaignServiceOfferTotal = json['campaignServiceOfferTotal'] ?? 0;
        campaignServiceOfferTotalCurrent = json['campaignServiceOfferTotalCurrent'] ?? 0;
        campaignServiceOfferTotalPending = json['campaignServiceOfferTotalPending'] ?? 0;
        campaignCustomOfferTotal = json['campaignCustomOfferTotal'] ?? 0;
        campaignPersonalisedOfferTotalCurrent = json['campaignPersonalisedOfferTotalCurrent'] ?? 0;
        campaignPersonalisedOfferTotalPending = json['campaignPersonalisedOfferTotalPending'] ?? 0;
        campaignPersonalisedOfferTotal = json['campaignPersonalisedOfferTotal'] ?? 0;
        campaignCustomOfferTotalCurrent = json['campaignCustomOfferTotalCurrent'] ?? 0;
        campaignCustomOfferTotalPending = json['campaignCustomOfferTotalPending'] ?? 0;
        campaignOtherOfferTotal = json['campaignOtherOfferTotal'] ?? 0;
        campaignOtherOfferTotalCurrent = json['campaignOtherOfferTotalCurrent'] ?? 0;
        campaignOtherOfferTotalPending = json['campaignOtherOfferTotalPending'] ?? 0;
        retailerDiscountOfferTotal = json['retailerDiscountOfferTotal'] ?? 0;
        retailerDiscountOfferTotalCurrent = json['retailerDiscountOfferTotalCurrent'] ?? 0;
        retailerDiscountOfferTotalPending = json['retailerDiscountOfferTotalPending'] ?? 0;
        retailerServiceOfferTotal = json['retailerServiceOfferTotal'] ?? 0;
        retailerServiceOfferTotalCurrent = json['retailerServiceOfferTotalCurrent'] ?? 0;
        retailerServiceOfferTotalPending = json['retailerServiceOfferTotalPending'] ?? 0;
        retailerCustomOfferTotal = json['retailerCustomOfferTotal'] ?? 0;
        retailerCustomOfferTotalCurrent = json['retailerCustomOfferTotalCurrent'] ?? 0;
        retailerCustomOfferTotalPending = json['retailerCustomOfferTotalPending'] ?? 0;
        retailerWarrantyOfferTotal = json['retailerWarrantyOfferTotal'] ?? 0;
        retailerWarrantyOfferTotalCurrent = json['retailerWarrantyOfferTotalCurrent'] ?? 0;
        retailerWarrantyOfferTotalPending = json['retailerWarrantyOfferTotalPending'] ?? 0;
        retailerOfferTotal = json['retailerOfferTotal'] ?? 0;
        retailerOfferTotalCurrent = json['retailerOfferTotalCurrent'] ?? 0;
        retailerOfferTotalPending = json['retailerOfferTotalPending'] ?? 0;
        campaignOfferTotal = json['campaignOfferTotal'] ?? 0;
        campaignOfferTotalCurrent = json['campaignOfferTotalCurrent'] ?? 0;
        campaignOfferTotalPending = json['campaignOfferTotalPending'] ?? 0;
        campaignAndOfferTotal = json['campaignAndOfferTotal'] ?? 0;
        campaignAndOfferTotalCurrent = json['campaignAndOfferTotalCurrent'] ?? 0;
        campaignAndOfferTotalPending = json['campaignAndOfferTotalPending'] ?? 0;
        offerTotal = json['offerTotal'] ?? 0;
        offerTotalCurrent = json['offerTotalCurrent'] ?? 0;
        offerTotalPending = json['offerTotalPending'] ?? 0;
        creation = json['creation'] ?? "";
        modified = json['modified'] ?? "";
        electricRange = json['electricRange'] ?? 0;
        electricConsumption = json['electricConsumption'] ?? 0;
        portArrivalDate = JsonConverters.fromJson(json['portArrivalDate'],'DateTime',context!);
        daysSincePortArrival = json['daysSincePortArrival'];
        retailPriceIncVAT = JsonConverters.toDouble(json['retailPriceIncVAT']) ?? 0;
        bodyStyle = json['bodyStyle'] ?? "";
        upholstery = json['upholstery'] ?? "";
        upholsteryCode = json['upholsteryCode'] ?? "";
        upholsteryType = json['upholsteryType'] ?? "";
        packageNames = JsonConverters.fromJson(json['packageNames'],'List<String>',context!) ?? [];
        line = json['line'] ?? "";
        mappedLine = json['mappedLine'] ?? "";
        currentRetailerOfferPrice = JsonConverters.toDouble(json['currentRetailerOfferPrice']) ?? 0;
        retailPrice = json['retailPrice'] ?? "";
        vatQualifying = json['vatQualifying'];
        retailerId = json['retailerId'] ?? 0;
        gssnId = json['gssnId'] ?? "";
        noImage = json['noImage'];
        imageUrl = json['imageUrl'] ?? "";
        isAvailableOnline = json['isAvailableOnline'];
        isBackOrdered = json['isBackOrdered'];
        creationDate = json['creationDate'] ?? "";
        maintenanceDate = json['maintenanceDate'] ?? "";
        registrationNumber = json['registrationNumber'] ?? "";
        registrationDate = JsonConverters.fromJson(json['registrationDate'],'DateTime',context!);
        mileage = json['mileage'];
        tradeInDate = JsonConverters.fromJson(json['tradeInDate'],'DateTime',context!);
        source = json['source'] ?? "";
        vehicleType = json['vehicleType'] ?? "";
        offerAmount = json['offerAmount'] ?? "";
        offerExpiry = json['offerExpiry'] ?? "";
        activeOffers = JsonConverters.fromJson(json['activeOffers'],'List<int>',context!) ?? [];
        campaignMessagesTotal = json['campaignMessagesTotal'] ?? 0;
        underOffer = json['underOffer'];
        isDisplayStock = json['isDisplayStock'];
        displayRetailer = json['displayRetailer'] ?? "";
        displayRetailerGssnId = json['displayRetailerGssnId'] ?? "";
        location = json['location'] ?? "";
        account = json['account'] ?? "";
        accountType = json['accountType'] ?? "";
        usageCode = json['usageCode'] ?? "";
        bm7NST = json['bm7NST'] ?? "";
        isSellable = json['isSellable'];
        secured = json['secured'];
        specialist = json['specialist'];
        isMotabilityRetailer = json['isMotabilityRetailer'];
        upholsteryDescription = json['upholsteryDescription'] ?? "";
        inBackOrderAccount = json['inBackOrderAccount'];
        fullModelYearCode = json['fullModelYearCode'];
        baumuster = json['baumuster'] ?? "";
        isMotability = json['isMotability'];
        pipAdvanceRentalGross = JsonConverters.toDouble(json['pipAdvanceRentalGross']);
        wpmsAdvanceRentalGross = JsonConverters.toDouble(json['wpmsAdvanceRentalGross']);
        ispVehicleCustomerDescriptions = JsonConverters.fromJson(json['ispVehicleCustomerDescriptions'],'List<String>',context!);
        eligibleForMaTransfer = json['eligibleForMaTransfer'];
        confirmedProductionDate = json['confirmedProductionDate'];
        forecastedArrivalDate = json['forecastedArrivalDate'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'vin': vin,
        'description': description,
        'model': model,
        'otr': otr,
        'retailPriceExVAT': retailPriceExVAT,
        'actualPrice': actualPrice,
        'p11D': p11D,
        'fuelType': fuelType,
        'transmission': transmission,
        'transmissionType': transmissionType,
        'colour': colour,
        'colourCode': colourCode,
        'colourDescription': colourDescription,
        'commissionNumber': commissionNumber,
        'offerAvailable': offerAvailable,
        'campaignDiscountOfferTotal': campaignDiscountOfferTotal,
        'campaignDiscountOfferTotalCurrent': campaignDiscountOfferTotalCurrent,
        'campaignDiscountOfferTotalPending': campaignDiscountOfferTotalPending,
        'campaignServiceOfferTotal': campaignServiceOfferTotal,
        'campaignServiceOfferTotalCurrent': campaignServiceOfferTotalCurrent,
        'campaignServiceOfferTotalPending': campaignServiceOfferTotalPending,
        'campaignCustomOfferTotal': campaignCustomOfferTotal,
        'campaignPersonalisedOfferTotalCurrent': campaignPersonalisedOfferTotalCurrent,
        'campaignPersonalisedOfferTotalPending': campaignPersonalisedOfferTotalPending,
        'campaignPersonalisedOfferTotal': campaignPersonalisedOfferTotal,
        'campaignCustomOfferTotalCurrent': campaignCustomOfferTotalCurrent,
        'campaignCustomOfferTotalPending': campaignCustomOfferTotalPending,
        'campaignOtherOfferTotal': campaignOtherOfferTotal,
        'campaignOtherOfferTotalCurrent': campaignOtherOfferTotalCurrent,
        'campaignOtherOfferTotalPending': campaignOtherOfferTotalPending,
        'retailerDiscountOfferTotal': retailerDiscountOfferTotal,
        'retailerDiscountOfferTotalCurrent': retailerDiscountOfferTotalCurrent,
        'retailerDiscountOfferTotalPending': retailerDiscountOfferTotalPending,
        'retailerServiceOfferTotal': retailerServiceOfferTotal,
        'retailerServiceOfferTotalCurrent': retailerServiceOfferTotalCurrent,
        'retailerServiceOfferTotalPending': retailerServiceOfferTotalPending,
        'retailerCustomOfferTotal': retailerCustomOfferTotal,
        'retailerCustomOfferTotalCurrent': retailerCustomOfferTotalCurrent,
        'retailerCustomOfferTotalPending': retailerCustomOfferTotalPending,
        'retailerWarrantyOfferTotal': retailerWarrantyOfferTotal,
        'retailerWarrantyOfferTotalCurrent': retailerWarrantyOfferTotalCurrent,
        'retailerWarrantyOfferTotalPending': retailerWarrantyOfferTotalPending,
        'retailerOfferTotal': retailerOfferTotal,
        'retailerOfferTotalCurrent': retailerOfferTotalCurrent,
        'retailerOfferTotalPending': retailerOfferTotalPending,
        'campaignOfferTotal': campaignOfferTotal,
        'campaignOfferTotalCurrent': campaignOfferTotalCurrent,
        'campaignOfferTotalPending': campaignOfferTotalPending,
        'campaignAndOfferTotal': campaignAndOfferTotal,
        'campaignAndOfferTotalCurrent': campaignAndOfferTotalCurrent,
        'campaignAndOfferTotalPending': campaignAndOfferTotalPending,
        'offerTotal': offerTotal,
        'offerTotalCurrent': offerTotalCurrent,
        'offerTotalPending': offerTotalPending,
        'creation': creation,
        'modified': modified,
        'electricRange': electricRange,
        'electricConsumption': electricConsumption,
        'portArrivalDate': JsonConverters.toJson(portArrivalDate,'DateTime',context!),
        'daysSincePortArrival': daysSincePortArrival,
        'retailPriceIncVAT': retailPriceIncVAT,
        'bodyStyle': bodyStyle,
        'upholstery': upholstery,
        'upholsteryCode': upholsteryCode,
        'upholsteryType': upholsteryType,
        'packageNames': JsonConverters.toJson(packageNames,'List<String>',context!),
        'line': line,
        'mappedLine': mappedLine,
        'currentRetailerOfferPrice': currentRetailerOfferPrice,
        'retailPrice': retailPrice,
        'vatQualifying': vatQualifying,
        'retailerId': retailerId,
        'gssnId': gssnId,
        'noImage': noImage,
        'imageUrl': imageUrl,
        'isAvailableOnline': isAvailableOnline,
        'isBackOrdered': isBackOrdered,
        'creationDate': creationDate,
        'maintenanceDate': maintenanceDate,
        'registrationNumber': registrationNumber,
        'registrationDate': JsonConverters.toJson(registrationDate,'DateTime',context!),
        'mileage': mileage,
        'tradeInDate': JsonConverters.toJson(tradeInDate,'DateTime',context!),
        'source': source,
        'vehicleType': vehicleType,
        'offerAmount': offerAmount,
        'offerExpiry': offerExpiry,
        'activeOffers': JsonConverters.toJson(activeOffers,'List<int>',context!),
        'campaignMessagesTotal': campaignMessagesTotal,
        'underOffer': underOffer,
        'isDisplayStock': isDisplayStock,
        'displayRetailer': displayRetailer,
        'displayRetailerGssnId': displayRetailerGssnId,
        'location': location,
        'account': account,
        'accountType': accountType,
        'usageCode': usageCode,
        'bm7NST': bm7NST,
        'isSellable': isSellable,
        'secured': secured,
        'specialist': specialist,
        'isMotabilityRetailer': isMotabilityRetailer,
        'upholsteryDescription': upholsteryDescription,
        'inBackOrderAccount': inBackOrderAccount,
        'fullModelYearCode': fullModelYearCode,
        'baumuster': baumuster,
        'isMotability': isMotability,
        'pipAdvanceRentalGross': pipAdvanceRentalGross,
        'wpmsAdvanceRentalGross': wpmsAdvanceRentalGross,
        'ispVehicleCustomerDescriptions': JsonConverters.toJson(ispVehicleCustomerDescriptions,'List<String>',context!),
        'eligibleForMaTransfer': eligibleForMaTransfer,
        'confirmedProductionDate': confirmedProductionDate,
        'forecastedArrivalDate': forecastedArrivalDate
    };

    getTypeName() => "VehicleDataBase";
    TypeContext? context = _ctx;
}

class VehicleData extends VehicleDataBase implements IConvertible
{
    String engine = "";

    VehicleData({this.engine=""});
    VehicleData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        engine = json['engine'] ?? "";
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'engine': engine
    });

    getTypeName() => "VehicleData";
    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 VehicleIdentifierData extends VehicleData implements IConvertible
{
    String retailer = "";
    bool? hasMotabilityError;
    List<Equipment> equipment = [];
    String? vehicleClass;

    VehicleIdentifierData({this.retailer="",this.hasMotabilityError,this.equipment=const [],this.vehicleClass});
    VehicleIdentifierData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        retailer = json['retailer'] ?? "";
        hasMotabilityError = json['hasMotabilityError'];
        equipment = JsonConverters.fromJson(json['equipment'],'List<Equipment>',context!) ?? [];
        vehicleClass = json['vehicleClass'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'retailer': retailer,
        'hasMotabilityError': hasMotabilityError,
        'equipment': JsonConverters.toJson(equipment,'List<Equipment>',context!),
        'vehicleClass': vehicleClass
    });

    getTypeName() => "VehicleIdentifierData";
    TypeContext? context = _ctx;
}

class VehicleRejectionData implements IConvertible
{
    String rejectReason = "";
    String exception = "";
    String creationDate = "";
    bool? active;
    String dataSource = "";

    VehicleRejectionData({this.rejectReason="",this.exception="",this.creationDate="",this.active,this.dataSource=""});
    VehicleRejectionData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        rejectReason = json['rejectReason'] ?? "";
        exception = json['exception'] ?? "";
        creationDate = json['creationDate'] ?? "";
        active = json['active'];
        dataSource = json['dataSource'] ?? "";
        return this;
    }

    Map<String, dynamic> toJson() => {
        'rejectReason': rejectReason,
        'exception': exception,
        'creationDate': creationDate,
        'active': active,
        'dataSource': dataSource
    };

    getTypeName() => "VehicleRejectionData";
    TypeContext? context = _ctx;
}

class VehicleSellableCheckData implements IConvertible
{
    String check = "";
    String failure = "";
    String creationDate = "";

    VehicleSellableCheckData({this.check="",this.failure="",this.creationDate=""});
    VehicleSellableCheckData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        check = json['check'] ?? "";
        failure = json['failure'] ?? "";
        creationDate = json['creationDate'] ?? "";
        return this;
    }

    Map<String, dynamic> toJson() => {
        'check': check,
        'failure': failure,
        'creationDate': creationDate
    };

    getTypeName() => "VehicleSellableCheckData";
    TypeContext? context = _ctx;
}

class VehicleRejectDetailsData implements IConvertible
{
    VehicleIdentifierData? details;
    List<VehicleRejectionData> rejections = [];
    List<VehicleSellableCheckData> sellableChecks = [];

    VehicleRejectDetailsData({this.details,this.rejections=const [],this.sellableChecks=const []});
    VehicleRejectDetailsData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        details = JsonConverters.fromJson(json['details'],'VehicleIdentifierData',context!);
        rejections = JsonConverters.fromJson(json['rejections'],'List<VehicleRejectionData>',context!) ?? [];
        sellableChecks = JsonConverters.fromJson(json['sellableChecks'],'List<VehicleSellableCheckData>',context!) ?? [];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'details': JsonConverters.toJson(details,'VehicleIdentifierData',context!),
        'rejections': JsonConverters.toJson(rejections,'List<VehicleRejectionData>',context!),
        'sellableChecks': JsonConverters.toJson(sellableChecks,'List<VehicleSellableCheckData>',context!)
    };

    getTypeName() => "VehicleRejectDetailsData";
    TypeContext? context = _ctx;
}

class VehicleRejectDetailsResponse implements IConvertible
{
    VehicleRejectDetailsData? vehicle;

    VehicleRejectDetailsResponse({this.vehicle});
    VehicleRejectDetailsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        vehicle = JsonConverters.fromJson(json['vehicle'],'VehicleRejectDetailsData',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'vehicle': JsonConverters.toJson(vehicle,'VehicleRejectDetailsData',context!)
    };

    getTypeName() => "VehicleRejectDetailsResponse";
    TypeContext? context = _ctx;
}

class VehicleRejectRequest implements IGet, IConvertible
{
    String vehicleIdentifier = "";

    VehicleRejectRequest({this.vehicleIdentifier=""});
    VehicleRejectRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        vehicleIdentifier = json['vehicleIdentifier'] ?? "";
        return this;
    }

    Map<String, dynamic> toJson() => {
        'vehicleIdentifier': vehicleIdentifier
    };

    getTypeName() => "VehicleRejectRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'VehicleDataBase': TypeInfo(TypeOf.Class, create:() => VehicleDataBase()),
    'VehicleData': TypeInfo(TypeOf.Class, create:() => VehicleData()),
    'Equipment': TypeInfo(TypeOf.Class, create:() => Equipment()),
    'VehicleIdentifierData': TypeInfo(TypeOf.Class, create:() => VehicleIdentifierData()),
    'List<Equipment>': TypeInfo(TypeOf.Class, create:() => <Equipment>[]),
    'VehicleRejectionData': TypeInfo(TypeOf.Class, create:() => VehicleRejectionData()),
    'VehicleSellableCheckData': TypeInfo(TypeOf.Class, create:() => VehicleSellableCheckData()),
    'VehicleRejectDetailsData': TypeInfo(TypeOf.Class, create:() => VehicleRejectDetailsData()),
    'List<VehicleRejectionData>': TypeInfo(TypeOf.Class, create:() => <VehicleRejectionData>[]),
    'List<VehicleSellableCheckData>': TypeInfo(TypeOf.Class, create:() => <VehicleSellableCheckData>[]),
    'VehicleRejectDetailsResponse': TypeInfo(TypeOf.Class, create:() => VehicleRejectDetailsResponse()),
    'VehicleRejectRequest': TypeInfo(TypeOf.Class, create:() => VehicleRejectRequest()),
});

Dart VehicleRejectRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Vehicle/Reject/{vehicleIdentifier} HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VehicleRejectDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
  <Vehicle>
    <Details xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:Account>String</d3p1:Account>
      <d3p1:AccountType>String</d3p1:AccountType>
      <d3p1:ActiveOffers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </d3p1:ActiveOffers>
      <d3p1:ActualPrice>String</d3p1:ActualPrice>
      <d3p1:Baumuster>String</d3p1:Baumuster>
      <d3p1:Bm7NST>String</d3p1:Bm7NST>
      <d3p1:BodyStyle>String</d3p1:BodyStyle>
      <d3p1:CampaignAndOfferTotal>0</d3p1:CampaignAndOfferTotal>
      <d3p1:CampaignAndOfferTotalCurrent>0</d3p1:CampaignAndOfferTotalCurrent>
      <d3p1:CampaignAndOfferTotalPending>0</d3p1:CampaignAndOfferTotalPending>
      <d3p1:CampaignCustomOfferTotal>0</d3p1:CampaignCustomOfferTotal>
      <d3p1:CampaignCustomOfferTotalCurrent>0</d3p1:CampaignCustomOfferTotalCurrent>
      <d3p1:CampaignCustomOfferTotalPending>0</d3p1:CampaignCustomOfferTotalPending>
      <d3p1:CampaignDiscountOfferTotal>0</d3p1:CampaignDiscountOfferTotal>
      <d3p1:CampaignDiscountOfferTotalCurrent>0</d3p1:CampaignDiscountOfferTotalCurrent>
      <d3p1:CampaignDiscountOfferTotalPending>0</d3p1:CampaignDiscountOfferTotalPending>
      <d3p1:CampaignMessagesTotal>0</d3p1:CampaignMessagesTotal>
      <d3p1:CampaignOfferTotal>0</d3p1:CampaignOfferTotal>
      <d3p1:CampaignOfferTotalCurrent>0</d3p1:CampaignOfferTotalCurrent>
      <d3p1:CampaignOfferTotalPending>0</d3p1:CampaignOfferTotalPending>
      <d3p1:CampaignOtherOfferTotal>0</d3p1:CampaignOtherOfferTotal>
      <d3p1:CampaignOtherOfferTotalCurrent>0</d3p1:CampaignOtherOfferTotalCurrent>
      <d3p1:CampaignOtherOfferTotalPending>0</d3p1:CampaignOtherOfferTotalPending>
      <d3p1:CampaignPersonalisedOfferTotal>0</d3p1:CampaignPersonalisedOfferTotal>
      <d3p1:CampaignPersonalisedOfferTotalCurrent>0</d3p1:CampaignPersonalisedOfferTotalCurrent>
      <d3p1:CampaignPersonalisedOfferTotalPending>0</d3p1:CampaignPersonalisedOfferTotalPending>
      <d3p1:CampaignServiceOfferTotal>0</d3p1:CampaignServiceOfferTotal>
      <d3p1:CampaignServiceOfferTotalCurrent>0</d3p1:CampaignServiceOfferTotalCurrent>
      <d3p1:CampaignServiceOfferTotalPending>0</d3p1:CampaignServiceOfferTotalPending>
      <d3p1:Colour>String</d3p1:Colour>
      <d3p1:ColourCode>String</d3p1:ColourCode>
      <d3p1:ColourDescription>String</d3p1:ColourDescription>
      <d3p1:CommissionNumber>String</d3p1:CommissionNumber>
      <d3p1:ConfirmedProductionDate>String</d3p1:ConfirmedProductionDate>
      <d3p1:Creation>String</d3p1:Creation>
      <d3p1:CreationDate>String</d3p1:CreationDate>
      <d3p1:CurrentRetailerOfferPrice>0</d3p1:CurrentRetailerOfferPrice>
      <d3p1:DaysSincePortArrival>0</d3p1:DaysSincePortArrival>
      <d3p1:Description>String</d3p1:Description>
      <d3p1:DisplayRetailer>String</d3p1:DisplayRetailer>
      <d3p1:DisplayRetailerGssnId>String</d3p1:DisplayRetailerGssnId>
      <d3p1:ElectricConsumption>0</d3p1:ElectricConsumption>
      <d3p1:ElectricRange>0</d3p1:ElectricRange>
      <d3p1:EligibleForMaTransfer>false</d3p1:EligibleForMaTransfer>
      <d3p1:ForecastedArrivalDate>String</d3p1:ForecastedArrivalDate>
      <d3p1:FuelType>String</d3p1:FuelType>
      <d3p1:FullModelYearCode>String</d3p1:FullModelYearCode>
      <d3p1:GssnId>String</d3p1:GssnId>
      <d3p1:ImageUrl>String</d3p1:ImageUrl>
      <d3p1:InBackOrderAccount>false</d3p1:InBackOrderAccount>
      <d3p1:IsAvailableOnline>false</d3p1:IsAvailableOnline>
      <d3p1:IsBackOrdered>false</d3p1:IsBackOrdered>
      <d3p1:IsDisplayStock>false</d3p1:IsDisplayStock>
      <d3p1:IsMotability>false</d3p1:IsMotability>
      <d3p1:IsMotabilityRetailer>false</d3p1:IsMotabilityRetailer>
      <d3p1:IsSellable>false</d3p1:IsSellable>
      <d3p1:IspVehicleCustomerDescriptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d3p1:IspVehicleCustomerDescriptions>
      <d3p1:Line>String</d3p1:Line>
      <d3p1:Location>String</d3p1:Location>
      <d3p1:MaintenanceDate>String</d3p1:MaintenanceDate>
      <d3p1:MappedLine>String</d3p1:MappedLine>
      <d3p1:Mileage>0</d3p1:Mileage>
      <d3p1:Model>String</d3p1:Model>
      <d3p1:Modified>String</d3p1:Modified>
      <d3p1:NoImage>false</d3p1:NoImage>
      <d3p1:OfferAmount>String</d3p1:OfferAmount>
      <d3p1:OfferAvailable>false</d3p1:OfferAvailable>
      <d3p1:OfferExpiry>String</d3p1:OfferExpiry>
      <d3p1:OfferTotal>0</d3p1:OfferTotal>
      <d3p1:OfferTotalCurrent>0</d3p1:OfferTotalCurrent>
      <d3p1:OfferTotalPending>0</d3p1:OfferTotalPending>
      <d3p1:Otr>String</d3p1:Otr>
      <d3p1:P11D>String</d3p1:P11D>
      <d3p1:PackageNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d3p1:PackageNames>
      <d3p1:PipAdvanceRentalGross>0</d3p1:PipAdvanceRentalGross>
      <d3p1:PortArrivalDate>0001-01-01T00:00:00</d3p1:PortArrivalDate>
      <d3p1:RegistrationDate>0001-01-01T00:00:00</d3p1:RegistrationDate>
      <d3p1:RegistrationNumber>String</d3p1:RegistrationNumber>
      <d3p1:RetailPrice>String</d3p1:RetailPrice>
      <d3p1:RetailPriceExVAT>String</d3p1:RetailPriceExVAT>
      <d3p1:RetailPriceIncVAT>0</d3p1:RetailPriceIncVAT>
      <d3p1:RetailerCustomOfferTotal>0</d3p1:RetailerCustomOfferTotal>
      <d3p1:RetailerCustomOfferTotalCurrent>0</d3p1:RetailerCustomOfferTotalCurrent>
      <d3p1:RetailerCustomOfferTotalPending>0</d3p1:RetailerCustomOfferTotalPending>
      <d3p1:RetailerDiscountOfferTotal>0</d3p1:RetailerDiscountOfferTotal>
      <d3p1:RetailerDiscountOfferTotalCurrent>0</d3p1:RetailerDiscountOfferTotalCurrent>
      <d3p1:RetailerDiscountOfferTotalPending>0</d3p1:RetailerDiscountOfferTotalPending>
      <d3p1:RetailerId>0</d3p1:RetailerId>
      <d3p1:RetailerOfferTotal>0</d3p1:RetailerOfferTotal>
      <d3p1:RetailerOfferTotalCurrent>0</d3p1:RetailerOfferTotalCurrent>
      <d3p1:RetailerOfferTotalPending>0</d3p1:RetailerOfferTotalPending>
      <d3p1:RetailerServiceOfferTotal>0</d3p1:RetailerServiceOfferTotal>
      <d3p1:RetailerServiceOfferTotalCurrent>0</d3p1:RetailerServiceOfferTotalCurrent>
      <d3p1:RetailerServiceOfferTotalPending>0</d3p1:RetailerServiceOfferTotalPending>
      <d3p1:RetailerWarrantyOfferTotal>0</d3p1:RetailerWarrantyOfferTotal>
      <d3p1:RetailerWarrantyOfferTotalCurrent>0</d3p1:RetailerWarrantyOfferTotalCurrent>
      <d3p1:RetailerWarrantyOfferTotalPending>0</d3p1:RetailerWarrantyOfferTotalPending>
      <d3p1:Secured>false</d3p1:Secured>
      <d3p1:Source>String</d3p1:Source>
      <d3p1:Specialist>false</d3p1:Specialist>
      <d3p1:TradeInDate>0001-01-01T00:00:00</d3p1:TradeInDate>
      <d3p1:Transmission>String</d3p1:Transmission>
      <d3p1:TransmissionType>String</d3p1:TransmissionType>
      <d3p1:UnderOffer>false</d3p1:UnderOffer>
      <d3p1:Upholstery>String</d3p1:Upholstery>
      <d3p1:UpholsteryCode>String</d3p1:UpholsteryCode>
      <d3p1:UpholsteryDescription>String</d3p1:UpholsteryDescription>
      <d3p1:UpholsteryType>String</d3p1:UpholsteryType>
      <d3p1:UsageCode>String</d3p1:UsageCode>
      <d3p1:VATQualifying>false</d3p1:VATQualifying>
      <d3p1:VehicleType>String</d3p1:VehicleType>
      <d3p1:Vin>String</d3p1:Vin>
      <d3p1:WpmsAdvanceRentalGross>0</d3p1:WpmsAdvanceRentalGross>
      <d3p1:Engine>String</d3p1:Engine>
      <d3p1:Equipment xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
        <d4p1:Equipment>
          <d4p1:Code>String</d4p1:Code>
          <d4p1:Description>String</d4p1:Description>
          <d4p1:Id>0</d4p1:Id>
        </d4p1:Equipment>
      </d3p1:Equipment>
      <d3p1:HasMotabilityError>false</d3p1:HasMotabilityError>
      <d3p1:Retailer>String</d3p1:Retailer>
      <d3p1:VehicleClass>String</d3p1:VehicleClass>
    </Details>
    <Rejections xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:VehicleRejectionData>
        <d3p1:Active>false</d3p1:Active>
        <d3p1:CreationDate>String</d3p1:CreationDate>
        <d3p1:DataSource>String</d3p1:DataSource>
        <d3p1:Exception>String</d3p1:Exception>
        <d3p1:RejectReason>String</d3p1:RejectReason>
      </d3p1:VehicleRejectionData>
    </Rejections>
    <SellableChecks xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:VehicleSellableCheckData>
        <d3p1:Check>String</d3p1:Check>
        <d3p1:CreationDate>String</d3p1:CreationDate>
        <d3p1:Failure>String</d3p1:Failure>
      </d3p1:VehicleSellableCheckData>
    </SellableChecks>
  </Vehicle>
</VehicleRejectDetailsResponse>