Skip to content

Commit 4505210

Browse files
committed
added ide helpers for all gateways facade
1 parent 82119ed commit 4505210

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

src/Facades/Flutterwave.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44

55
use Illuminate\Support\Facades\Facade;
66
use MusahMusah\LaravelMultipaymentGateways\Contracts\FlutterwaveContract;
7+
use MusahMusah\LaravelMultipaymentGateways\Services\HttpClientWrapper;
78

9+
/**
10+
* @method static HttpClientWrapper httpClient()
11+
* @method static HttpClientWrapper get(string $url, array $query = [], array $headers = [])
12+
* @method static HttpClientWrapper post(string $url, array $formParams = [], array $query = [], array $headers = [])
13+
* @method static HttpClientWrapper put(string $url, array $formParams = [], array $query = [], array $headers = [])
14+
* @method static HttpClientWrapper delete(string $url, array $formParams = [], array $query = [], array $headers = [])
15+
* @method static HttpClientWrapper patch(string $url, array $formParams = [], array $query = [], array $headers = [])
16+
*
17+
* @see \MusahMusah\LaravelMultipaymentGateways\Gateways\FlutterwaveService
18+
*/
819
class Flutterwave extends Facade
920
{
1021
protected static function getFacadeAccessor()

src/Facades/Paystack.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@
44

55
use Illuminate\Support\Facades\Facade;
66
use MusahMusah\LaravelMultipaymentGateways\Contracts\PaystackContract;
7+
use MusahMusah\LaravelMultipaymentGateways\Gateways\PaystackService;
8+
use MusahMusah\LaravelMultipaymentGateways\Services\HttpClientWrapper;
79

810
/**
11+
* @method static HttpClientWrapper httpClient()
12+
* @method static HttpClientWrapper get(string $url, array $query = [], array $headers = [])
13+
* @method static HttpClientWrapper post(string $url, array $formParams = [], array $query = [], array $headers = [])
14+
* @method static HttpClientWrapper put(string $url, array $formParams = [], array $query = [], array $headers = [])
15+
* @method static HttpClientWrapper delete(string $url, array $formParams = [], array $query = [], array $headers = [])
16+
* @method static HttpClientWrapper patch(string $url, array $formParams = [], array $query = [], array $headers = [])
17+
*
918
* @method static array getTransaction(string $reference)
1019
* @method static array getAllTransactions(array $payload)
1120
* @method static array verifyTransaction(string $reference)
@@ -20,9 +29,7 @@
2029
* @method static array getTransfer(string $transferCode)
2130
* @method static array getAllTransfers()
2231
*
23-
* @return \MusahMusah\LaravelMultipaymentGateways\Gateways\PaystackService
24-
*
25-
* @see \MusahMusah\LaravelMultipaymentGateways\Gateways\PaystackService
32+
* @see PaystackService
2633
*/
2734
class Paystack extends Facade
2835
{

src/Facades/Stripe.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44

55
use Illuminate\Support\Facades\Facade;
66
use MusahMusah\LaravelMultipaymentGateways\Contracts\StripeContract;
7+
use MusahMusah\LaravelMultipaymentGateways\Services\HttpClientWrapper;
78

9+
/**
10+
* @method static HttpClientWrapper httpClient()
11+
* @method static HttpClientWrapper get(string $url, array $query = [], array $headers = [])
12+
* @method static HttpClientWrapper post(string $url, array $formParams = [], array $query = [], array $headers = [])
13+
* @method static HttpClientWrapper put(string $url, array $formParams = [], array $query = [], array $headers = [])
14+
* @method static HttpClientWrapper delete(string $url, array $formParams = [], array $query = [], array $headers = [])
15+
* @method static HttpClientWrapper patch(string $url, array $formParams = [], array $query = [], array $headers = [])
16+
*
17+
* @see \MusahMusah\LaravelMultipaymentGateways\Gateways\StripeService
18+
*/
819
class Stripe extends Facade
920
{
1021
protected static function getFacadeAccessor()

0 commit comments

Comments
 (0)