Type Method

completedWithSettledPaymentAmount:

Creates an instance of this class that indicates the ride completed successfully and with the specified cost.

Declaration

+ (instancetype)completedWithSettledPaymentAmount:(INCurrencyAmount *)settledPaymentAmount;

Parameters

settledPaymentAmount

The final cost of the ride that was paid by the user.

Return Value

An initialized INRideCompletionStatus object.

Discussion

Use this method when the ride completed successfully and you want to include the final cost of the ride in your response. This method sets the completed property of the returned object to YES, and it sets the canceled, missedPickup, and outstanding properties to NO. It also sets the paymentAmount property to the value in the settledPaymentAmount parameter.

See Also

Creating a Ride Completion Status Object

+ completed

Creates an instance of this class that indicates the ride completed successfully.

+ completedWithOutstandingPaymentAmount:

Creates an instance of this class that indicates the ride completed successfully but still requires payment from the user.

+ completedWithOutstandingFeedbackType:

Creates an instance of this class that indicates the ride completed successfully but still requires feedback from the user.

+ canceledByService

Creates an instance of this class that indicates your service canceled the ride.

+ canceledByUser

Creates an instance of this class that indicates the user canceled the ride.

+ canceledMissedPickup

Creates an instance of this class that indicates someone canceled the ride because of a missed pickup.