Contents

resolveBillPayee(for:with:)

Resolves the entity that originated the bill.

Declaration

optional func resolveBillPayee(for intent: INPayBillIntent, with completion: @escaping  @Sendable (INBillPayeeResolutionResult) -> Void)
optional func resolveBillPayee(for intent: INPayBillIntent) async -> INBillPayeeResolutionResult

Parameters

  • 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 Inbillpayee object that identifies the entity to receive the funds. This parameter must not be nil.

Discussion

Implement this method to verify the identify of the payee in your app. The payee represents the entity that provided the bill to the user. Siri puts any payee-related information into the billPayee property of the intent object. Use that information to match the payee’s nickname or organization to one of the entities that the user registered with your app. (You should also use the information in the billType property to verify that you’re scheduling payment for the correct bill). Always strive toward a successful resolution of the payee, but feel free to return a different resolution if you can’t locate the payee or you aren’t sure which bill the user intended to pay.

See Also

Resolving the Intent Parameters