Instance Method

resolveStatusForSearchForBills:withCompletion:

Resolves the bill status to use during your search.

Declaration

- (void)resolveStatusForSearchForBills:(INSearchForBillsIntent *)intent withCompletion:(void (^)(INPaymentStatusResolutionResult *resolutionResult))completion;

Parameters

intent

The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.

completion

The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

resolutionResult

The object containing the details of your proposed resolution. For successful resolutions, create a resolution object containing the INPaymentStatus value that you intend to use during the search.

Discussion

Implement this method to resolve any questions about the status of a bill. Use the status property of the intent object to identify the status type to search. If the specified status type is one that your app supports, return a successful resolution with that type.

If the status type is INPaymentStatusUnknown, return a resolution of not required from this method. When the status type is unknown, do not filter the subsequent search results based on the bill’s current status. Instead, return all bills whether they are pending, completed, canceled, or failed.

See Also

Resolving the Intent Parameters

- resolveBillPayeeForSearchForBills:withCompletion:

Resolves the payee to use during your search.

- resolveBillTypeForSearchForBills:withCompletion:

Resolves the bill type to use during your search.

- resolveDueDateRangeForSearchForBills:withCompletion:

Resolves the due date to use during your search.

- resolvePaymentDateRangeForSearchForBills:withCompletion:

Resolves the payment date to use during your search.