POST | /v1/OnlineShowroom/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 datatable grid in OneAdmin |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class OnlineShowroomStockRequest implements IPost
{
public ArrayList<String> gssns = new ArrayList<String>();
public ArrayList<String> getGssns() { return gssns; }
public OnlineShowroomStockRequest setGssns(ArrayList<String> value) { this.gssns = value; return this; }
}
public static class OnlineShowroomStockResponse
{
public Integer totalVehicles = null;
public ArrayList<StockDataRow> vehicles = new ArrayList<StockDataRow>();
public Integer getTotalVehicles() { return totalVehicles; }
public OnlineShowroomStockResponse setTotalVehicles(Integer value) { this.totalVehicles = value; return this; }
public ArrayList<StockDataRow> getVehicles() { return vehicles; }
public OnlineShowroomStockResponse setVehicles(ArrayList<StockDataRow> value) { this.vehicles = value; return this; }
}
public static class StockDataRow
{
public String commissionNumber = null;
public String description = null;
public String salesDescriptionLong = null;
public String model = null;
public String colour = null;
public String colourGroup = null;
public String fuelType = null;
public String transmission = null;
public String transmissionType = null;
public String packages = null;
public String lines = null;
public String upholstery = null;
public String upholsteryCode = null;
public String displayStockAgent = null;
public String location = null;
public String vin = null;
public String vid = null;
public String vehicleType = null;
public String vehicleClass = null;
public Date creationDate = null;
public Date lastUpdated = null;
public Date productionDate = null;
public Date portArrivalDate = null;
public BigDecimal combinedGrossOfferValue = null;
public String currentLocation = null;
public Boolean notVisibleOnlineShowroom = null;
public String nvosReason = null;
public Boolean nvosReasonOneAdminExcluded = null;
public Boolean nvosReasonLinkedToBackOrder = null;
public Boolean includedAfterDeduplication = null;
public Boolean unique = null;
public Boolean duplicate = null;
public Integer duplicateGroup = null;
public Boolean lowestComm = null;
public String rule = null;
public String fin = null;
public String chassisNumber = null;
public String modelYear = null;
public String modelYearCode = null;
public String halfModelYearCode = null;
public String fullModelYearCode = null;
public String bodyStyle = null;
public String engine = null;
public String cesarIdShipToParty = null;
public String vehicleUsageCode = null;
public BigDecimal acceleration = null;
public Integer bootCapacity = null;
public BigDecimal topSpeed = null;
public String driveConcept = null;
public BigDecimal combustionPowerHp = null;
public BigDecimal electricPowerKw = null;
public BigDecimal electricPowerHp = null;
public BigDecimal combinedPowerKw = null;
public BigDecimal combinedPowerHP = null;
public Boolean underOffer = null;
public Boolean isSellable = null;
public Boolean mbukSecured = null;
public Boolean isDisplayStock = null;
public Boolean isSpecialistCar = null;
public String account = null;
public String productRange = null;
public Boolean isAMG = null;
public BigDecimal actualPrice = null;
public BigDecimal retailPrice_ExVAT = null;
public BigDecimal retailPrice_IncVAT = null;
public BigDecimal otr = null;
public String nst = null;
public String bm7NST = null;
public BigDecimal electricRange = null;
public BigDecimal electricConsumption = null;
public BigDecimal emission = null;
public String emissionDirective = null;
public String emissionCombined = null;
public String emissionExtraUrban = null;
public String emissionUrban = null;
public String energyEfficiencyClass = null;
public String wltpEmissionCombined = null;
public String wltpCombined = null;
public String wltpLow = null;
public String wltpMedium = null;
public String wltpHigh = null;
public String wltpExtraHigh = null;
public BigDecimal totalMoneyOffersExclDiscretionary = null;
public BigDecimal discretionaryMoneyOffer = null;
public BigDecimal totalMoneyOffersInclDiscretionary = null;
public Integer nonDiscretionaryNMOCount = null;
public Integer nonDiscretionaryMOCount = null;
public Integer discretionaryNMOCount = null;
public Integer discretionaryMOCount = null;
public BigDecimal totalOfferVIPAmount = null;
public String stockLevelIndicator = null;
public String getCommissionNumber() { return commissionNumber; }
public StockDataRow setCommissionNumber(String value) { this.commissionNumber = value; return this; }
public String getDescription() { return description; }
public StockDataRow setDescription(String value) { this.description = value; return this; }
public String getSalesDescriptionLong() { return salesDescriptionLong; }
public StockDataRow setSalesDescriptionLong(String value) { this.salesDescriptionLong = value; return this; }
public String getModel() { return model; }
public StockDataRow setModel(String value) { this.model = value; return this; }
public String getColour() { return colour; }
public StockDataRow setColour(String value) { this.colour = value; return this; }
public String getColourGroup() { return colourGroup; }
public StockDataRow setColourGroup(String value) { this.colourGroup = value; return this; }
public String getFuelType() { return fuelType; }
public StockDataRow setFuelType(String value) { this.fuelType = value; return this; }
public String getTransmission() { return transmission; }
public StockDataRow setTransmission(String value) { this.transmission = value; return this; }
public String getTransmissionType() { return transmissionType; }
public StockDataRow setTransmissionType(String value) { this.transmissionType = value; return this; }
public String getPackages() { return packages; }
public StockDataRow setPackages(String value) { this.packages = value; return this; }
public String getLines() { return lines; }
public StockDataRow setLines(String value) { this.lines = value; return this; }
public String getUpholstery() { return upholstery; }
public StockDataRow setUpholstery(String value) { this.upholstery = value; return this; }
public String getUpholsteryCode() { return upholsteryCode; }
public StockDataRow setUpholsteryCode(String value) { this.upholsteryCode = value; return this; }
public String getDisplayStockAgent() { return displayStockAgent; }
public StockDataRow setDisplayStockAgent(String value) { this.displayStockAgent = value; return this; }
public String getLocation() { return location; }
public StockDataRow setLocation(String value) { this.location = value; return this; }
public String getVin() { return vin; }
public StockDataRow setVin(String value) { this.vin = value; return this; }
public String getVid() { return vid; }
public StockDataRow setVid(String value) { this.vid = value; return this; }
public String getVehicleType() { return vehicleType; }
public StockDataRow setVehicleType(String value) { this.vehicleType = value; return this; }
public String getVehicleClass() { return vehicleClass; }
public StockDataRow setVehicleClass(String value) { this.vehicleClass = value; return this; }
public Date getCreationDate() { return creationDate; }
public StockDataRow setCreationDate(Date value) { this.creationDate = value; return this; }
public Date getLastUpdated() { return lastUpdated; }
public StockDataRow setLastUpdated(Date value) { this.lastUpdated = value; return this; }
public Date getProductionDate() { return productionDate; }
public StockDataRow setProductionDate(Date value) { this.productionDate = value; return this; }
public Date getPortArrivalDate() { return portArrivalDate; }
public StockDataRow setPortArrivalDate(Date value) { this.portArrivalDate = value; return this; }
public BigDecimal getCombinedGrossOfferValue() { return combinedGrossOfferValue; }
public StockDataRow setCombinedGrossOfferValue(BigDecimal value) { this.combinedGrossOfferValue = value; return this; }
public String getCurrentLocation() { return currentLocation; }
public StockDataRow setCurrentLocation(String value) { this.currentLocation = value; return this; }
public Boolean isNotVisibleOnlineShowroom() { return notVisibleOnlineShowroom; }
public StockDataRow setNotVisibleOnlineShowroom(Boolean value) { this.notVisibleOnlineShowroom = value; return this; }
public String getNvosReason() { return nvosReason; }
public StockDataRow setNvosReason(String value) { this.nvosReason = value; return this; }
public Boolean isNvosReasonOneAdminExcluded() { return nvosReasonOneAdminExcluded; }
public StockDataRow setNvosReasonOneAdminExcluded(Boolean value) { this.nvosReasonOneAdminExcluded = value; return this; }
public Boolean isNvosReasonLinkedToBackOrder() { return nvosReasonLinkedToBackOrder; }
public StockDataRow setNvosReasonLinkedToBackOrder(Boolean value) { this.nvosReasonLinkedToBackOrder = value; return this; }
public Boolean isIncludedAfterDeduplication() { return includedAfterDeduplication; }
public StockDataRow setIncludedAfterDeduplication(Boolean value) { this.includedAfterDeduplication = value; return this; }
public Boolean isUnique() { return unique; }
public StockDataRow setUnique(Boolean value) { this.unique = value; return this; }
public Boolean isDuplicate() { return duplicate; }
public StockDataRow setDuplicate(Boolean value) { this.duplicate = value; return this; }
public Integer getDuplicateGroup() { return duplicateGroup; }
public StockDataRow setDuplicateGroup(Integer value) { this.duplicateGroup = value; return this; }
public Boolean isLowestComm() { return lowestComm; }
public StockDataRow setLowestComm(Boolean value) { this.lowestComm = value; return this; }
public String getRule() { return rule; }
public StockDataRow setRule(String value) { this.rule = value; return this; }
public String getFin() { return fin; }
public StockDataRow setFin(String value) { this.fin = value; return this; }
public String getChassisNumber() { return chassisNumber; }
public StockDataRow setChassisNumber(String value) { this.chassisNumber = value; return this; }
public String getModelYear() { return modelYear; }
public StockDataRow setModelYear(String value) { this.modelYear = value; return this; }
public String getModelYearCode() { return modelYearCode; }
public StockDataRow setModelYearCode(String value) { this.modelYearCode = value; return this; }
public String getHalfModelYearCode() { return halfModelYearCode; }
public StockDataRow setHalfModelYearCode(String value) { this.halfModelYearCode = value; return this; }
public String getFullModelYearCode() { return fullModelYearCode; }
public StockDataRow setFullModelYearCode(String value) { this.fullModelYearCode = value; return this; }
public String getBodyStyle() { return bodyStyle; }
public StockDataRow setBodyStyle(String value) { this.bodyStyle = value; return this; }
public String getEngine() { return engine; }
public StockDataRow setEngine(String value) { this.engine = value; return this; }
public String getCesarIdShipToParty() { return cesarIdShipToParty; }
public StockDataRow setCesarIdShipToParty(String value) { this.cesarIdShipToParty = value; return this; }
public String getVehicleUsageCode() { return vehicleUsageCode; }
public StockDataRow setVehicleUsageCode(String value) { this.vehicleUsageCode = value; return this; }
public BigDecimal getAcceleration() { return acceleration; }
public StockDataRow setAcceleration(BigDecimal value) { this.acceleration = value; return this; }
public Integer getBootCapacity() { return bootCapacity; }
public StockDataRow setBootCapacity(Integer value) { this.bootCapacity = value; return this; }
public BigDecimal getTopSpeed() { return topSpeed; }
public StockDataRow setTopSpeed(BigDecimal value) { this.topSpeed = value; return this; }
public String getDriveConcept() { return driveConcept; }
public StockDataRow setDriveConcept(String value) { this.driveConcept = value; return this; }
public BigDecimal getCombustionPowerHp() { return combustionPowerHp; }
public StockDataRow setCombustionPowerHp(BigDecimal value) { this.combustionPowerHp = value; return this; }
public BigDecimal getElectricPowerKw() { return electricPowerKw; }
public StockDataRow setElectricPowerKw(BigDecimal value) { this.electricPowerKw = value; return this; }
public BigDecimal getElectricPowerHp() { return electricPowerHp; }
public StockDataRow setElectricPowerHp(BigDecimal value) { this.electricPowerHp = value; return this; }
public BigDecimal getCombinedPowerKw() { return combinedPowerKw; }
public StockDataRow setCombinedPowerKw(BigDecimal value) { this.combinedPowerKw = value; return this; }
public BigDecimal getCombinedPowerHP() { return combinedPowerHP; }
public StockDataRow setCombinedPowerHP(BigDecimal value) { this.combinedPowerHP = value; return this; }
public Boolean isUnderOffer() { return underOffer; }
public StockDataRow setUnderOffer(Boolean value) { this.underOffer = value; return this; }
public Boolean getIsSellable() { return isSellable; }
public StockDataRow setIsSellable(Boolean value) { this.isSellable = value; return this; }
public Boolean isMbukSecured() { return mbukSecured; }
public StockDataRow setMbukSecured(Boolean value) { this.mbukSecured = value; return this; }
public Boolean getIsDisplayStock() { return isDisplayStock; }
public StockDataRow setIsDisplayStock(Boolean value) { this.isDisplayStock = value; return this; }
public Boolean getIsSpecialistCar() { return isSpecialistCar; }
public StockDataRow setIsSpecialistCar(Boolean value) { this.isSpecialistCar = value; return this; }
public String getAccount() { return account; }
public StockDataRow setAccount(String value) { this.account = value; return this; }
public String getProductRange() { return productRange; }
public StockDataRow setProductRange(String value) { this.productRange = value; return this; }
public Boolean getIsAMG() { return isAMG; }
public StockDataRow setIsAMG(Boolean value) { this.isAMG = value; return this; }
public BigDecimal getActualPrice() { return actualPrice; }
public StockDataRow setActualPrice(BigDecimal value) { this.actualPrice = value; return this; }
public BigDecimal getRetailPriceExVAT() { return retailPrice_ExVAT; }
public StockDataRow setRetailPriceExVAT(BigDecimal value) { this.retailPrice_ExVAT = value; return this; }
public BigDecimal getRetailPriceIncVAT() { return retailPrice_IncVAT; }
public StockDataRow setRetailPriceIncVAT(BigDecimal value) { this.retailPrice_IncVAT = value; return this; }
public BigDecimal getOtr() { return otr; }
public StockDataRow setOtr(BigDecimal value) { this.otr = value; return this; }
public String getNst() { return nst; }
public StockDataRow setNst(String value) { this.nst = value; return this; }
public String getBm7NST() { return bm7NST; }
public StockDataRow setBm7NST(String value) { this.bm7NST = value; return this; }
public BigDecimal getElectricRange() { return electricRange; }
public StockDataRow setElectricRange(BigDecimal value) { this.electricRange = value; return this; }
public BigDecimal getElectricConsumption() { return electricConsumption; }
public StockDataRow setElectricConsumption(BigDecimal value) { this.electricConsumption = value; return this; }
public BigDecimal getEmission() { return emission; }
public StockDataRow setEmission(BigDecimal value) { this.emission = value; return this; }
public String getEmissionDirective() { return emissionDirective; }
public StockDataRow setEmissionDirective(String value) { this.emissionDirective = value; return this; }
public String getEmissionCombined() { return emissionCombined; }
public StockDataRow setEmissionCombined(String value) { this.emissionCombined = value; return this; }
public String getEmissionExtraUrban() { return emissionExtraUrban; }
public StockDataRow setEmissionExtraUrban(String value) { this.emissionExtraUrban = value; return this; }
public String getEmissionUrban() { return emissionUrban; }
public StockDataRow setEmissionUrban(String value) { this.emissionUrban = value; return this; }
public String getEnergyEfficiencyClass() { return energyEfficiencyClass; }
public StockDataRow setEnergyEfficiencyClass(String value) { this.energyEfficiencyClass = value; return this; }
public String getWltpEmissionCombined() { return wltpEmissionCombined; }
public StockDataRow setWltpEmissionCombined(String value) { this.wltpEmissionCombined = value; return this; }
public String getWltpCombined() { return wltpCombined; }
public StockDataRow setWltpCombined(String value) { this.wltpCombined = value; return this; }
public String getWltpLow() { return wltpLow; }
public StockDataRow setWltpLow(String value) { this.wltpLow = value; return this; }
public String getWltpMedium() { return wltpMedium; }
public StockDataRow setWltpMedium(String value) { this.wltpMedium = value; return this; }
public String getWltpHigh() { return wltpHigh; }
public StockDataRow setWltpHigh(String value) { this.wltpHigh = value; return this; }
public String getWltpExtraHigh() { return wltpExtraHigh; }
public StockDataRow setWltpExtraHigh(String value) { this.wltpExtraHigh = value; return this; }
public BigDecimal getTotalMoneyOffersExclDiscretionary() { return totalMoneyOffersExclDiscretionary; }
public StockDataRow setTotalMoneyOffersExclDiscretionary(BigDecimal value) { this.totalMoneyOffersExclDiscretionary = value; return this; }
public BigDecimal getDiscretionaryMoneyOffer() { return discretionaryMoneyOffer; }
public StockDataRow setDiscretionaryMoneyOffer(BigDecimal value) { this.discretionaryMoneyOffer = value; return this; }
public BigDecimal getTotalMoneyOffersInclDiscretionary() { return totalMoneyOffersInclDiscretionary; }
public StockDataRow setTotalMoneyOffersInclDiscretionary(BigDecimal value) { this.totalMoneyOffersInclDiscretionary = value; return this; }
public Integer getNonDiscretionaryNMOCount() { return nonDiscretionaryNMOCount; }
public StockDataRow setNonDiscretionaryNMOCount(Integer value) { this.nonDiscretionaryNMOCount = value; return this; }
public Integer getNonDiscretionaryMOCount() { return nonDiscretionaryMOCount; }
public StockDataRow setNonDiscretionaryMOCount(Integer value) { this.nonDiscretionaryMOCount = value; return this; }
public Integer getDiscretionaryNMOCount() { return discretionaryNMOCount; }
public StockDataRow setDiscretionaryNMOCount(Integer value) { this.discretionaryNMOCount = value; return this; }
public Integer getDiscretionaryMOCount() { return discretionaryMOCount; }
public StockDataRow setDiscretionaryMOCount(Integer value) { this.discretionaryMOCount = value; return this; }
public BigDecimal getTotalOfferVIPAmount() { return totalOfferVIPAmount; }
public StockDataRow setTotalOfferVIPAmount(BigDecimal value) { this.totalOfferVIPAmount = value; return this; }
public String getStockLevelIndicator() { return stockLevelIndicator; }
public StockDataRow setStockLevelIndicator(String value) { this.stockLevelIndicator = value; return this; }
}
}
Java OnlineShowroomStockRequest 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.
POST /v1/OnlineShowroom/Stock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"gssns":["String"]}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"totalVehicles":0,"vehicles":[{"commissionNumber":"String","description":"String","salesDescriptionLong":"String","model":"String","colour":"String","colourGroup":"String","fuelType":"String","transmission":"String","transmissionType":"String","packages":"String","lines":"String","upholstery":"String","upholsteryCode":"String","displayStockAgent":"String","location":"String","vin":"String","vid":"String","vehicleType":"String","vehicleClass":"String","creationDate":"\/Date(-62135596800000-0000)\/","lastUpdated":"\/Date(-62135596800000-0000)\/","productionDate":"\/Date(-62135596800000-0000)\/","portArrivalDate":"\/Date(-62135596800000-0000)\/","combinedGrossOfferValue":0,"currentLocation":"String","notVisibleOnlineShowroom":false,"nvosReason":"String","nvosReasonOneAdminExcluded":false,"nvosReasonLinkedToBackOrder":false,"includedAfterDeduplication":false,"unique":false,"duplicate":false,"duplicateGroup":0,"lowestComm":false,"rule":"String","fin":"String","chassisNumber":"String","modelYear":"String","modelYearCode":"String","halfModelYearCode":"String","fullModelYearCode":"String","bodyStyle":"String","engine":"String","cesarIdShipToParty":"String","vehicleUsageCode":"String","acceleration":0,"bootCapacity":0,"topSpeed":0,"driveConcept":"String","combustionPowerHp":0,"electricPowerKw":0,"electricPowerHp":0,"combinedPowerKw":0,"combinedPowerHP":0,"underOffer":false,"isSellable":false,"mbukSecured":false,"isDisplayStock":false,"isSpecialistCar":false,"account":"String","productRange":"String","isAMG":false,"actualPrice":0,"retailPrice_ExVAT":0,"retailPrice_IncVAT":0,"otr":0,"nst":"String","bm7NST":"String","electricRange":0,"electricConsumption":0,"emission":0,"emissionDirective":"String","emissionCombined":"String","emissionExtraUrban":"String","emissionUrban":"String","energyEfficiencyClass":"String","wltpEmissionCombined":"String","wltpCombined":"String","wltpLow":"String","wltpMedium":"String","wltpHigh":"String","wltpExtraHigh":"String","totalMoneyOffersExclDiscretionary":0,"discretionaryMoneyOffer":0,"totalMoneyOffersInclDiscretionary":0,"nonDiscretionaryNMOCount":0,"nonDiscretionaryMOCount":0,"discretionaryNMOCount":0,"discretionaryMOCount":0,"totalOfferVIPAmount":0,"stockLevelIndicator":"String"}]}