-
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.
feat: Add on_resume support to subscription resume and pause operatio…
…ns (#111)
- Loading branch information
1 parent
31b5cc0
commit 6d11512
Showing
10 changed files
with
92 additions
and
5 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
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\Subscription; | ||
|
||
use Paddle\SDK\PaddleEnum; | ||
|
||
/** | ||
* @method static SubscriptionOnResume ContinueExistingBillingPeriod() | ||
* @method static SubscriptionOnResume StartNewBillingPeriod() | ||
*/ | ||
final class SubscriptionOnResume extends PaddleEnum | ||
{ | ||
private const ContinueExistingBillingPeriod = 'continue_existing_billing_period'; | ||
private const StartNewBillingPeriod = 'start_new_billing_period'; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
...ional/Resources/Subscriptions/_fixtures/request/pause_resume_existing_billing_period.json
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,5 @@ | ||
{ | ||
"effective_from": "immediately", | ||
"resume_at": "2023-10-09T16:30:00.000000Z", | ||
"on_resume": "continue_existing_billing_period" | ||
} |
5 changes: 5 additions & 0 deletions
5
...Functional/Resources/Subscriptions/_fixtures/request/pause_resume_new_billing_period.json
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,5 @@ | ||
{ | ||
"effective_from": "immediately", | ||
"resume_at": "2023-10-09T16:30:00.000000Z", | ||
"on_resume": "start_new_billing_period" | ||
} |
4 changes: 4 additions & 0 deletions
4
.../Functional/Resources/Subscriptions/_fixtures/request/resume_existing_billing_period.json
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,4 @@ | ||
{ | ||
"effective_from": "immediately", | ||
"on_resume": "continue_existing_billing_period" | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/Functional/Resources/Subscriptions/_fixtures/request/resume_new_billing_period.json
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,4 @@ | ||
{ | ||
"effective_from": "immediately", | ||
"on_resume": "start_new_billing_period" | ||
} |