-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature: Support disposition query parameter * Feature: Support custom prices when updating and previewing subscriptions * Fix: Add validation for pricing preview items * Feature: Support notification settings pagination and active filter
- Loading branch information
1 parent
a148262
commit af2dfb0
Showing
22 changed files
with
725 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* |------ | ||
* | ! Generated code ! | ||
* | Altering this code will result in changes being overwritten | | ||
* |-------------------------------------------------------------|. | ||
*/ | ||
|
||
namespace Paddle\SDK\Entities\Shared; | ||
|
||
use Paddle\SDK\PaddleEnum; | ||
|
||
/** | ||
* @method static Disposition Attachment() | ||
* @method static Disposition Inline() | ||
*/ | ||
final class Disposition extends PaddleEnum | ||
{ | ||
private const Attachment = 'attachment'; | ||
private const Inline = 'inline'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Resources/NotificationSettings/Operations/ListNotificationSettings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Paddle\SDK\Resources\NotificationSettings\Operations; | ||
|
||
use Paddle\SDK\HasParameters; | ||
use Paddle\SDK\Resources\Shared\Operations\List\Pager; | ||
|
||
class ListNotificationSettings implements HasParameters | ||
{ | ||
public function __construct( | ||
private readonly Pager|null $pager = null, | ||
private readonly bool|null $active = null, | ||
) { | ||
} | ||
|
||
public function getParameters(): array | ||
{ | ||
return array_merge( | ||
$this->pager?->getParameters() ?? [], | ||
array_filter([ | ||
'active' => isset($this->active) ? ($this->active ? 'true' : 'false') : null, | ||
]), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Resources/Transactions/Operations/GetTransactionInvoice.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Paddle\SDK\Resources\Transactions\Operations; | ||
|
||
use Paddle\SDK\Entities\Shared\Disposition; | ||
use Paddle\SDK\HasParameters; | ||
|
||
class GetTransactionInvoice implements HasParameters | ||
{ | ||
public function __construct( | ||
private readonly Disposition|null $disposition = null, | ||
) { | ||
} | ||
|
||
public function getParameters(): array | ||
{ | ||
return array_filter([ | ||
'disposition' => $this->disposition?->getValue(), | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.