---
title: "completed(settled:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inridecompletionstatus/completed(settled:)"
---

# completed(settled:)

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

## Declaration

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

## Parameters

- `settledPaymentAmount`: The final cost of the ride that was paid by the user.

## Return Value

Return Value An initialized INRideCompletionStatus object.

## Discussion

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

- [completed()](intents/inridecompletionstatus/completed().md)
- [completed(outstanding:)](intents/inridecompletionstatus/completed(outstanding:).md)
- [completed(feedbackType:)](intents/inridecompletionstatus/completed(feedbacktype:).md)
- [canceledByService()](intents/inridecompletionstatus/canceledbyservice().md)
- [canceledByUser()](intents/inridecompletionstatus/canceledbyuser().md)
- [canceledMissedPickup()](intents/inridecompletionstatus/canceledmissedpickup().md)
