Contents

resolveDueDate(for:with:)

Resolves the due date of the bill.

Declaration

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

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 date range that identifies when the bill is due. This parameter must not be nil.

Discussion

Implement this method to resolve the due date of the bill. The due date is usually provided by the bill payee and reflects the date after which the institution may apply late fees. If the intent doesn’t contain the due date, retrieve the due date from your own internal records and return it as part of your successful resolution. Providing the due date is always encouraged because it helps the user determine the date on which to schedule payment.

If the payee didn’t provide you with a due date, you can return a resolution indicating it the value isn’t required. However, you might want to verify that the user supplied a date on which to schedule the payment and that the provided date isn’t too far in the future.

See Also

Resolving the Intent Parameters