Skip to content

Commit fc74328

Browse files
author
Morten Bak
committed
Merge branch 'main' of ssh://github.com/mortenebak/laravel-quickpay
2 parents 21edee1 + 4c16a59 commit fc74328

File tree

2 files changed

+13
-32
lines changed

2 files changed

+13
-32
lines changed

src/Resources/Concerns/QuickpayApiConsumer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ public function __construct(public QuickPay $client) {}
1818

1919
/**
2020
* Make a request to the Quickpay API
21-
* @param string $method
22-
* @param string $endpoint
23-
* @param array $data
24-
* @return array
21+
*
2522
* @throws CardNotAccepted
2623
* @throws QuickPayValidationError
2724
*/

src/Resources/PaymentResource.php

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PaymentResource
2525

2626
/**
2727
* Fetch all payments
28-
* @return array
28+
*
2929
* @throws FetchPaymentsFailed
3030
*/
3131
public function all(): array
@@ -48,8 +48,7 @@ public function all(): array
4848

4949
/**
5050
* Create Payment
51-
* @param Payment $payment
52-
* @return array
51+
*
5352
* @throws CreatePaymentFailed
5453
*/
5554
public function create(Payment $payment): array
@@ -72,8 +71,7 @@ public function create(Payment $payment): array
7271

7372
/**
7473
* Create or Update the Payment Link
75-
* @param PaymentLink $paymentLink
76-
* @return array
74+
*
7775
* @throws CreatePaymentLinkFailed
7876
*/
7977
public function createLink(PaymentLink $paymentLink): array
@@ -98,8 +96,7 @@ public function createLink(PaymentLink $paymentLink): array
9896

9997
/**
10098
* Delete payment link
101-
* @param int $id
102-
* @return array
99+
*
103100
* @throws DeletePaymentLinkFailed
104101
*/
105102
public function deleteLink(int $id): array
@@ -122,8 +119,7 @@ public function deleteLink(int $id): array
122119

123120
/**
124121
* Get Payment
125-
* @param int $id
126-
* @return array
122+
*
127123
* @throws FetchPaymentFailed
128124
*/
129125
public function find(int $id): array
@@ -146,9 +142,7 @@ public function find(int $id): array
146142

147143
/**
148144
* Create payment session
149-
* @param int $id
150-
* @param int $amount
151-
* @return array
145+
*
152146
* @throws CreatePaymentSessionFailed
153147
*/
154148
public function createPaymentSession(int $id, int $amount): array
@@ -176,9 +170,7 @@ public function createPaymentSession(int $id, int $amount): array
176170

177171
/**
178172
* authorize payment
179-
* @param int $id
180-
* @param int $amount
181-
* @return array
173+
*
182174
* @throws AuthorizePaymentFailed
183175
*/
184176
public function authorize(int $id, int $amount): array
@@ -206,9 +198,7 @@ public function authorize(int $id, int $amount): array
206198

207199
/**
208200
* capture payment
209-
* @param int $id
210-
* @param int $amount
211-
* @return array
201+
*
212202
* @throws CapturePaymentFailed
213203
*/
214204
public function capture(int $id, int $amount): array
@@ -236,9 +226,7 @@ public function capture(int $id, int $amount): array
236226

237227
/**
238228
* refund payment
239-
* @param int $id
240-
* @param int $amount
241-
* @return array
229+
*
242230
* @throws RefundPaymentFailed
243231
*/
244232
public function refund(int $id, int $amount): array
@@ -267,8 +255,7 @@ public function refund(int $id, int $amount): array
267255

268256
/**
269257
* cancel payment
270-
* @param int $id
271-
* @return array
258+
*
272259
* @throws CancelPaymentFailed
273260
*/
274261
public function cancel(int $id): array
@@ -291,8 +278,7 @@ public function cancel(int $id): array
291278

292279
/**
293280
* renew authorization
294-
* @param int $id
295-
* @return array
281+
*
296282
* @throws RenewPaymentFailed
297283
*/
298284
public function renew(int $id): array
@@ -315,9 +301,7 @@ public function renew(int $id): array
315301

316302
/**
317303
* create fraud confirmation report
318-
* @param int $id
319-
* @param string|null $description
320-
* @return array
304+
*
321305
* @throws CreateFraudConfirmationReportFailed
322306
*/
323307
public function createFraudConfirmationReport(int $id, ?string $description = null): array

0 commit comments

Comments
 (0)