POST | /v1/DisplayStock | Retailer/s display stock |
---|
"use strict";
export class DisplayStock {
/** @param {{vehicleDescription?:string,commissionNumber?:string,vin?:string,retailer?:string,model?:string,fuelType?:string,transmission?:string,colour?:string,actualPrice?:string,activeOffers?:number[],daysAtSite?:string,offerTotalCurrent?:string,offerExpiry?:string,vehicleUsage?:string,underOffer?:boolean,isSellable?:boolean,vehicleType?:string,vid?:string,fin?:string,chassisNumber?:string,line?:string,modelYear?:string,modelYearCode?:string,vehicleClass?:string,retailPrice_ExVAT?:string,retailPrice_IncVAT?:string,otr?:string,bodyStyle?:string,productRange?:string,engine?:string,isAMG?:boolean,colourGroup?:string,upholstery?:string,packages?:string,nst?:string,bM7NST?:string,acceleration?:string,bootCapacity?:string,topSpeed?:string,driveConcept?:string,combustionPowerHp?:string,electricPowerKw?:string,electricPowerHp?:string,combinedPowerKw?:string,combinedPowerHP?:string,electricRange?:string,electricConsumption?:string,emissionCombined?:string,emissionExtraUrban?:string,emissionUrban?:string,emission?:string,emissionDirective?:string,energyEfficiencyClass?:string,wltpCombined?:string,wltpLow?:string,wltpMedium?:string,wltpHigh?:string,wltpExtraHigh?:string,wltpEmissionCombined?:string,portArrivalDate?:string,creationDate?:string,lastUpdated?:string,isDisplayStock?:boolean,displayStockAgent?:string,isSpecialistCar?:boolean,account?:string,location?:string,cesarIdShipToParty?:string,vehicleUsageCode?:string,mbukSecured?:boolean,isAllocatedToBackOrder?:boolean,backOrderReference?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
vehicleDescription;
/** @type {string} */
commissionNumber;
/** @type {string} */
vin;
/** @type {string} */
retailer;
/** @type {string} */
model;
/** @type {string} */
fuelType;
/** @type {string} */
transmission;
/** @type {string} */
colour;
/** @type {string} */
actualPrice;
/** @type {number[]} */
activeOffers = [];
/** @type {string} */
daysAtSite;
/** @type {string} */
offerTotalCurrent;
/** @type {string} */
offerExpiry;
/** @type {string} */
vehicleUsage;
/** @type {boolean} */
underOffer;
/** @type {boolean} */
isSellable;
/** @type {string} */
vehicleType;
/** @type {string} */
vid;
/** @type {string} */
fin;
/** @type {string} */
chassisNumber;
/** @type {string} */
line;
/** @type {string} */
modelYear;
/** @type {string} */
modelYearCode;
/** @type {string} */
vehicleClass;
/** @type {string} */
retailPrice_ExVAT;
/** @type {string} */
retailPrice_IncVAT;
/** @type {string} */
otr;
/** @type {string} */
bodyStyle;
/** @type {string} */
productRange;
/** @type {string} */
engine;
/** @type {boolean} */
isAMG;
/** @type {string} */
colourGroup;
/** @type {string} */
upholstery;
/** @type {string} */
packages;
/** @type {string} */
nst;
/** @type {string} */
bM7NST;
/** @type {string} */
acceleration;
/** @type {string} */
bootCapacity;
/** @type {string} */
topSpeed;
/** @type {string} */
driveConcept;
/** @type {string} */
combustionPowerHp;
/** @type {string} */
electricPowerKw;
/** @type {string} */
electricPowerHp;
/** @type {string} */
combinedPowerKw;
/** @type {string} */
combinedPowerHP;
/** @type {string} */
electricRange;
/** @type {string} */
electricConsumption;
/** @type {string} */
emissionCombined;
/** @type {string} */
emissionExtraUrban;
/** @type {string} */
emissionUrban;
/** @type {string} */
emission;
/** @type {string} */
emissionDirective;
/** @type {string} */
energyEfficiencyClass;
/** @type {string} */
wltpCombined;
/** @type {string} */
wltpLow;
/** @type {string} */
wltpMedium;
/** @type {string} */
wltpHigh;
/** @type {string} */
wltpExtraHigh;
/** @type {string} */
wltpEmissionCombined;
/** @type {?string} */
portArrivalDate;
/** @type {?string} */
creationDate;
/** @type {?string} */
lastUpdated;
/** @type {boolean} */
isDisplayStock;
/** @type {string} */
displayStockAgent;
/** @type {boolean} */
isSpecialistCar;
/** @type {string} */
account;
/** @type {string} */
location;
/** @type {string} */
cesarIdShipToParty;
/** @type {string} */
vehicleUsageCode;
/** @type {boolean} */
mbukSecured;
/** @type {boolean} */
isAllocatedToBackOrder;
/** @type {?string} */
backOrderReference;
}
export class DisplayStockResponse {
/** @param {{vehicles?:DisplayStock[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {DisplayStock[]} */
vehicles = [];
}
export class DisplayStockRequest {
/** @param {{gssns?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string[]}
* @description Gssns */
gssns = [];
}
JavaScript DisplayStockRequest 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/DisplayStock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DisplayStockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
<Gssns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Gssns>
</DisplayStockRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DisplayStockResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO"> <Vehicles> <DisplayStock> <Acceleration>String</Acceleration> <Account>String</Account> <ActiveOffers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>0</d4p1:int> </ActiveOffers> <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> <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> <MbukSecured>false</MbukSecured> <Model>String</Model> <ModelYear>String</ModelYear> <ModelYearCode>String</ModelYearCode> <Nst>String</Nst> <OfferExpiry>String</OfferExpiry> <OfferTotalCurrent>String</OfferTotalCurrent> <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> </DisplayStock> </Vehicles> </DisplayStockResponse>