dodopayments 1.18.0__py3-none-any.whl → 1.18.3__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.
- dodopayments/_response.py +1 -1
- dodopayments/_version.py +1 -1
- dodopayments/types/billing_address.py +0 -1
- dodopayments/types/customer_limited_details.py +0 -1
- dodopayments/types/customer_portal_session.py +0 -1
- dodopayments/types/license_key_duration.py +0 -1
- dodopayments/types/license_validate_response.py +0 -1
- dodopayments/types/payment.py +7 -0
- dodopayments/types/subscription_charge_response.py +0 -1
- {dodopayments-1.18.0.dist-info → dodopayments-1.18.3.dist-info}/METADATA +1 -1
- {dodopayments-1.18.0.dist-info → dodopayments-1.18.3.dist-info}/RECORD +13 -13
- {dodopayments-1.18.0.dist-info → dodopayments-1.18.3.dist-info}/WHEEL +0 -0
- {dodopayments-1.18.0.dist-info → dodopayments-1.18.3.dist-info}/licenses/LICENSE +0 -0
dodopayments/_response.py
CHANGED
|
@@ -235,7 +235,7 @@ class BaseAPIResponse(Generic[R]):
|
|
|
235
235
|
# split is required to handle cases where additional information is included
|
|
236
236
|
# in the response, e.g. application/json; charset=utf-8
|
|
237
237
|
content_type, *_ = response.headers.get("content-type", "*").split(";")
|
|
238
|
-
if content_type
|
|
238
|
+
if not content_type.endswith("json"):
|
|
239
239
|
if is_basemodel(cast_to):
|
|
240
240
|
try:
|
|
241
241
|
data = response.json()
|
dodopayments/_version.py
CHANGED
dodopayments/types/payment.py
CHANGED
|
@@ -366,6 +366,13 @@ class Payment(BaseModel):
|
|
|
366
366
|
product_cart: Optional[List[ProductCart]] = None
|
|
367
367
|
"""List of products purchased in a one-time payment"""
|
|
368
368
|
|
|
369
|
+
settlement_tax: Optional[int] = None
|
|
370
|
+
"""
|
|
371
|
+
This represents the portion of settlement_amount that corresponds to taxes
|
|
372
|
+
collected. Especially relevant for adaptive pricing where the tax component must
|
|
373
|
+
be tracked separately in your Dodo balance.
|
|
374
|
+
"""
|
|
375
|
+
|
|
369
376
|
status: Optional[IntentStatus] = None
|
|
370
377
|
|
|
371
378
|
subscription_id: Optional[str] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dodopayments
|
|
3
|
-
Version: 1.18.
|
|
3
|
+
Version: 1.18.3
|
|
4
4
|
Summary: The official Python library for the Dodo Payments API
|
|
5
5
|
Project-URL: Homepage, https://github.com/dodopayments/dodopayments-python
|
|
6
6
|
Project-URL: Repository, https://github.com/dodopayments/dodopayments-python
|
|
@@ -8,10 +8,10 @@ dodopayments/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
|
8
8
|
dodopayments/_models.py,sha256=mB2r2VWQq49jG-F0RIXDrBxPp3v-Eg12wMOtVTNxtv4,29057
|
|
9
9
|
dodopayments/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
dodopayments/_resource.py,sha256=Jfh17Q3kKzAhO-dlfIwYlueN9t1edaaY_vmnC9vErpA,1136
|
|
11
|
-
dodopayments/_response.py,sha256=
|
|
11
|
+
dodopayments/_response.py,sha256=PDvrSN3E3IkXVw2GvyOCTNB8ch0Xn9yaWQz4w1nHZEQ,28854
|
|
12
12
|
dodopayments/_streaming.py,sha256=U4D6MhotaUaGaHz32lBt0XM98IOPIpPbKHUfbb0HGCk,10124
|
|
13
13
|
dodopayments/_types.py,sha256=xr6JCSMzA-ItAyUrj6yw3GuC5rwQFVUo-Uiw9OTOWyo,6149
|
|
14
|
-
dodopayments/_version.py,sha256=
|
|
14
|
+
dodopayments/_version.py,sha256=iHvUlf1JFCcQx0Tw2aW18JvhLA_yXluZ7mh0lKLV-QQ,165
|
|
15
15
|
dodopayments/pagination.py,sha256=WYDrAWHvGL58Fe6X2yYZyYTAFvzWOR63JAsKURk2ti4,1308
|
|
16
16
|
dodopayments/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
dodopayments/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
@@ -47,15 +47,15 @@ dodopayments/resources/products/images.py,sha256=Dl-hxas2F6C30yhBifxCMy5xdLIgPSE
|
|
|
47
47
|
dodopayments/resources/products/products.py,sha256=X2SJJjjUs24YhFkvCYzkPITBEHiaw2ebxAgcJioYyGI,32411
|
|
48
48
|
dodopayments/types/__init__.py,sha256=UIPjOVXajyukaks_f1mx34QgCcPTgnXGQ3eFjh2dAJY,5246
|
|
49
49
|
dodopayments/types/attach_existing_customer_param.py,sha256=PspDgaJFjw415GT6cpEZ88uSuC2A8HRBECmxIVrcucg,308
|
|
50
|
-
dodopayments/types/billing_address.py,sha256=
|
|
50
|
+
dodopayments/types/billing_address.py,sha256=Y9ovCan474-76F7g5Sx8YX0AZ5pSeSJ_kpVOycQWeVA,523
|
|
51
51
|
dodopayments/types/billing_address_param.py,sha256=l4rXHmFE8UZFKW-N0UY81roCFv8g3yw6HXEPvF_op8I,651
|
|
52
52
|
dodopayments/types/country_code.py,sha256=aKc-CApHuQUg8xWGKxS2pnYvwUOz7G59qv4H7NOOHEo,2690
|
|
53
53
|
dodopayments/types/create_new_customer_param.py,sha256=QAl3yonE2iPWRQY3LOPwyjkLqN9lJW6TjgLJGCitG4k,599
|
|
54
54
|
dodopayments/types/customer.py,sha256=gyxIAWVJyoUPvqKFMSZb2SE-gbgVw9Cf8FGVevPFKQs,371
|
|
55
55
|
dodopayments/types/customer_create_params.py,sha256=jILY28OtoNMyd3OEJcWmRCNUDc8LN3jMvWxPtFwWx2c,374
|
|
56
|
-
dodopayments/types/customer_limited_details.py,sha256=
|
|
56
|
+
dodopayments/types/customer_limited_details.py,sha256=Q9o6uDLx2-XXMqLf5r_c4BMPJgOGeIXurK3od3d-Sgc,373
|
|
57
57
|
dodopayments/types/customer_list_params.py,sha256=a-YOlDGSvcsY-KGIlzQnX-mquupsjazOu_HgPU9-0xs,418
|
|
58
|
-
dodopayments/types/customer_portal_session.py,sha256=
|
|
58
|
+
dodopayments/types/customer_portal_session.py,sha256=XwfDZMfoaiuVoJ4OmulTfLrfGurjgaCDiBKbUxA6Q08,212
|
|
59
59
|
dodopayments/types/customer_request_param.py,sha256=Y0a3YTcwB1JHIgTUcLIKWfVIfZljcYCnQu7YaP-0Qsg,453
|
|
60
60
|
dodopayments/types/customer_update_params.py,sha256=FRS6J8xSI4i6ZvZW72DIxZLm1CAYKZHnShzduGcwvu0,338
|
|
61
61
|
dodopayments/types/discount.py,sha256=_EyxXQsnMGbTrHI-3DGAwnDuVmY1khrdCXAhkU71Ttg,1206
|
|
@@ -71,7 +71,7 @@ dodopayments/types/intent_status.py,sha256=0aP3OxHiMfZDXQFOOXNbTSZz1vZkLjBFm3ryT
|
|
|
71
71
|
dodopayments/types/license_activate_params.py,sha256=LM3_sHiPdco8kuYlKXmSzXu9OyU9okrZW7Drl63GRZU,321
|
|
72
72
|
dodopayments/types/license_deactivate_params.py,sha256=F6A7vZfdkCsfQi4ibECL3SFzwjjOyr8ZR_RrNRVsCMo,344
|
|
73
73
|
dodopayments/types/license_key.py,sha256=tao1s1aXjxJy3LUIwAK1Sz0-phwElDohT0lGVAAO2_M,1422
|
|
74
|
-
dodopayments/types/license_key_duration.py,sha256=
|
|
74
|
+
dodopayments/types/license_key_duration.py,sha256=iijVuKvY1Ie8c76576GmG4TbaZbSKmp8sUdf_p9OLnc,275
|
|
75
75
|
dodopayments/types/license_key_duration_param.py,sha256=oSXyQMoeYHGFucVZG2Z_hoYRYg9zKCP6PS7x9u0eyUw,373
|
|
76
76
|
dodopayments/types/license_key_instance.py,sha256=lrXpgEMNoEZM6xVXe-QV2Tu609uEOPerC-c6YwDw9Bc,323
|
|
77
77
|
dodopayments/types/license_key_instance_list_params.py,sha256=jhvMFwGOJSgEmelw9Ss5SzCK5FbHkjLYNhgR_B-eAFc,508
|
|
@@ -80,11 +80,11 @@ dodopayments/types/license_key_list_params.py,sha256=ZBUIb2_LXH_L8YLiXQFHQH2_NXr
|
|
|
80
80
|
dodopayments/types/license_key_status.py,sha256=UlGOUTQM93ePW0xWxcOgeLQ_SAkjtav-Rg-QugaFfuo,240
|
|
81
81
|
dodopayments/types/license_key_update_params.py,sha256=iLtkSyF7R4NdWUgX3aZnzO0XQPujVvLjLWLsULXTEug,1018
|
|
82
82
|
dodopayments/types/license_validate_params.py,sha256=f_UWM6Jy9E4pdcjGLr7YtsAsHR1-6EXpw4zGzLZj1JQ,368
|
|
83
|
-
dodopayments/types/license_validate_response.py,sha256=
|
|
83
|
+
dodopayments/types/license_validate_response.py,sha256=vlSrdtsVYmQcsJpPMI-ENCf_apLzhbS9Q6e4MG3ys1Q,218
|
|
84
84
|
dodopayments/types/misc_list_supported_countries_response.py,sha256=Imr7f0CAjq04iikVbDSUvG1ZSYzB9Fopx8pVfVtt-zw,307
|
|
85
85
|
dodopayments/types/one_time_product_cart_item.py,sha256=3l7J3KEE-SCXgArN25qKIXbIIu44Q2kxqd7jf73AGto,544
|
|
86
86
|
dodopayments/types/one_time_product_cart_item_param.py,sha256=JydRYPBnLhON1pCQPRpQzKLaGJTSrDn1IRVCcMK8iAE,633
|
|
87
|
-
dodopayments/types/payment.py,sha256=
|
|
87
|
+
dodopayments/types/payment.py,sha256=yyrmb_IqcXiGCK_Ed2oly3Fvw8wtJm-HYDJ81BN71H8,7028
|
|
88
88
|
dodopayments/types/payment_create_params.py,sha256=JNfNc_Wa-sZGXxaP5e4bTvlAcZy-Vgu44OPkhrnic4o,5143
|
|
89
89
|
dodopayments/types/payment_create_response.py,sha256=6Evr_32yYRrMUnSTxD9QOLAgF-qAd8t85UGcLXI4BhE,1034
|
|
90
90
|
dodopayments/types/payment_list_params.py,sha256=H1WGv-PKhLeBlBFXqenvrYNaviXYE-vBW94F_HLWkdU,1011
|
|
@@ -105,7 +105,7 @@ dodopayments/types/refund_status.py,sha256=ftnBnLvslfMYcUg8t7nEvb6-m5NWyVVnNcgyV
|
|
|
105
105
|
dodopayments/types/subscription.py,sha256=Z0cSRTVIjPbGX0NNj_wlXX4vBb5Y2zDY9v9e82q0cUo,4193
|
|
106
106
|
dodopayments/types/subscription_change_plan_params.py,sha256=QZXgpEqD1t6Orhbd9BANuL-ZWdIttq7l_oZtus4GReE,541
|
|
107
107
|
dodopayments/types/subscription_charge_params.py,sha256=IvO-k_cGQ8v5IO36F5ZEe4JJAhnkcBovjliMbZ4WN-U,467
|
|
108
|
-
dodopayments/types/subscription_charge_response.py,sha256=
|
|
108
|
+
dodopayments/types/subscription_charge_response.py,sha256=aDFuOKqqQ-_v1szx9oUT89QaeM3nvwrlAExzZhF0O-Q,228
|
|
109
109
|
dodopayments/types/subscription_create_params.py,sha256=69aPcGat_7gr54zES88CylANlwmsXZ3W-wXESDgQ-bU,5808
|
|
110
110
|
dodopayments/types/subscription_create_response.py,sha256=ZELvNZlmftX8_cc5wSqggEiRYwRNjO_5s6Hl27kpXIk,901
|
|
111
111
|
dodopayments/types/subscription_list_params.py,sha256=70NjwcJrzGB6ruCIr17PNPQrhC0a8saclhbx3A6-dr8,967
|
|
@@ -120,7 +120,7 @@ dodopayments/types/invoices/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekD
|
|
|
120
120
|
dodopayments/types/products/__init__.py,sha256=-W2ETtkni8cZpsC4Eg1aRwuLg1plV1U429JFOR1U4Rw,273
|
|
121
121
|
dodopayments/types/products/image_update_params.py,sha256=JmSZGjXI9uZgKdO9_7CINyIOmuphlmZr7-7P7kE-R5Q,308
|
|
122
122
|
dodopayments/types/products/image_update_response.py,sha256=TcJyXjoJlONpwwR6yZdIuBTu2VNyLRZFELfstD9_V-o,273
|
|
123
|
-
dodopayments-1.18.
|
|
124
|
-
dodopayments-1.18.
|
|
125
|
-
dodopayments-1.18.
|
|
126
|
-
dodopayments-1.18.
|
|
123
|
+
dodopayments-1.18.3.dist-info/METADATA,sha256=GeTkTEQ3lwEk1tC_7jt7zhtMoQkfc1CvNYSwLGHE73I,17404
|
|
124
|
+
dodopayments-1.18.3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
125
|
+
dodopayments-1.18.3.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
|
|
126
|
+
dodopayments-1.18.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|