Show:

An order with a flat price which is created from booking information (ex. : start and end locations, service class, etc.) and that can be confirmed into a booking.

Table of Contents

Constructor

SnapCar.BookingPrice ()

Methods

confirm () jQuery.Promise

Creates a booking by confirming the booking price.

Returns:

jQuery.Promise:

A Promise object. Success/progress handlers are called with a SnapCar.Booking as the single argument. If the booking has a specific planned start date, the success callbacks are called once the platform confirms the booking creation. However, if the booking has no planned start date, the progress callbacks are called once the platform confirms the booking creation and the success callbacks are called when the booking is no longer in the "pending" status (either accepted by the driver or cancelled). Failure handlers are called with a single SnapCar.APIError argument upon error.

Properties

currency

String const

The currency.

Example:

       "EUR"

expiryDate

Date const

The date of the validity date for the given price.

formattedPrice

String const

A formatted string representing the price.

id

String const

The booking price unique identifier.

price

Float const

The price in the currency defined in the currency property.

serviceClass

String const

The service class for which the price is valid.