Mercedes.VehicleManagement.API

<back to all web services

DisplayStockOverviewRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/DisplayStockOverviewFilter Display Stock vehicle data with usedCode and MBUKSecured
#![allow(
    dead_code,
    non_camel_case_types,
    non_snake_case,
    clippy::upper_case_acronyms
)]

use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct VehicleDisplayStock {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vin: Option<String>,
    #[serde(rename = "vehicleDescription")]
    pub vehicle_description: String,
    #[serde(rename = "commissionNumber")]
    pub commission_number: String,
    pub retailer: String,
    pub model: String,
    #[serde(rename = "fuelType")]
    pub fuel_type: String,
    pub transmission: String,
    pub colour: String,
    #[serde(rename = "actualPrice")]
    pub actual_price: String,
    #[serde(rename = "gbDestDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gb_dest_date: Option<String>,
    #[serde(rename = "vehicleUsage")]
    pub vehicle_usage: String,
    #[serde(rename = "underOffer")]
    pub under_offer: bool,
    #[serde(rename = "isSellable")]
    pub is_sellable: bool,
    #[serde(rename = "vehicleType")]
    pub vehicle_type: String,
    pub vid: String,
    pub fin: String,
    #[serde(rename = "chassisNumber")]
    pub chassis_number: String,
    pub line: String,
    #[serde(rename = "modelYear")]
    pub model_year: String,
    #[serde(rename = "modelYearCode")]
    pub model_year_code: String,
    #[serde(rename = "vehicleClass")]
    pub vehicle_class: String,
    #[serde(rename = "retailPrice_ExVAT")]
    pub retail_price__ex_v_a_t: String,
    #[serde(rename = "retailPrice_IncVAT")]
    pub retail_price__inc_v_a_t: String,
    pub otr: String,
    #[serde(rename = "bodyStyle")]
    pub body_style: String,
    #[serde(rename = "productRange")]
    pub product_range: String,
    pub engine: String,
    #[serde(rename = "isAMG")]
    pub is_a_m_g: bool,
    #[serde(rename = "colourGroup")]
    pub colour_group: String,
    pub upholstery: String,
    pub packages: String,
    pub nst: String,
    #[serde(rename = "bM7NST")]
    pub b_m7_n_s_t: String,
    pub acceleration: String,
    #[serde(rename = "bootCapacity")]
    pub boot_capacity: String,
    #[serde(rename = "topSpeed")]
    pub top_speed: String,
    #[serde(rename = "driveConcept")]
    pub drive_concept: String,
    #[serde(rename = "combustionPowerHp")]
    pub combustion_power_hp: String,
    #[serde(rename = "electricPowerKw")]
    pub electric_power_kw: String,
    #[serde(rename = "electricPowerHp")]
    pub electric_power_hp: String,
    #[serde(rename = "combinedPowerKw")]
    pub combined_power_kw: String,
    #[serde(rename = "combinedPowerHP")]
    pub combined_power_h_p: String,
    #[serde(rename = "electricRange")]
    pub electric_range: String,
    #[serde(rename = "electricConsumption")]
    pub electric_consumption: String,
    #[serde(rename = "emissionCombined")]
    pub emission_combined: String,
    #[serde(rename = "emissionExtraUrban")]
    pub emission_extra_urban: String,
    #[serde(rename = "emissionUrban")]
    pub emission_urban: String,
    pub emission: String,
    #[serde(rename = "emissionDirective")]
    pub emission_directive: String,
    #[serde(rename = "energyEfficiencyClass")]
    pub energy_efficiency_class: String,
    #[serde(rename = "wltpCombined")]
    pub wltp_combined: String,
    #[serde(rename = "wltpLow")]
    pub wltp_low: String,
    #[serde(rename = "wltpMedium")]
    pub wltp_medium: String,
    #[serde(rename = "wltpHigh")]
    pub wltp_high: String,
    #[serde(rename = "wltpExtraHigh")]
    pub wltp_extra_high: String,
    #[serde(rename = "wltpEmissionCombined")]
    pub wltp_emission_combined: String,
    #[serde(rename = "portArrivalDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port_arrival_date: Option<String>,
    #[serde(rename = "creationDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub creation_date: Option<String>,
    #[serde(rename = "lastUpdated")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_updated: Option<String>,
    #[serde(rename = "isDisplayStock")]
    pub is_display_stock: bool,
    #[serde(rename = "displayStockAgent")]
    pub display_stock_agent: String,
    #[serde(rename = "isSpecialistCar")]
    pub is_specialist_car: bool,
    pub account: String,
    pub location: String,
    #[serde(rename = "cesarIdShipToParty")]
    pub cesar_id_ship_to_party: String,
    #[serde(rename = "vehicleUsageCode")]
    pub vehicle_usage_code: String,
    #[serde(rename = "mbukSecured")]
    pub mbuk_secured: bool,
    #[serde(rename = "isAllocatedToBackOrder")]
    pub is_allocated_to_back_order: bool,
    #[serde(rename = "backOrderReference")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub back_order_reference: Option<String>,
    #[serde(rename = "marketAreaName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub market_area_name: Option<String>,
    #[serde(rename = "marketAreaId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub market_area_id: Option<i32>,
    #[serde(rename = "daysAtSite")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub days_at_site: Option<String>,
    #[serde(rename = "eligibleForMaTransfer")]
    pub eligible_for_ma_transfer: bool,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct DisplayStockOverviewResponse {
    pub vehicles: Vec<VehicleDisplayStock>,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct DisplayStockOverviewRequest {
    /// Is vehicle secured
    // ApiMember(Description="Is vehicle secured", IsRequired=true)
    #[serde(rename = "isSecured")]
    pub is_secured: Option<bool>,
    /// Usage codes
    // ApiMember(Description="Usage codes", IsRequired=true)
    #[serde(rename = "usageCode")]
    pub usage_code: Vec<String>,
}

Rust DisplayStockOverviewRequest 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/DisplayStockOverview HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<DisplayStockOverviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
  <Vehicles>
    <VehicleDisplayStock>
      <Acceleration>String</Acceleration>
      <Account>String</Account>
      <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>
      <EligibleForMaTransfer>false</EligibleForMaTransfer>
      <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>
      <GBDestDate>0001-01-01T00:00:00</GBDestDate>
      <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>
      <MarketAreaId>0</MarketAreaId>
      <MarketAreaName>String</MarketAreaName>
      <MbukSecured>false</MbukSecured>
      <Model>String</Model>
      <ModelYear>String</ModelYear>
      <ModelYearCode>String</ModelYearCode>
      <Nst>String</Nst>
      <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>
    </VehicleDisplayStock>
  </Vehicles>
</DisplayStockOverviewResponse>