POST | /v1/{VehicleType}/Vehicle/CentralCsv | Filter 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.*
open class CentralVehiclesCsvRequest : IPost
{
open var min:Int? = null
open var max:Int? = null
open var noPortArrivalDate:Boolean? = null
open var vehicleType:String? = null
}
open class CentralStockResponse
{
open var vehicles:ArrayList<CsvVehicleData>? = null
}
open class CsvVehicleData
{
@DataMember(Name="Comm")
@SerializedName("Comm")
open var commissionNumber:String? = null
open var retailer:String? = null
open var description:String? = null
open var model:String? = null
open var colour:String? = null
@DataMember(Name="Fuel Type")
@SerializedName("Fuel Type")
open var fuelType:String? = null
@DataMember(Name="Trans")
@SerializedName("Trans")
open var transmission:String? = null
open var otr:String? = null
@DataMember(Name="Age (Days)")
@SerializedName("Age (Days)")
open var daysSincePortArrival:Int? = null
@DataMember(Name="Current Offer")
@SerializedName("Current Offer")
open var offerAmount:String? = null
@DataMember(Name="Offer To")
@SerializedName("Offer To")
open var offerExpiry:String? = null
@DataMember(Name="Active Offers")
@SerializedName("Active Offers")
open var activeOffers:ArrayList<String> = ArrayList<String>()
@DataMember(Name="Ncl Modified")
@SerializedName("Ncl Modified")
open var modified:String? = null
@DataMember(Name="Net Price")
@SerializedName("Net Price")
open var retailPrice:String? = null
open var vin:String? = null
@DataMember(Name="Electric Range")
@SerializedName("Electric Range")
open var electricRange:Int? = null
@DataMember(Name="Electric Consumption")
@SerializedName("Electric Consumption")
open var electricConsumption:Int? = null
@DataMember(Name="Special Info")
@SerializedName("Special Info")
open var campaignMessagesTotal:Int? = null
@DataMember(Name="Personalised")
@SerializedName("Personalised")
open var campaignPersonalisedOfferTotal:Int? = null
}
Kotlin CentralVehiclesCsvRequest 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/{VehicleType}/Vehicle/CentralCsv HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
min: 0,
max: 0,
noPortArrivalDate: False,
vehicleType: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { }