dodopayments 1.25.0__py3-none-any.whl → 1.30.0__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.

Potentially problematic release.


This version of dodopayments might be problematic. Click here for more details.

Files changed (34) hide show
  1. dodopayments/_client.py +9 -0
  2. dodopayments/_version.py +1 -1
  3. dodopayments/resources/__init__.py +14 -0
  4. dodopayments/resources/brands.py +495 -0
  5. dodopayments/resources/customers/customers.py +1 -19
  6. dodopayments/resources/payments.py +83 -0
  7. dodopayments/resources/products/products.py +20 -0
  8. dodopayments/resources/refunds.py +9 -1
  9. dodopayments/resources/subscriptions.py +8 -41
  10. dodopayments/types/__init__.py +8 -2
  11. dodopayments/types/{customer_update_params.py → brand_create_params.py} +9 -3
  12. dodopayments/types/brand_create_response.py +35 -0
  13. dodopayments/types/brand_list_response.py +40 -0
  14. dodopayments/types/brand_retrieve_response.py +35 -0
  15. dodopayments/types/brand_update_images_response.py +13 -0
  16. dodopayments/types/brand_update_params.py +19 -0
  17. dodopayments/types/brand_update_response.py +35 -0
  18. dodopayments/types/payment.py +6 -0
  19. dodopayments/types/payment_list_params.py +3 -0
  20. dodopayments/types/payment_list_response.py +2 -0
  21. dodopayments/types/payment_retrieve_line_items_response.py +26 -0
  22. dodopayments/types/product.py +2 -0
  23. dodopayments/types/product_create_params.py +3 -0
  24. dodopayments/types/product_list_params.py +3 -0
  25. dodopayments/types/product_update_params.py +2 -0
  26. dodopayments/types/refund.py +3 -0
  27. dodopayments/types/refund_create_params.py +16 -2
  28. dodopayments/types/subscription_create_response.py +3 -0
  29. dodopayments/types/subscription_list_params.py +3 -0
  30. {dodopayments-1.25.0.dist-info → dodopayments-1.30.0.dist-info}/METADATA +2 -2
  31. {dodopayments-1.25.0.dist-info → dodopayments-1.30.0.dist-info}/RECORD +33 -26
  32. dodopayments/types/subscription_change_plan_params.py +0 -30
  33. {dodopayments-1.25.0.dist-info → dodopayments-1.30.0.dist-info}/WHEEL +0 -0
  34. {dodopayments-1.25.0.dist-info → dodopayments-1.30.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import TypedDict
7
+
8
+ __all__ = ["BrandUpdateParams"]
9
+
10
+
11
+ class BrandUpdateParams(TypedDict, total=False):
12
+ image_id: Optional[str]
13
+ """The UUID you got back from the presigned‐upload call"""
14
+
15
+ name: Optional[str]
16
+
17
+ statement_descriptor: Optional[str]
18
+
19
+ support_email: Optional[str]
@@ -0,0 +1,35 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from .._models import BaseModel
7
+
8
+ __all__ = ["BrandUpdateResponse"]
9
+
10
+
11
+ class BrandUpdateResponse(BaseModel):
12
+ brand_id: str
13
+
14
+ business_id: str
15
+
16
+ enabled: bool
17
+
18
+ statement_descriptor: str
19
+
20
+ verification_enabled: bool
21
+
22
+ verification_status: Literal["Success", "Fail", "Review", "Hold"]
23
+
24
+ description: Optional[str] = None
25
+
26
+ image: Optional[str] = None
27
+
28
+ name: Optional[str] = None
29
+
30
+ reason_for_hold: Optional[str] = None
31
+ """Incase the brand verification fails or is put on hold"""
32
+
33
+ support_email: Optional[str] = None
34
+
35
+ url: Optional[str] = None
@@ -24,6 +24,9 @@ class ProductCart(BaseModel):
24
24
  class Payment(BaseModel):
25
25
  billing: BillingAddress
26
26
 
27
+ brand_id: str
28
+ """brand id this payment belongs to"""
29
+
27
30
  business_id: str
28
31
  """Identifier of the business associated with the payment"""
29
32
 
@@ -75,6 +78,9 @@ class Payment(BaseModel):
75
78
  discount_id: Optional[str] = None
76
79
  """The discount id if discount is applied"""
77
80
 
81
+ error_code: Optional[str] = None
82
+ """An error code if the payment failed"""
83
+
78
84
  error_message: Optional[str] = None
79
85
  """An error message if the payment failed"""
80
86
 
@@ -13,6 +13,9 @@ __all__ = ["PaymentListParams"]
13
13
 
14
14
 
15
15
  class PaymentListParams(TypedDict, total=False):
16
+ brand_id: Optional[str]
17
+ """filter by Brand id"""
18
+
16
19
  created_at_gte: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
17
20
  """Get events after this created time"""
18
21
 
@@ -12,6 +12,8 @@ __all__ = ["PaymentListResponse"]
12
12
 
13
13
 
14
14
  class PaymentListResponse(BaseModel):
15
+ brand_id: str
16
+
15
17
  created_at: datetime
16
18
 
17
19
  currency: Currency
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+
5
+ from .._models import BaseModel
6
+ from .currency import Currency
7
+
8
+ __all__ = ["PaymentRetrieveLineItemsResponse", "Item"]
9
+
10
+
11
+ class Item(BaseModel):
12
+ amount: int
13
+
14
+ items_id: str
15
+
16
+ tax: int
17
+
18
+ description: Optional[str] = None
19
+
20
+ name: Optional[str] = None
21
+
22
+
23
+ class PaymentRetrieveLineItemsResponse(BaseModel):
24
+ currency: Currency
25
+
26
+ items: List[Item]
@@ -12,6 +12,8 @@ __all__ = ["Product"]
12
12
 
13
13
 
14
14
  class Product(BaseModel):
15
+ brand_id: str
16
+
15
17
  business_id: str
16
18
  """Unique identifier for the business to which the product belongs."""
17
19
 
@@ -24,6 +24,9 @@ class ProductCreateParams(TypedDict, total=False):
24
24
  addons: Optional[List[str]]
25
25
  """Addons available for subscription product"""
26
26
 
27
+ brand_id: Optional[str]
28
+ """Brand id for the product, if not provided will default to primary brand"""
29
+
27
30
  description: Optional[str]
28
31
  """Optional description of the product"""
29
32
 
@@ -12,6 +12,9 @@ class ProductListParams(TypedDict, total=False):
12
12
  archived: bool
13
13
  """List archived products"""
14
14
 
15
+ brand_id: Optional[str]
16
+ """filter by Brand id"""
17
+
15
18
  page_number: Optional[int]
16
19
  """Page number default is 0"""
17
20
 
@@ -16,6 +16,8 @@ class ProductUpdateParams(TypedDict, total=False):
16
16
  addons: Optional[List[str]]
17
17
  """Available Addons for subscription products"""
18
18
 
19
+ brand_id: Optional[str]
20
+
19
21
  description: Optional[str]
20
22
  """Description of the product, optional and must be at most 1000 characters."""
21
23
 
@@ -17,6 +17,9 @@ class Refund(BaseModel):
17
17
  created_at: datetime
18
18
  """The timestamp of when the refund was created in UTC."""
19
19
 
20
+ is_partial: bool
21
+ """If true the refund is a partial refund"""
22
+
20
23
  payment_id: str
21
24
  """The unique identifier of the payment associated with the refund."""
22
25
 
@@ -2,15 +2,29 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
5
+ from typing import Iterable, Optional
6
6
  from typing_extensions import Required, TypedDict
7
7
 
8
- __all__ = ["RefundCreateParams"]
8
+ __all__ = ["RefundCreateParams", "Item"]
9
9
 
10
10
 
11
11
  class RefundCreateParams(TypedDict, total=False):
12
12
  payment_id: Required[str]
13
13
  """The unique identifier of the payment to be refunded."""
14
14
 
15
+ items: Optional[Iterable[Item]]
16
+ """Partially Refund an Individual Item"""
17
+
15
18
  reason: Optional[str]
16
19
  """The reason for the refund, if any. Maximum length is 3000 characters. Optional."""
20
+
21
+
22
+ class Item(TypedDict, total=False):
23
+ item_id: Required[str]
24
+ """The id of the item (i.e. `product_id` or `addon_id`)"""
25
+
26
+ amount: Optional[int]
27
+ """The amount to refund. if None the whole item is refunded"""
28
+
29
+ tax_inclusive: bool
30
+ """Specify if tax is inclusive of the refund. Default true."""
@@ -17,6 +17,9 @@ class SubscriptionCreateResponse(BaseModel):
17
17
 
18
18
  metadata: Dict[str, str]
19
19
 
20
+ payment_id: str
21
+ """First payment id for the subscription"""
22
+
20
23
  recurring_pre_tax_amount: int
21
24
  """
22
25
  Tax will be added to the amount and charged to the customer on each billing
@@ -13,6 +13,9 @@ __all__ = ["SubscriptionListParams"]
13
13
 
14
14
 
15
15
  class SubscriptionListParams(TypedDict, total=False):
16
+ brand_id: Optional[str]
17
+ """filter by Brand id"""
18
+
16
19
  created_at_gte: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
17
20
  """Get events after this created time"""
18
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dodopayments
3
- Version: 1.25.0
3
+ Version: 1.30.0
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
@@ -194,7 +194,7 @@ Or just work directly with the returned data:
194
194
  ```python
195
195
  first_page = await client.payments.list()
196
196
  for payment in first_page.items:
197
- print(payment.payment_id)
197
+ print(payment.brand_id)
198
198
 
199
199
  # Remove `await` for non-async usage.
200
200
  ```
@@ -1,6 +1,6 @@
1
1
  dodopayments/__init__.py,sha256=0Tw56xhRmutF9qfrtOmmfar-Rzl_5LYcWgsdu73tt14,2661
2
2
  dodopayments/_base_client.py,sha256=L1uR4FGZPe2sXxx0nAXx3pGO7vH9BtQDEWWKJL2bGtQ,64850
3
- dodopayments/_client.py,sha256=C7ryh99xpBAUi_1MADl5LKgVOpb-bu8WjkaKBUEkfa0,26868
3
+ dodopayments/_client.py,sha256=6gxmSa9iNmeNzmpy05mph0aAbrzFU8P0swS3oYc0dKY,27376
4
4
  dodopayments/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
5
  dodopayments/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
6
  dodopayments/_exceptions.py,sha256=NgI0bxilB8xXOfjBWCzr-Y7t1aIJGMqCQRXvSyy29cM,3232
@@ -11,7 +11,7 @@ dodopayments/_resource.py,sha256=Jfh17Q3kKzAhO-dlfIwYlueN9t1edaaY_vmnC9vErpA,113
11
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=fLtdyXRW5svJ2zgV9KoVepCyCimt89KF-_tvD_xRTPc,165
14
+ dodopayments/_version.py,sha256=Tg2SIr1bdPe6ehsD1iVxiOsu7yAbBXKBiKtVF4QhGtE,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
@@ -25,29 +25,30 @@ dodopayments/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWk
25
25
  dodopayments/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
26
26
  dodopayments/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
27
27
  dodopayments/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
28
- dodopayments/resources/__init__.py,sha256=IxanDN3kaD2Z3odRKnb45ZSEQqKIxPBwB-UvVwi5W2I,7480
28
+ dodopayments/resources/__init__.py,sha256=slKzesz4GxU0aA1gYESOGCrpFtLYX_maRsoT6RK425M,7930
29
29
  dodopayments/resources/addons.py,sha256=7kzJrIcIgJfww20aovTrl0EIDslk17QSm0LfC9Cqd04,22058
30
+ dodopayments/resources/brands.py,sha256=oUFCJoBNjLl_uFZ5_5Nhk8e6spwKlnh0UTGntvmvXOg,19120
30
31
  dodopayments/resources/discounts.py,sha256=vAh52lyiiuqSghTku1waNxUQISfIz0e2c79OIO8x_VY,24920
31
32
  dodopayments/resources/disputes.py,sha256=Ck3whmCMz0hPUwT6wPFZgFCcXhqewSyCrx0SH6AeN0Y,12027
32
33
  dodopayments/resources/license_key_instances.py,sha256=oCgJ-D6JVP_Fte_IjRHnykqhAynN6rDJphrkg6hyxjE,14082
33
34
  dodopayments/resources/license_keys.py,sha256=gKN2_CcpmMRj80BTQ45AG8RhaBtr-ZhXaPUdMZq-Wo4,15926
34
35
  dodopayments/resources/licenses.py,sha256=S7cNB9k82pJBiHfdRjmNdvEfDaYUGNUigLBJPgUyg-E,13150
35
36
  dodopayments/resources/misc.py,sha256=BRPUna3lLIrJ-gMGOOQL1-xYx_oMwVDzKL4d498C7pI,5081
36
- dodopayments/resources/payments.py,sha256=-cHG8LIlbfepR2pk_ZcnM7QDhDgvyScTg7UtrXM67xI,20884
37
+ dodopayments/resources/payments.py,sha256=-eNGFfIH1y6OwJhLgu7b6WMHr7UrkJC6EZzZA6roHDk,24362
37
38
  dodopayments/resources/payouts.py,sha256=NjBQALlhMcbMDO5AdWLioSFrGdMvpqki_HydRl0XJyE,6995
38
- dodopayments/resources/refunds.py,sha256=efAmscUB09FuJgvELLira6zSXbV-h3IgRTugQ6baUDU,14734
39
- dodopayments/resources/subscriptions.py,sha256=li5qcQ9F0i0kQ9HthnQSfIsA6PKX2PZZErhjd_qWWgA,35814
39
+ dodopayments/resources/refunds.py,sha256=zHDxUmpS1zlFcbuMRDTN0P2EKO2CYtqyWYMWigflMms,15094
40
+ dodopayments/resources/subscriptions.py,sha256=MJAH0JqaC3143a938wWY5g6TQzfCahBouGceloZNLS0,34379
40
41
  dodopayments/resources/webhook_events.py,sha256=1OrWx7h4_Nb_yyl3ySCTz0QXM7LAYqVC2ipcveOvSdM,11726
41
42
  dodopayments/resources/customers/__init__.py,sha256=RIP1WYqO_PIq9b57tDaJWf9zIRxG_iFeFkOVhe3apAo,1146
42
43
  dodopayments/resources/customers/customer_portal.py,sha256=E967nei40PZfCRFDv5K0jxxVBEOFpmZsEIkseOGsUM0,7010
43
- dodopayments/resources/customers/customers.py,sha256=lfd11GpmGFSEMETRAMHP3M74LRK_ZqwX5BgAy8ProSo,18125
44
+ dodopayments/resources/customers/customers.py,sha256=mZK-Vi9jw7FFg3Wy6X4HCOz_fQPimYQApJtnv1IgOZE,17403
44
45
  dodopayments/resources/invoices/__init__.py,sha256=r81DwjI_F6B-ydnyJLSpowqPN0eTcROcPEvvzAkGPds,1054
45
46
  dodopayments/resources/invoices/invoices.py,sha256=-XZWHtZk92Wbbz5qO0DgiOCZGNKv4Slsd95feusnTnI,3761
46
47
  dodopayments/resources/invoices/payments.py,sha256=Kq32Cpzca3YuPdk8XjmF6wkRi6_BQ2aegyLf2FZ7KG8,6346
47
48
  dodopayments/resources/products/__init__.py,sha256=GKmDlI7Pw4UnnCRlnhb5WBh2Y3UYhqme7RqC35aztGo,1028
48
49
  dodopayments/resources/products/images.py,sha256=Dl-hxas2F6C30yhBifxCMy5xdLIgPSENHOhS8J6klJs,6388
49
- dodopayments/resources/products/products.py,sha256=ye95IBJpxWMUty8_y7w9C0mxY726OJCFIokp_qtn6rY,32277
50
- dodopayments/types/__init__.py,sha256=XwAOCZJcinZ2Bpmn-zSxyasOh5Kgr0LadadBjKJ0Ivs,6054
50
+ dodopayments/resources/products/products.py,sha256=gzsm2LyIUNNqTXkMa6u0xax8KbxMl-f3dJFLLRvLVjA,33139
51
+ dodopayments/types/__init__.py,sha256=Is3Sts1qwgxRbw_xtwyEG07rzLxAmRV6gufY2qiubvM,6539
51
52
  dodopayments/types/addon_cart_response_item.py,sha256=R-I8Zd2HJKn0DmXmv6Oyu4oo-oEC1-dud0Q6_yqDB7k,235
52
53
  dodopayments/types/addon_create_params.py,sha256=TxMBkJG5ZJXdLiyAzJ8YJPzMg98nGn6stXYQ7I1sH-A,731
53
54
  dodopayments/types/addon_list_params.py,sha256=M3CxvfBwcirkJeNAIaOF2c5JdRR3GpTBVAZUdlfctg0,412
@@ -57,6 +58,13 @@ dodopayments/types/addon_update_params.py,sha256=zm5c0EPqWmwZH0VwcvSRn1qYOpN3vtj
57
58
  dodopayments/types/attach_existing_customer_param.py,sha256=PspDgaJFjw415GT6cpEZ88uSuC2A8HRBECmxIVrcucg,308
58
59
  dodopayments/types/billing_address.py,sha256=Y9ovCan474-76F7g5Sx8YX0AZ5pSeSJ_kpVOycQWeVA,523
59
60
  dodopayments/types/billing_address_param.py,sha256=l4rXHmFE8UZFKW-N0UY81roCFv8g3yw6HXEPvF_op8I,651
61
+ dodopayments/types/brand_create_params.py,sha256=13_JT-ln66wgbGLhFrWyzaM9-FG3-fPRrhJnJ4CyZGs,430
62
+ dodopayments/types/brand_create_response.py,sha256=uNOLtPbUngAMGBg-0IUya9GzjZXjVyoQy6NbMDWbxXU,737
63
+ dodopayments/types/brand_list_response.py,sha256=2FcNAvk2iUSlawYAJfe8s27qJIt1yVjpBAPuVru7xEI,837
64
+ dodopayments/types/brand_retrieve_response.py,sha256=rHtzcHbijnIQR9BzBG_7Sf4l1_-3NqLNOON2Uy4DNQc,741
65
+ dodopayments/types/brand_update_images_response.py,sha256=QEt_87f6YTRqgN1Wu0NL_zJ96jl6SeUSiBLh8Hpc0pw,350
66
+ dodopayments/types/brand_update_params.py,sha256=S7qu2_IYkxxBbNuz5G12sujyW9gyte8cxw3jVsm1V4Y,468
67
+ dodopayments/types/brand_update_response.py,sha256=lVB90xYjcRxjJ1HvHpq0HWX4HW90-WyprYJA52fGVjg,737
60
68
  dodopayments/types/country_code.py,sha256=aKc-CApHuQUg8xWGKxS2pnYvwUOz7G59qv4H7NOOHEo,2690
61
69
  dodopayments/types/create_new_customer_param.py,sha256=QAl3yonE2iPWRQY3LOPwyjkLqN9lJW6TjgLJGCitG4k,599
62
70
  dodopayments/types/currency.py,sha256=Cv-x2wYCXupjzRgWHgtepd3ANbB6DrygxJVVxLpjEJY,1789
@@ -66,7 +74,6 @@ dodopayments/types/customer_limited_details.py,sha256=Q9o6uDLx2-XXMqLf5r_c4BMPJg
66
74
  dodopayments/types/customer_list_params.py,sha256=a-YOlDGSvcsY-KGIlzQnX-mquupsjazOu_HgPU9-0xs,418
67
75
  dodopayments/types/customer_portal_session.py,sha256=XwfDZMfoaiuVoJ4OmulTfLrfGurjgaCDiBKbUxA6Q08,212
68
76
  dodopayments/types/customer_request_param.py,sha256=Y0a3YTcwB1JHIgTUcLIKWfVIfZljcYCnQu7YaP-0Qsg,453
69
- dodopayments/types/customer_update_params.py,sha256=FRS6J8xSI4i6ZvZW72DIxZLm1CAYKZHnShzduGcwvu0,338
70
77
  dodopayments/types/discount.py,sha256=_EyxXQsnMGbTrHI-3DGAwnDuVmY1khrdCXAhkU71Ttg,1206
71
78
  dodopayments/types/discount_create_params.py,sha256=6eGm-CdPKVUnYKqhs6QqE_GntT7KIrfKT66LZMU5f4Q,1372
72
79
  dodopayments/types/discount_list_params.py,sha256=o0Ui9uqFxJHw-lxFLZmttW9SmJWDmEwmKf9HT_RNxAc,422
@@ -95,31 +102,31 @@ dodopayments/types/license_validate_response.py,sha256=vlSrdtsVYmQcsJpPMI-ENCf_a
95
102
  dodopayments/types/misc_list_supported_countries_response.py,sha256=Imr7f0CAjq04iikVbDSUvG1ZSYzB9Fopx8pVfVtt-zw,307
96
103
  dodopayments/types/one_time_product_cart_item.py,sha256=3l7J3KEE-SCXgArN25qKIXbIIu44Q2kxqd7jf73AGto,544
97
104
  dodopayments/types/one_time_product_cart_item_param.py,sha256=JydRYPBnLhON1pCQPRpQzKLaGJTSrDn1IRVCcMK8iAE,633
98
- dodopayments/types/payment.py,sha256=JgqPR4h2nMoVR1DKW7_Oago9IE8fV55OPcz_Y0zuoWc,3123
105
+ dodopayments/types/payment.py,sha256=Z5RTmxvwStxZkY4KEZ51iz67MpiguSlPzrNm2ur4rXI,3269
99
106
  dodopayments/types/payment_create_params.py,sha256=GlxEMIxXu7FzlMxltv2ZRyh70tnhsJdGXQIDWTKztwo,2395
100
107
  dodopayments/types/payment_create_response.py,sha256=6Evr_32yYRrMUnSTxD9QOLAgF-qAd8t85UGcLXI4BhE,1034
101
- dodopayments/types/payment_list_params.py,sha256=H1WGv-PKhLeBlBFXqenvrYNaviXYE-vBW94F_HLWkdU,1011
102
- dodopayments/types/payment_list_response.py,sha256=Bmb42Y3cEDrQxJNiXT8q7T5s7hEkdivSZMGa1hSuidY,727
108
+ dodopayments/types/payment_list_params.py,sha256=6HNPenBx7OPl_u-K5rNRH5Yf2iJxeNOBan80q3Fi8Os,1069
109
+ dodopayments/types/payment_list_response.py,sha256=6ZMiQN6AQUiWm4QW8L2HPjDFcwy8ZaXGSJCJRgWgHEM,746
110
+ dodopayments/types/payment_retrieve_line_items_response.py,sha256=pYGKPFZwJgR2WWJpB6EW8ZTZ8wTsxTts51lC2kQGGQI,485
103
111
  dodopayments/types/payout_list_params.py,sha256=FNePC2d3PqtkgF7KX8JNokuhf7hVRcYtRN1LR_wYhr4,414
104
112
  dodopayments/types/payout_list_response.py,sha256=X1MohXqnkhveBGhCEvVf81B1A0CrkQAnbtN6Bx_Gvq8,1537
105
113
  dodopayments/types/price.py,sha256=H6iWBa08ZDXZOKkHppfLaY1bSXjU2TSGSNy4E61s1V8,3021
106
114
  dodopayments/types/price_param.py,sha256=931KAoFCDfTpc90_tvJySSSjbtajOeNMOl1DIe1_lKk,3075
107
- dodopayments/types/product.py,sha256=nyerIroeIPAdKMa066wRsMjJDLj9aJFsSiI2SKeAh6w,1681
108
- dodopayments/types/product_create_params.py,sha256=yFcsIeVsueN_o4PEpB1BLxmrXzGNr6jIt0WSM_B8Xww,1307
109
- dodopayments/types/product_list_params.py,sha256=RulQvUbH9ppoixkc_bnUlZhtDdI1MfVp7zSVxHyH-34,722
115
+ dodopayments/types/product.py,sha256=A4rneuytWga2MjxofJzZ7EB55ugTne7Apn-FX4AYk3E,1700
116
+ dodopayments/types/product_create_params.py,sha256=z9JNwWG_B7B94RxyhklVSKRXWX-sjPCe3ssiKboBSLc,1418
117
+ dodopayments/types/product_list_params.py,sha256=5ggVIibipP3mwTi2m7GjRM0JpCAzfM643Py16mcdMjU,780
110
118
  dodopayments/types/product_list_response.py,sha256=ZP5xA0GKzKSzewE5nouvyNVMIQuP-W8sdkwlLWzK9UI,1792
111
- dodopayments/types/product_update_params.py,sha256=aVuxS9Ky4dsvFBhrORqOPI3ngZuM8mM9Nl5lzsw4Uqc,1797
112
- dodopayments/types/refund.py,sha256=mihewVbZxQYQXVo479YvNPmRWCooujiBQf8xmn7yf0k,869
113
- dodopayments/types/refund_create_params.py,sha256=vQsYzEerIKfHOKIxlTvYSEqcxdTNpXdLBWyAfW1SZEg,497
119
+ dodopayments/types/product_update_params.py,sha256=GYsVP5aeSjHqTFSACYyjbKDvFxvUeLquHS6w3JZN3DM,1826
120
+ dodopayments/types/refund.py,sha256=SDypA3TI34Y1cUTycikA15juiOsjdeQSw9TT9gKWK2M,940
121
+ dodopayments/types/refund_create_params.py,sha256=hua-rUlW_5ZfKaPsh8O06yPgsj0gH7ru9Rw0Rb-3moQ,912
114
122
  dodopayments/types/refund_list_params.py,sha256=oBgwuTJNhXpCOY0LKc-sItxPdOJUVYnS5KqcNqcXpgM,937
115
123
  dodopayments/types/refund_status.py,sha256=ftnBnLvslfMYcUg8t7nEvb6-m5NWyVVnNcgyVu9eZto,243
116
124
  dodopayments/types/subscription.py,sha256=8lcM-Yqn8uV2vpMABEEZPR3mT1bdCWgUTLyshuYn_B8,2238
117
- dodopayments/types/subscription_change_plan_params.py,sha256=eE_PKfkf-LwHL3H94EKxDzSpfH3NJOzH6OJez_glH60,831
118
125
  dodopayments/types/subscription_charge_params.py,sha256=pgniOwmevUGAMPZIlzdVZEPjSGZ8nDZuMzHLIhbEhaE,541
119
126
  dodopayments/types/subscription_charge_response.py,sha256=aDFuOKqqQ-_v1szx9oUT89QaeM3nvwrlAExzZhF0O-Q,228
120
127
  dodopayments/types/subscription_create_params.py,sha256=vzr2_alFQKsbt5dzBLA_WWhOZdPBrf7faf8vsXxpbNE,3259
121
- dodopayments/types/subscription_create_response.py,sha256=m1H6NhN_EihfI0MH6Dg5G3E02lD0QBnqkfP-4aLJIsE,1059
122
- dodopayments/types/subscription_list_params.py,sha256=70NjwcJrzGB6ruCIr17PNPQrhC0a8saclhbx3A6-dr8,967
128
+ dodopayments/types/subscription_create_response.py,sha256=HNyqSAzxv6BLNQB_flruNlsT22jPfrzv_0znbt9S1Aw,1128
129
+ dodopayments/types/subscription_list_params.py,sha256=yOlPLPMEbqXfuPRF43Idq3YIGaGy-TuE-2fihFdx0rY,1025
123
130
  dodopayments/types/subscription_list_response.py,sha256=Ilht8n9COFHtwmJHawfCXEaUe_tjaFNar9_fDEIljVo,2104
124
131
  dodopayments/types/subscription_status.py,sha256=dSVJW6HaTt7EwhIxOKT8dDfrT7AyQuE0LAJAKwOf4Aw,287
125
132
  dodopayments/types/subscription_update_params.py,sha256=5QJKZqz3ksbw88sE8yrPkr6kyoBH8uHbIcXdU3HtMOI,862
@@ -133,7 +140,7 @@ dodopayments/types/invoices/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekD
133
140
  dodopayments/types/products/__init__.py,sha256=-W2ETtkni8cZpsC4Eg1aRwuLg1plV1U429JFOR1U4Rw,273
134
141
  dodopayments/types/products/image_update_params.py,sha256=JmSZGjXI9uZgKdO9_7CINyIOmuphlmZr7-7P7kE-R5Q,308
135
142
  dodopayments/types/products/image_update_response.py,sha256=TcJyXjoJlONpwwR6yZdIuBTu2VNyLRZFELfstD9_V-o,273
136
- dodopayments-1.25.0.dist-info/METADATA,sha256=ZTyWsYCvc1LLy4E8-t8_3Gn5rYs09y3DQygCYRJbhe4,17404
137
- dodopayments-1.25.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
138
- dodopayments-1.25.0.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
139
- dodopayments-1.25.0.dist-info/RECORD,,
143
+ dodopayments-1.30.0.dist-info/METADATA,sha256=xKl_1ngCnL52XXkVl7hW_tB-596Ne9Aq5dBN4FKFgbA,17402
144
+ dodopayments-1.30.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
145
+ dodopayments-1.30.0.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
146
+ dodopayments-1.30.0.dist-info/RECORD,,
@@ -1,30 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import Iterable, Optional
6
- from typing_extensions import Literal, Required, TypedDict
7
-
8
- __all__ = ["SubscriptionChangePlanParams", "Addon"]
9
-
10
-
11
- class SubscriptionChangePlanParams(TypedDict, total=False):
12
- product_id: Required[str]
13
- """Unique identifier of the product to subscribe to"""
14
-
15
- proration_billing_mode: Required[Literal["prorated_immediately"]]
16
-
17
- quantity: Required[int]
18
- """Number of units to subscribe for. Must be at least 1."""
19
-
20
- addons: Optional[Iterable[Addon]]
21
- """
22
- Addons for the new plan. Note : Leaving this empty would remove any existing
23
- addons
24
- """
25
-
26
-
27
- class Addon(TypedDict, total=False):
28
- addon_id: Required[str]
29
-
30
- quantity: Required[int]