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
"use strict";
export class GetMotabilityPricingRequest {
    constructor(init) { Object.assign(this, init) }
}
export class MotabilityPricingCsv {
    /** @param {{Id?:number,CriteriaBM7NST?:string,VTN?:string,BackOrderDropDown?:string,CriteriaFullModelYearCode?:string,CriteriaValidOptionCodes?:string,CriteriaInvalidOptionCodes?:string,PIPNet?:number,PIPVat?:number,PIPGross?:number,WPMSNet?:number,WPMSVat?:number,WPMSGross?:number,DiscountNet?:number,DiscountVat?:number,DiscountGross?:number,ListPriceNet?:number,ListPriceVat?:number,ListPriceGross?:number,DeliveryChargeNet?:number,DeliveryChargeVat?:number,DeliveryChargeGross?:number,FuelChargeNet?:number,FuelChargeVat?:number,FuelChargeGross?:number,NumberPlateFeeNet?:number,NumberPlateFeeVat?:number,NumberPlateFeeGross?:number,FirstRegistrationFeeNet?:number,FirstRegistrationFeeVat?:number,FirstRegistrationFeeGross?:number,RoadFundLicenceNet?:number,RoadFundLicenceVat?:number,RoadFundLicenceGross?:number,ValidFrom?:string,ValidTo?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {string} */
    CriteriaBM7NST;
    /** @type {string} */
    VTN;
    /** @type {string} */
    BackOrderDropDown;
    /** @type {string} */
    CriteriaFullModelYearCode;
    /** @type {?string} */
    CriteriaValidOptionCodes;
    /** @type {?string} */
    CriteriaInvalidOptionCodes;
    /** @type {number} */
    PIPNet;
    /** @type {number} */
    PIPVat;
    /** @type {number} */
    PIPGross;
    /** @type {number} */
    WPMSNet;
    /** @type {number} */
    WPMSVat;
    /** @type {number} */
    WPMSGross;
    /** @type {number} */
    DiscountNet;
    /** @type {number} */
    DiscountVat;
    /** @type {number} */
    DiscountGross;
    /** @type {number} */
    ListPriceNet;
    /** @type {number} */
    ListPriceVat;
    /** @type {number} */
    ListPriceGross;
    /** @type {number} */
    DeliveryChargeNet;
    /** @type {number} */
    DeliveryChargeVat;
    /** @type {number} */
    DeliveryChargeGross;
    /** @type {number} */
    FuelChargeNet;
    /** @type {number} */
    FuelChargeVat;
    /** @type {number} */
    FuelChargeGross;
    /** @type {number} */
    NumberPlateFeeNet;
    /** @type {number} */
    NumberPlateFeeVat;
    /** @type {number} */
    NumberPlateFeeGross;
    /** @type {number} */
    FirstRegistrationFeeNet;
    /** @type {number} */
    FirstRegistrationFeeVat;
    /** @type {number} */
    FirstRegistrationFeeGross;
    /** @type {number} */
    RoadFundLicenceNet;
    /** @type {number} */
    RoadFundLicenceVat;
    /** @type {number} */
    RoadFundLicenceGross;
    /** @type {string} */
    ValidFrom;
    /** @type {string} */
    ValidTo;
}
/** @typedef {'Pending'|'Current'|'RecentlyExpired'|'Expired'} */
export var MotabilityPricingStatus;
(function (MotabilityPricingStatus) {
    MotabilityPricingStatus["Pending"] = "Pending"
    MotabilityPricingStatus["Current"] = "Current"
    MotabilityPricingStatus["RecentlyExpired"] = "RecentlyExpired"
    MotabilityPricingStatus["Expired"] = "Expired"
})(MotabilityPricingStatus || (MotabilityPricingStatus = {}));
export class MotabilityPricing extends MotabilityPricingCsv {
    /** @param {{MotabilityPricingStatus?:MotabilityPricingStatus,Id?:number,CriteriaBM7NST?:string,VTN?:string,BackOrderDropDown?:string,CriteriaFullModelYearCode?:string,CriteriaValidOptionCodes?:string,CriteriaInvalidOptionCodes?:string,PIPNet?:number,PIPVat?:number,PIPGross?:number,WPMSNet?:number,WPMSVat?:number,WPMSGross?:number,DiscountNet?:number,DiscountVat?:number,DiscountGross?:number,ListPriceNet?:number,ListPriceVat?:number,ListPriceGross?:number,DeliveryChargeNet?:number,DeliveryChargeVat?:number,DeliveryChargeGross?:number,FuelChargeNet?:number,FuelChargeVat?:number,FuelChargeGross?:number,NumberPlateFeeNet?:number,NumberPlateFeeVat?:number,NumberPlateFeeGross?:number,FirstRegistrationFeeNet?:number,FirstRegistrationFeeVat?:number,FirstRegistrationFeeGross?:number,RoadFundLicenceNet?:number,RoadFundLicenceVat?:number,RoadFundLicenceGross?:number,ValidFrom?:string,ValidTo?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {MotabilityPricingStatus} */
    MotabilityPricingStatus;
}
export class GetMotabilityPricingResponse {
    /** @param {{MotabilityPricing?:MotabilityPricing[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {MotabilityPricing[]} */
    MotabilityPricing = [];
}

JavaScript 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.