Mercedes.Agency.Orchestration.API

<back to all web services

GetBackOrderVehicleOtherMatchCsvRequest

BackOrder
Requires Authentication
The following routes are available for this service:
GET/v1/backorder/othermatchcsv/{Guid}Get Back Order Matches by GuidGet Back Order Matches by Guid
#![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 GetBackOrderMatchRequest {
    pub guid: String,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct BackOrderVehicleCsv {
    #[serde(rename = "vehicleType")]
    pub vehicle_type: String,
    pub vid: String,
    pub vin: String,
    pub fin: String,
    #[serde(rename = "commissionNumber")]
    pub commission_number: String,
    #[serde(rename = "chassisNumber")]
    pub chassis_number: String,
    pub line: String,
    pub packages: Vec<String>,
    #[serde(rename = "modelYear")]
    pub model_year: String,
    #[serde(rename = "modelYearCode")]
    pub model_year_code: String,
    pub description: String,
    #[serde(rename = "vehicleClass")]
    pub vehicle_class: String,
    #[serde(rename = "retailPrice_ExVAT")]
    pub retail_price__ex_v_a_t: String,
    #[serde(rename = "retailPrice_IncVAT")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub retail_price__inc_v_a_t: Option<f64>,
    pub otr: String,
    #[serde(rename = "actualPrice")]
    pub actual_price: String,
    #[serde(rename = "bodyStyle")]
    pub body_style: String,
    pub model: String,
    pub colour: String,
    #[serde(rename = "colourGroup")]
    pub colour_group: String,
    pub fuel: String,
    #[serde(rename = "productRange")]
    pub product_range: String,
    pub engine: String,
    #[serde(rename = "isAMG")]
    pub is_a_m_g: bool,
    pub transmission: String,
    pub upholstery: String,
    pub nst: String,
    #[serde(rename = "bM7NST")]
    pub b_m7_n_s_t: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub acceleration: Option<f64>,
    #[serde(rename = "bootCapacity")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub boot_capacity: Option<f64>,
    #[serde(rename = "topSpeed")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub top_speed: Option<f64>,
    #[serde(rename = "driveConcept")]
    pub drive_concept: String,
    #[serde(rename = "combustionPowerHp")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub combustion_power_hp: Option<f64>,
    #[serde(rename = "electricPowerKw")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electric_power_kw: Option<f64>,
    #[serde(rename = "electricPowerHp")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electric_power_hp: Option<f64>,
    #[serde(rename = "combinedPowerKw")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub combined_power_kw: Option<f64>,
    #[serde(rename = "combinedPowerHP")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub combined_power_h_p: Option<f64>,
    #[serde(rename = "electricRange")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electric_range: Option<f64>,
    #[serde(rename = "electricConsumption")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electric_consumption: Option<f64>,
    #[serde(rename = "emissionCombined")]
    pub emission_combined: String,
    #[serde(rename = "emissionExtraUrban")]
    pub emission_extra_urban: String,
    #[serde(rename = "emissionUrban")]
    pub emission_urban: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub emission: Option<f64>,
    #[serde(rename = "emissionDirective")]
    pub emission_directive: String,
    #[serde(rename = "energyEfficiencyClass")]
    pub energy_efficiency_class: String,
    #[serde(rename = "wltpCombined")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_combined: Option<f64>,
    #[serde(rename = "wltpLow")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_low: Option<f64>,
    #[serde(rename = "wltpMedium")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_medium: Option<f64>,
    #[serde(rename = "wltpHigh")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_high: Option<f64>,
    #[serde(rename = "wltpExtraHigh")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_extra_high: Option<f64>,
    #[serde(rename = "wltpEmissionCombined")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wltp_emission_combined: Option<f64>,
    #[serde(rename = "portArrivalDate")]
    pub port_arrival_date: 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 = "isSellable")]
    pub is_sellable: bool,
    #[serde(rename = "underOffer")]
    pub under_offer: bool,
    #[serde(rename = "mbukSecured")]
    pub mbuk_secured: bool,
    #[serde(rename = "halfModelYearCode")]
    pub half_model_year_code: String,
    #[serde(rename = "fullModelYearCode")]
    pub full_model_year_code: String,
    #[serde(rename = "isMotability")]
    pub is_motability: bool,
    #[serde(rename = "confirmedProductionDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub confirmed_production_date: Option<String>,
    #[serde(rename = "forecastedArrivalDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub forecasted_arrival_date: Option<String>,
}

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

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct GetBackOrderVehicleOtherMatchCsvRequest {
    #[serde(flatten)]
    pub get_back_order_match_request: GetBackOrderMatchRequest,
}

Rust GetBackOrderVehicleOtherMatchCsvRequest DTOs

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

HTTP + JSV

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

GET /v1/backorder/othermatchcsv/{Guid} HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Vehicles: 
	[
		{
			VehicleType: String,
			Vid: String,
			Vin: String,
			Fin: String,
			CommissionNumber: String,
			ChassisNumber: String,
			Line: String,
			Packages: 
			[
				String
			],
			ModelYear: String,
			ModelYearCode: String,
			Description: String,
			VehicleClass: String,
			RetailPrice_ExVAT: String,
			RetailPrice_IncVAT: 0,
			OTR: String,
			ActualPrice: String,
			BodyStyle: String,
			Model: String,
			Colour: String,
			ColourGroup: String,
			Fuel: String,
			ProductRange: String,
			Engine: String,
			IsAMG: False,
			Transmission: String,
			Upholstery: String,
			Nst: String,
			BM7NST: String,
			Acceleration: 0,
			BootCapacity: 0,
			TopSpeed: 0,
			DriveConcept: String,
			CombustionPowerHp: 0,
			ElectricPowerKw: 0,
			ElectricPowerHp: 0,
			CombinedPowerKw: 0,
			CombinedPowerHP: 0,
			ElectricRange: 0,
			ElectricConsumption: 0,
			EmissionCombined: String,
			EmissionExtraUrban: String,
			EmissionUrban: String,
			Emission: 0,
			EmissionDirective: String,
			EnergyEfficiencyClass: String,
			WltpCombined: 0,
			WltpLow: 0,
			WltpMedium: 0,
			WltpHigh: 0,
			WltpExtraHigh: 0,
			WltpEmissionCombined: 0,
			PortArrivalDate: String,
			CreationDate: 0001-01-01,
			LastUpdated: 0001-01-01,
			IsDisplayStock: False,
			DisplayStockAgent: String,
			IsSpecialistCar: False,
			Account: String,
			Location: String,
			CesarIdShipToParty: String,
			VehicleUsageCode: String,
			IsSellable: False,
			UnderOffer: False,
			MbukSecured: False,
			HalfModelYearCode: String,
			FullModelYearCode: String,
			IsMotability: False,
			ConfirmedProductionDate: 0001-01-01,
			ForecastedArrivalDate: 0001-01-01
		}
	]
}