Class

INRideFareLineItem

A specific type of ride-related charge.

Declaration

class INRideFareLineItem : NSObject

Overview

Create one or more INRideFareLineItem objects when you need to break down the cost of a ride using different pricing rules. For example, one line item might specify the base charge of the ride and a second line item might specify the per-mile charge. When displaying the ride information to the user, Siri and Maps display the line-item information.

The inclusion of line items in an INRideOption object is optional but recommended when the cost of the ride involves separate charges. When appropriate, create one or more INRideFareLineItem objects and attach them to your ride option object. Siri and Maps use the currency code you specify to apply the appropriate currency designator to the price information.

Topics

Initializing a Ride Fare Object

init!(title: String!, price: NSDecimalNumber!, currencyCode: String!)

Initializes the line item object with the specified title and pricing information.

Getting the Line Item Information

var title: String!

The localized string containing a description of the charge.

var price: NSDecimalNumber!

The cost value of the line item.

var currencyCode: String!

The ISO 4217 currency code that applies to the price information.

Relationships

Inherits From

See Also

Data Objects

class INRideOption

Details about a type of ride offered by your ride-booking service.

class INRideStatus

The status of a ride booked through a ride-booking service.

class INRideDriver

Identifying information about a driver of a ride service.

class INRideVehicle

A specific vehicle used by a ride-booking service.

class INRidePartySizeOption

The price of a ride involving the specified number of people.

class INRideCompletionStatus

Additional details about whether a ride completed successfully or someone canceled the ride.