Antoine Clausse
554be73a36
In collect_paypal_past_due_invoice.js, iterate over each page instead of gathering data from all pages at first ( #18414 )
...
* Create `getPaginatedEndpointIterator` to iterate each page
* Create `waitMs` util, it will replace `slowCallback`
* Make `handleAPIError` async
* Make `isAccountUsingPaypal` async
* Make `attemptInvoiceCollection` async
* Make `attemptInvoicesCollection` async
* Use `await` instead of `new Promise`
* Remove unused callbackified `attemptInvoiceCollection`
* Run `attemptInvoiceCollection` for each page instead of gathering all pages in the beginning
* Add test on fetching multiple pages of invoice
GitOrigin-RevId: 2674b18c6ca5732b873fb2bc71b515909006f93d
2024-05-27 10:23:18 +00:00
..
2024-03-26 09:04:05 +00:00
2023-07-17 10:38:31 +00:00
2023-12-19 09:04:02 +00:00
2019-10-16 10:36:21 +00:00
2024-04-17 08:04:09 +00:00
2023-08-11 08:04:01 +00:00
2023-07-17 11:02:40 +00:00
2023-09-28 08:04:17 +00:00
2024-03-26 09:04:00 +00:00
2024-04-19 08:03:54 +00:00
2024-05-27 10:23:18 +00:00
2022-01-11 09:03:23 +00:00
2024-04-24 08:05:16 +00:00
2024-02-13 09:03:35 +00:00
2023-12-19 09:04:02 +00:00
2024-05-17 08:05:06 +00:00
2023-09-04 08:05:03 +00:00
2023-10-20 08:04:05 +00:00
2023-10-20 08:04:05 +00:00
2023-03-23 09:04:29 +00:00
2023-12-19 09:04:02 +00:00
2024-05-20 08:04:12 +00:00
2023-10-18 08:05:04 +00:00
2023-10-20 08:04:05 +00:00
2020-08-18 02:06:28 +00:00
2023-10-20 08:04:05 +00:00
2022-06-15 08:04:05 +00:00
2023-10-20 08:04:05 +00:00
2022-10-18 08:03:06 +00:00
2022-10-18 08:03:06 +00:00
2022-11-07 09:03:25 +00:00
2022-01-11 09:03:23 +00:00
2020-10-06 02:04:28 +00:00
2023-10-20 08:04:05 +00:00
2024-05-27 10:21:30 +00:00
2021-07-28 02:07:11 +00:00
2023-10-20 08:04:05 +00:00
2022-08-26 08:03:30 +00:00
2023-04-19 08:03:10 +00:00
2022-01-11 09:03:23 +00:00
2023-04-19 08:03:10 +00:00
2023-12-19 09:04:02 +00:00
2023-04-28 08:04:10 +00:00
2023-02-02 18:22:09 +00:00
2023-12-19 09:04:02 +00:00
2023-12-19 09:04:02 +00:00
2023-10-20 08:04:05 +00:00
2023-10-20 08:04:05 +00:00
2024-03-26 09:04:05 +00:00
2023-12-19 09:04:02 +00:00
2023-11-27 09:04:02 +00:00
2021-11-11 09:03:09 +00:00
2024-03-28 09:04:33 +00:00
2023-04-19 08:03:10 +00:00
2023-03-23 09:04:29 +00:00
2023-12-19 09:04:02 +00:00
2023-12-19 09:04:02 +00:00
2023-12-19 09:04:02 +00:00
2020-02-19 04:20:51 +00:00
2023-12-19 09:04:02 +00:00
2021-08-04 11:13:55 +00:00
2023-12-19 09:04:02 +00:00
2023-12-19 09:04:02 +00:00
2021-05-19 02:06:06 +00:00
2024-02-27 17:02:10 +00:00
2023-12-19 09:04:02 +00:00
2024-05-27 10:22:20 +00:00
2022-11-15 09:06:40 +00:00
2023-10-20 08:04:05 +00:00
2024-03-06 17:27:26 +00:00
2022-07-27 12:17:31 +00:00
2023-03-01 09:02:59 +00:00
2024-05-17 08:05:06 +00:00
2023-03-30 08:03:59 +00:00
2024-03-26 09:04:05 +00:00
2023-12-19 09:04:02 +00:00
2022-08-09 08:02:49 +00:00
2024-05-17 08:04:58 +00:00
2024-03-26 09:04:05 +00:00
2024-03-26 09:04:05 +00:00
2023-12-19 09:04:02 +00:00
2024-01-04 09:03:43 +00:00
2022-03-25 09:03:59 +00:00
2024-03-26 09:04:40 +00:00
2023-03-22 09:04:09 +00:00