Mercedes.VehicleManagement.API

<back to all web services

DisplayStockRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/DisplayStockRetailer/s display stock
import 'package:servicestack/servicestack.dart';

class DisplayStock implements IConvertible
{
    String? vehicleDescription;
    String? commissionNumber;
    String? vin;
    String? retailer;
    String? model;
    String? fuelType;
    String? transmission;
    String? colour;
    String? actualPrice;
    List<int>? activeOffers = [];
    String? daysAtSite;
    String? offerTotalCurrent;
    String? offerExpiry;
    String? vehicleUsage;
    bool? underOffer;
    bool? isSellable;
    String? vehicleType;
    String? vid;
    String? fin;
    String? chassisNumber;
    String? line;
    String? modelYear;
    String? modelYearCode;
    String? vehicleClass;
    String? retailPrice_ExVAT;
    String? retailPrice_IncVAT;
    String? otr;
    String? bodyStyle;
    String? productRange;
    String? engine;
    bool? isAMG;
    String? colourGroup;
    String? upholstery;
    String? packages;
    String? nst;
    String? bM7NST;
    String? acceleration;
    String? bootCapacity;
    String? topSpeed;
    String? driveConcept;
    String? combustionPowerHp;
    String? electricPowerKw;
    String? electricPowerHp;
    String? combinedPowerKw;
    String? combinedPowerHP;
    String? electricRange;
    String? electricConsumption;
    String? emissionCombined;
    String? emissionExtraUrban;
    String? emissionUrban;
    String? emission;
    String? emissionDirective;
    String? energyEfficiencyClass;
    String? wltpCombined;
    String? wltpLow;
    String? wltpMedium;
    String? wltpHigh;
    String? wltpExtraHigh;
    String? wltpEmissionCombined;
    DateTime? portArrivalDate;
    DateTime? creationDate;
    DateTime? lastUpdated;
    bool? isDisplayStock;
    String? displayStockAgent;
    bool? isSpecialistCar;
    String? account;
    String? location;
    String? cesarIdShipToParty;
    String? vehicleUsageCode;
    bool? mbukSecured;
    bool? isAllocatedToBackOrder;
    String? backOrderReference;

