Skip to content

Commit

Permalink
Fix getCheckouts
Browse files Browse the repository at this point in the history
  • Loading branch information
antimech committed Oct 27, 2023
1 parent e0fe729 commit b778874
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 @@ -107,12 +107,11 @@ public function resolveCharge(string $chargeId): array
/**
* Lists all checkouts.
*
* @param array $query
* @return array
*/
public function getCheckouts(array $query = []): array
public function getCheckouts(): array
{
return $this->makeRequest('get', 'checkouts', $query);
return $this->makeRequest('get', 'checkouts');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @method static array getCharge(string $chargeId) Retrieves an existing charge by supplying its id or 8 character short-code.
* @method static array cancelCharge(string $chargeId) Cancels an existing charge by supplying its id or 8 character short-code.
* @method static array resolveCharge(string $chargeId) Resolves an existing, unresolved charge by supplying its id or 8 character short-code.
* @method static array getCheckouts(array $query = []) Lists all checkouts.
* @method static array getCheckouts() Lists all checkouts.
* @method static array createCheckout(array $params = []) Creates a new checkout.
* @method static array getCheckout(string $checkoutId) Retrieves an existing checkout.
* @method static array updateCheckout(string $checkoutId, array $params = []) Updates an existing checkout.
Expand Down

0 comments on commit b778874

Please sign in to comment.