GET | /v1/vehicle/MotabilityVehicles | Get 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 .other suffix or ?format=other
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: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"TotalVehicles":0,"Vehicles":[{"CommissionNumber":"String","Vin":"String","Vtn":"String","Description":"String","Model":"String","BM7NST":"String","ModelYearCode":"String","HalfModelYearCode":"String","FullModelYearCode":"String.String","Fuel":"String","PrimaryPaintColourCode":"String","Colour":"String","PrimaryUpholsteryCode":"String","Upholstery":"String","Account":"String","Location":"String","IsDisplayStock":false,"DisplayStockAgent":"String","IsSellable":false}]}