Skip to content

Commit

Permalink
Revert "Fix getCharges"
Browse files Browse the repository at this point in the history
This reverts commit e0fe729
  • Loading branch information
antimech committed Nov 27, 2023
1 parent ed59aaf commit 5f2a58f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ private function makeRequest(string $method, string $uri, array $query = [], arr
/**
* Lists all charges.
*
* @param array $query
* @return array
*/
public function getCharges(): array
public function getCharges(array $query = []): array
{
return $this->makeRequest('get', 'charges');
return $this->makeRequest('get', 'charges', $query);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static array getCharges() Lists all charges.
* @method static array getCharges(array $query = []) Lists all charges.
* @method static array createCharge(array $params) Creates a new charge.
* @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.
Expand Down

0 comments on commit 5f2a58f

Please sign in to comment.