Skip to content

Commit

Permalink
[Billing] Update for php-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Jun 27, 2024
1 parent 622f04a commit 0697ec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0697ec2

Please sign in to comment.