    DisplayStock({this.vehicleDescription,this.commissionNumber,this.vin,this.retailer,this.model,this.fuelType,this.transmission,this.colour,this.actualPrice,this.activeOffers,this.daysAtSite,this.offerTotalCurrent,this.offerExpiry,this.vehicleUsage,this.underOffer,this.isSellable,this.vehicleType,this.vid,this.fin,this.chassisNumber,this.line,this.modelYear,this.modelYearCode,this.vehicleClass,this.retailPrice_ExVAT,this.retailPrice_IncVAT,this.otr,this.bodyStyle,this.productRange,this.engine,this.isAMG,this.colourGroup,this.upholstery,this.packages,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.mbukSecured,this.isAllocatedToBackOrder,this.backOrderReference});
    DisplayStock.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        vehicleDescription = json['vehicleDescription'];
        commissionNumber = json['commissionNumber'];
        vin = json['vin'];
        retailer = json['retailer'];
        model = json['model'];
        fuelType = json['fuelType'];
        transmission = json['transmission'];
        colour = json['colour'];
        actualPrice = json['actualPrice'];
        activeOffers = JsonConverters.fromJson(json['activeOffers'],'List<int>',context!);
        daysAtSite = json['daysAtSite'];
        offerTotalCurrent = json['offerTotalCurrent'];
        offerExpiry = json['offerExpiry'];
        vehicleUsage = json['vehicleUsage'];
        underOffer = json['underOffer'];
        isSellable = json['isSellable'];
        vehicleType = json['vehicleType'];
        vid = json['vid'];
        fin = json['fin'];
        chassisNumber = json['chassisNumber'];
        line = json['line'];
        modelYear = json['modelYear'];
        modelYearCode = json['modelYearCode'];
        vehicleClass = json['vehicleClass'];
        retailPrice_ExVAT = json['retailPrice_ExVAT'];
        retailPrice_IncVAT = json['retailPrice_IncVAT'];
        otr = json['otr'];
        bodyStyle = json['bodyStyle'];
        productRange = json['productRange'];
        engine = json['engine'];
        isAMG = json['isAMG'];
        colourGroup = json['colourGroup'];
        upholstery = json['upholstery'];
        packages = json['packages'];
        nst = json['nst'];
        bM7NST = json['bM7NST'];
        acceleration = json['acceleration'];
        bootCapacity = json['bootCapacity'];
        topSpeed = json['topSpeed'];
        driveConcept = json['driveConcept'];
        combustionPowerHp = json['combustionPowerHp'];
        electricPowerKw = json['electricPowerKw'];
        electricPowerHp = json['electricPowerHp'];
        combinedPowerKw = json['combinedPowerKw'];
        combinedPowerHP = json['combinedPowerHP'];
        electricRange = json['electricRange'];
        electricConsumption = json['electricConsumption'];
        emissionCombined = json['emissionCombined'];
        emissionExtraUrban = json['emissionExtraUrban'];
        emissionUrban = json['emissionUrban'];
        emission = json['emission'];
        emissionDirective = json['emissionDirective'];
        energyEfficiencyClass = json['energyEfficiencyClass'];
        wltpCombined = json['wltpCombined'];
        wltpLow = json['wltpLow'];
        wltpMedium = json['wltpMedium'];
        wltpHigh = json['wltpHigh'];
        wltpExtraHigh = json['wltpExtraHigh'];
        wltpEmissionCombined = json['wltpEmissionCombined'];
        portArrivalDate = JsonConverters.fromJson(json['portArrivalDate'],'DateTime',context!);
        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'];
        mbukSecured = json['mbukSecured'];
        isAllocatedToBackOrder = json['isAllocatedToBackOrder'];
        backOrderReference = json['backOrderReference'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'vehicleDescription': vehicleDescription,
        'commissionNumber': commissionNumber,
        'vin': vin,
        'retailer': retailer,
        'model': model,
        'fuelType': fuelType,
        'transmission': transmission,
        'colour': colour,
        'actualPrice': actualPrice,
        'activeOffers': JsonConverters.toJson(activeOffers,'List<int>',context!),
        'daysAtSite': daysAtSite,
        'offerTotalCurrent': offerTotalCurrent,
        'offerExpiry': offerExpiry,
        'vehicleUsage': vehicleUsage,
        'underOffer': underOffer,
        'isSellable': isSellable,
        'vehicleType': vehicleType,
        'vid': vid,
        'fin': fin,
        'chassisNumber': chassisNumber,
        'line': line,
        'modelYear': modelYear,
        'modelYearCode': modelYearCode,
        'vehicleClass': vehicleClass,
        'retailPrice_ExVAT': retailPrice_ExVAT,
        'retailPrice_IncVAT': retailPrice_IncVAT,
        'otr': otr,
        'bodyStyle': bodyStyle,
        'productRange': productRange,
        'engine': engine,
        'isAMG': isAMG,
        'colourGroup': colourGroup,
        'upholstery': upholstery,
        'packages': packages,
        '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': JsonConverters.toJson(portArrivalDate,'DateTime',context!),
        '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,
        'mbukSecured': mbukSecured,
        'isAllocatedToBackOrder': isAllocatedToBackOrder,
        'backOrderReference': backOrderReference
    };

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

class DisplayStockResponse implements IConvertible
{
    List<DisplayStock>? vehicles = [];

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

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

