From 0697ec23b452c3da5b35da0384f8aa0fced3428a Mon Sep 17 00:00:00 2001 From: Iain Date: Thu, 27 Jun 2024 16:50:11 +0200 Subject: [PATCH] [Billing] Update for php-sdk --- src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php b/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php index 9ae96993..a0c30872 100644 --- a/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php +++ b/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php @@ -35,7 +35,7 @@ public function __construct(private SdkFactory $sdkFactory) public function fetchInvoices(CustomerInterface $customer, mixed $lastKey = null): array { - $response = $this->sdkFactory->createCustomersApi()->listCustomerInvoices($customer->getExternalCustomerReference()); + $response = $this->sdkFactory->createCustomersApi()->getInvoicesForCustomer($customer->getExternalCustomerReference()); $output = []; foreach ($response->getData() as $invoice) {