paddle-python-sdk 1.3.0__py3-none-any.whl → 1.3.1__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/Adjustment.py +1 -1
- {paddle_python_sdk-1.3.0.dist-info → paddle_python_sdk-1.3.1.dist-info}/METADATA +1 -1
- {paddle_python_sdk-1.3.0.dist-info → paddle_python_sdk-1.3.1.dist-info}/RECORD +8 -8
- tests/Functional/Resources/Adjustments/test_AdjustmentsClient.py +3 -0
- {paddle_python_sdk-1.3.0.dist-info → paddle_python_sdk-1.3.1.dist-info}/LICENSE +0 -0
- {paddle_python_sdk-1.3.0.dist-info → paddle_python_sdk-1.3.1.dist-info}/WHEEL +0 -0
- {paddle_python_sdk-1.3.0.dist-info → paddle_python_sdk-1.3.1.dist-info}/top_level.txt +0 -0
paddle_billing/Client.py
CHANGED
|
@@ -204,7 +204,7 @@ class Client:
|
|
|
204
204
|
"Authorization": f"Bearer {self.__api_key}",
|
|
205
205
|
"Content-Type": "application/json",
|
|
206
206
|
"Paddle-Version": str(self.use_api_version),
|
|
207
|
-
"User-Agent": "PaddleSDK/python 1.3.
|
|
207
|
+
"User-Agent": "PaddleSDK/python 1.3.1",
|
|
208
208
|
}
|
|
209
209
|
)
|
|
210
210
|
|
|
@@ -53,5 +53,5 @@ class Adjustment(Entity):
|
|
|
53
53
|
),
|
|
54
54
|
updated_at=datetime.fromisoformat(data["updated_at"]) if data.get("updated_at") else None,
|
|
55
55
|
tax_rates_used=[AdjustmentTaxRatesUsed.from_dict(item) for item in data["tax_rates_used"]],
|
|
56
|
-
type=
|
|
56
|
+
type=AdjustmentActionType(data["type"]),
|
|
57
57
|
)
|
|
@@ -5,7 +5,7 @@ examples/event_polling.py,sha256=580dg_8CFrSCA89Mr1ny4V1gtB3-hk-LfePTbI7DT5w,217
|
|
|
5
5
|
examples/get_products.py,sha256=4V7ZG1SH6Oxojufbtzm_TMySw4cOBMQ99mgQK_hlwFQ,1875
|
|
6
6
|
examples/logger.py,sha256=AxmQmMrsM0ZqMIUnh6iARiczL4S4F9OqQcOu-67owNg,1042
|
|
7
7
|
examples/webhook_verification.py,sha256=qkNscNdNZUAgxEIk83tCiljN2VmfePZ_k8zTliKz2QY,1205
|
|
8
|
-
paddle_billing/Client.py,sha256=
|
|
8
|
+
paddle_billing/Client.py,sha256=PEu-mUviKeCeVVLmMBN-ctOPoV4jTE5MOGEOMHa2j2I,8787
|
|
9
9
|
paddle_billing/EnumStringify.py,sha256=iDvKULZat3jx9A-_PhvoN6CbFGf2pyxrQeYZxqX9n8M,48
|
|
10
10
|
paddle_billing/Environment.py,sha256=sY4nrJUwlTugsZKncieAnvfCojqCcKWi4X7rFzjFeSQ,417
|
|
11
11
|
paddle_billing/FiltersNone.py,sha256=HxjE6RJb7sy6txphpZSrCTQZt1Ua0XpIz8NDLHC43zo,268
|
|
@@ -19,7 +19,7 @@ paddle_billing/ResponseParser.py,sha256=DbbEnVLflzzKiulbtb56Rx7FLEx9Vxe08p1RQRXa
|
|
|
19
19
|
paddle_billing/Undefined.py,sha256=NJKVAEGbTBDfnfaAS6Vn_pSHmHDGbIS277gVScuB2A8,26
|
|
20
20
|
paddle_billing/__init__.py,sha256=x-mRXflhzomHZamB-g1HflsqW2WSYDo-PpPkhyPlAWA,178
|
|
21
21
|
paddle_billing/Entities/Address.py,sha256=KPnvFIN9S-DX-Y72x9WZScLV-s5vur1Wn1QT2YsS3KI,1500
|
|
22
|
-
paddle_billing/Entities/Adjustment.py,sha256=
|
|
22
|
+
paddle_billing/Entities/Adjustment.py,sha256=5d9DXhyahb8tlRe5ywMI0ueq5kfGkfbpO__mVemlcp8,2100
|
|
23
23
|
paddle_billing/Entities/AdjustmentCreditNote.py,sha256=nMXkYk4hDyxv4Oaw0iFgslmgMksGwFyoH2wQXiVchOs,305
|
|
24
24
|
paddle_billing/Entities/Business.py,sha256=wlnAd_lC0Fuw7_BHKZGHt8q-aeLYO6MjO92EYedRnmo,1331
|
|
25
25
|
paddle_billing/Entities/CreditBalance.py,sha256=aGCsfSf-qZl6kVTfHd41_1raiNuI29picji-bj7-lvg,673
|
|
@@ -549,7 +549,7 @@ tests/Functional/Resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
549
549
|
tests/Functional/Resources/Addresses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
550
550
|
tests/Functional/Resources/Addresses/test_AddressesClient.py,sha256=mxiSJgvegEpuqKeNMZeSlujih5XLVvRZ5Hw8J_J0Jhk,16204
|
|
551
551
|
tests/Functional/Resources/Adjustments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
552
|
-
tests/Functional/Resources/Adjustments/test_AdjustmentsClient.py,sha256=
|
|
552
|
+
tests/Functional/Resources/Adjustments/test_AdjustmentsClient.py,sha256=5pfezgaaiz0fykofnXWFCZA4sTj7UIhfedj9b0n1fUQ,17332
|
|
553
553
|
tests/Functional/Resources/Businesses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
554
554
|
tests/Functional/Resources/Businesses/test_BusinessesClient.py,sha256=uUAydFqmXq3snmu--gGVI5nNrpg6oySQM_Ulg9q-G1Q,12727
|
|
555
555
|
tests/Functional/Resources/CustomerPortalSessions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -596,8 +596,8 @@ tests/Utils/ReadsFixture.py,sha256=M3Ot3xHXp_C7vwttna9deLPHBAO8ml2Jb4thhHOJJ38,1
|
|
|
596
596
|
tests/Utils/TestClient.py,sha256=-wc7hJMuR6WC-ukw0c7I59b5-8hj_-nzq__-2M81elg,1453
|
|
597
597
|
tests/Utils/TestLogger.py,sha256=pFO9x711buRmg-8DAqpzIJP_hr21JPty1_ZQRcwoGKk,554
|
|
598
598
|
tests/Utils/__init__.py,sha256=JtqJNPKqbNZ9exlpXlF3yj_9cfylPGlvopjQYi7yYTA,37
|
|
599
|
-
paddle_python_sdk-1.3.
|
|
600
|
-
paddle_python_sdk-1.3.
|
|
601
|
-
paddle_python_sdk-1.3.
|
|
602
|
-
paddle_python_sdk-1.3.
|
|
603
|
-
paddle_python_sdk-1.3.
|
|
599
|
+
paddle_python_sdk-1.3.1.dist-info/LICENSE,sha256=e5Sn9mzCdpjnqCLxXpGHNKdYB6JlRSTLhN_CD4WSO6w,10770
|
|
600
|
+
paddle_python_sdk-1.3.1.dist-info/METADATA,sha256=0V_ocFAebYY3Zusx-GgbpXXEZ6PEXvEZKaRSE72m0ZA,7376
|
|
601
|
+
paddle_python_sdk-1.3.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
602
|
+
paddle_python_sdk-1.3.1.dist-info/top_level.txt,sha256=9a07VPng7o5wK8VAXkl6NC30xrNbW9zff_02jHyHi4c,30
|
|
603
|
+
paddle_python_sdk-1.3.1.dist-info/RECORD,,
|
|
@@ -177,6 +177,9 @@ class TestAdjustmentsClient:
|
|
|
177
177
|
)
|
|
178
178
|
|
|
179
179
|
assert isinstance(response, Adjustment)
|
|
180
|
+
assert isinstance(response.action, Action)
|
|
181
|
+
assert isinstance(response.status, AdjustmentStatus)
|
|
182
|
+
assert isinstance(response.type, AdjustmentActionType)
|
|
180
183
|
|
|
181
184
|
tax_rates_used = response.tax_rates_used[0]
|
|
182
185
|
assert isinstance(tax_rates_used, AdjustmentTaxRatesUsed)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|