@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#page-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $page_id): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$page_id); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $page_id); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @link https://paystack.com/docs/api/#page-update |
49 | 49 | */ |
50 | - public function update(string $page_id, array $payload = []): self |
|
50 | + public function update(string $page_id, array $payload = [ ]): self |
|
51 | 51 | { |
52 | - $this->put($this->url(self::ENDPOINT).'/'.$page_id, $payload); |
|
52 | + $this->put($this->url(self::ENDPOINT) . '/' . $page_id, $payload); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function checkAvailability(string $slug): self |
63 | 63 | { |
64 | - $this->get($this->url(self::ENDPOINT).'/check_slug_availability/'.$slug); |
|
64 | + $this->get($this->url(self::ENDPOINT) . '/check_slug_availability/' . $slug); |
|
65 | 65 | |
66 | 66 | return $this; |
67 | 67 | } |
@@ -71,9 +71,9 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @link https://paystack.com/docs/api/#page-add-products |
73 | 73 | */ |
74 | - public function addProduct(int $page_id, array $payload = []): self |
|
74 | + public function addProduct(int $page_id, array $payload = [ ]): self |
|
75 | 75 | { |
76 | - $this->post($this->url(self::ENDPOINT).'/'.$page_id.'/product', $payload); |
|
76 | + $this->post($this->url(self::ENDPOINT) . '/' . $page_id . '/product', $payload); |
|
77 | 77 | |
78 | 78 | return $this; |
79 | 79 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#suzbscription-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $subscription_id): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$subscription_id); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $subscription_id); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function enable(array $payload): self |
51 | 51 | { |
52 | - $this->post($this->url(self::ENDPOINT).'/enable', $payload); |
|
52 | + $this->post($this->url(self::ENDPOINT) . '/enable', $payload); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function disable(array $payload): self |
63 | 63 | { |
64 | - $this->post($this->url(self::ENDPOINT).'/disable', $payload); |
|
64 | + $this->post($this->url(self::ENDPOINT) . '/disable', $payload); |
|
65 | 65 | |
66 | 66 | return $this; |
67 | 67 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#invoice-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $invoice_id): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$invoice_id); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $invoice_id); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function verify(string $invoice_code): self |
51 | 51 | { |
52 | - $this->get($this->url(self::ENDPOINT).'/verify/'.$invoice_code); |
|
52 | + $this->get($this->url(self::ENDPOINT) . '/verify/' . $invoice_code); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function notify(string $invoice_code): self |
63 | 63 | { |
64 | - $this->post($this->url(self::ENDPOINT).'/notify/'.$invoice_code); |
|
64 | + $this->post($this->url(self::ENDPOINT) . '/notify/' . $invoice_code); |
|
65 | 65 | |
66 | 66 | return $this; |
67 | 67 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function totals(): self |
75 | 75 | { |
76 | - $this->post($this->url(self::ENDPOINT).'/totals'); |
|
76 | + $this->post($this->url(self::ENDPOINT) . '/totals'); |
|
77 | 77 | |
78 | 78 | return $this; |
79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function finalize(string $invoice_code): self |
87 | 87 | { |
88 | - $this->post($this->url(self::ENDPOINT).'/finalize/'.$invoice_code); |
|
88 | + $this->post($this->url(self::ENDPOINT) . '/finalize/' . $invoice_code); |
|
89 | 89 | |
90 | 90 | return $this; |
91 | 91 | } |
@@ -95,9 +95,9 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @link https://paystack.com/docs/api/#invoice-update |
97 | 97 | */ |
98 | - public function update(string $invoice_id, array $payload = []): self |
|
98 | + public function update(string $invoice_id, array $payload = [ ]): self |
|
99 | 99 | { |
100 | - $this->put($this->url(self::ENDPOINT).'/'.$invoice_id, $payload); |
|
100 | + $this->put($this->url(self::ENDPOINT) . '/' . $invoice_id, $payload); |
|
101 | 101 | |
102 | 102 | return $this; |
103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function archive(string $invoice_code): self |
111 | 111 | { |
112 | - $this->post($this->url(self::ENDPOINT).'/archive/'.$invoice_code); |
|
112 | + $this->post($this->url(self::ENDPOINT) . '/archive/' . $invoice_code); |
|
113 | 113 | |
114 | 114 | return $this; |
115 | 115 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#product-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $product_id): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$product_id); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $product_id); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @link https://paystack.com/docs/api/#product-update |
49 | 49 | */ |
50 | - public function update(string $product_id, array $payload = []): self |
|
50 | + public function update(string $product_id, array $payload = [ ]): self |
|
51 | 51 | { |
52 | - $this->put($this->url(self::ENDPOINT).'/'.$product_id, $payload); |
|
52 | + $this->put($this->url(self::ENDPOINT) . '/' . $product_id, $payload); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function createBulk(array $payload): self |
27 | 27 | { |
28 | - $this->post($this->url(self::ENDPOINT).'/bulk', $payload); |
|
28 | + $this->post($this->url(self::ENDPOINT) . '/bulk', $payload); |
|
29 | 29 | |
30 | 30 | return $this; |
31 | 31 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @link https://paystack.com/docs/api/#transfer-recipient-list |
37 | 37 | */ |
38 | - public function list(array $query = []): self |
|
38 | + public function list(array $query = [ ]): self |
|
39 | 39 | { |
40 | 40 | $this->get($this->url(self::ENDPOINT), $query); |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function fetch(string $customer_email): self |
51 | 51 | { |
52 | - $this->get($this->url(self::ENDPOINT).'/'.$customer_email); |
|
52 | + $this->get($this->url(self::ENDPOINT) . '/' . $customer_email); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @link https://paystack.com/docs/api/#transfer-recipient-update |
61 | 61 | */ |
62 | - public function update(string $recipient_code, array $payload = []): self |
|
62 | + public function update(string $recipient_code, array $payload = [ ]): self |
|
63 | 63 | { |
64 | - $this->put($this->url(self::ENDPOINT).'/'.$recipient_code, $payload); |
|
64 | + $this->put($this->url(self::ENDPOINT) . '/' . $recipient_code, $payload); |
|
65 | 65 | |
66 | 66 | return $this; |
67 | 67 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function deactivate(string $recipient_code): self |
75 | 75 | { |
76 | - $this->delete($this->url(self::ENDPOINT).'/'.$recipient_code); |
|
76 | + $this->delete($this->url(self::ENDPOINT) . '/' . $recipient_code); |
|
77 | 77 | |
78 | 78 | return $this; |
79 | 79 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @link https://paystack.com/docs/api/#verification-resolve-account |
11 | 11 | */ |
12 | - public function bank(array $query = []): self |
|
12 | + public function bank(array $query = [ ]): self |
|
13 | 13 | { |
14 | 14 | $this->get($this->url('/bank/resolve'), $query); |
15 | 15 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @link https://paystack.com/docs/api/#verification-match-bvn |
23 | 23 | */ |
24 | - public function bvn(array $payload = []): self |
|
24 | + public function bvn(array $payload = [ ]): self |
|
25 | 25 | { |
26 | 26 | $this->post('/bvn/match', $payload); |
27 | 27 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function card(string $card_bin): self |
37 | 37 | { |
38 | - $this->get('/decision/bin/'.$card_bin); |
|
38 | + $this->get('/decision/bin/' . $card_bin); |
|
39 | 39 | |
40 | 40 | return $this; |
41 | 41 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#plan-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $plan_id): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$plan_id); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $plan_id); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @link https://paystack.com/docs/api/#plan-update |
49 | 49 | */ |
50 | - public function update(string $plan_id, array $payload = []): self |
|
50 | + public function update(string $plan_id, array $payload = [ ]): self |
|
51 | 51 | { |
52 | - $this->put($this->url(self::ENDPOINT).'/'.$plan_id, $payload); |
|
52 | + $this->put($this->url(self::ENDPOINT) . '/' . $plan_id, $payload); |
|
53 | 53 | |
54 | 54 | return $this; |
55 | 55 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @link https://paystack.com/docs/api/#refund-list |
25 | 25 | */ |
26 | - public function list(array $query = []): self |
|
26 | + public function list(array $query = [ ]): self |
|
27 | 27 | { |
28 | 28 | $this->get($this->url(self::ENDPOINT), $query); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function fetch(string $reference): self |
39 | 39 | { |
40 | - $this->get($this->url(self::ENDPOINT).'/'.$reference); |
|
40 | + $this->get($this->url(self::ENDPOINT) . '/' . $reference); |
|
41 | 41 | |
42 | 42 | return $this; |
43 | 43 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function initialize(array $payload): self |
15 | 15 | { |
16 | - $this->post($this->url(self::ENDPOINT).'/initialize', $payload); |
|
16 | + $this->post($this->url(self::ENDPOINT) . '/initialize', $payload); |
|
17 | 17 | |
18 | 18 | return $this; |
19 | 19 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function verify(string $reference): self |
35 | 35 | { |
36 | - $this->get($this->url(self::ENDPOINT).'/verify/'.$reference); |
|
36 | + $this->get($this->url(self::ENDPOINT) . '/verify/' . $reference); |
|
37 | 37 | |
38 | 38 | return $this; |
39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function status(string $reference = ''): string |
45 | 45 | { |
46 | - if (! empty($reference)) { |
|
46 | + if (!empty($reference)) { |
|
47 | 47 | return $this->verify($reference)->status(); |
48 | 48 | } else { |
49 | 49 | return $this->response->json('data.status'); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @link https://paystack.com/docs/api/#transaction-list |
57 | 57 | */ |
58 | - public function list(array $query = []): self |
|
58 | + public function list(array $query = [ ]): self |
|
59 | 59 | { |
60 | 60 | $this->get($this->url(self::ENDPOINT), $query); |
61 | 61 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function fetch(int $transaction_id): self |
71 | 71 | { |
72 | - $this->get($this->url(self::ENDPOINT).'/'.$transaction_id); |
|
72 | + $this->get($this->url(self::ENDPOINT) . '/' . $transaction_id); |
|
73 | 73 | |
74 | 74 | return $this; |
75 | 75 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function chargeAuthorization(array $payload): self |
83 | 83 | { |
84 | - $this->post($this->url(self::ENDPOINT).'/charge_authorization', $payload); |
|
84 | + $this->post($this->url(self::ENDPOINT) . '/charge_authorization', $payload); |
|
85 | 85 | |
86 | 86 | return $this; |
87 | 87 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function checkAuthorization(array $payload): self |
95 | 95 | { |
96 | - $this->post($this->url(self::ENDPOINT).'/check_authorization', $payload); |
|
96 | + $this->post($this->url(self::ENDPOINT) . '/check_authorization', $payload); |
|
97 | 97 | |
98 | 98 | return $this; |
99 | 99 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function timeline(string $reference): self |
107 | 107 | { |
108 | - $this->get($this->url(self::ENDPOINT).'/timeline/'.$reference); |
|
108 | + $this->get($this->url(self::ENDPOINT) . '/timeline/' . $reference); |
|
109 | 109 | |
110 | 110 | return $this; |
111 | 111 | } |
@@ -115,9 +115,9 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @link https://paystack.com/docs/api/#transaction-totals |
117 | 117 | */ |
118 | - public function totals(array $query = []): self |
|
118 | + public function totals(array $query = [ ]): self |
|
119 | 119 | { |
120 | - $this->get($this->url(self::ENDPOINT).'/totals', $query); |
|
120 | + $this->get($this->url(self::ENDPOINT) . '/totals', $query); |
|
121 | 121 | |
122 | 122 | return $this; |
123 | 123 | } |
@@ -127,9 +127,9 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @link https://paystack.com/docs/api/#transaction-export |
129 | 129 | */ |
130 | - public function export(array $query = []): self |
|
130 | + public function export(array $query = [ ]): self |
|
131 | 131 | { |
132 | - $this->get($this->url(self::ENDPOINT).'/export', $query); |
|
132 | + $this->get($this->url(self::ENDPOINT) . '/export', $query); |
|
133 | 133 | |
134 | 134 | return $this; |
135 | 135 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function partialDebit(array $payload): self |
143 | 143 | { |
144 | - $this->post($this->url(self::ENDPOINT).'/partial_debit', $payload); |
|
144 | + $this->post($this->url(self::ENDPOINT) . '/partial_debit', $payload); |
|
145 | 145 | |
146 | 146 | return $this; |
147 | 147 | } |