resolveTransactionScheduledDate(for:with:)
Resolves the date for the payment to occur.
Declaration
optional func resolveTransactionScheduledDate(for intent: INPayBillIntent, with completion: @escaping @Sendable (INDateComponentsRangeResolutionResult) -> Void)optional func resolveTransactionScheduledDate(for intent: INPayBillIntent) async -> INDateComponentsRangeResolutionResultParameters
- intent:
The intent object containing details of 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 resolution object containing your proposed resolution. For successful resolutions, create a resolution object whose value is the date range of the payment’s schedule. This parameter must not be
nil.
Discussion
Implement this method to resolve the date on which to transfer money from the user’s account to the payee. The user can optionally specify a date on which to schedule payment. If the user doesn’t specify a date, assume that the user wants to pay the bill immediately. Don’t check to see if the scheduled date occurs before the bill’s due date. Instead, use this method only to identify the date on which you can perform the transaction.
Return a successful resolution if you’re able to schedule the transaction on the date requested by the user, or if you’re able to schedule the transaction immediately. If the user-specified date falls on a banking holiday or on a date when you’d be unable to schedule the transaction, suggest a different date and ask the user for confirmation or use a disambiguation resolution to ask the user to select from two or three alternative dates.