GET | /v1/details/{vehicleType}/{Identifier} | Get Vehicle Details | |
---|---|---|---|
GET | /details/{vehicleType}/{Identifier} | Get Vehicle Details |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class VehicleDetailsRequest implements IGet
{
public String identifier = null;
public String vehicleType = null;
public String getIdentifier() { return identifier; }
public VehicleDetailsRequest setIdentifier(String value) { this.identifier = value; return this; }
public String getVehicleType() { return vehicleType; }
public VehicleDetailsRequest setVehicleType(String value) { this.vehicleType = value; return this; }
}
public static class VehicleDetailsResponse
{
public BackOrderVehicleDetails vehicle = null;
public BackOrderVehicleDetails getVehicle() { return vehicle; }
public VehicleDetailsResponse setVehicle(BackOrderVehicleDetails value) { this.vehicle = value; return this; }
}
public static class BackOrderVehicleDetails extends BackOrderVehicleDetailsBase
{
public String engine = null;
public String getEngine() { return engine; }
public BackOrderVehicleDetails setEngine(String value) { this.engine = value; return this; }
}
public static class BackOrderVehicleDetailsBase
{
public String vin = null;
public String commissionNumber = null;
public String description = null;
public String model = null;
public String fullModelYearCode = null;
public Integer retailerId = null;
public String imageUrl = null;
public String colour = null;
public String colourDescription = null;
public String bodyStyle = null;
public String fuelType = null;
public String transmission = null;
public String transmissionType = null;
@SerializedName("package") public String Package = null;
public ArrayList<String> packages = new ArrayList<String>();
public String line = null;
public String upholstery = null;
public String upholsteryDescription = null;
public String usageCode = null;
public String account = null;
public String nst = null;
public String baumuster = null;
public BigDecimal electricRange = null;
public BigDecimal electricConsumption = null;
public BigDecimal retailPrice_ExVAT = null;
public BigDecimal actualPrice = null;
public BigDecimal otrPrice = null;
public String vehicleType = null;
public Boolean secured = null;
public String productionDate = null;
public Date portArrivalDate = null;
public String displayRetailer = null;
public String location = null;
public String bm7NST = null;
public Boolean isAvailableOnline = null;
public Boolean isSpecialistCar = null;
public Boolean isSellable = null;
public Boolean inBackOrderAccount = null;
public ArrayList<VehicleAuditDetails> vehicleAuditDetails = new ArrayList<VehicleAuditDetails>();
public ArrayList<String> ispVehicleCustomerDescriptions = null;
public Boolean underOffer = null;
public Boolean isAllocatedToBackOrder = null;
public String getVin() { return vin; }
public BackOrderVehicleDetailsBase setVin(String value) { this.vin = value; return this; }
public String getCommissionNumber() { return commissionNumber; }
public BackOrderVehicleDetailsBase setCommissionNumber(String value) { this.commissionNumber = value; return this; }
public String getDescription() { return description; }
public BackOrderVehicleDetailsBase setDescription(String value) { this.description = value; return this; }
public String getModel() { return model; }
public BackOrderVehicleDetailsBase setModel(String value) { this.model = value; return this; }
public String getFullModelYearCode() { return fullModelYearCode; }
public BackOrderVehicleDetailsBase setFullModelYearCode(String value) { this.fullModelYearCode = value; return this; }
public Integer getRetailerId() { return retailerId; }
public BackOrderVehicleDetailsBase setRetailerId(Integer value) { this.retailerId = value; return this; }
public String getImageUrl() { return imageUrl; }
public BackOrderVehicleDetailsBase setImageUrl(String value) { this.imageUrl = value; return this; }
public String getColour() { return colour; }
public BackOrderVehicleDetailsBase setColour(String value) { this.colour = value; return this; }
public String getColourDescription() { return colourDescription; }
public BackOrderVehicleDetailsBase setColourDescription(String value) { this.colourDescription = value; return this; }
public String getBodyStyle() { return bodyStyle; }
public BackOrderVehicleDetailsBase setBodyStyle(String value) { this.bodyStyle = value; return this; }
public String getFuelType() { return fuelType; }
public BackOrderVehicleDetailsBase setFuelType(String value) { this.fuelType = value; return this; }
public String getTransmission() { return transmission; }
public BackOrderVehicleDetailsBase setTransmission(String value) { this.transmission = value; return this; }
public String getTransmissionType() { return transmissionType; }
public BackOrderVehicleDetailsBase setTransmissionType(String value) { this.transmissionType = value; return this; }
public String getPackage() { return Package; }
public BackOrderVehicleDetailsBase setPackage(String value) { this.Package = value; return this; }
public ArrayList<String> getPackages() { return packages; }
public BackOrderVehicleDetailsBase setPackages(ArrayList<String> value) { this.packages = value; return this; }
public String getLine() { return line; }
public BackOrderVehicleDetailsBase setLine(String value) { this.line = value; return this; }
public String getUpholstery() { return upholstery; }
public BackOrderVehicleDetailsBase setUpholstery(String value) { this.upholstery = value; return this; }
public String getUpholsteryDescription() { return upholsteryDescription; }
public BackOrderVehicleDetailsBase setUpholsteryDescription(String value) { this.upholsteryDescription = value; return this; }
public String getUsageCode() { return usageCode; }
public BackOrderVehicleDetailsBase setUsageCode(String value) { this.usageCode = value; return this; }
public String getAccount() { return account; }
public BackOrderVehicleDetailsBase setAccount(String value) { this.account = value; return this; }
public String getNst() { return nst; }
public BackOrderVehicleDetailsBase setNst(String value) { this.nst = value; return this; }
public String getBaumuster() { return baumuster; }
public BackOrderVehicleDetailsBase setBaumuster(String value) { this.baumuster = value; return this; }
public BigDecimal getElectricRange() { return electricRange; }
public BackOrderVehicleDetailsBase setElectricRange(BigDecimal value) { this.electricRange = value; return this; }
public BigDecimal getElectricConsumption() { return electricConsumption; }
public BackOrderVehicleDetailsBase setElectricConsumption(BigDecimal value) { this.electricConsumption = value; return this; }
public BigDecimal getRetailPriceExVAT() { return retailPrice_ExVAT; }
public BackOrderVehicleDetailsBase setRetailPriceExVAT(BigDecimal value) { this.retailPrice_ExVAT = value; return this; }
public BigDecimal getActualPrice() { return actualPrice; }
public BackOrderVehicleDetailsBase setActualPrice(BigDecimal value) { this.actualPrice = value; return this; }
public BigDecimal getOtrPrice() { return otrPrice; }
public BackOrderVehicleDetailsBase setOtrPrice(BigDecimal value) { this.otrPrice = value; return this; }
public String getVehicleType() { return vehicleType; }
public BackOrderVehicleDetailsBase setVehicleType(String value) { this.vehicleType = value; return this; }
public Boolean isSecured() { return secured; }
public BackOrderVehicleDetailsBase setSecured(Boolean value) { this.secured = value; return this; }
public String getProductionDate() { return productionDate; }
public BackOrderVehicleDetailsBase setProductionDate(String value) { this.productionDate = value; return this; }
public Date getPortArrivalDate() { return portArrivalDate; }
public BackOrderVehicleDetailsBase setPortArrivalDate(Date value) { this.portArrivalDate = value; return this; }
public String getDisplayRetailer() { return displayRetailer; }
public BackOrderVehicleDetailsBase setDisplayRetailer(String value) { this.displayRetailer = value; return this; }
public String getLocation() { return location; }
public BackOrderVehicleDetailsBase setLocation(String value) { this.location = value; return this; }
public String getBm7NST() { return bm7NST; }
public BackOrderVehicleDetailsBase setBm7NST(String value) { this.bm7NST = value; return this; }
public Boolean getIsAvailableOnline() { return isAvailableOnline; }
public BackOrderVehicleDetailsBase setIsAvailableOnline(Boolean value) { this.isAvailableOnline = value; return this; }
public Boolean getIsSpecialistCar() { return isSpecialistCar; }
public BackOrderVehicleDetailsBase setIsSpecialistCar(Boolean value) { this.isSpecialistCar = value; return this; }
public Boolean getIsSellable() { return isSellable; }
public BackOrderVehicleDetailsBase setIsSellable(Boolean value) { this.isSellable = value; return this; }
public Boolean isInBackOrderAccount() { return inBackOrderAccount; }
public BackOrderVehicleDetailsBase setInBackOrderAccount(Boolean value) { this.inBackOrderAccount = value; return this; }
public ArrayList<VehicleAuditDetails> getVehicleAuditDetails() { return vehicleAuditDetails; }
public BackOrderVehicleDetailsBase setVehicleAuditDetails(ArrayList<VehicleAuditDetails> value) { this.vehicleAuditDetails = value; return this; }
public ArrayList<String> getIspVehicleCustomerDescriptions() { return ispVehicleCustomerDescriptions; }
public BackOrderVehicleDetailsBase setIspVehicleCustomerDescriptions(ArrayList<String> value) { this.ispVehicleCustomerDescriptions = value; return this; }
public Boolean isUnderOffer() { return underOffer; }
public BackOrderVehicleDetailsBase setUnderOffer(Boolean value) { this.underOffer = value; return this; }
public Boolean getIsAllocatedToBackOrder() { return isAllocatedToBackOrder; }
public BackOrderVehicleDetailsBase setIsAllocatedToBackOrder(Boolean value) { this.isAllocatedToBackOrder = value; return this; }
}
public static class VehicleAuditDetails
{
public String userId = null;
public Boolean status = null;
public String notes = null;
public String creationDate = null;
public String getUserId() { return userId; }
public VehicleAuditDetails setUserId(String value) { this.userId = value; return this; }
public Boolean isStatus() { return status; }
public VehicleAuditDetails setStatus(Boolean value) { this.status = value; return this; }
public String getNotes() { return notes; }
public VehicleAuditDetails setNotes(String value) { this.notes = value; return this; }
public String getCreationDate() { return creationDate; }
public VehicleAuditDetails setCreationDate(String value) { this.creationDate = value; return this; }
}
}
Java VehicleDetailsRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/details/{vehicleType}/{Identifier} 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 {"vehicle":{"engine":"String","vin":"String","commissionNumber":"String","description":"String","model":"String","fullModelYearCode":"String","retailerId":0,"imageUrl":"String","colour":"String","colourDescription":"String","bodyStyle":"String","fuelType":"String","transmission":"String","transmissionType":"String","package":"String","packages":["String"],"line":"String","upholstery":"String","upholsteryDescription":"String","usageCode":"String","account":"String","nst":"String","baumuster":"String","electricRange":0,"electricConsumption":0,"retailPrice_ExVAT":0,"actualPrice":0,"otrPrice":0,"vehicleType":"String","secured":false,"productionDate":"String","portArrivalDate":"\/Date(-62135596800000-0000)\/","displayRetailer":"String","location":"String","bm7NST":"String","isAvailableOnline":false,"isSpecialistCar":false,"isSellable":false,"inBackOrderAccount":false,"vehicleAuditDetails":[{"userId":"String","status":false,"notes":"String","creationDate":"String"}],"ispVehicleCustomerDescriptions":["String"],"underOffer":false,"isAllocatedToBackOrder":false}}