Mercedes.Agency.Orchestration.API

<back to all web services

MotabilityInflightPricingRequest

InFlightPricing
Requires Authentication
The following routes are available for this service:
POST/v1/motabilityinflightpricingMotability Pricing Inflight Pricing for supplied Order GuidsThis endpoint is used for fetch motability orders only for inflight pricing. The original request is being made on Agency API and a list of orders from database is passed to agency orch. This is to fetch addditional information such as the vehicles details e.g Prices and Offers data
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.InflightPricing
Imports Mercedes.Agency.API.Shared.POCO

Namespace Global

    Namespace Mercedes.Agency.API.Shared.POCO

        Public Partial Class InflightPricingOrder
            Public Overridable Property Guid As Guid
            Public Overridable Property Vin As String
            Public Overridable Property AdvanceRentalPaymentType As Integer
            Public Overridable Property Offer As List(Of OrderOffer) = New List(Of OrderOffer)
            Public Overridable Property OutrightPurchase As OutrightPurchase
            Public Overridable Property MotabilityAdvancePayment As MotabilityAdvancePayment
        End Class

        Public Partial Class InflightPricingOrderRequest
            Public Overridable Property InvalidFormatGuids As List(Of String) = New List(Of String)
            Public Overridable Property OrderNotFoundGuids As List(Of Guid) = New List(Of Guid)
            Public Overridable Property InflightPricingOrders As List(Of InflightPricingOrder) = New List(Of InflightPricingOrder)
            Public Overridable Property IsMotability As Boolean
        End Class

        Public Partial Class InflightPricingResponse
            Public Overridable Property VehiclesInflightPrices As List(Of VehicleInflightPrice) = New List(Of VehicleInflightPrice)
        End Class

        Public Partial Class MotabilityAdvancePayment
            Public Overridable Property AdvancePaymentRentalType As String
            Public Overridable Property AdvancePaymentValueGross As Decimal
            Public Overridable Property AdvancePaymentValueVAT As Decimal
            Public Overridable Property AdvancePaymentValueNet As Decimal
        End Class

        Public Partial Class MotabilityInflightPricingOrderRequest
            Inherits InflightPricingOrderRequest
            Public Overridable Property OrderVehicleWithNoMotabilityDiscount As List(Of Guid) = New List(Of Guid)
        End Class

        Public Partial Class OrderOffer
            Public Overridable Property Id As Integer
            Public Overridable Property OfferTypeId As Integer
            Public Overridable Property OfferTypeDescription As String
            Public Overridable Property OfferId As String
            Public Overridable Property OfferDescription As String
            Public Overridable Property Net As Decimal
            Public Overridable Property VAT As Decimal
            Public Overridable Property Gross As Decimal
            Public Overridable Property GovernmentGrant As Boolean
            Public Overridable Property PromoCode As String
            Public Overridable Property Expiry As String
            Public Overridable Property AffectsPrice As Boolean
            Public Overridable Property Product As Integer?
            Public Overridable Property ParentId As String
            Public Overridable Property CreationDate As Date
            Public Overridable Property ProductTypeDescription As String
            Public Overridable Property ProductTypeNegativeDescription As String
            Public Overridable Property CertificateRequired As Boolean?
        End Class

        Public Partial Class OutrightPurchase
            Public Overridable Property IsOutrightPurchase As Boolean
            Public Overridable Property Reference As String
            Public Overridable Property DiscountRate As Decimal
            Public Overridable Property Bm7NST As String
            Public Overridable Property IsBackOrder As Boolean
            Public Overridable Property IsCOPConverter As Boolean
        End Class

        Public Partial Class SalesforceOffer
            Public Overridable Property Id As String
            Public Overridable Property Description As String
            Public Overridable Property Net As Decimal
            Public Overridable Property VAT As Decimal
            Public Overridable Property Gross As Decimal
            Public Overridable Property Expiry As String
            Public Overridable Property Product As String
            Public Overridable Property RequiresCertification As Boolean?
        End Class

        Public Partial Class SalesforceOffers
            Public Overridable Property Personalised As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
            Public Overridable Property NonDiscretionary As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
            Public Overridable Property NonCampaign As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
            Public Overridable Property OutrightPurchaseDiscount As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
            Public Overridable Property MotabilityDiscount As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
            Public Overridable Property IntegratedProducts As List(Of SalesforceOffer) = New List(Of SalesforceOffer)
        End Class

        Public Partial Class SalesforceOutrightPurchase
            Public Overridable Property IsOutrightPurchase As Boolean
            Public Overridable Property Reference As String
            Public Overridable Property DiscountPercentage As Decimal
            Public Overridable Property ModelId As String
        End Class

        Public Partial Class SalesforcePrice
            Public Overridable Property Id As String
            Public Overridable Property Description As String
            Public Overridable Property Net As Decimal
            Public Overridable Property VAT As Decimal
            Public Overridable Property Gross As Decimal
            Public Overridable Property Product As String
        End Class

        Public Partial Class SalesforceTotalPrice
            Public Overridable Property Net As Decimal
            Public Overridable Property VAT As Decimal
            Public Overridable Property Gross As Decimal
        End Class

        Public Partial Class VehicleInflightPrice
            Public Overridable Property Guid As String
            Public Overridable Property Status As String
            Public Overridable Property Success As Boolean
            Public Overridable Property Prices As List(Of SalesforcePrice) = New List(Of SalesforcePrice)
            Public Overridable Property TotalOTRFees As SalesforceTotalPrice
            Public Overridable Property TotalOTRPrice As SalesforceTotalPrice
            Public Overridable Property TotalActualPrice As SalesforceTotalPrice
            Public Overridable Property Offers As SalesforceOffers
            Public Overridable Property OutrightPurchase As SalesforceOutrightPurchase
            Public Overridable Property Motability As MotabilityAdvancePayment
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.ServiceModel.InflightPricing

        <ApiResponse(Description:="In Flight pricing generated", StatusCode:=200)>
        Public Partial Class MotabilityInflightPricingRequest
            Inherits MotabilityInflightPricingOrderRequest
            Implements IPost
        End Class
    End Namespace
