| GET | /v1/backorder/othermatchcsv/{Guid} | Get Back Order Matches by Guid | Get Back Order Matches by Guid |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
class GetBackOrderMatchRequest
include ServiceStack::DTO
# @return [String]
attr_accessor :guid
def self.properties
{
guid: { name: 'guid' },
}
end
end
class BackOrderVehicleCsv
include ServiceStack::DTO
# @return [String]
attr_accessor :vehicle_type
# @return [String]
attr_accessor :vid
# @return [String]
attr_accessor :vin
# @return [String]
attr_accessor :fin
# @return [String]
attr_accessor :commission_number
# @return [String]
attr_accessor :chassis_number
# @return [String]
attr_accessor :line
# @return [List]
attr_accessor :packages
# @return [String]
attr_accessor :model_year
# @return [String]
attr_accessor :model_year_code
# @return [String]
attr_accessor :description
# @return [String]
attr_accessor :vehicle_class
# @return [String]
attr_accessor :retail_price__ex_v_a_t
# @return [BigDecimal]
attr_accessor :retail_price__inc_v_a_t
# @return [String]
attr_accessor :otr
# @return [String]
attr_accessor :actual_price
# @return [String]
attr_accessor :body_style
# @return [String]
attr_accessor :model
# @return [String]
attr_accessor :colour
# @return [String]
attr_accessor :colour_group
# @return [String]
attr_accessor :fuel
# @return [String]
attr_accessor :product_range
# @return [String]
attr_accessor :engine
# @return [TrueClass]
attr_accessor :is_a_m_g
# @return [String]
attr_accessor :transmission
# @return [String]
attr_accessor :upholstery
# @return [String]
attr_accessor :nst
# @return [String]
attr_accessor :b_m7_n_s_t
# @return [BigDecimal]
attr_accessor :acceleration
# @return [BigDecimal]
attr_accessor :boot_capacity
# @return [BigDecimal]
attr_accessor :top_speed
# @return [String]
attr_accessor :drive_concept
# @return [BigDecimal]
attr_accessor :combustion_power_hp
# @return [BigDecimal]
attr_accessor :electric_power_kw
# @return [BigDecimal]
attr_accessor :electric_power_hp
# @return [BigDecimal]
attr_accessor :combined_power_kw
# @return [BigDecimal]
attr_accessor :combined_power_h_p
# @return [BigDecimal]
attr_accessor :electric_range
# @return [BigDecimal]
attr_accessor :electric_consumption
# @return [String]
attr_accessor :emission_combined
# @return [String]
attr_accessor :emission_extra_urban
# @return [String]
attr_accessor :emission_urban
# @return [BigDecimal]
attr_accessor :emission
# @return [String]
attr_accessor :emission_directive
# @return [String]
attr_accessor :energy_efficiency_class
# @return [BigDecimal]
attr_accessor :wltp_combined
# @return [BigDecimal]
attr_accessor :wltp_low
# @return [BigDecimal]
attr_accessor :wltp_medium
# @return [BigDecimal]
attr_accessor :wltp_high
# @return [BigDecimal]
attr_accessor :wltp_extra_high
# @return [BigDecimal]
attr_accessor :wltp_emission_combined
# @return [String]
attr_accessor :port_arrival_date
# @return [DateTime]
attr_accessor :creation_date
# @return [DateTime]
attr_accessor :last_updated
# @return [TrueClass]
attr_accessor :is_display_stock
# @return [String]
attr_accessor :display_stock_agent
# @return [TrueClass]
attr_accessor :is_specialist_car
# @return [String]
attr_accessor :account
# @return [String]
attr_accessor :location
# @return [String]
attr_accessor :cesar_id_ship_to_party
# @return [String]
attr_accessor :vehicle_usage_code
# @return [TrueClass]
attr_accessor :is_sellable
# @return [TrueClass]
attr_accessor :under_offer
# @return [TrueClass]
attr_accessor :mbuk_secured
# @return [String]
attr_accessor :half_model_year_code
# @return [String]
attr_accessor :full_model_year_code
# @return [TrueClass]
attr_accessor :is_motability
# @return [DateTime]
attr_accessor :confirmed_production_date
# @return [DateTime]
attr_accessor :forecasted_arrival_date
def self.properties
{
vehicle_type: { name: 'vehicleType' },
vid: { name: 'vid' },
vin: { name: 'vin' },
fin: { name: 'fin' },
commission_number: { name: 'commissionNumber' },
chassis_number: { name: 'chassisNumber' },
line: { name: 'line' },
packages: { name: 'packages' },
model_year: { name: 'modelYear' },
model_year_code: { name: 'modelYearCode' },
description: { name: 'description' },
vehicle_class: { name: 'vehicleClass' },
retail_price__ex_v_a_t: { name: 'retailPrice_ExVAT' },
retail_price__inc_v_a_t: { name: 'retailPrice_IncVAT' },
otr: { name: 'otr' },
actual_price: { name: 'actualPrice' },
body_style: { name: 'bodyStyle' },
model: { name: 'model' },
colour: { name: 'colour' },
colour_group: { name: 'colourGroup' },
fuel: { name: 'fuel' },
product_range: { name: 'productRange' },
engine: { name: 'engine' },
is_a_m_g: { name: 'isAMG' },
transmission: { name: 'transmission' },
upholstery: { name: 'upholstery' },
nst: { name: 'nst' },
b_m7_n_s_t: { name: 'bM7NST' },
acceleration: { name: 'acceleration' },
boot_capacity: { name: 'bootCapacity' },
top_speed: { name: 'topSpeed' },
drive_concept: { name: 'driveConcept' },
combustion_power_hp: { name: 'combustionPowerHp' },
electric_power_kw: { name: 'electricPowerKw' },
electric_power_hp: { name: 'electricPowerHp' },
combined_power_kw: { name: 'combinedPowerKw' },
combined_power_h_p: { name: 'combinedPowerHP' },
electric_range: { name: 'electricRange' },
electric_consumption: { name: 'electricConsumption' },
emission_combined: { name: 'emissionCombined' },
emission_extra_urban: { name: 'emissionExtraUrban' },
emission_urban: { name: 'emissionUrban' },
emission: { name: 'emission' },
emission_directive: { name: 'emissionDirective' },
energy_efficiency_class: { name: 'energyEfficiencyClass' },
wltp_combined: { name: 'wltpCombined' },
wltp_low: { name: 'wltpLow' },
wltp_medium: { name: 'wltpMedium' },
wltp_high: { name: 'wltpHigh' },
wltp_extra_high: { name: 'wltpExtraHigh' },
wltp_emission_combined: { name: 'wltpEmissionCombined' },
port_arrival_date: { name: 'portArrivalDate' },
creation_date: { name: 'creationDate', type: DateTime },
last_updated: { name: 'lastUpdated', type: DateTime },
is_display_stock: { name: 'isDisplayStock' },
display_stock_agent: { name: 'displayStockAgent' },
is_specialist_car: { name: 'isSpecialistCar' },
account: { name: 'account' },
location: { name: 'location' },
cesar_id_ship_to_party: { name: 'cesarIdShipToParty' },
vehicle_usage_code: { name: 'vehicleUsageCode' },
is_sellable: { name: 'isSellable' },
under_offer: { name: 'underOffer' },
mbuk_secured: { name: 'mbukSecured' },
half_model_year_code: { name: 'halfModelYearCode' },
full_model_year_code: { name: 'fullModelYearCode' },
is_motability: { name: 'isMotability' },
confirmed_production_date: { name: 'confirmedProductionDate', type: DateTime },
forecasted_arrival_date: { name: 'forecastedArrivalDate', type: DateTime },
}
end
end
class GetBackOrderVehicleOtherMatchCsvResponse
include ServiceStack::DTO
# @return [List]
attr_accessor :vehicles
def self.properties
{
vehicles: { name: 'vehicles', type: [BackOrderVehicleCsv] },
}
end
end
class GetBackOrderVehicleOtherMatchCsvRequest < GetBackOrderMatchRequest
def response_type() = GetBackOrderVehicleOtherMatchCsvResponse
def get_type_name() = 'GetBackOrderVehicleOtherMatchCsvRequest'
end
Ruby GetBackOrderVehicleOtherMatchCsvRequest 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.
GET /v1/backorder/othermatchcsv/{Guid} HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Vehicles:
[
{
VehicleType: String,
Vid: String,
Vin: String,
Fin: String,
CommissionNumber: String,
ChassisNumber: String,
Line: String,
Packages:
[
String
],
ModelYear: String,
ModelYearCode: String,
Description: String,
VehicleClass: String,
RetailPrice_ExVAT: String,
RetailPrice_IncVAT: 0,
OTR: String,
ActualPrice: String,
BodyStyle: String,
Model: String,
Colour: String,
ColourGroup: String,
Fuel: String,
ProductRange: String,
Engine: String,
IsAMG: False,
Transmission: String,
Upholstery: String,
Nst: String,
BM7NST: String,
Acceleration: 0,
BootCapacity: 0,
TopSpeed: 0,
DriveConcept: String,
CombustionPowerHp: 0,
ElectricPowerKw: 0,
ElectricPowerHp: 0,
CombinedPowerKw: 0,
CombinedPowerHP: 0,
ElectricRange: 0,
ElectricConsumption: 0,
EmissionCombined: String,
EmissionExtraUrban: String,
EmissionUrban: String,
Emission: 0,
EmissionDirective: String,
EnergyEfficiencyClass: String,
WltpCombined: 0,
WltpLow: 0,
WltpMedium: 0,
WltpHigh: 0,
WltpExtraHigh: 0,
WltpEmissionCombined: 0,
PortArrivalDate: String,
CreationDate: 0001-01-01,
LastUpdated: 0001-01-01,
IsDisplayStock: False,
DisplayStockAgent: String,
IsSpecialistCar: False,
Account: String,
Location: String,
CesarIdShipToParty: String,
VehicleUsageCode: String,
IsSellable: False,
UnderOffer: False,
MbukSecured: False,
HalfModelYearCode: String,
FullModelYearCode: String,
IsMotability: False,
ConfirmedProductionDate: 0001-01-01,
ForecastedArrivalDate: 0001-01-01
}
]
}