paddle-python-sdk 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- paddle_billing/Client.py +1 -1
- paddle_billing/Entities/Shared/TransactionLineItemPreview.py +2 -2
- {paddle_python_sdk-0.3.1.dist-info → paddle_python_sdk-0.3.2.dist-info}/METADATA +1 -1
- {paddle_python_sdk-0.3.1.dist-info → paddle_python_sdk-0.3.2.dist-info}/RECORD +7 -7
- {paddle_python_sdk-0.3.1.dist-info → paddle_python_sdk-0.3.2.dist-info}/WHEEL +1 -1
- {paddle_python_sdk-0.3.1.dist-info → paddle_python_sdk-0.3.2.dist-info}/LICENSE +0 -0
- {paddle_python_sdk-0.3.1.dist-info → paddle_python_sdk-0.3.2.dist-info}/top_level.txt +0 -0
paddle_billing/Client.py
CHANGED
|
@@ -206,7 +206,7 @@ class Client:
|
|
|
206
206
|
"Authorization": f"Bearer {self.__api_key}",
|
|
207
207
|
"Content-Type": "application/json",
|
|
208
208
|
"Paddle-Version": str(self.use_api_version),
|
|
209
|
-
"User-Agent": "PaddleSDK/python 0.
|
|
209
|
+
"User-Agent": "PaddleSDK/python 0.3.2",
|
|
210
210
|
}
|
|
211
211
|
)
|
|
212
212
|
|
|
@@ -15,7 +15,7 @@ class TransactionLineItemPreview:
|
|
|
15
15
|
unit_totals: UnitTotals
|
|
16
16
|
totals: Totals
|
|
17
17
|
product: Product
|
|
18
|
-
proration: Proration
|
|
18
|
+
proration: Proration | None
|
|
19
19
|
|
|
20
20
|
@staticmethod
|
|
21
21
|
def from_dict(data: dict) -> TransactionLineItemPreview:
|
|
@@ -26,5 +26,5 @@ class TransactionLineItemPreview:
|
|
|
26
26
|
unit_totals=UnitTotals.from_dict(data["unit_totals"]),
|
|
27
27
|
totals=Totals.from_dict(data["totals"]),
|
|
28
28
|
product=Product.from_dict(data["product"]),
|
|
29
|
-
proration=Proration.from_dict(data["proration"]),
|
|
29
|
+
proration=Proration.from_dict(data["proration"]) if data.get("proration") else None,
|
|
30
30
|
)
|
|
@@ -4,7 +4,7 @@ examples/event_polling.py,sha256=580dg_8CFrSCA89Mr1ny4V1gtB3-hk-LfePTbI7DT5w,217
|
|
|
4
4
|
examples/get_products.py,sha256=4V7ZG1SH6Oxojufbtzm_TMySw4cOBMQ99mgQK_hlwFQ,1875
|
|
5
5
|
examples/logger.py,sha256=AxmQmMrsM0ZqMIUnh6iARiczL4S4F9OqQcOu-67owNg,1042
|
|
6
6
|
examples/webhook_verification.py,sha256=qkNscNdNZUAgxEIk83tCiljN2VmfePZ_k8zTliKz2QY,1205
|
|
7
|
-
paddle_billing/Client.py,sha256=
|
|
7
|
+
paddle_billing/Client.py,sha256=Cbw72MciSgdQtbV8HA-LqxzgL9ZeSpl8P-2RcmAjQgs,8742
|
|
8
8
|
paddle_billing/EnumStringify.py,sha256=iDvKULZat3jx9A-_PhvoN6CbFGf2pyxrQeYZxqX9n8M,48
|
|
9
9
|
paddle_billing/Environment.py,sha256=sY4nrJUwlTugsZKncieAnvfCojqCcKWi4X7rFzjFeSQ,417
|
|
10
10
|
paddle_billing/FiltersNone.py,sha256=HxjE6RJb7sy6txphpZSrCTQZt1Ua0XpIz8NDLHC43zo,268
|
|
@@ -142,7 +142,7 @@ paddle_billing/Entities/Shared/TaxRatesUsed.py,sha256=K5ItHBXGQkhvt4sqNDTLrgVGH7
|
|
|
142
142
|
paddle_billing/Entities/Shared/TimePeriod.py,sha256=XuWeYYeQmL3Aygd5QXNqgz2yWKkQVq22dBUvmLewi8w,403
|
|
143
143
|
paddle_billing/Entities/Shared/Totals.py,sha256=i1pH3_SXGLSC2PO-j2J8hLr3Nh__KueLN54KCEwO71g,393
|
|
144
144
|
paddle_billing/Entities/Shared/TransactionDetailsPreview.py,sha256=k9-7NbZzTDvHO4_5NBdO51NofZ2RaybNTX9oQQfBsSU,868
|
|
145
|
-
paddle_billing/Entities/Shared/TransactionLineItemPreview.py,sha256=
|
|
145
|
+
paddle_billing/Entities/Shared/TransactionLineItemPreview.py,sha256=CdG3b9vvfISFqgtzZj_FCgx5hpKrOOlC9-TKHeoxSY4,1031
|
|
146
146
|
paddle_billing/Entities/Shared/TransactionOrigin.py,sha256=ITifdfn7H7a7LWQaztQO3H2jwba1EcDlkQSQHI580_8,525
|
|
147
147
|
paddle_billing/Entities/Shared/TransactionPaymentAttempt.py,sha256=kemUuJiTrQDvPWn2cPFuFLMxEn62okRDgAmrQa7hrPk,1388
|
|
148
148
|
paddle_billing/Entities/Shared/TransactionPayoutTotals.py,sha256=wok93EkK-bQIeJK-k44xwUpYSwff2Ki3mJt6gx0bODU,1013
|
|
@@ -553,8 +553,8 @@ tests/Utils/ReadsFixture.py,sha256=M3Ot3xHXp_C7vwttna9deLPHBAO8ml2Jb4thhHOJJ38,1
|
|
|
553
553
|
tests/Utils/TestClient.py,sha256=-wc7hJMuR6WC-ukw0c7I59b5-8hj_-nzq__-2M81elg,1453
|
|
554
554
|
tests/Utils/TestLogger.py,sha256=pFO9x711buRmg-8DAqpzIJP_hr21JPty1_ZQRcwoGKk,554
|
|
555
555
|
tests/Utils/__init__.py,sha256=JtqJNPKqbNZ9exlpXlF3yj_9cfylPGlvopjQYi7yYTA,37
|
|
556
|
-
paddle_python_sdk-0.3.
|
|
557
|
-
paddle_python_sdk-0.3.
|
|
558
|
-
paddle_python_sdk-0.3.
|
|
559
|
-
paddle_python_sdk-0.3.
|
|
560
|
-
paddle_python_sdk-0.3.
|
|
556
|
+
paddle_python_sdk-0.3.2.dist-info/LICENSE,sha256=e5Sn9mzCdpjnqCLxXpGHNKdYB6JlRSTLhN_CD4WSO6w,10770
|
|
557
|
+
paddle_python_sdk-0.3.2.dist-info/METADATA,sha256=_QzTos9VlIl8t4aK5HcDfr74KLvjkUREV0GPH4hugRQ,7392
|
|
558
|
+
paddle_python_sdk-0.3.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
559
|
+
paddle_python_sdk-0.3.2.dist-info/top_level.txt,sha256=9a07VPng7o5wK8VAXkl6NC30xrNbW9zff_02jHyHi4c,30
|
|
560
|
+
paddle_python_sdk-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|