A booked rental car.
driver, car, supplier, mileage, pickup_location,
dropoff_location, charges, conditions, privacy_policies and
metadata are kept as raw maps.
Summary
Functions
Decodes a raw cars booking map into a Duffel.Schema.Cars.Booking.
Types
@type t() :: %Duffel.Schema.Cars.Booking{ base_amount: String.t() | nil, base_currency: String.t() | nil, cancelled_at: String.t() | nil, car: map() | nil, charges: [map()], conditions: [map()], confirmed_at: String.t() | nil, driver: map() | nil, dropoff_date: String.t() | nil, dropoff_location: map() | nil, dropoff_time: String.t() | nil, id: String.t() | nil, live_mode: boolean() | nil, metadata: map() | nil, mileage: map() | nil, payment_type: String.t() | nil, pickup_date: String.t() | nil, pickup_location: map() | nil, pickup_time: String.t() | nil, privacy_policies: [map()], quote_id: String.t() | nil, reference: String.t() | nil, status: String.t() | nil, supplier: map() | nil, total_amount: String.t() | nil, total_currency: String.t() | nil, users: [String.t()] }
Functions
Decodes a raw cars booking map into a Duffel.Schema.Cars.Booking.