POST | /v1/DisplayStockOverview | Filter Display Stock vehicle data with usedCode and MBUKSecured |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DisplayStockOverviewRequest implements IPost
{
/**
* Is vehicle secured
*/
@ApiMember(Description="Is vehicle secured", IsRequired=true)
public Boolean isSecured = null;
/**
* Usage codes
*/
@ApiMember(Description="Usage codes", IsRequired=true)
public ArrayList<String> usageCode = new ArrayList<String>();
public Boolean getIsSecured() { return isSecured; }
public DisplayStockOverviewRequest setIsSecured(Boolean value) { this.isSecured = value; return this; }
public ArrayList<String> getUsageCode() { return usageCode; }
public DisplayStockOverviewRequest setUsageCode(ArrayList<String> value) { this.usageCode = value; return this; }
}
public static class DisplayStockOverviewResponse
{
public ArrayList<VehicleDisplayStock> vehicles = new ArrayList<VehicleDisplayStock>();
public ArrayList<VehicleDisplayStock> getVehicles() { return vehicles; }
public DisplayStockOverviewResponse setVehicles(ArrayList<VehicleDisplayStock> value) { this.vehicles = value; return this; }
}
public static class VehicleDisplayStock
{
public String vin = null;
public String vehicleDescription = null;
public String commissionNumber = null;
public String retailer = null;
public String model = null;
public String fuelType = null;
public String transmission = null;
public String colour = null;
public String actualPrice = null;
public Date gbDestDate = null;
public String vehicleUsage = null;
public Boolean underOffer = null;
public Boolean isSellable = null;
public String vehicleType = null;
public String vid = null;
public String fin = null;
public String chassisNumber = null;
public String line = null;
public String modelYear = null;
public String modelYearCode = null;
public String vehicleClass = null;
public String retailPrice_ExVAT = null;
public String retailPrice_IncVAT = null;
public String otr = null;
public String bodyStyle = null;
public String productRange = null;
public String engine = null;
public Boolean isAMG = null;
public String colourGroup = null;
public String upholstery = null;
public String packages = null;
public String nst = null;
public String bM7NST = null;
public String acceleration = null;
public String bootCapacity = null;
public String topSpeed = null;
public String driveConcept = null;
public String combustionPowerHp = null;
public String electricPowerKw = null;
public String electricPowerHp = null;
public String combinedPowerKw = null;
public String combinedPowerHP = null;
public String electricRange = null;
public String electricConsumption = null;
public String emissionCombined = null;
public String emissionExtraUrban = null;
public String emissionUrban = null;
public String emission = null;
public String emissionDirective = null;
public String energyEfficiencyClass = null;
public String wltpCombined = null;
public String wltpLow = null;
public String wltpMedium = null;
public String wltpHigh = null;
public String wltpExtraHigh = null;
public String wltpEmissionCombined = null;
public Date portArrivalDate = null;
public Date creationDate = null;
public Date lastUpdated = null;
public Boolean isDisplayStock = null;
public String displayStockAgent = null;
public Boolean isSpecialistCar = null;
public String account = null;
public String location = null;
public String cesarIdShipToParty = null;
public String vehicleUsageCode = null;
public Boolean mbukSecured = null;
public Boolean isAllocatedToBackOrder = null;
public String backOrderReference = null;
public String marketAreaName = null;
public Integer marketAreaId = null;
public String daysAtSite = null;
public String getVin() { return vin; }
public VehicleDisplayStock setVin(String value) { this.vin = value; return this; }
public String getVehicleDescription() { return vehicleDescription; }
public VehicleDisplayStock setVehicleDescription(String value) { this.vehicleDescription = value; return this; }
public String getCommissionNumber() { return commissionNumber; }
public VehicleDisplayStock setCommissionNumber(String value) { this.commissionNumber = value; return this; }
public String getRetailer() { return retailer; }
public VehicleDisplayStock setRetailer(String value) { this.retailer = value; return this; }
public String getModel() { return model; }
public VehicleDisplayStock setModel(String value) { this.model = value; return this; }
public String getFuelType() { return fuelType; }
public VehicleDisplayStock setFuelType(String value) { this.fuelType = value; return this; }
public String getTransmission() { return transmission; }
public VehicleDisplayStock setTransmission(String value) { this.transmission = value; return this; }
public String getColour() { return colour; }
public VehicleDisplayStock setColour(String value) { this.colour = value; return this; }
public String getActualPrice() { return actualPrice; }
public VehicleDisplayStock setActualPrice(String value) { this.actualPrice = value; return this; }
public Date getGbDestDate() { return gbDestDate; }
public VehicleDisplayStock setGbDestDate(Date value) { this.gbDestDate = value; return this; }
public String getVehicleUsage() { return vehicleUsage; }
public VehicleDisplayStock setVehicleUsage(String value) { this.vehicleUsage = value; return this; }
public Boolean isUnderOffer() { return underOffer; }
public VehicleDisplayStock setUnderOffer(Boolean value) { this.underOffer = value; return this; }
public Boolean getIsSellable() { return isSellable; }
public VehicleDisplayStock setIsSellable(Boolean value) { this.isSellable = value; return this; }
public String getVehicleType() { return vehicleType; }
public VehicleDisplayStock setVehicleType(String value) { this.vehicleType = value; return this; }
public String getVid() { return vid; }
public VehicleDisplayStock setVid(String value) { this.vid = value; return this; }
public String getFin() { return fin; }
public VehicleDisplayStock setFin(String value) { this.fin = value; return this; }
public String getChassisNumber() { return chassisNumber; }
public VehicleDisplayStock setChassisNumber(String value) { this.chassisNumber = value; return this; }
public String getLine() { return line; }
public VehicleDisplayStock setLine(String value) { this.line = value; return this; }
public String getModelYear() { return modelYear; }
public VehicleDisplayStock setModelYear(String value) { this.modelYear = value; return this; }
public String getModelYearCode() { return modelYearCode; }
public VehicleDisplayStock setModelYearCode(String value) { this.modelYearCode = value; return this; }
public String getVehicleClass() { return vehicleClass; }
public VehicleDisplayStock setVehicleClass(String value) { this.vehicleClass = value; return this; }
public String getRetailPriceExVAT() { return retailPrice_ExVAT; }
public VehicleDisplayStock setRetailPriceExVAT(String value) { this.retailPrice_ExVAT = value; return this; }
public String getRetailPriceIncVAT() { return retailPrice_IncVAT; }
public VehicleDisplayStock setRetailPriceIncVAT(String value) { this.retailPrice_IncVAT = value; return this; }
public String getOtr() { return otr; }
public VehicleDisplayStock setOtr(String value) { this.otr = value; return this; }
public String getBodyStyle() { return bodyStyle; }
public VehicleDisplayStock setBodyStyle(String value) { this.bodyStyle = value; return this; }
public String getProductRange() { return productRange; }
public VehicleDisplayStock setProductRange(String value) { this.productRange = value; return this; }
public String getEngine() { return engine; }
public VehicleDisplayStock setEngine(String value) { this.engine = value; return this; }
public Boolean getIsAMG() { return isAMG; }
public VehicleDisplayStock setIsAMG(Boolean value) { this.isAMG = value; return this; }
public String getColourGroup() { return colourGroup; }
public VehicleDisplayStock setColourGroup(String value) { this.colourGroup = value; return this; }
public String getUpholstery() { return upholstery; }
public VehicleDisplayStock setUpholstery(String value) { this.upholstery = value; return this; }
public String getPackages() { return packages; }
public VehicleDisplayStock setPackages(String value) { this.packages = value; return this; }
public String getNst() { return nst; }
public VehicleDisplayStock setNst(String value) { this.nst = value; return this; }
public String getBM7NST() { return bM7NST; }
public VehicleDisplayStock setBM7NST(String value) { this.bM7NST = value; return this; }
public String getAcceleration() { return acceleration; }
public VehicleDisplayStock setAcceleration(String value) { this.acceleration = value; return this; }
public String getBootCapacity() { return bootCapacity; }
public VehicleDisplayStock setBootCapacity(String value) { this.bootCapacity = value; return this; }
public String getTopSpeed() { return topSpeed; }
public VehicleDisplayStock setTopSpeed(String value) { this.topSpeed = value; return this; }
public String getDriveConcept() { return driveConcept; }
public VehicleDisplayStock setDriveConcept(String value) { this.driveConcept = value; return this; }
public String getCombustionPowerHp() { return combustionPowerHp; }
public VehicleDisplayStock setCombustionPowerHp(String value) { this.combustionPowerHp = value; return this; }
public String getElectricPowerKw() { return electricPowerKw; }
public VehicleDisplayStock setElectricPowerKw(String value) { this.electricPowerKw = value; return this; }
public String getElectricPowerHp() { return electricPowerHp; }
public VehicleDisplayStock setElectricPowerHp(String value) { this.electricPowerHp = value; return this; }
public String getCombinedPowerKw() { return combinedPowerKw; }
public VehicleDisplayStock setCombinedPowerKw(String value) { this.combinedPowerKw = value; return this; }
public String getCombinedPowerHP() { return combinedPowerHP; }
public VehicleDisplayStock setCombinedPowerHP(String value) { this.combinedPowerHP = value; return this; }
public String getElectricRange() { return electricRange; }
public VehicleDisplayStock setElectricRange(String value) { this.electricRange = value; return this; }
public String getElectricConsumption() { return electricConsumption; }
public VehicleDisplayStock setElectricConsumption(String value) { this.electricConsumption = value; return this; }
public String getEmissionCombined() { return emissionCombined; }
public VehicleDisplayStock setEmissionCombined(String value) { this.emissionCombined = value; return this; }
public String getEmissionExtraUrban() { return emissionExtraUrban; }
public VehicleDisplayStock setEmissionExtraUrban(String value) { this.emissionExtraUrban = value; return this; }
public String getEmissionUrban() { return emissionUrban; }
public VehicleDisplayStock setEmissionUrban(String value) { this.emissionUrban = value; return this; }
public String getEmission() { return emission; }
public VehicleDisplayStock setEmission(String value) { this.emission = value; return this; }
public String getEmissionDirective() { return emissionDirective; }
public VehicleDisplayStock setEmissionDirective(String value) { this.emissionDirective = value; return this; }
public String getEnergyEfficiencyClass() { return energyEfficiencyClass; }
public VehicleDisplayStock setEnergyEfficiencyClass(String value) { this.energyEfficiencyClass = value; return this; }
public String getWltpCombined() { return wltpCombined; }
public VehicleDisplayStock setWltpCombined(String value) { this.wltpCombined = value; return this; }
public String getWltpLow() { return wltpLow; }
public VehicleDisplayStock setWltpLow(String value) { this.wltpLow = value; return this; }
public String getWltpMedium() { return wltpMedium; }
public VehicleDisplayStock setWltpMedium(String value) { this.wltpMedium = value; return this; }
public String getWltpHigh() { return wltpHigh; }
public VehicleDisplayStock setWltpHigh(String value) { this.wltpHigh = value; return this; }
public String getWltpExtraHigh() { return wltpExtraHigh; }
public VehicleDisplayStock setWltpExtraHigh(String value) { this.wltpExtraHigh = value; return this; }
public String getWltpEmissionCombined() { return wltpEmissionCombined; }
public VehicleDisplayStock setWltpEmissionCombined(String value) { this.wltpEmissionCombined = value; return this; }
public Date getPortArrivalDate() { return portArrivalDate; }
public VehicleDisplayStock setPortArrivalDate(Date value) { this.portArrivalDate = value; return this; }
public Date getCreationDate() { return creationDate; }
public VehicleDisplayStock setCreationDate(Date value) { this.creationDate = value; return this; }
public Date getLastUpdated() { return lastUpdated; }
public VehicleDisplayStock setLastUpdated(Date value) { this.lastUpdated = value; return this; }
public Boolean getIsDisplayStock() { return isDisplayStock; }
public VehicleDisplayStock setIsDisplayStock(Boolean value) { this.isDisplayStock = value; return this; }
public String getDisplayStockAgent() { return displayStockAgent; }
public VehicleDisplayStock setDisplayStockAgent(String value) { this.displayStockAgent = value; return this; }
public Boolean getIsSpecialistCar() { return isSpecialistCar; }
public VehicleDisplayStock setIsSpecialistCar(Boolean value) { this.isSpecialistCar = value; return this; }
public String getAccount() { return account; }
public VehicleDisplayStock setAccount(String value) { this.account = value; return this; }
public String getLocation() { return location; }
public VehicleDisplayStock setLocation(String value) { this.location = value; return this; }
public String getCesarIdShipToParty() { return cesarIdShipToParty; }
public VehicleDisplayStock setCesarIdShipToParty(String value) { this.cesarIdShipToParty = value; return this; }
public String getVehicleUsageCode() { return vehicleUsageCode; }
public VehicleDisplayStock setVehicleUsageCode(String value) { this.vehicleUsageCode = value; return this; }
public Boolean isMbukSecured() { return mbukSecured; }
public VehicleDisplayStock setMbukSecured(Boolean value) { this.mbukSecured = value; return this; }
public Boolean getIsAllocatedToBackOrder() { return isAllocatedToBackOrder; }
public VehicleDisplayStock setIsAllocatedToBackOrder(Boolean value) { this.isAllocatedToBackOrder = value; return this; }
public String getBackOrderReference() { return backOrderReference; }
public VehicleDisplayStock setBackOrderReference(String value) { this.backOrderReference = value; return this; }
public String getMarketAreaName() { return marketAreaName; }
public VehicleDisplayStock setMarketAreaName(String value) { this.marketAreaName = value; return this; }
public Integer getMarketAreaId() { return marketAreaId; }
public VehicleDisplayStock setMarketAreaId(Integer value) { this.marketAreaId = value; return this; }
public String getDaysAtSite() { return daysAtSite; }
public VehicleDisplayStock setDaysAtSite(String value) { this.daysAtSite = value; return this; }
}
}
Java DisplayStockOverviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/DisplayStockOverview HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DisplayStockOverviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
<IsSecured>false</IsSecured>
<UsageCode xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</UsageCode>
</DisplayStockOverviewRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DisplayStockOverviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO"> <Vehicles> <VehicleDisplayStock> <Acceleration>String</Acceleration> <Account>String</Account> <ActualPrice>String</ActualPrice> <BM7NST>String</BM7NST> <BackOrderReference>String</BackOrderReference> <BodyStyle>String</BodyStyle> <BootCapacity>String</BootCapacity> <CesarIdShipToParty>String</CesarIdShipToParty> <ChassisNumber>String</ChassisNumber> <Colour>String</Colour> <ColourGroup>String</ColourGroup> <CombinedPowerHP>String</CombinedPowerHP> <CombinedPowerKw>String</CombinedPowerKw> <CombustionPowerHp>String</CombustionPowerHp> <CommissionNumber>String</CommissionNumber> <CreationDate>0001-01-01T00:00:00</CreationDate> <DaysAtSite>String</DaysAtSite> <DisplayStockAgent>String</DisplayStockAgent> <DriveConcept>String</DriveConcept> <ElectricConsumption>String</ElectricConsumption> <ElectricPowerHp>String</ElectricPowerHp> <ElectricPowerKw>String</ElectricPowerKw> <ElectricRange>String</ElectricRange> <Emission>String</Emission> <EmissionCombined>String</EmissionCombined> <EmissionDirective>String</EmissionDirective> <EmissionExtraUrban>String</EmissionExtraUrban> <EmissionUrban>String</EmissionUrban> <EnergyEfficiencyClass>String</EnergyEfficiencyClass> <Engine>String</Engine> <Fin>String</Fin> <FuelType>String</FuelType> <GBDestDate>0001-01-01T00:00:00</GBDestDate> <IsAMG>false</IsAMG> <IsAllocatedToBackOrder>false</IsAllocatedToBackOrder> <IsDisplayStock>false</IsDisplayStock> <IsSellable>false</IsSellable> <IsSpecialistCar>false</IsSpecialistCar> <LastUpdated>0001-01-01T00:00:00</LastUpdated> <Line>String</Line> <Location>String</Location> <MarketAreaId>0</MarketAreaId> <MarketAreaName>String</MarketAreaName> <MbukSecured>false</MbukSecured> <Model>String</Model> <ModelYear>String</ModelYear> <ModelYearCode>String</ModelYearCode> <Nst>String</Nst> <Otr>String</Otr> <Packages>String</Packages> <PortArrivalDate>0001-01-01T00:00:00</PortArrivalDate> <ProductRange>String</ProductRange> <RetailPrice_ExVAT>String</RetailPrice_ExVAT> <RetailPrice_IncVAT>String</RetailPrice_IncVAT> <Retailer>String</Retailer> <TopSpeed>String</TopSpeed> <Transmission>String</Transmission> <UnderOffer>false</UnderOffer> <Upholstery>String</Upholstery> <VehicleClass>String</VehicleClass> <VehicleDescription>String</VehicleDescription> <VehicleType>String</VehicleType> <VehicleUsage>String</VehicleUsage> <VehicleUsageCode>String</VehicleUsageCode> <Vid>String</Vid> <Vin>String</Vin> <WltpCombined>String</WltpCombined> <WltpEmissionCombined>String</WltpEmissionCombined> <WltpExtraHigh>String</WltpExtraHigh> <WltpHigh>String</WltpHigh> <WltpLow>String</WltpLow> <WltpMedium>String</WltpMedium> </VehicleDisplayStock> </Vehicles> </DisplayStockOverviewResponse>