Mercedes.VehicleManagement.API

<back to all web services

SecuredOfflineVehicleRequest

Requires Authentication
The following routes are available for this service:
GET/v1/Vehicle/SecuredOfflineGet all secured vehicles which are offlineGet audit of all secured vehicles which are currently offline, including the user who secured it, the date and the reason.
#![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 SecuredOfflineVehicle {
    #[serde(rename = "commissionNumber")]
    pub commission_number: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vin: Option<String>,
    #[serde(rename = "salesDescription")]
    pub sales_description: String,
    pub model: String,
    pub colour: String,
    #[serde(rename = "fuelType")]
    pub fuel_type: String,
    pub upholstery: String,
    pub account: String,
    #[serde(rename = "gasId")]
    pub gas_id: String,
    #[serde(rename = "secureReason")]
    pub secure_reason: String,
    #[serde(rename = "secureDate")]
    pub secure_date: String,
    #[serde(rename = "offlineDate")]
    pub offline_date: String,
}

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

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct SecuredOfflineVehicleRequest {}

Rust SecuredOfflineVehicleRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"vehicles":[{"commissionNumber":"String","vin":"String","salesDescription":"String","model":"String","colour":"String","fuelType":"String","upholstery":"String","account":"String","gasId":"String","secureReason":"String","secureDate":"String","offlineDate":"String"}]}