    Map<String, dynamic> toJson() => {
        'vehicles': JsonConverters.toJson(vehicles,'List<DisplayStock>',context!)
    };

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

class DisplayStockRequest implements IPost, IConvertible
{
    /**
    * Gssns
    */
    // @ApiMember(Description="Gssns", IsRequired=true)
    List<String>? gssns = [];

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

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

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

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

TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'DisplayStock': TypeInfo(TypeOf.Class, create:() => DisplayStock()),
    'DisplayStockResponse': TypeInfo(TypeOf.Class, create:() => DisplayStockResponse()),
    'List<DisplayStock>': TypeInfo(TypeOf.Class, create:() => <DisplayStock>[]),
    'DisplayStockRequest': TypeInfo(TypeOf.Class, create:() => DisplayStockRequest()),
});

Dart DisplayStockRequest 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.

POST /v1/DisplayStock HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DisplayStockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
  <Gssns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Gssns>
</DisplayStockRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DisplayStockResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
  <Vehicles>
    <DisplayStock>
      <Acceleration>String</Acceleration>
      <Account>String</Account>
      <ActiveOffers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </ActiveOffers>
      <ActualPrice>String</ActualPrice>
      <BM7NST>String</BM7NST>
      <BackOrderReference>String</BackOrderReference>
      <BodyStyle>String</BodyStyle>
      <BootCapacity>String</BootCapacity>
      <CesarIdShipToParty>String</CesarIdShipToParty>
      <ChassisNumber>String</ChassisNumber>
      <Colour>String</Colour>
      <ColourGroup>String</ColourGroup>
      <CombinedPowerHP>String</CombinedPowerHP>
      <CombinedPowerKw>String</CombinedPowerKw>
      <CombustionPowerHp>String</CombustionPowerHp>
      <CommissionNumber>String</CommissionNumber>
      <CreationDate>0001-01-01T00:00:00</CreationDate>
      <DaysAtSite>String</DaysAtSite>
      <DisplayStockAgent>String</DisplayStockAgent>
      <DriveConcept>String</DriveConcept>
      <ElectricConsumption>String</ElectricConsumption>
      <ElectricPowerHp>String</ElectricPowerHp>
      <ElectricPowerKw>String</ElectricPowerKw>
      <ElectricRange>String</ElectricRange>
      <Emission>String</Emission>
      <EmissionCombined>String</EmissionCombined>
      <EmissionDirective>String</EmissionDirective>
      <EmissionExtraUrban>String</EmissionExtraUrban>
      <EmissionUrban>String</EmissionUrban>
      <EnergyEfficiencyClass>String</EnergyEfficiencyClass>
      <Engine>String</Engine>
      <Fin>String</Fin>
      <FuelType>String</FuelType>
      <IsAMG>false</IsAMG>
      <IsAllocatedToBackOrder>false</IsAllocatedToBackOrder>
      <IsDisplayStock>false</IsDisplayStock>
      <IsSellable>false</IsSellable>
      <IsSpecialistCar>false</IsSpecialistCar>
      <LastUpdated>0001-01-01T00:00:00</LastUpdated>
      <Line>String</Line>
      <Location>String</Location>
      <MbukSecured>false</MbukSecured>
      <Model>String</Model>
      <ModelYear>String</ModelYear>
      <ModelYearCode>String</ModelYearCode>
      <Nst>String</Nst>
      <OfferExpiry>String</OfferExpiry>
      <OfferTotalCurrent>String</OfferTotalCurrent>
      <Otr>String</Otr>
      <Packages>String</Packages>
      <PortArrivalDate>0001-01-01T00:00:00</PortArrivalDate>
      <ProductRange>String</ProductRange>
      <RetailPrice_ExVAT>String</RetailPrice_ExVAT>
      <RetailPrice_IncVAT>String</RetailPrice_IncVAT>
      <Retailer>String</Retailer>
      <TopSpeed>String</TopSpeed>
      <Transmission>String</Transmission>
      <UnderOffer>false</UnderOffer>
      <Upholstery>String</Upholstery>
      <VehicleClass>String</VehicleClass>
      <VehicleDescription>String</VehicleDescription>
      <VehicleType>String</VehicleType>
      <VehicleUsage>String</VehicleUsage>
      <VehicleUsageCode>String</VehicleUsageCode>
      <Vid>String</Vid>
      <Vin>String</Vin>
      <WltpCombined>String</WltpCombined>
      <WltpEmissionCombined>String</WltpEmissionCombined>
      <WltpExtraHigh>String</WltpExtraHigh>
      <WltpHigh>String</WltpHigh>
      <WltpLow>String</WltpLow>
      <WltpMedium>String</WltpMedium>
    </DisplayStock>
  </Vehicles>
</DisplayStockResponse>