Skip to content

Commit

Permalink
Fix getInvoices
Browse files Browse the repository at this point in the history
  • Loading branch information
antimech committed Oct 27, 2023
1 parent b778874 commit 6028f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,11 @@ public function deleteCheckout(string $checkoutId): array
/**
* Lists all invoices.
*
* @param array $query
* @return array
*/
public function getInvoices(array $query = []): array
public function getInvoices(): array
{
return $this->makeRequest('get', 'invoices', $query);
return $this->makeRequest('get', 'invoices');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @method static array getCheckout(string $checkoutId) Retrieves an existing checkout.
* @method static array updateCheckout(string $checkoutId, array $params = []) Updates an existing checkout.
* @method static array deleteCheckout(string $checkoutId) Deletes an existing checkout.
* @method static array getInvoices(array $query = []) Lists all invoices.
* @method static array getInvoices() Lists all invoices.
* @method static array createInvoice(array $params = []) Creates a new invoice.
* @method static array getInvoice(string $invoiceId) Retrieves an existing invoice by supplying its id or 8 character short-code.
* @method static array voidInvoice(string $invoiceId) Voids an existing invoice by supplying its id or 8 character short-code.
Expand Down

0 comments on commit 6028f58

Please sign in to comment.