Mercedes.Agency.Orchestration.API

<back to all web services

GetMotabilityVehiclesRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/vehicle/MotabilityVehiclesGet motability eligible vehicles
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetMotabilityVehiclesRequest
    {
        
    }

    public static class MotabilityStockResponse<T>
    {
        public Integer TotalVehicles = null;
        public ArrayList<MotabilityVehicle> Vehicles = new ArrayList<MotabilityVehicle>();
        
        public Integer getTotalVehicles() { return TotalVehicles; }
        public MotabilityStockResponse<T> setTotalVehicles(Integer value) { this.TotalVehicles = value; return this; }
        public ArrayList<MotabilityVehicle> getVehicles() { return Vehicles; }
        public MotabilityStockResponse<T> setVehicles(ArrayList<MotabilityVehicle> value) { this.Vehicles = value; return this; }
    }

    public static class MotabilityVehicle implements IPackages, IMotabilityFilterFields
    {
        public String CommissionNumber = null;
        public String Vin = null;
        public String Vtn = null;
        public String Description = null;
        public String Model = null;
        public String BM7NST = null;
        public String ModelYearCode = null;
        public String HalfModelYearCode = null;
        public String FullModelYearCode = null;
        public String Fuel = null;
        public String PrimaryPaintColourCode = null;
        public String Colour = null;
        public String PrimaryUpholsteryCode = null;
        public String Upholstery = null;
        public ArrayList<Package> Packages = null;
        public String Account = null;
        public String Location = null;
        public Boolean IsDisplayStock = null;
        public String DisplayStockAgent = null;
        public Boolean IsSellable = null;
        
        public String getCommissionNumber() { return CommissionNumber; }
        public MotabilityVehicle setCommissionNumber(String value) { this.CommissionNumber = value; return this; }
        public String getVin() { return Vin; }
        public MotabilityVehicle setVin(String value) { this.Vin = value; return this; }
        public String getVtn() { return Vtn; }
        public MotabilityVehicle setVtn(String value) { this.Vtn = value; return this; }
        public String getDescription() { return Description; }
        public MotabilityVehicle setDescription(String value) { this.Description = value; return this; }
        public String getModel() { return Model; }
        public MotabilityVehicle setModel(String value) { this.Model = value; return this; }
        public String getBM7NST() { return BM7NST; }
        public MotabilityVehicle setBM7NST(String value) { this.BM7NST = value; return this; }
        public String getModelYearCode() { return ModelYearCode; }
        public MotabilityVehicle setModelYearCode(String value) { this.ModelYearCode = value; return this; }
        public String getHalfModelYearCode() { return HalfModelYearCode; }
        public MotabilityVehicle setHalfModelYearCode(String value) { this.HalfModelYearCode = value; return this; }
        public String getFullModelYearCode() { return FullModelYearCode; }
        public MotabilityVehicle setFullModelYearCode(String value) { this.FullModelYearCode = value; return this; }
        public String getFuel() { return Fuel; }
        public MotabilityVehicle setFuel(String value) { this.Fuel = value; return this; }
        public String getPrimaryPaintColourCode() { return PrimaryPaintColourCode; }
        public MotabilityVehicle setPrimaryPaintColourCode(String value) { this.PrimaryPaintColourCode = value; return this; }
        public String getColour() { return Colour; }
        public MotabilityVehicle setColour(String value) { this.Colour = value; return this; }
        public String getPrimaryUpholsteryCode() { return PrimaryUpholsteryCode; }
        public MotabilityVehicle setPrimaryUpholsteryCode(String value) { this.PrimaryUpholsteryCode = value; return this; }
        public String getUpholstery() { return Upholstery; }
        public MotabilityVehicle setUpholstery(String value) { this.Upholstery = value; return this; }
        public ArrayList<Package> getPackages() { return Packages; }
        public MotabilityVehicle setPackages(ArrayList<Package> value) { this.Packages = value; return this; }
        public String getAccount() { return Account; }
        public MotabilityVehicle setAccount(String value) { this.Account = value; return this; }
        public String getLocation() { return Location; }
        public MotabilityVehicle setLocation(String value) { this.Location = value; return this; }
        public Boolean getIsDisplayStock() { return IsDisplayStock; }
        public MotabilityVehicle setIsDisplayStock(Boolean value) { this.IsDisplayStock = value; return this; }
        public String getDisplayStockAgent() { return DisplayStockAgent; }
        public MotabilityVehicle setDisplayStockAgent(String value) { this.DisplayStockAgent = value; return this; }
        public Boolean getIsSellable() { return IsSellable; }
        public MotabilityVehicle setIsSellable(Boolean value) { this.IsSellable = value; return this; }
    }

    public static class Package
    {
        public Integer Id = null;
        public String Description = null;
        
        public Integer getId() { return Id; }
        public Package setId(Integer value) { this.Id = value; return this; }
        public String getDescription() { return Description; }
        public Package setDescription(String value) { this.Description = value; return this; }
    }

}

Java GetMotabilityVehiclesRequest 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/MotabilityVehicles HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MotabilityStockResponseOfMotabilityVehicleQN4VPG_PB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
  <TotalVehicles>0</TotalVehicles>
  <Vehicles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
    <d2p1:MotabilityVehicle>
      <d2p1:Account>String</d2p1:Account>
      <d2p1:BM7NST>String</d2p1:BM7NST>
      <d2p1:Colour>String</d2p1:Colour>
      <d2p1:CommissionNumber>String</d2p1:CommissionNumber>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:DisplayStockAgent>String</d2p1:DisplayStockAgent>
      <d2p1:Fuel>String</d2p1:Fuel>
      <d2p1:HalfModelYearCode>String</d2p1:HalfModelYearCode>
      <d2p1:IsDisplayStock>false</d2p1:IsDisplayStock>
      <d2p1:IsSellable>false</d2p1:IsSellable>
      <d2p1:Location>String</d2p1:Location>
      <d2p1:Model>String</d2p1:Model>
      <d2p1:ModelYearCode>String</d2p1:ModelYearCode>
      <d2p1:Packages xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO.Filters.v3" i:nil="true" />
      <d2p1:PrimaryPaintColourCode>String</d2p1:PrimaryPaintColourCode>
      <d2p1:PrimaryUpholsteryCode>String</d2p1:PrimaryUpholsteryCode>
      <d2p1:Upholstery>String</d2p1:Upholstery>
      <d2p1:Vin>String</d2p1:Vin>
      <d2p1:Vtn>String</d2p1:Vtn>
    </d2p1:MotabilityVehicle>
  </Vehicles>
</MotabilityStockResponseOfMotabilityVehicleQN4VPG_PB>