Mercedes.VehicleManagement.API

<back to all web services

CentralVehiclesCsvRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/{VehicleType}/Vehicle/CentralCsvFilter central vehicle data for CSV
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 CentralVehiclesCsvRequest implements IPost
    {
        public Integer min = null;
        public Integer max = null;
        public Boolean noPortArrivalDate = null;
        public String vehicleType = null;
        
        public Integer getMin() { return min; }
        public CentralVehiclesCsvRequest setMin(Integer value) { this.min = value; return this; }
        public Integer getMax() { return max; }
        public CentralVehiclesCsvRequest setMax(Integer value) { this.max = value; return this; }
        public Boolean isNoPortArrivalDate() { return noPortArrivalDate; }
        public CentralVehiclesCsvRequest setNoPortArrivalDate(Boolean value) { this.noPortArrivalDate = value; return this; }
        public String getVehicleType() { return vehicleType; }
        public CentralVehiclesCsvRequest setVehicleType(String value) { this.vehicleType = value; return this; }
    }

    public static class CentralStockResponse
    {
        public ArrayList<CsvVehicleData> vehicles = null;
        
        public ArrayList<CsvVehicleData> getVehicles() { return vehicles; }
        public CentralStockResponse setVehicles(ArrayList<CsvVehicleData> value) { this.vehicles = value; return this; }
    }

    public static class CsvVehicleData
    {
        @DataMember(Name="Comm")
        @SerializedName("Comm")
        public String commissionNumber = null;

        public String retailer = null;
        public String description = null;
        public String model = null;
        public String colour = null;
        @DataMember(Name="Fuel Type")
        @SerializedName("Fuel Type")
        public String fuelType = null;

        @DataMember(Name="Trans")
        @SerializedName("Trans")
        public String transmission = null;

        public String otr = null;
        @DataMember(Name="Age (Days)")
        @SerializedName("Age (Days)")
        public Integer daysSincePortArrival = null;

        @DataMember(Name="Current Offer")
        @SerializedName("Current Offer")
        public String offerAmount = null;

        @DataMember(Name="Offer To")
        @SerializedName("Offer To")
        public String offerExpiry = null;

        @DataMember(Name="Active Offers")
        @SerializedName("Active Offers")
        public ArrayList<String> activeOffers = new ArrayList<String>();

        @DataMember(Name="Ncl Modified")
        @SerializedName("Ncl Modified")
        public String modified = null;

        @DataMember(Name="Net Price")
        @SerializedName("Net Price")
        public String retailPrice = null;

        public String vin = null;
        @DataMember(Name="Electric Range")
        @SerializedName("Electric Range")
        public Integer electricRange = null;

        @DataMember(Name="Electric Consumption")
        @SerializedName("Electric Consumption")
        public Integer electricConsumption = null;

        @DataMember(Name="Special Info")
        @SerializedName("Special Info")
        public Integer campaignMessagesTotal = null;

        @DataMember(Name="Personalised")
        @SerializedName("Personalised")
        public Integer campaignPersonalisedOfferTotal = null;
        
        public String getCommissionNumber() { return commissionNumber; }
        public CsvVehicleData setCommissionNumber(String value) { this.commissionNumber = value; return this; }
        public String getRetailer() { return retailer; }
        public CsvVehicleData setRetailer(String value) { this.retailer = value; return this; }
        public String getDescription() { return description; }
        public CsvVehicleData setDescription(String value) { this.description = value; return this; }
        public String getModel() { return model; }
        public CsvVehicleData setModel(String value) { this.model = value; return this; }
        public String getColour() { return colour; }
        public CsvVehicleData setColour(String value) { this.colour = value; return this; }
        public String getFuelType() { return fuelType; }
        public CsvVehicleData setFuelType(String value) { this.fuelType = value; return this; }
        public String getTransmission() { return transmission; }
        public CsvVehicleData setTransmission(String value) { this.transmission = value; return this; }
        public String getOtr() { return otr; }
        public CsvVehicleData setOtr(String value) { this.otr = value; return this; }
        public Integer getDaysSincePortArrival() { return daysSincePortArrival; }
        public CsvVehicleData setDaysSincePortArrival(Integer value) { this.daysSincePortArrival = value; return this; }
        public String getOfferAmount() { return offerAmount; }
        public CsvVehicleData setOfferAmount(String value) { this.offerAmount = value; return this; }
        public String getOfferExpiry() { return offerExpiry; }
        public CsvVehicleData setOfferExpiry(String value) { this.offerExpiry = value; return this; }
        public ArrayList<String> getActiveOffers() { return activeOffers; }
        public CsvVehicleData setActiveOffers(ArrayList<String> value) { this.activeOffers = value; return this; }
        public String getModified() { return modified; }
        public CsvVehicleData setModified(String value) { this.modified = value; return this; }
        public String getRetailPrice() { return retailPrice; }
        public CsvVehicleData setRetailPrice(String value) { this.retailPrice = value; return this; }
        public String getVin() { return vin; }
        public CsvVehicleData setVin(String value) { this.vin = value; return this; }
        public Integer getElectricRange() { return electricRange; }
        public CsvVehicleData setElectricRange(Integer value) { this.electricRange = value; return this; }
        public Integer getElectricConsumption() { return electricConsumption; }
        public CsvVehicleData setElectricConsumption(Integer value) { this.electricConsumption = value; return this; }
        public Integer getCampaignMessagesTotal() { return campaignMessagesTotal; }
        public CsvVehicleData setCampaignMessagesTotal(Integer value) { this.campaignMessagesTotal = value; return this; }
        public Integer getCampaignPersonalisedOfferTotal() { return campaignPersonalisedOfferTotal; }
        public CsvVehicleData setCampaignPersonalisedOfferTotal(Integer value) { this.campaignPersonalisedOfferTotal = value; return this; }
    }

}

Java CentralVehiclesCsvRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/{VehicleType}/Vehicle/CentralCsv HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"min":0,"max":0,"noPortArrivalDate":false,"vehicleType":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}