Skip to content

Commit

Permalink
Added return_url and annotation methods (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Topolnytskyi <s.topolnytskyi@softblues.io>
  • Loading branch information
sergunik and S-Topolnytskyi authored Apr 25, 2021
1 parent 45926d1 commit a994a8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Api/GeneratePayLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

namespace ProtoneMedia\LaravelPaddle\Api;

/**
* Class GeneratePayLinkRequest
* @package ProtoneMedia\LaravelPaddle\Api
* @method productId()
* @method title()
* @method webhookUrl()
* @method prices()
* @method customMessage()
* @method quantity()
* @method recurringAffiliateLimit()
* @method customerEmail()
* @method returnUrl()
*/
class GeneratePayLinkRequest extends Request
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function generatePayLink(array $data = [])
'quantity' => 'min:1|max:100',
'recurring_affiliate_limit' => 'min:1',
'customer_email' => 'email',
'return_url' => 'url',
]);
}

Expand Down

0 comments on commit a994a8a

Please sign in to comment.