Instance Method

resolvePaymentDateRangeForSearchForBills:withCompletion:

Resolves the payment date to use during your search.

Declaration

- (void)resolvePaymentDateRangeForSearchForBills:(INSearchForBillsIntent *)intent withCompletion:(void (^)(INDateComponentsRangeResolutionResult *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 INDateComponentsRange object that you intend to use during the search.

Discussion

Implement this method to resolve any questions about the payment date for a bill. Use the paymentDateRange property of the intent object to identify the date range to search. If a date range is available and usable, return a successful resolution with that date range. You can also make adjustments to the date range as needed and ask the user for confirmation.

If the user did not specify a date range, return a resolution of not required from this method. When the user didnt specify a date range, you must decide how you want to filter results during the subsequent search. For example, you might want to return only the user’s most recently paid bills. Alternatively, you could return all paid bills from the past month or from the past year.

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.

- resolveStatusForSearchForBills:withCompletion:

Resolves the bill status to use during your search.