Skip to content

Commit a994a8a

Browse files
Added return_url and annotation methods (#20)
Co-authored-by: Serhii Topolnytskyi <[email protected]>
1 parent 45926d1 commit a994a8a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Api/GeneratePayLinkRequest.php

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
namespace ProtoneMedia\LaravelPaddle\Api;
44

5+
/**
6+
* Class GeneratePayLinkRequest
7+
* @package ProtoneMedia\LaravelPaddle\Api
8+
* @method productId()
9+
* @method title()
10+
* @method webhookUrl()
11+
* @method prices()
12+
* @method customMessage()
13+
* @method quantity()
14+
* @method recurringAffiliateLimit()
15+
* @method customerEmail()
16+
* @method returnUrl()
17+
*/
518
class GeneratePayLinkRequest extends Request
619
{
720
/**

src/Api/Product.php

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function generatePayLink(array $data = [])
3939
'quantity' => 'min:1|max:100',
4040
'recurring_affiliate_limit' => 'min:1',
4141
'customer_email' => 'email',
42+
'return_url' => 'url',
4243
]);
4344
}
4445

0 commit comments

Comments
 (0)