Class

INPayBillIntentResponse

Your app’s response to a request to pay a bill.

Declaration

class INPayBillIntentResponse : INIntentResponse

Overview

Use an INPayBillIntentResponse object to specify the details of the bill payment operation that you perform. After creating the object, fill in the details of the transaction, including the amount to transfer, the user account involved, the payee, and the date on which the transaction will occur. Siri communicates the bill details back to the user at appropriate times.

You create an INPayBillIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INPayBillIntentHandling.

Topics

Initializing the Response Object

init(code: INPayBillIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INPayBillIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INPayBillIntentResponseCode

Constants indicating the state of the response.

Providing the Account Information

var fromAccount: INPaymentAccount?

The user account providing the funds.

Providing the Transaction Details

var billDetails: INBillDetails?

The details of the bill to pay.

var transactionAmount: INPaymentAmount?

The amount of money to transfer to the payee.

var transactionScheduledDate: INDateComponentsRange?

The date on which the transaction is to occur.

var transactionNote: String?

Notes to include with the transaction.

Relationships

Inherits From

Conforms To

See Also

Pay a Bill

protocol INPayBillIntentHandling

The handler interface for paying a bill using money from the user’s account.

class INPayBillIntent

A request to transfer of money to facilitate payment of a bill.