| POST | /v1/{VehicleType}/Vehicle/Motability | Filter motability vehicle data |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class MotabilityVehiclesFilterRequest : IPost
{
open var min:Int? = null
open var max:Int? = null
open var noPortArrivalDate:Boolean? = null
open var vehicleType:String? = null
}
open class VehiclesByRetailerResponse
{
open var vehicles:ArrayList<VehicleIdentifierData> = ArrayList<VehicleIdentifierData>()
}
open class VehicleIdentifierData : VehicleData()
{
open var retailer:String? = null
open var hasMotabilityError:Boolean? = null
open var equipment:ArrayList<Equipment> = ArrayList<Equipment>()
}
open class VehicleData : VehicleDataBase()
{
open var engine:String? = null
}
open class VehicleDataBase
{
open var vin:String? = null
open var description:String? = null
open var model:String? = null
open var otr:String? = null
open var retailPriceExVAT:String? = null
open var actualPrice:String? = null
open var p11D:String? = null
open var fuelType:String? = null
open var transmission:String? = null
open var transmissionType:String? = null
open var colour:String? = null
open var colourCode:String? = null
open var colourDescription:String? = null
open var commissionNumber:String? = null
open var offerAvailable:Boolean? = null
open var campaignDiscountOfferTotal:Int? = null
open var campaignDiscountOfferTotalCurrent:Int? = null
open var campaignDiscountOfferTotalPending:Int? = null
open var campaignServiceOfferTotal:Int? = null
open var campaignServiceOfferTotalCurrent:Int? = null
open var campaignServiceOfferTotalPending:Int? = null
open var campaignCustomOfferTotal:Int? = null
open var campaignPersonalisedOfferTotalCurrent:Int? = null
open var campaignPersonalisedOfferTotalPending:Int? = null
open var campaignPersonalisedOfferTotal:Int? = null
open var campaignCustomOfferTotalCurrent:Int? = null
open var campaignCustomOfferTotalPending:Int? = null
open var campaignOtherOfferTotal:Int? = null
open var campaignOtherOfferTotalCurrent:Int? = null
open var campaignOtherOfferTotalPending:Int? = null
open var retailerDiscountOfferTotal:Int? = null
open var retailerDiscountOfferTotalCurrent:Int? = null
open var retailerDiscountOfferTotalPending:Int? = null
open var retailerServiceOfferTotal:Int? = null
open var retailerServiceOfferTotalCurrent:Int? = null
open var retailerServiceOfferTotalPending:Int? = null
open var retailerCustomOfferTotal:Int? = null
open var retailerCustomOfferTotalCurrent:Int? = null
open var retailerCustomOfferTotalPending:Int? = null
open var retailerWarrantyOfferTotal:Int? = null
open var retailerWarrantyOfferTotalCurrent:Int? = null
open var retailerWarrantyOfferTotalPending:Int? = null
open var retailerOfferTotal:Int? = null
open var retailerOfferTotalCurrent:Int? = null
open var retailerOfferTotalPending:Int? = null
open var campaignOfferTotal:Int? = null
open var campaignOfferTotalCurrent:Int? = null
open var campaignOfferTotalPending:Int? = null
open var campaignAndOfferTotal:Int? = null
open var campaignAndOfferTotalCurrent:Int? = null
open var campaignAndOfferTotalPending:Int? = null
open var offerTotal:Int? = null
open var offerTotalCurrent:Int? = null
open var offerTotalPending:Int? = null
open var creation:String? = null
open var modified:String? = null
open var electricRange:Int? = null
open var electricConsumption:Int? = null
open var portArrivalDate:Date? = null
open var daysSincePortArrival:Int? = null
open var retailPriceIncVAT:BigDecimal? = null
open var bodyStyle:String? = null
open var upholstery:String? = null
open var upholsteryCode:String? = null
open var upholsteryType:String? = null
open var packageNames:ArrayList<String> = ArrayList<String>()
open var line:String? = null
open var currentRetailerOfferPrice:BigDecimal? = null
open var retailPrice:String? = null
open var vatQualifying:Boolean? = null
open var retailerId:Int? = null
open var gssnId:String? = null
open var noImage:Boolean? = null
open var imageUrl:String? = null
open var isAvailableOnline:Boolean? = null
open var isBackOrdered:Boolean? = null
open var creationDate:String? = null
open var maintenanceDate:String? = null
open var registrationNumber:String? = null
open var registrationDate:Date? = null
open var mileage:Int? = null
open var tradeInDate:Date? = null
open var source:String? = null
open var vehicleType:String? = null
open var offerAmount:String? = null
open var offerExpiry:String? = null
open var activeOffers:ArrayList<Int> = ArrayList<Int>()
open var campaignMessagesTotal:Int? = null
open var underOffer:Boolean? = null
open var isDisplayStock:Boolean? = null
open var displayRetailer:String? = null
open var displayRetailerGssnId:String? = null
open var location:String? = null
open var account:String? = null
open var accountType:String? = null
open var usageCode:String? = null
open var bm7NST:String? = null
open var isSellable:Boolean? = null
open var secured:Boolean? = null
open var specialist:Boolean? = null
open var isMotabilityRetailer:Boolean? = null
open var upholsteryDescription:String? = null
open var inBackOrderAccount:Boolean? = null
open var fullModelYearCode:String? = null
open var productionDate:Date? = null
open var baumuster:String? = null
open var isMotability:Boolean? = null
open var pipAdvanceRentalGross:BigDecimal? = null
open var wpmsAdvanceRentalGross:BigDecimal? = null
open var ispVehicleCustomerDescriptions:ArrayList<String>? = null
open var eligibleForMaTransfer:Boolean? = null
open var confirmedProductionDate:String? = null
open var forecastedArrivalDate:String? = null
}
open class Equipment
{
open var id:Int? = null
open var code:String? = null
open var description:String? = null
}
Kotlin MotabilityVehiclesFilterRequest 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/{VehicleType}/Vehicle/Motability HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<MotabilityVehiclesFilterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
<Max>0</Max>
<Min>0</Min>
<NoPortArrivalDate>false</NoPortArrivalDate>
<VehicleType>String</VehicleType>
</MotabilityVehiclesFilterRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VehiclesByRetailerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
<Vehicles>
<VehicleIdentifierData>
<Account>String</Account>
<AccountType>String</AccountType>
<ActiveOffers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</ActiveOffers>
<ActualPrice>String</ActualPrice>
<Baumuster>String</Baumuster>
<Bm7NST>String</Bm7NST>
<BodyStyle>String</BodyStyle>
<CampaignAndOfferTotal>0</CampaignAndOfferTotal>
<CampaignAndOfferTotalCurrent>0</CampaignAndOfferTotalCurrent>
<CampaignAndOfferTotalPending>0</CampaignAndOfferTotalPending>
<CampaignCustomOfferTotal>0</CampaignCustomOfferTotal>
<CampaignCustomOfferTotalCurrent>0</CampaignCustomOfferTotalCurrent>
<CampaignCustomOfferTotalPending>0</CampaignCustomOfferTotalPending>
<CampaignDiscountOfferTotal>0</CampaignDiscountOfferTotal>
<CampaignDiscountOfferTotalCurrent>0</CampaignDiscountOfferTotalCurrent>
<CampaignDiscountOfferTotalPending>0</CampaignDiscountOfferTotalPending>
<CampaignMessagesTotal>0</CampaignMessagesTotal>
<CampaignOfferTotal>0</CampaignOfferTotal>
<CampaignOfferTotalCurrent>0</CampaignOfferTotalCurrent>
<CampaignOfferTotalPending>0</CampaignOfferTotalPending>
<CampaignOtherOfferTotal>0</CampaignOtherOfferTotal>
<CampaignOtherOfferTotalCurrent>0</CampaignOtherOfferTotalCurrent>
<CampaignOtherOfferTotalPending>0</CampaignOtherOfferTotalPending>
<CampaignPersonalisedOfferTotal>0</CampaignPersonalisedOfferTotal>
<CampaignPersonalisedOfferTotalCurrent>0</CampaignPersonalisedOfferTotalCurrent>
<CampaignPersonalisedOfferTotalPending>0</CampaignPersonalisedOfferTotalPending>
<CampaignServiceOfferTotal>0</CampaignServiceOfferTotal>
<CampaignServiceOfferTotalCurrent>0</CampaignServiceOfferTotalCurrent>
<CampaignServiceOfferTotalPending>0</CampaignServiceOfferTotalPending>
<Colour>String</Colour>
<ColourCode>String</ColourCode>
<ColourDescription>String</ColourDescription>
<CommissionNumber>String</CommissionNumber>
<ConfirmedProductionDate>String</ConfirmedProductionDate>
<Creation>String</Creation>
<CreationDate>String</CreationDate>
<CurrentRetailerOfferPrice>0</CurrentRetailerOfferPrice>
<DaysSincePortArrival>0</DaysSincePortArrival>
<Description>String</Description>
<DisplayRetailer>String</DisplayRetailer>
<DisplayRetailerGssnId>String</DisplayRetailerGssnId>
<ElectricConsumption>0</ElectricConsumption>
<ElectricRange>0</ElectricRange>
<EligibleForMaTransfer>false</EligibleForMaTransfer>
<ForecastedArrivalDate>String</ForecastedArrivalDate>
<FuelType>String</FuelType>
<FullModelYearCode>String</FullModelYearCode>
<GssnId>String</GssnId>
<ImageUrl>String</ImageUrl>
<InBackOrderAccount>false</InBackOrderAccount>
<IsAvailableOnline>false</IsAvailableOnline>
<IsBackOrdered>false</IsBackOrdered>
<IsDisplayStock>false</IsDisplayStock>
<IsMotability>false</IsMotability>
<IsMotabilityRetailer>false</IsMotabilityRetailer>
<IsSellable>false</IsSellable>
<IspVehicleCustomerDescriptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</IspVehicleCustomerDescriptions>
<Line>String</Line>
<Location>String</Location>
<MaintenanceDate>String</MaintenanceDate>
<Mileage>0</Mileage>
<Model>String</Model>
<Modified>String</Modified>
<NoImage>false</NoImage>
<OfferAmount>String</OfferAmount>
<OfferAvailable>false</OfferAvailable>
<OfferExpiry>String</OfferExpiry>
<OfferTotal>0</OfferTotal>
<OfferTotalCurrent>0</OfferTotalCurrent>
<OfferTotalPending>0</OfferTotalPending>
<Otr>String</Otr>
<P11D>String</P11D>
<PackageNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</PackageNames>
<PipAdvanceRentalGross>0</PipAdvanceRentalGross>
<PortArrivalDate>0001-01-01T00:00:00</PortArrivalDate>
<ProductionDate>0001-01-01T00:00:00</ProductionDate>
<RegistrationDate>0001-01-01T00:00:00</RegistrationDate>
<RegistrationNumber>String</RegistrationNumber>
<RetailPrice>String</RetailPrice>
<RetailPriceExVAT>String</RetailPriceExVAT>
<RetailPriceIncVAT>0</RetailPriceIncVAT>
<RetailerCustomOfferTotal>0</RetailerCustomOfferTotal>
<RetailerCustomOfferTotalCurrent>0</RetailerCustomOfferTotalCurrent>
<RetailerCustomOfferTotalPending>0</RetailerCustomOfferTotalPending>
<RetailerDiscountOfferTotal>0</RetailerDiscountOfferTotal>
<RetailerDiscountOfferTotalCurrent>0</RetailerDiscountOfferTotalCurrent>
<RetailerDiscountOfferTotalPending>0</RetailerDiscountOfferTotalPending>
<RetailerId>0</RetailerId>
<RetailerOfferTotal>0</RetailerOfferTotal>
<RetailerOfferTotalCurrent>0</RetailerOfferTotalCurrent>
<RetailerOfferTotalPending>0</RetailerOfferTotalPending>
<RetailerServiceOfferTotal>0</RetailerServiceOfferTotal>
<RetailerServiceOfferTotalCurrent>0</RetailerServiceOfferTotalCurrent>
<RetailerServiceOfferTotalPending>0</RetailerServiceOfferTotalPending>
<RetailerWarrantyOfferTotal>0</RetailerWarrantyOfferTotal>
<RetailerWarrantyOfferTotalCurrent>0</RetailerWarrantyOfferTotalCurrent>
<RetailerWarrantyOfferTotalPending>0</RetailerWarrantyOfferTotalPending>
<Secured>false</Secured>
<Source>String</Source>
<Specialist>false</Specialist>
<TradeInDate>0001-01-01T00:00:00</TradeInDate>
<Transmission>String</Transmission>
<TransmissionType>String</TransmissionType>
<UnderOffer>false</UnderOffer>
<Upholstery>String</Upholstery>
<UpholsteryCode>String</UpholsteryCode>
<UpholsteryDescription>String</UpholsteryDescription>
<UpholsteryType>String</UpholsteryType>
<UsageCode>String</UsageCode>
<VATQualifying>false</VATQualifying>
<VehicleType>String</VehicleType>
<Vin>String</Vin>
<WpmsAdvanceRentalGross>0</WpmsAdvanceRentalGross>
<Engine>String</Engine>
<Equipment xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
<d4p1:Equipment>
<d4p1:Code>String</d4p1:Code>
<d4p1:Description>String</d4p1:Description>
<d4p1:Id>0</d4p1:Id>
</d4p1:Equipment>
</Equipment>
<HasMotabilityError>false</HasMotabilityError>
<Retailer>String</Retailer>
</VehicleIdentifierData>
</Vehicles>
</VehiclesByRetailerResponse>