The end user agreement ID isn't stored with the bank integration, but it *is* returned as part of the error for an expired account which works perfectly for the case of renewing an expired requisition. When `tx_days` isn't set in the request (i.e. it's a renewal) we instead extract the EUA ID from the account error after getting the integration, then once we have the EUA we're able to restore the old tx_days setting. Since the BankIntegration query is used in both endpoints, this moves it to a method with `firstOrFail()` rather than `first()` which also allows for a cleanup of the integration saving code with try/catch/finally to make it a little clearer which values apply to both new+existing cases. |
||
|---|---|---|
| .. | ||
| NordigenController.php | ||
| YodleeController.php | ||