POST | /v1/OnlineShowroomCsv/Stock | Search for Online Showroom Stock | Calls Vehicle Data API online showroom stock endpoint and searches for vehicles given a list of retailers. The results are used to populate the Online Showroom Stock full detail CSV export in OneAdmin |
---|
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 OnlineShowroomStockCsvRequest implements IPost
{
public ArrayList<String> gssns = new ArrayList<String>();
public ArrayList<String> getGssns() { return gssns; }
public OnlineShowroomStockCsvRequest setGssns(ArrayList<String> value) { this.gssns = value; return this; }
}
public static class InternalAvailableStockResponse
{
public Integer totalVehicles = null;
public ArrayList<CsvVehicle> vehicles = null;
public Integer getTotalVehicles() { return totalVehicles; }
public InternalAvailableStockResponse setTotalVehicles(Integer value) { this.totalVehicles = value; return this; }
public ArrayList<CsvVehicle> getVehicles() { return vehicles; }
public InternalAvailableStockResponse setVehicles(ArrayList<CsvVehicle> value) { this.vehicles = value; return this; }
}
public static class CsvVehicle
{
@DataMember(Name="Vehicle Type")
@SerializedName("Vehicle Type")
public String vehicleType = null;
public String vid = null;
public String vin = null;
public String fin = null;
@DataMember(Name="Comm")
@SerializedName("Comm")
public String commissionNumber = null;
@DataMember(Name="Chassis Number")
@SerializedName("Chassis Number")
public String chassisNumber = null;
@DataMember(Name="Model Year")
@SerializedName("Model Year")
public String modelYear = null;
@DataMember(Name="Model Year Code")
@SerializedName("Model Year Code")
public String modelYearCode = null;
@DataMember(Name="Half Model Year Code")
@SerializedName("Half Model Year Code")
public String halfModelYearCode = null;
@DataMember(Name="Full Model Year Code")
@SerializedName("Full Model Year Code")
public String fullModelYearCode = null;
@DataMember(Name="Description")
@SerializedName("Description")
public String salesDescriptionLong = null;
@DataMember(Name="Vehicle Class")
@SerializedName("Vehicle Class")
public String vehicleClass = null;
@DataMember(Name="Body Style")
@SerializedName("Body Style")
public String bodyStyle = null;
public String model = null;
public String colour = null;
@DataMember(Name="Colour Group")
@SerializedName("Colour Group")
public String colourGroup = null;
@DataMember(Name="Fuel Type")
@SerializedName("Fuel Type")
public String fuelType = null;
public String transmission = null;
public String packages = null;
public String lines = null;
@DataMember(Name="Product Range")
@SerializedName("Product Range")
public String productRange = null;
public String engine = null;
public Boolean isAMG = null;
public String upholstery = null;
public String nst = null;
public String baumuster = null;
public String bm7NST = null;
public BigDecimal acceleration = null;
@DataMember(Name="Boot Capacity")
@SerializedName("Boot Capacity")
public Integer bootCapacity = null;
@DataMember(Name="Top Speed")
@SerializedName("Top Speed")
public BigDecimal topSpeed = null;
@DataMember(Name="Drive Concept")
@SerializedName("Drive Concept")
public String driveConcept = null;
@DataMember(Name="Combustion Power HP")
@SerializedName("Combustion Power HP")
public BigDecimal combustionPowerHp = null;
@DataMember(Name="Electric Power KW")
@SerializedName("Electric Power KW")
public BigDecimal electricPowerKw = null;
@DataMember(Name="Electric Power HP")
@SerializedName("Electric Power HP")
public BigDecimal electricPowerHp = null;
@DataMember(Name="Combined Power KW")
@SerializedName("Combined Power KW")
public BigDecimal combinedPowerKw = null;
@DataMember(Name="Combined Power HP")
@SerializedName("Combined Power HP")
public BigDecimal combinedPowerHP = null;
@DataMember(Name="Electric Range")
@SerializedName("Electric Range")
public BigDecimal electricRange = null;
@DataMember(Name="Electric Consumption")
@SerializedName("Electric Consumption")
public BigDecimal electricConsumption = null;
@DataMember(Name="Emission Combined")
@SerializedName("Emission Combined")
public String emissionCombined = null;
@DataMember(Name="Emission Directive")
@SerializedName("Emission Directive")
public String emissionDirective = null;
@DataMember(Name="Emission Extra Urban")
@SerializedName("Emission Extra Urban")
public String emissionExtraUrban = null;
@DataMember(Name="Emission Urban")
@SerializedName("Emission Urban")
public String emissionUrban = null;
public BigDecimal emission = null;
@DataMember(Name="Test Standard")
@SerializedName("Test Standard")
public String testStandard = null;
@DataMember(Name="Energy Efficiency Class")
@SerializedName("Energy Efficiency Class")
public String energyEfficiencyClass = null;
@DataMember(Name="WLTP Combined")
@SerializedName("WLTP Combined")
public String wltpCombined = null;
@DataMember(Name="WLTP Low")
@SerializedName("WLTP Low")
public String wltpLow = null;
@DataMember(Name="WLTP Medium")
@SerializedName("WLTP Medium")
public String wltpMedium = null;
@DataMember(Name="WLTP High")
@SerializedName("WLTP High")
public String wltpHigh = null;
@DataMember(Name="WLTP Extra High")
@SerializedName("WLTP Extra High")
public String wltpExtraHigh = null;
@DataMember(Name="WLTP CO2 Emissions")
@SerializedName("WLTP CO2 Emissions")
public String wltpEmissionCombined = null;
@DataMember(Name="Production Date")
@SerializedName("Production Date")
public Date productionDate = null;
@DataMember(Name="Port Arrival Date")
@SerializedName("Port Arrival Date")
public Date portArrivalDate = null;
@DataMember(Name="Creation Date")
@SerializedName("Creation Date")
public Date creationDate = null;
@DataMember(Name="Maintenance Date")
@SerializedName("Maintenance Date")
public Date lastUpdated = null;
@DataMember(Name="Net Price")
@SerializedName("Net Price")
public BigDecimal retailPrice_ExVAT = null;
@DataMember(Name="Retail Price")
@SerializedName("Retail Price")
public BigDecimal retailPrice_IncVAT = null;
@DataMember(Name="OTR Price")
@SerializedName("OTR Price")
public BigDecimal otr = null;
@DataMember(Name="Actual Price")
@SerializedName("Actual Price")
public BigDecimal actualPrice = null;
@DataMember(Name="Usage Code")
@SerializedName("Usage Code")
public String usageCode = null;
public String secured = null;
public String account = null;
public String isDisplayStock = null;
@DataMember(Name="Display Agent")
@SerializedName("Display Agent")
public String displayStockAgent = null;
public String isSpecialistCar = null;
public String cesarIdShipToParty = null;
public String isSellable = null;
@DataMember(Name="Under Offer")
@SerializedName("Under Offer")
public String underOffer = null;
@DataMember(Name="Secured Date")
@SerializedName("Secured Date")
public String securedDate = null;
@DataMember(Name="Secured Reason")
@SerializedName("Secured Reason")
public String securedReason = null;
@DataMember(Name="Secured By Gas Id")
@SerializedName("Secured By Gas Id")
public String securedByGasId = null;
public String getVehicleType() { return vehicleType; }
public CsvVehicle setVehicleType(String value) { this.vehicleType = value; return this; }
public String getVid() { return vid; }
public CsvVehicle setVid(String value) { this.vid = value; return this; }
public String getVin() { return vin; }
public CsvVehicle setVin(String value) { this.vin = value; return this; }
public String getFin() { return fin; }
public CsvVehicle setFin(String value) { this.fin = value; return this; }
public String getCommissionNumber() { return commissionNumber; }
public CsvVehicle setCommissionNumber(String value) { this.commissionNumber = value; return this; }
public String getChassisNumber() { return chassisNumber; }
public CsvVehicle setChassisNumber(String value) { this.chassisNumber = value; return this; }
public String getModelYear() { return modelYear; }
public CsvVehicle setModelYear(String value) { this.modelYear = value; return this; }
public String getModelYearCode() { return modelYearCode; }
public CsvVehicle setModelYearCode(String value) { this.modelYearCode = value; return this; }
public String getHalfModelYearCode() { return halfModelYearCode; }
public CsvVehicle setHalfModelYearCode(String value) { this.halfModelYearCode = value; return this; }
public String getFullModelYearCode() { return fullModelYearCode; }
public CsvVehicle setFullModelYearCode(String value) { this.fullModelYearCode = value; return this; }
public String getSalesDescriptionLong() { return salesDescriptionLong; }
public CsvVehicle setSalesDescriptionLong(String value) { this.salesDescriptionLong = value; return this; }
public String getVehicleClass() { return vehicleClass; }
public CsvVehicle setVehicleClass(String value) { this.vehicleClass = value; return this; }
public String getBodyStyle() { return bodyStyle; }
public CsvVehicle setBodyStyle(String value) { this.bodyStyle = value; return this; }
public String getModel() { return model; }
public CsvVehicle setModel(String value) { this.model = value; return this; }
public String getColour() { return colour; }
public CsvVehicle setColour(String value) { this.colour = value; return this; }
public String getColourGroup() { return colourGroup; }
public CsvVehicle setColourGroup(String value) { this.colourGroup = value; return this; }
public String getFuelType() { return fuelType; }
public CsvVehicle setFuelType(String value) { this.fuelType = value; return this; }
public String getTransmission() { return transmission; }
public CsvVehicle setTransmission(String value) { this.transmission = value; return this; }
public String getPackages() { return packages; }
public CsvVehicle setPackages(String value) { this.packages = value; return this; }
public String getLines() { return lines; }
public CsvVehicle setLines(String value) { this.lines = value; return this; }
public String getProductRange() { return productRange; }
public CsvVehicle setProductRange(String value) { this.productRange = value; return this; }
public String getEngine() { return engine; }
public CsvVehicle setEngine(String value) { this.engine = value; return this; }
public Boolean getIsAMG() { return isAMG; }
public CsvVehicle setIsAMG(Boolean value) { this.isAMG = value; return this; }
public String getUpholstery() { return upholstery; }
public CsvVehicle setUpholstery(String value) { this.upholstery = value; return this; }
public String getNst() { return nst; }
public CsvVehicle setNst(String value) { this.nst = value; return this; }
public String getBaumuster() { return baumuster; }
public CsvVehicle setBaumuster(String value) { this.baumuster = value; return this; }
public String getBm7NST() { return bm7NST; }
public CsvVehicle setBm7NST(String value) { this.bm7NST = value; return this; }
public BigDecimal getAcceleration() { return acceleration; }
public CsvVehicle setAcceleration(BigDecimal value) { this.acceleration = value; return this; }
public Integer getBootCapacity() { return bootCapacity; }
public CsvVehicle setBootCapacity(Integer value) { this.bootCapacity = value; return this; }
public BigDecimal getTopSpeed() { return topSpeed; }
public CsvVehicle setTopSpeed(BigDecimal value) { this.topSpeed = value; return this; }
public String getDriveConcept() { return driveConcept; }
public CsvVehicle setDriveConcept(String value) { this.driveConcept = value; return this; }
public BigDecimal getCombustionPowerHp() { return combustionPowerHp; }
public CsvVehicle setCombustionPowerHp(BigDecimal value) { this.combustionPowerHp = value; return this; }
public BigDecimal getElectricPowerKw() { return electricPowerKw; }
public CsvVehicle setElectricPowerKw(BigDecimal value) { this.electricPowerKw = value; return this; }
public BigDecimal getElectricPowerHp() { return electricPowerHp; }
public CsvVehicle setElectricPowerHp(BigDecimal value) { this.electricPowerHp = value; return this; }
public BigDecimal getCombinedPowerKw() { return combinedPowerKw; }
public CsvVehicle setCombinedPowerKw(BigDecimal value) { this.combinedPowerKw = value; return this; }
public BigDecimal getCombinedPowerHP() { return combinedPowerHP; }
public CsvVehicle setCombinedPowerHP(BigDecimal value) { this.combinedPowerHP = value; return this; }
public BigDecimal getElectricRange() { return electricRange; }
public CsvVehicle setElectricRange(BigDecimal value) { this.electricRange = value; return this; }
public BigDecimal getElectricConsumption() { return electricConsumption; }
public CsvVehicle setElectricConsumption(BigDecimal value) { this.electricConsumption = value; return this; }
public String getEmissionCombined() { return emissionCombined; }
public CsvVehicle setEmissionCombined(String value) { this.emissionCombined = value; return this; }
public String getEmissionDirective() { return emissionDirective; }
public CsvVehicle setEmissionDirective(String value) { this.emissionDirective = value; return this; }
public String getEmissionExtraUrban() { return emissionExtraUrban; }
public CsvVehicle setEmissionExtraUrban(String value) { this.emissionExtraUrban = value; return this; }
public String getEmissionUrban() { return emissionUrban; }
public CsvVehicle setEmissionUrban(String value) { this.emissionUrban = value; return this; }
public BigDecimal getEmission() { return emission; }
public CsvVehicle setEmission(BigDecimal value) { this.emission = value; return this; }
public String getTestStandard() { return testStandard; }
public CsvVehicle setTestStandard(String value) { this.testStandard = value; return this; }
public String getEnergyEfficiencyClass() { return energyEfficiencyClass; }
public CsvVehicle setEnergyEfficiencyClass(String value) { this.energyEfficiencyClass = value; return this; }
public String getWltpCombined() { return wltpCombined; }
public CsvVehicle setWltpCombined(String value) { this.wltpCombined = value; return this; }
public String getWltpLow() { return wltpLow; }
public CsvVehicle setWltpLow(String value) { this.wltpLow = value; return this; }
public String getWltpMedium() { return wltpMedium; }
public CsvVehicle setWltpMedium(String value) { this.wltpMedium = value; return this; }
public String getWltpHigh() { return wltpHigh; }
public CsvVehicle setWltpHigh(String value) { this.wltpHigh = value; return this; }
public String getWltpExtraHigh() { return wltpExtraHigh; }
public CsvVehicle setWltpExtraHigh(String value) { this.wltpExtraHigh = value; return this; }
public String getWltpEmissionCombined() { return wltpEmissionCombined; }
public CsvVehicle setWltpEmissionCombined(String value) { this.wltpEmissionCombined = value; return this; }
public Date getProductionDate() { return productionDate; }
public CsvVehicle setProductionDate(Date value) { this.productionDate = value; return this; }
public Date getPortArrivalDate() { return portArrivalDate; }
public CsvVehicle setPortArrivalDate(Date value) { this.portArrivalDate = value; return this; }
public Date getCreationDate() { return creationDate; }
public CsvVehicle setCreationDate(Date value) { this.creationDate = value; return this; }
public Date getLastUpdated() { return lastUpdated; }
public CsvVehicle setLastUpdated(Date value) { this.lastUpdated = value; return this; }
public BigDecimal getRetailPriceExVAT() { return retailPrice_ExVAT; }
public CsvVehicle setRetailPriceExVAT(BigDecimal value) { this.retailPrice_ExVAT = value; return this; }
public BigDecimal getRetailPriceIncVAT() { return retailPrice_IncVAT; }
public CsvVehicle setRetailPriceIncVAT(BigDecimal value) { this.retailPrice_IncVAT = value; return this; }
public BigDecimal getOtr() { return otr; }
public CsvVehicle setOtr(BigDecimal value) { this.otr = value; return this; }
public BigDecimal getActualPrice() { return actualPrice; }
public CsvVehicle setActualPrice(BigDecimal value) { this.actualPrice = value; return this; }
public String getUsageCode() { return usageCode; }
public CsvVehicle setUsageCode(String value) { this.usageCode = value; return this; }
public String getSecured() { return secured; }
public CsvVehicle setSecured(String value) { this.secured = value; return this; }
public String getAccount() { return account; }
public CsvVehicle setAccount(String value) { this.account = value; return this; }
public String getIsDisplayStock() { return isDisplayStock; }
public CsvVehicle setIsDisplayStock(String value) { this.isDisplayStock = value; return this; }
public String getDisplayStockAgent() { return displayStockAgent; }
public CsvVehicle setDisplayStockAgent(String value) { this.displayStockAgent = value; return this; }
public String getIsSpecialistCar() { return isSpecialistCar; }
public CsvVehicle setIsSpecialistCar(String value) { this.isSpecialistCar = value; return this; }
public String getCesarIdShipToParty() { return cesarIdShipToParty; }
public CsvVehicle setCesarIdShipToParty(String value) { this.cesarIdShipToParty = value; return this; }
public String getIsSellable() { return isSellable; }
public CsvVehicle setIsSellable(String value) { this.isSellable = value; return this; }
public String getUnderOffer() { return underOffer; }
public CsvVehicle setUnderOffer(String value) { this.underOffer = value; return this; }
public String getSecuredDate() { return securedDate; }
public CsvVehicle setSecuredDate(String value) { this.securedDate = value; return this; }
public String getSecuredReason() { return securedReason; }
public CsvVehicle setSecuredReason(String value) { this.securedReason = value; return this; }
public String getSecuredByGasId() { return securedByGasId; }
public CsvVehicle setSecuredByGasId(String value) { this.securedByGasId = value; return this; }
}
}
Java OnlineShowroomStockCsvRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/OnlineShowroomCsv/Stock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
gssns:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { totalVehicles: 0 }