End Namespace

VB.NET MotabilityInflightPricingRequest DTOs

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

HTTP + XML

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

POST /v1/motabilityinflightpricing HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<MotabilityInflightPricingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.Orchestration.API.ServiceModel.InflightPricing">
  <InflightPricingOrders xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <InflightPricingOrder>
      <AdvanceRentalPaymentType>0</AdvanceRentalPaymentType>
      <Guid>00000000-0000-0000-0000-000000000000</Guid>
      <MotabilityAdvancePayment>
        <AdvancePaymentRentalType>String</AdvancePaymentRentalType>
        <AdvancePaymentValueGross>0</AdvancePaymentValueGross>
        <AdvancePaymentValueNet>0</AdvancePaymentValueNet>
        <AdvancePaymentValueVAT>0</AdvancePaymentValueVAT>
      </MotabilityAdvancePayment>
      <Offer>
        <OrderOffer>
          <AffectsPrice>false</AffectsPrice>
          <CertificateRequired>false</CertificateRequired>
          <CreationDate>0001-01-01T00:00:00</CreationDate>
          <Expiry>String</Expiry>
          <GovernmentGrant>false</GovernmentGrant>
          <Gross>0</Gross>
          <Id>0</Id>
          <Net>0</Net>
          <OfferDescription>String</OfferDescription>
          <OfferId>String</OfferId>
          <OfferTypeDescription>String</OfferTypeDescription>
          <OfferTypeId>0</OfferTypeId>
          <ParentId>String</ParentId>
          <Product>0</Product>
          <ProductTypeDescription>String</ProductTypeDescription>
          <ProductTypeNegativeDescription>String</ProductTypeNegativeDescription>
          <PromoCode>String</PromoCode>
          <VAT>0</VAT>
        </OrderOffer>
      </Offer>
      <OutrightPurchase>
        <Bm7NST>String</Bm7NST>
        <DiscountRate>0</DiscountRate>
        <IsBackOrder>false</IsBackOrder>
        <IsCOPConverter>false</IsCOPConverter>
        <IsOutrightPurchase>false</IsOutrightPurchase>
        <Reference>String</Reference>
      </OutrightPurchase>
      <Vin>String</Vin>
    </InflightPricingOrder>
  </InflightPricingOrders>
  <InvalidFormatGuids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:string>String</d2p1:string>
  </InvalidFormatGuids>
  <IsMotability xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">false</IsMotability>
  <OrderNotFoundGuids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
  </OrderNotFoundGuids>
  <OrderVehicleWithNoMotabilityDiscount xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
  </OrderVehicleWithNoMotabilityDiscount>
</MotabilityInflightPricingRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InflightPricingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
  <VehiclesInflightPrices>
    <VehicleInflightPrice>
      <Guid>String</Guid>
      <Motability>
        <AdvancePaymentRentalType>String</AdvancePaymentRentalType>
        <AdvancePaymentValueGross>0</AdvancePaymentValueGross>
        <AdvancePaymentValueNet>0</AdvancePaymentValueNet>
        <AdvancePaymentValueVAT>0</AdvancePaymentValueVAT>
      </Motability>
      <Offers>
        <IntegratedProducts>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </IntegratedProducts>
        <MotabilityDiscount>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </MotabilityDiscount>
        <NonCampaign>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </NonCampaign>
        <NonDiscretionary>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </NonDiscretionary>
        <OutrightPurchaseDiscount>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </OutrightPurchaseDiscount>
        <Personalised>
          <SalesforceOffer>
            <Description>String</Description>
            <Expiry>String</Expiry>
            <Gross>0</Gross>
            <Id>String</Id>
            <Net>0</Net>
            <Product>String</Product>
            <RequiresCertification>false</RequiresCertification>
            <VAT>0</VAT>
          </SalesforceOffer>
        </Personalised>
      </Offers>
      <OutrightPurchase>
        <DiscountPercentage>0</DiscountPercentage>
        <IsOutrightPurchase>false</IsOutrightPurchase>
        <ModelId>String</ModelId>
        <Reference>String</Reference>
      </OutrightPurchase>
      <Prices>
        <SalesforcePrice>
          <Description>String</Description>
          <Gross>0</Gross>
          <Id>String</Id>
          <Net>0</Net>
          <Product>String</Product>
          <VAT>0</VAT>
        </SalesforcePrice>
      </Prices>
      <Status>String</Status>
      <Success>false</Success>
      <TotalActualPrice>
        <Gross>0</Gross>
        <Net>0</Net>
        <VAT>0</VAT>
      </TotalActualPrice>
      <TotalOTRFees>
        <Gross>0</Gross>
        <Net>0</Net>
        <VAT>0</VAT>
      </TotalOTRFees>
      <TotalOTRPrice>
        <Gross>0</Gross>
        <Net>0</Net>
        <VAT>0</VAT>
      </TotalOTRPrice>
    </VehicleInflightPrice>
  </VehiclesInflightPrices>
</InflightPricingResponse>