Mercedes.Agency.Orchestration.API

<back to all web services

GetMotabilityPricingRequest

Motability
Requires Authentication
The following routes are available for this service:
POST/v1/motability/pricingGets the motability pricing information for the current user roleGets the motability pricing information for the current user role
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetMotabilityPricingRequest
{
}

open class GetMotabilityPricingResponse
{
    open var MotabilityPricing:ArrayList<MotabilityPricing> = ArrayList<MotabilityPricing>()
}

open class MotabilityPricing : MotabilityPricingCsv()
{
    open var MotabilityPricingStatus:MotabilityPricingStatus? = null
}

open class MotabilityPricingCsv
{
    @DataMember(Order=0)
    open var Id:Int? = null

    @DataMember(Order=1)
    open var CriteriaBM7NST:String? = null

    @DataMember(Order=2)
    open var VTN:String? = null

    @DataMember(Order=3)
    open var BackOrderDropDown:String? = null

    @DataMember(Order=4)
    open var CriteriaFullModelYearCode:String? = null

    @DataMember(Order=5)
    open var CriteriaValidOptionCodes:String? = null

    @DataMember(Order=6)
    open var CriteriaInvalidOptionCodes:String? = null

    @DataMember(Order=7)
    open var PIPNet:BigDecimal? = null

    @DataMember(Order=8)
    open var PIPVat:BigDecimal? = null

    @DataMember(Order=9)
    open var PIPGross:BigDecimal? = null

    @DataMember(Order=10)
    open var WPMSNet:BigDecimal? = null

    @DataMember(Order=11)
    open var WPMSVat:BigDecimal? = null

    @DataMember(Order=12)
    open var WPMSGross:BigDecimal? = null

    @DataMember(Order=13)
    open var DiscountNet:BigDecimal? = null

    @DataMember(Order=14)
    open var DiscountVat:BigDecimal? = null

    @DataMember(Order=15)
    open var DiscountGross:BigDecimal? = null

    @DataMember(Order=16)
    open var ListPriceNet:BigDecimal? = null

    @DataMember(Order=17)
    open var ListPriceVat:BigDecimal? = null

    @DataMember(Order=18)
    open var ListPriceGross:BigDecimal? = null

    @DataMember(Order=19)
    open var DeliveryChargeNet:BigDecimal? = null

    @DataMember(Order=20)
    open var DeliveryChargeVat:BigDecimal? = null

    @DataMember(Order=21)
    open var DeliveryChargeGross:BigDecimal? = null

    @DataMember(Order=22)
    open var FuelChargeNet:BigDecimal? = null

    @DataMember(Order=23)
    open var FuelChargeVat:BigDecimal? = null

    @DataMember(Order=24)
    open var FuelChargeGross:BigDecimal? = null

    @DataMember(Order=25)
    open var NumberPlateFeeNet:BigDecimal? = null

    @DataMember(Order=26)
    open var NumberPlateFeeVat:BigDecimal? = null

    @DataMember(Order=27)
    open var NumberPlateFeeGross:BigDecimal? = null

    @DataMember(Order=28)
    open var FirstRegistrationFeeNet:BigDecimal? = null

    @DataMember(Order=29)
    open var FirstRegistrationFeeVat:BigDecimal? = null

    @DataMember(Order=30)
    open var FirstRegistrationFeeGross:BigDecimal? = null

    @DataMember(Order=31)
    open var RoadFundLicenceNet:BigDecimal? = null

    @DataMember(Order=32)
    open var RoadFundLicenceVat:BigDecimal? = null

    @DataMember(Order=33)
    open var RoadFundLicenceGross:BigDecimal? = null

    @DataMember(Order=34)
    open var ValidFrom:Date? = null

    @DataMember(Order=35)
    open var ValidTo:Date? = null
}

enum class MotabilityPricingStatus
{
    Pending,
    Current,
    RecentlyExpired,
    Expired,
}

Kotlin GetMotabilityPricingRequest DTOs

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

HTTP + CSV

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

POST /v1/motability/pricing HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'GetMotabilityPricingResponse' using the custom 'csv' filter}Cannot dynamically create an instance of type 'Mercedes.Agency.API.Shared.POCO.Motability.Responses.GetMotabilityPricingResponse'. Reason: No parameterless constructor defined.