Creates an instance of this class that indicates the ride completed successfully and with the specified cost.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The final cost of the ride that was paid by the user.
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
outstanding properties to
NO. It also sets the
payment property to the value in the