Contents

completed(settled:)

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

Declaration

class func completed(settled settledPaymentAmount: INCurrencyAmount) -> Self

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 isCompleted property of the returned object to true, and it sets the isCanceled, isMissedPickup, and isOutstanding properties to false. It also sets the paymentAmount property to the value in the settledPaymentAmount parameter.

See Also

Creating a Ride Completion Status Object