resolveTransactionNote(for:with:)
Resolves any custom notes associated with the transaction.
Declaration
optional func resolveTransactionNote(for intent: INPayBillIntent, with completion: @escaping @Sendable (INStringResolutionResult) -> Void)optional func resolveTransactionNote(for intent: INPayBillIntent) async -> INStringResolutionResultParameters
- 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 string containing any notes to include with the transaction. This parameter must not be
nil.
Discussion
Implement this method to resolve whether you can record notes with the transaction. Return a successful resolution if you can record the note with the transaction. If your app doesn’t store notes with transactions, return a resolution indicating that the value isn’t required.
You’re strongly encouraged to record notes with your app’s financial transactions. Notes are optional but are helpful for users to organize their transactions.