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 .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/DisplayStock 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 { vehicles: [ { vehicleDescription: String, commissionNumber: String, vin: String, retailer: String, model: String, fuelType: String, transmission: String, colour: String, actualPrice: String, activeOffers: [ 0 ], daysAtSite: String, offerTotalCurrent: String, offerExpiry: String, vehicleUsage: String, underOffer: False, isSellable: False, 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: False, 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: 0001-01-01, creationDate: 0001-01-01, lastUpdated: 0001-01-01, isDisplayStock: False, displayStockAgent: String, isSpecialistCar: False, account: String, location: String, cesarIdShipToParty: String, vehicleUsageCode: String, mbukSecured: False, isAllocatedToBackOrder: False, backOrderReference: String } ] }