This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6abf27
commit 042b6f2
Showing
12 changed files
with
489 additions
and
11 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
Empty file.
8 changes: 8 additions & 0 deletions
8
tests/Functional/Resources/Discounts/_fixtures/request/create_basic.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,8 @@ | ||
{ | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": true, | ||
"type": "percentage", | ||
"amount": "10", | ||
"recur": true, | ||
"currency_code": "USD" | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/Functional/Resources/Discounts/_fixtures/request/create_full.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,16 @@ | ||
{ | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": true, | ||
"type": "percentage", | ||
"amount": "10", | ||
"recur": true, | ||
"currency_code": "USD", | ||
"code": "ABCDE12345", | ||
"maximum_recurring_intervals": 5, | ||
"usage_limit": 1000, | ||
"restrict_to": [ | ||
"pro_01gsz4t5hdjse780zja8vvr7jg", | ||
"pro_01gsz4s0w61y0pp88528f1wvvb" | ||
], | ||
"expires_at": "2025-01-01 10:00:00" | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/Functional/Resources/Discounts/_fixtures/request/update_full.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,17 @@ | ||
{ | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": true, | ||
"type": "percentage", | ||
"amount": "10", | ||
"recur": true, | ||
"currency_code": "USD", | ||
"code": "ABCDE12345", | ||
"maximum_recurring_intervals": 5, | ||
"usage_limit": 1000, | ||
"restrict_to": [ | ||
"pro_01gsz4t5hdjse780zja8vvr7jg", | ||
"pro_01gsz4s0w61y0pp88528f1wvvb" | ||
], | ||
"expires_at": "2025-01-01 10:00:00", | ||
"status": "active" | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/Functional/Resources/Discounts/_fixtures/request/update_partial.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 @@ | ||
{ | ||
"enabled_for_checkout": false, | ||
"code": null | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/Functional/Resources/Discounts/_fixtures/request/update_single.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,3 @@ | ||
{ | ||
"enabled_for_checkout": false | ||
} |
26 changes: 26 additions & 0 deletions
26
tests/Functional/Resources/Discounts/_fixtures/response/full_entity.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,26 @@ | ||
{ | ||
"data": { | ||
"id": "dsc_01h83xenpcfjyhkqr4x214m02x", | ||
"status": "active", | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": true, | ||
"code": "ABCDE12345", | ||
"type": "percentage", | ||
"amount": "10", | ||
"currency_code": "USD", | ||
"recur": true, | ||
"maximum_recurring_intervals": 5, | ||
"usage_limit": 1000, | ||
"restrict_to": [ | ||
"pro_01gsz4t5hdjse780zja8vvr7jg", | ||
"pro_01gsz4s0w61y0pp88528f1wvvb" | ||
], | ||
"expires_at": "2025-01-01 10:00:00", | ||
"times_used": 0, | ||
"created_at": "2023-08-18T08:51:07.596Z", | ||
"updated_at": "2023-08-18T08:51:07.596Z" | ||
}, | ||
"meta": { | ||
"request_id": "badf3eb7-3eb8-4d4a-92f9-bc798790b7bc" | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
tests/Functional/Resources/Discounts/_fixtures/response/list_default.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,92 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"id": "dsc_01gtf15svsqzgp9325ss4ebmwt", | ||
"status": "active", | ||
"description": "Introductory offer: $10 off per user for Pro", | ||
"enabled_for_checkout": true, | ||
"code": "10OFFPRO", | ||
"type": "flat_per_seat", | ||
"amount": "1000", | ||
"currency_code": "USD", | ||
"recur": false, | ||
"maximum_recurring_intervals": null, | ||
"usage_limit": null, | ||
"restrict_to": ["pri_01gsz8x8sawmvhz1pv30nge1ke"], | ||
"expires_at": null, | ||
"times_used": 0, | ||
"custom_data": null, | ||
"created_at": "2023-03-01T16:48:04.473Z", | ||
"updated_at": "2023-08-18T09:22:14.563Z" | ||
}, | ||
{ | ||
"id": "dsc_01gtgraak4chyhnp47rrdv89ad", | ||
"status": "active", | ||
"description": "Introductory offer: 50% off first 3 months", | ||
"enabled_for_checkout": true, | ||
"code": "98XFAUR91R", | ||
"type": "percentage", | ||
"amount": "50", | ||
"currency_code": null, | ||
"recur": true, | ||
"maximum_recurring_intervals": 3, | ||
"usage_limit": null, | ||
"restrict_to": [ | ||
"pri_01gsz8ntc6z7npqqp6j4ys0w1w", | ||
"pri_01gsz8x8sawmvhz1pv30nge1ke" | ||
], | ||
"expires_at": null, | ||
"times_used": 0, | ||
"custom_data": null, | ||
"created_at": "2023-03-02T08:51:44.356Z", | ||
"updated_at": "2023-08-18T09:23:08.058Z" | ||
}, | ||
{ | ||
"id": "dsc_01gtgztp8fpchantd5g1wrksa3", | ||
"status": "active", | ||
"description": "Black Friday 2024", | ||
"enabled_for_checkout": true, | ||
"code": "BF2024", | ||
"type": "percentage", | ||
"amount": "10", | ||
"currency_code": null, | ||
"recur": false, | ||
"maximum_recurring_intervals": null, | ||
"usage_limit": 1000, | ||
"restrict_to": null, | ||
"expires_at": "2024-12-03T00:00:00Z", | ||
"times_used": 0, | ||
"custom_data": null, | ||
"created_at": "2023-03-02T11:03:00.623Z", | ||
"updated_at": "2023-08-18T09:40:44.463Z" | ||
}, | ||
{ | ||
"id": "dsc_01h83xenpcfjyhkqr4x214m02x", | ||
"status": "active", | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": false, | ||
"code": null, | ||
"type": "percentage", | ||
"amount": "10", | ||
"currency_code": null, | ||
"recur": true, | ||
"maximum_recurring_intervals": null, | ||
"usage_limit": null, | ||
"restrict_to": ["pri_01h83xenpcfjyhkqr4x214m02x"], | ||
"expires_at": null, | ||
"times_used": 0, | ||
"custom_data": null, | ||
"created_at": "2023-08-18T08:51:07.596Z", | ||
"updated_at": "2023-08-18T09:05:17.05Z" | ||
} | ||
], | ||
"meta": { | ||
"request_id": "f802da6d-096f-4cab-abd1-6c98330d4b09", | ||
"pagination": { | ||
"per_page": 50, | ||
"next": "https://api.paddle.com/discounts?after=dsc_01h83xenpcfjyhkqr4x214m02x", | ||
"has_more": false, | ||
"estimated_total": 4 | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/Functional/Resources/Discounts/_fixtures/response/minimal_entity.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,27 @@ | ||
{ | ||
"data": { | ||
"id": "dsc_01h83xenpcfjyhkqr4x214m02x", | ||
"status": "active", | ||
"description": "Nonprofit discount", | ||
"enabled_for_checkout": true, | ||
"code": "4Y3ZR24Q4R", | ||
"type": "percentage", | ||
"amount": "10", | ||
"currency_code": "USD", | ||
"recur": true, | ||
"maximum_recurring_intervals": null, | ||
"usage_limit": null, | ||
"restrict_to": [ | ||
"pro_01gsz4t5hdjse780zja8vvr7jg", | ||
"pro_01gsz4s0w61y0pp88528f1wvvb" | ||
], | ||
"expires_at": null, | ||
"times_used": 0, | ||
"custom_data": null, | ||
"created_at": "2023-08-18T08:51:07.596Z", | ||
"updated_at": "2023-08-18T08:51:07.596Z" | ||
}, | ||
"meta": { | ||
"request_id": "badf3eb7-3eb8-4d4a-92f9-bc798790b7bc" | ||
} | ||
} |
Oops, something went wrong.