-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Subscription IDs can be omitted when creating customer portal se…
…ssions
- Loading branch information
1 parent
38aff5b
commit ae40e4b
Showing
7 changed files
with
45 additions
and
3 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
3 changes: 2 additions & 1 deletion
3
paddle_billing/Resources/CustomerPortalSessions/Operations/CreateCustomerPortalSession.py
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from dataclasses import dataclass | ||
|
||
from paddle_billing.Operation import Operation | ||
from paddle_billing.Undefined import Undefined | ||
|
||
|
||
@dataclass | ||
class CreateCustomerPortalSession(Operation): | ||
subscription_ids: list[str] = (None,) | ||
subscription_ids: list[str] | Undefined = Undefined() |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
|
||
setup( | ||
version="1.2.0", | ||
version="1.2.1", | ||
author="Paddle and contributors", | ||
author_email="[email protected]", | ||
description="Paddle's Python SDK for Paddle Billing", | ||
|
3 changes: 3 additions & 0 deletions
3
tests/Functional/Resources/CustomerPortalSessions/_fixtures/request/create_empty.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 @@ | ||
{ | ||
"subscription_ids": [] | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/Functional/Resources/CustomerPortalSessions/_fixtures/response/full_entity_empty.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 @@ | ||
{ | ||
"data": { | ||
"id": "cpls_01h4ge9r64c22exjsx0fy8b48b", | ||
"customer_id": "ctm_01gysfvfy7vqhpzkq8rjmrq7an", | ||
"urls": { | ||
"general": { | ||
"overview": "https://customer-portal.paddle.com/cpl_01j7zbyqs3vah3aafp4jf62qaw?action=overview&token=pga_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjdG1fMDFncm5uNHp0YTVhMW1mMDJqanplN3kyeXMiLCJuYW1lIjoiSm9obiBEb2UiLCJpYXQiOjE3Mjc2NzkyMzh9._oO12IejzdKmyKTwb7BLjmiILkx4_cSyGjXraOBUI_g" | ||
}, | ||
"subscriptions": [] | ||
}, | ||
"created_at": "2024-10-25T06:53:58Z" | ||
}, | ||
"meta": { | ||
"request_id": "fa176777-4bca-49ec-aa1e-f53885333cb7" | ||
} | ||
} |
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