dodopayments 1.34.2__tar.gz → 1.37.0__tar.gz

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.
Files changed (206) hide show
  1. dodopayments-1.37.0/.release-please-manifest.json +3 -0
  2. {dodopayments-1.34.2 → dodopayments-1.37.0}/CHANGELOG.md +23 -0
  3. {dodopayments-1.34.2 → dodopayments-1.37.0}/PKG-INFO +1 -1
  4. {dodopayments-1.34.2 → dodopayments-1.37.0}/bin/check-release-environment +1 -1
  5. {dodopayments-1.34.2 → dodopayments-1.37.0}/pyproject.toml +1 -1
  6. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_version.py +1 -1
  7. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/addons.py +16 -12
  8. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/customers/customer_portal.py +2 -4
  9. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/customers/customers.py +12 -4
  10. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/discounts.py +16 -6
  11. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/disputes.py +35 -18
  12. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/license_keys.py +12 -12
  13. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/payments.py +67 -24
  14. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/payouts.py +4 -6
  15. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/products/images.py +2 -4
  16. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/products/products.py +46 -16
  17. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/refunds.py +14 -14
  18. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/subscriptions.py +44 -14
  19. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/webhook_events.py +42 -23
  20. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_create_params.py +2 -4
  21. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_list_params.py +2 -3
  22. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_response.py +2 -4
  23. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_update_params.py +2 -4
  24. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/billing_address.py +1 -1
  25. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/billing_address_param.py +1 -1
  26. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_list_params.py +5 -3
  27. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customers/customer_portal_create_params.py +1 -2
  28. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/discount.py +1 -0
  29. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/discount_create_params.py +1 -0
  30. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/discount_list_params.py +2 -3
  31. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/discount_update_params.py +1 -0
  32. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/dispute.py +2 -0
  33. dodopayments-1.37.0/src/dodopayments/types/dispute_list_params.py +42 -0
  34. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/dispute_list_response.py +2 -0
  35. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/dispute_retrieve_response.py +3 -0
  36. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key.py +1 -0
  37. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_list_params.py +6 -9
  38. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payment.py +11 -1
  39. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payment_create_params.py +10 -0
  40. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payment_create_response.py +6 -0
  41. dodopayments-1.37.0/src/dodopayments/types/payment_list_params.py +49 -0
  42. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payout_list_params.py +2 -3
  43. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payout_list_response.py +2 -0
  44. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/price.py +6 -3
  45. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/price_param.py +4 -0
  46. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product.py +3 -4
  47. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_create_params.py +8 -4
  48. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_list_params.py +4 -5
  49. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_list_response.py +3 -4
  50. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_update_params.py +8 -4
  51. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/products/image_update_params.py +1 -2
  52. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/refund.py +2 -0
  53. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/refund_list_params.py +8 -9
  54. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription.py +7 -0
  55. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_change_plan_params.py +1 -0
  56. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_charge_params.py +4 -0
  57. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_create_params.py +7 -0
  58. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_create_response.py +6 -0
  59. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_list_params.py +9 -10
  60. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_list_response.py +7 -0
  61. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/webhook_event_list_params.py +11 -8
  62. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_customers.py +2 -0
  63. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_disputes.py +1 -4
  64. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_webhook_events.py +48 -34
  65. dodopayments-1.34.2/.release-please-manifest.json +0 -3
  66. dodopayments-1.34.2/src/dodopayments/types/dispute_list_params.py +0 -36
  67. dodopayments-1.34.2/src/dodopayments/types/payment_list_params.py +0 -38
  68. {dodopayments-1.34.2 → dodopayments-1.37.0}/.gitignore +0 -0
  69. {dodopayments-1.34.2 → dodopayments-1.37.0}/CONTRIBUTING.md +0 -0
  70. {dodopayments-1.34.2 → dodopayments-1.37.0}/LICENSE +0 -0
  71. {dodopayments-1.34.2 → dodopayments-1.37.0}/README.md +0 -0
  72. {dodopayments-1.34.2 → dodopayments-1.37.0}/SECURITY.md +0 -0
  73. {dodopayments-1.34.2 → dodopayments-1.37.0}/api.md +0 -0
  74. {dodopayments-1.34.2 → dodopayments-1.37.0}/bin/publish-pypi +0 -0
  75. {dodopayments-1.34.2 → dodopayments-1.37.0}/examples/.keep +0 -0
  76. {dodopayments-1.34.2 → dodopayments-1.37.0}/mypy.ini +0 -0
  77. {dodopayments-1.34.2 → dodopayments-1.37.0}/noxfile.py +0 -0
  78. {dodopayments-1.34.2 → dodopayments-1.37.0}/release-please-config.json +0 -0
  79. {dodopayments-1.34.2 → dodopayments-1.37.0}/requirements-dev.lock +0 -0
  80. {dodopayments-1.34.2 → dodopayments-1.37.0}/requirements.lock +0 -0
  81. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodo_payments/lib/.keep +0 -0
  82. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/__init__.py +0 -0
  83. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_base_client.py +0 -0
  84. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_client.py +0 -0
  85. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_compat.py +0 -0
  86. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_constants.py +0 -0
  87. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_exceptions.py +0 -0
  88. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_files.py +0 -0
  89. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_models.py +0 -0
  90. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_qs.py +0 -0
  91. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_resource.py +0 -0
  92. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_response.py +0 -0
  93. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_streaming.py +0 -0
  94. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_types.py +0 -0
  95. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/__init__.py +0 -0
  96. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_logs.py +0 -0
  97. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_proxy.py +0 -0
  98. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_reflection.py +0 -0
  99. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_resources_proxy.py +0 -0
  100. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_streams.py +0 -0
  101. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_sync.py +0 -0
  102. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_transform.py +0 -0
  103. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_typing.py +0 -0
  104. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/_utils/_utils.py +0 -0
  105. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/lib/.keep +0 -0
  106. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/pagination.py +0 -0
  107. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/py.typed +0 -0
  108. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/__init__.py +0 -0
  109. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/brands.py +0 -0
  110. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/customers/__init__.py +0 -0
  111. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/invoices/__init__.py +0 -0
  112. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/invoices/invoices.py +0 -0
  113. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/invoices/payments.py +0 -0
  114. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/license_key_instances.py +0 -0
  115. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/licenses.py +0 -0
  116. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/misc.py +0 -0
  117. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/resources/products/__init__.py +0 -0
  118. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/__init__.py +0 -0
  119. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_cart_response_item.py +0 -0
  120. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/addon_update_images_response.py +0 -0
  121. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/attach_existing_customer_param.py +0 -0
  122. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_create_params.py +0 -0
  123. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_create_response.py +0 -0
  124. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_list_response.py +0 -0
  125. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_retrieve_response.py +0 -0
  126. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_update_images_response.py +0 -0
  127. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_update_params.py +0 -0
  128. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/brand_update_response.py +0 -0
  129. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/country_code.py +0 -0
  130. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/create_new_customer_param.py +0 -0
  131. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/currency.py +0 -0
  132. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer.py +0 -0
  133. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_create_params.py +0 -0
  134. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_limited_details.py +0 -0
  135. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_portal_session.py +0 -0
  136. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_request_param.py +0 -0
  137. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customer_update_params.py +0 -0
  138. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/customers/__init__.py +0 -0
  139. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/discount_type.py +0 -0
  140. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/dispute_stage.py +0 -0
  141. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/dispute_status.py +0 -0
  142. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/intent_status.py +0 -0
  143. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/invoices/__init__.py +0 -0
  144. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_activate_params.py +0 -0
  145. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_deactivate_params.py +0 -0
  146. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_duration.py +0 -0
  147. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_duration_param.py +0 -0
  148. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_instance.py +0 -0
  149. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_instance_list_params.py +0 -0
  150. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_instance_update_params.py +0 -0
  151. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_status.py +0 -0
  152. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_key_update_params.py +0 -0
  153. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_validate_params.py +0 -0
  154. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/license_validate_response.py +0 -0
  155. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/misc_list_supported_countries_response.py +0 -0
  156. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/one_time_product_cart_item.py +0 -0
  157. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/one_time_product_cart_item_param.py +0 -0
  158. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payment_list_response.py +0 -0
  159. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/payment_retrieve_line_items_response.py +0 -0
  160. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_update_files_params.py +0 -0
  161. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/product_update_files_response.py +0 -0
  162. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/products/__init__.py +0 -0
  163. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/products/image_update_response.py +0 -0
  164. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/refund_create_params.py +0 -0
  165. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/refund_status.py +0 -0
  166. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_charge_response.py +0 -0
  167. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_status.py +0 -0
  168. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/subscription_update_params.py +0 -0
  169. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/tax_category.py +0 -0
  170. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/time_interval.py +0 -0
  171. {dodopayments-1.34.2 → dodopayments-1.37.0}/src/dodopayments/types/webhook_event.py +0 -0
  172. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/__init__.py +0 -0
  173. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/__init__.py +0 -0
  174. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/customers/__init__.py +0 -0
  175. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/customers/test_customer_portal.py +0 -0
  176. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/invoices/__init__.py +0 -0
  177. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/invoices/test_payments.py +0 -0
  178. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/products/__init__.py +0 -0
  179. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/products/test_images.py +0 -0
  180. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_addons.py +0 -0
  181. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_brands.py +0 -0
  182. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_discounts.py +0 -0
  183. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_license_key_instances.py +0 -0
  184. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_license_keys.py +0 -0
  185. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_licenses.py +0 -0
  186. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_misc.py +0 -0
  187. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_payments.py +0 -0
  188. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_payouts.py +0 -0
  189. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_products.py +0 -0
  190. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_refunds.py +0 -0
  191. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/api_resources/test_subscriptions.py +0 -0
  192. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/conftest.py +0 -0
  193. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/sample_file.txt +0 -0
  194. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_client.py +0 -0
  195. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_deepcopy.py +0 -0
  196. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_extract_files.py +0 -0
  197. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_files.py +0 -0
  198. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_models.py +0 -0
  199. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_qs.py +0 -0
  200. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_required_args.py +0 -0
  201. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_response.py +0 -0
  202. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_streaming.py +0 -0
  203. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_transform.py +0 -0
  204. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_utils/test_proxy.py +0 -0
  205. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/test_utils/test_typing.py +0 -0
  206. {dodopayments-1.34.2 → dodopayments-1.37.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.37.0"
3
+ }
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.0 (2025-07-02)
4
+
5
+ Full Changelog: [v1.34.3...v1.37.0](https://github.com/dodopayments/dodopayments-python/compare/v1.34.3...v1.37.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** updated openapi spec for v1.37.0 ([9e301cf](https://github.com/dodopayments/dodopayments-python/commit/9e301cfffd01bfcef66fe6a97b733ba7b7996c8d))
10
+
11
+ ## 1.34.3 (2025-07-02)
12
+
13
+ Full Changelog: [v1.34.2...v1.34.3](https://github.com/dodopayments/dodopayments-python/compare/v1.34.2...v1.34.3)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **ci:** correct conditional ([09abb22](https://github.com/dodopayments/dodopayments-python/commit/09abb22939f29c6d3b96ecd5a64bb0facc40db90))
18
+ * **ci:** release-doctor — report correct token name ([84b7ffc](https://github.com/dodopayments/dodopayments-python/commit/84b7ffca299ebd7888f63d34ac32130c68c2b448))
19
+
20
+
21
+ ### Chores
22
+
23
+ * **ci:** change upload type ([ebc5951](https://github.com/dodopayments/dodopayments-python/commit/ebc59514858e3782bd07305b8b16a1365bbd346d))
24
+ * **ci:** only run for pushes and fork pull requests ([0e6b873](https://github.com/dodopayments/dodopayments-python/commit/0e6b873a9d03b3860f2402a04cfe72b6c54d3fef))
25
+
3
26
  ## 1.34.2 (2025-06-24)
4
27
 
5
28
  Full Changelog: [v1.34.1...v1.34.2](https://github.com/dodopayments/dodopayments-python/compare/v1.34.1...v1.34.2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dodopayments
3
- Version: 1.34.2
3
+ Version: 1.37.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
@@ -3,7 +3,7 @@
3
3
  errors=()
4
4
 
5
5
  if [ -z "${PYPI_TOKEN}" ]; then
6
- errors+=("The DODO_PAYMENTS_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
6
+ errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7
7
  fi
8
8
 
9
9
  lenErrors=${#errors[@]}
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dodopayments"
3
- version = "1.34.2"
3
+ version = "1.37.0"
4
4
  description = "The official Python library for the Dodo Payments API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "dodopayments"
4
- __version__ = "1.34.2" # x-release-please-version
4
+ __version__ = "1.37.0" # x-release-please-version
@@ -64,12 +64,13 @@ class AddonsResource(SyncAPIResource):
64
64
  ) -> AddonResponse:
65
65
  """
66
66
  Args:
67
+ currency: The currency of the Addon
68
+
67
69
  name: Name of the Addon
68
70
 
69
71
  price: Amount of the addon
70
72
 
71
- tax_category: Represents the different categories of taxation applicable to various products
72
- and services.
73
+ tax_category: Tax category applied to this Addon
73
74
 
74
75
  description: Optional description of the Addon
75
76
 
@@ -149,6 +150,8 @@ class AddonsResource(SyncAPIResource):
149
150
  ) -> AddonResponse:
150
151
  """
151
152
  Args:
153
+ currency: The currency of the Addon
154
+
152
155
  description: Description of the Addon, optional and must be at most 1000 characters.
153
156
 
154
157
  image_id: Addon image id after its uploaded to S3
@@ -157,8 +160,7 @@ class AddonsResource(SyncAPIResource):
157
160
 
158
161
  price: Amount of the addon
159
162
 
160
- tax_category: Represents the different categories of taxation applicable to various products
161
- and services.
163
+ tax_category: Tax category of the Addon.
162
164
 
163
165
  extra_headers: Send extra headers
164
166
 
@@ -192,8 +194,8 @@ class AddonsResource(SyncAPIResource):
192
194
  def list(
193
195
  self,
194
196
  *,
195
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
196
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
197
+ page_number: int | NotGiven = NOT_GIVEN,
198
+ page_size: int | NotGiven = NOT_GIVEN,
197
199
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
198
200
  # The extra values given here take precedence over values defined on the client or passed to this method.
199
201
  extra_headers: Headers | None = None,
@@ -303,12 +305,13 @@ class AsyncAddonsResource(AsyncAPIResource):
303
305
  ) -> AddonResponse:
304
306
  """
305
307
  Args:
308
+ currency: The currency of the Addon
309
+
306
310
  name: Name of the Addon
307
311
 
308
312
  price: Amount of the addon
309
313
 
310
- tax_category: Represents the different categories of taxation applicable to various products
311
- and services.
314
+ tax_category: Tax category applied to this Addon
312
315
 
313
316
  description: Optional description of the Addon
314
317
 
@@ -388,6 +391,8 @@ class AsyncAddonsResource(AsyncAPIResource):
388
391
  ) -> AddonResponse:
389
392
  """
390
393
  Args:
394
+ currency: The currency of the Addon
395
+
391
396
  description: Description of the Addon, optional and must be at most 1000 characters.
392
397
 
393
398
  image_id: Addon image id after its uploaded to S3
@@ -396,8 +401,7 @@ class AsyncAddonsResource(AsyncAPIResource):
396
401
 
397
402
  price: Amount of the addon
398
403
 
399
- tax_category: Represents the different categories of taxation applicable to various products
400
- and services.
404
+ tax_category: Tax category of the Addon.
401
405
 
402
406
  extra_headers: Send extra headers
403
407
 
@@ -431,8 +435,8 @@ class AsyncAddonsResource(AsyncAPIResource):
431
435
  def list(
432
436
  self,
433
437
  *,
434
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
435
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
438
+ page_number: int | NotGiven = NOT_GIVEN,
439
+ page_size: int | NotGiven = NOT_GIVEN,
436
440
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
437
441
  # The extra values given here take precedence over values defined on the client or passed to this method.
438
442
  extra_headers: Headers | None = None,
@@ -2,8 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
6
-
7
5
  import httpx
8
6
 
9
7
  from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -47,7 +45,7 @@ class CustomerPortalResource(SyncAPIResource):
47
45
  self,
48
46
  customer_id: str,
49
47
  *,
50
- send_email: Optional[bool] | NotGiven = NOT_GIVEN,
48
+ send_email: bool | NotGiven = NOT_GIVEN,
51
49
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
50
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
51
  extra_headers: Headers | None = None,
@@ -108,7 +106,7 @@ class AsyncCustomerPortalResource(AsyncAPIResource):
108
106
  self,
109
107
  customer_id: str,
110
108
  *,
111
- send_email: Optional[bool] | NotGiven = NOT_GIVEN,
109
+ send_email: bool | NotGiven = NOT_GIVEN,
112
110
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
113
111
  # The extra values given here take precedence over values defined on the client or passed to this method.
114
112
  extra_headers: Headers | None = None,
@@ -169,8 +169,9 @@ class CustomersResource(SyncAPIResource):
169
169
  def list(
170
170
  self,
171
171
  *,
172
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
173
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
172
+ email: str | NotGiven = NOT_GIVEN,
173
+ page_number: int | NotGiven = NOT_GIVEN,
174
+ page_size: int | NotGiven = NOT_GIVEN,
174
175
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
175
176
  # The extra values given here take precedence over values defined on the client or passed to this method.
176
177
  extra_headers: Headers | None = None,
@@ -180,6 +181,8 @@ class CustomersResource(SyncAPIResource):
180
181
  ) -> SyncDefaultPageNumberPagination[Customer]:
181
182
  """
182
183
  Args:
184
+ email: Filter by customer email
185
+
183
186
  page_number: Page number default is 0
184
187
 
185
188
  page_size: Page size default is 10 max is 100
@@ -202,6 +205,7 @@ class CustomersResource(SyncAPIResource):
202
205
  timeout=timeout,
203
206
  query=maybe_transform(
204
207
  {
208
+ "email": email,
205
209
  "page_number": page_number,
206
210
  "page_size": page_size,
207
211
  },
@@ -349,8 +353,9 @@ class AsyncCustomersResource(AsyncAPIResource):
349
353
  def list(
350
354
  self,
351
355
  *,
352
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
353
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
356
+ email: str | NotGiven = NOT_GIVEN,
357
+ page_number: int | NotGiven = NOT_GIVEN,
358
+ page_size: int | NotGiven = NOT_GIVEN,
354
359
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
355
360
  # The extra values given here take precedence over values defined on the client or passed to this method.
356
361
  extra_headers: Headers | None = None,
@@ -360,6 +365,8 @@ class AsyncCustomersResource(AsyncAPIResource):
360
365
  ) -> AsyncPaginator[Customer, AsyncDefaultPageNumberPagination[Customer]]:
361
366
  """
362
367
  Args:
368
+ email: Filter by customer email
369
+
363
370
  page_number: Page number default is 0
364
371
 
365
372
  page_size: Page size default is 10 max is 100
@@ -382,6 +389,7 @@ class AsyncCustomersResource(AsyncAPIResource):
382
389
  timeout=timeout,
383
390
  query=maybe_transform(
384
391
  {
392
+ "email": email,
385
393
  "page_number": page_number,
386
394
  "page_size": page_size,
387
395
  },
@@ -64,7 +64,8 @@ class DiscountsResource(SyncAPIResource):
64
64
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
65
65
  ) -> Discount:
66
66
  """
67
- If `code` is omitted or empty, a random 16-char uppercase code is generated.
67
+ POST /discounts If `code` is omitted or empty, a random 16-char uppercase code
68
+ is generated.
68
69
 
69
70
  Args:
70
71
  amount: The discount amount.
@@ -76,6 +77,8 @@ class DiscountsResource(SyncAPIResource):
76
77
 
77
78
  Must be at least 1.
78
79
 
80
+ type: The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`).
81
+
79
82
  code: Optionally supply a code (will be uppercased).
80
83
 
81
84
  - Must be at least 3 characters if provided.
@@ -184,6 +187,8 @@ class DiscountsResource(SyncAPIResource):
184
187
  restricted_to: If present, replaces all restricted product IDs with this new set. To remove all
185
188
  restrictions, send empty array
186
189
 
190
+ type: If present, update the discount type.
191
+
187
192
  extra_headers: Send extra headers
188
193
 
189
194
  extra_query: Add additional query parameters to the request
@@ -217,8 +222,8 @@ class DiscountsResource(SyncAPIResource):
217
222
  def list(
218
223
  self,
219
224
  *,
220
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
221
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
225
+ page_number: int | NotGiven = NOT_GIVEN,
226
+ page_size: int | NotGiven = NOT_GIVEN,
222
227
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
223
228
  # The extra values given here take precedence over values defined on the client or passed to this method.
224
229
  extra_headers: Headers | None = None,
@@ -334,7 +339,8 @@ class AsyncDiscountsResource(AsyncAPIResource):
334
339
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
335
340
  ) -> Discount:
336
341
  """
337
- If `code` is omitted or empty, a random 16-char uppercase code is generated.
342
+ POST /discounts If `code` is omitted or empty, a random 16-char uppercase code
343
+ is generated.
338
344
 
339
345
  Args:
340
346
  amount: The discount amount.
@@ -346,6 +352,8 @@ class AsyncDiscountsResource(AsyncAPIResource):
346
352
 
347
353
  Must be at least 1.
348
354
 
355
+ type: The discount type (e.g. `percentage`, `flat`, or `flat_per_unit`).
356
+
349
357
  code: Optionally supply a code (will be uppercased).
350
358
 
351
359
  - Must be at least 3 characters if provided.
@@ -454,6 +462,8 @@ class AsyncDiscountsResource(AsyncAPIResource):
454
462
  restricted_to: If present, replaces all restricted product IDs with this new set. To remove all
455
463
  restrictions, send empty array
456
464
 
465
+ type: If present, update the discount type.
466
+
457
467
  extra_headers: Send extra headers
458
468
 
459
469
  extra_query: Add additional query parameters to the request
@@ -487,8 +497,8 @@ class AsyncDiscountsResource(AsyncAPIResource):
487
497
  def list(
488
498
  self,
489
499
  *,
490
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
491
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
500
+ page_number: int | NotGiven = NOT_GIVEN,
501
+ page_size: int | NotGiven = NOT_GIVEN,
492
502
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
493
503
  # The extra values given here take precedence over values defined on the client or passed to this method.
494
504
  extra_headers: Headers | None = None,
@@ -2,12 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union, Optional
5
+ from typing import Union
6
6
  from datetime import datetime
7
+ from typing_extensions import Literal
7
8
 
8
9
  import httpx
9
10
 
10
- from ..types import DisputeStage, DisputeStatus, dispute_list_params
11
+ from ..types import dispute_list_params
11
12
  from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
12
13
  from .._utils import maybe_transform
13
14
  from .._compat import cached_property
@@ -20,8 +21,6 @@ from .._response import (
20
21
  )
21
22
  from ..pagination import SyncDefaultPageNumberPagination, AsyncDefaultPageNumberPagination
22
23
  from .._base_client import AsyncPaginator, make_request_options
23
- from ..types.dispute_stage import DisputeStage
24
- from ..types.dispute_status import DisputeStatus
25
24
  from ..types.dispute_list_response import DisputeListResponse
26
25
  from ..types.dispute_retrieve_response import DisputeRetrieveResponse
27
26
 
@@ -82,13 +81,22 @@ class DisputesResource(SyncAPIResource):
82
81
  def list(
83
82
  self,
84
83
  *,
85
- created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
86
- created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
87
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
88
- dispute_stage: Optional[DisputeStage] | NotGiven = NOT_GIVEN,
89
- dispute_status: Optional[DisputeStatus] | NotGiven = NOT_GIVEN,
90
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
91
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
84
+ created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
85
+ created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
86
+ customer_id: str | NotGiven = NOT_GIVEN,
87
+ dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | NotGiven = NOT_GIVEN,
88
+ dispute_status: Literal[
89
+ "dispute_opened",
90
+ "dispute_expired",
91
+ "dispute_accepted",
92
+ "dispute_cancelled",
93
+ "dispute_challenged",
94
+ "dispute_won",
95
+ "dispute_lost",
96
+ ]
97
+ | NotGiven = NOT_GIVEN,
98
+ page_number: int | NotGiven = NOT_GIVEN,
99
+ page_size: int | NotGiven = NOT_GIVEN,
92
100
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
93
101
  # The extra values given here take precedence over values defined on the client or passed to this method.
94
102
  extra_headers: Headers | None = None,
@@ -199,13 +207,22 @@ class AsyncDisputesResource(AsyncAPIResource):
199
207
  def list(
200
208
  self,
201
209
  *,
202
- created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
203
- created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
204
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
205
- dispute_stage: Optional[DisputeStage] | NotGiven = NOT_GIVEN,
206
- dispute_status: Optional[DisputeStatus] | NotGiven = NOT_GIVEN,
207
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
208
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
210
+ created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
211
+ created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
212
+ customer_id: str | NotGiven = NOT_GIVEN,
213
+ dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | NotGiven = NOT_GIVEN,
214
+ dispute_status: Literal[
215
+ "dispute_opened",
216
+ "dispute_expired",
217
+ "dispute_accepted",
218
+ "dispute_cancelled",
219
+ "dispute_challenged",
220
+ "dispute_won",
221
+ "dispute_lost",
222
+ ]
223
+ | NotGiven = NOT_GIVEN,
224
+ page_number: int | NotGiven = NOT_GIVEN,
225
+ page_size: int | NotGiven = NOT_GIVEN,
209
226
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
210
227
  # The extra values given here take precedence over values defined on the client or passed to this method.
211
228
  extra_headers: Headers | None = None,
@@ -4,10 +4,11 @@ from __future__ import annotations
4
4
 
5
5
  from typing import Union, Optional
6
6
  from datetime import datetime
7
+ from typing_extensions import Literal
7
8
 
8
9
  import httpx
9
10
 
10
- from ..types import LicenseKeyStatus, license_key_list_params, license_key_update_params
11
+ from ..types import license_key_list_params, license_key_update_params
11
12
  from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
12
13
  from .._utils import maybe_transform, async_maybe_transform
13
14
  from .._compat import cached_property
@@ -21,7 +22,6 @@ from .._response import (
21
22
  from ..pagination import SyncDefaultPageNumberPagination, AsyncDefaultPageNumberPagination
22
23
  from .._base_client import AsyncPaginator, make_request_options
23
24
  from ..types.license_key import LicenseKey
24
- from ..types.license_key_status import LicenseKeyStatus
25
25
 
26
26
  __all__ = ["LicenseKeysResource", "AsyncLicenseKeysResource"]
27
27
 
@@ -132,11 +132,11 @@ class LicenseKeysResource(SyncAPIResource):
132
132
  def list(
133
133
  self,
134
134
  *,
135
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
136
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
137
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
138
- product_id: Optional[str] | NotGiven = NOT_GIVEN,
139
- status: Optional[LicenseKeyStatus] | NotGiven = NOT_GIVEN,
135
+ customer_id: str | NotGiven = NOT_GIVEN,
136
+ page_number: int | NotGiven = NOT_GIVEN,
137
+ page_size: int | NotGiven = NOT_GIVEN,
138
+ product_id: str | NotGiven = NOT_GIVEN,
139
+ status: Literal["active", "expired", "disabled"] | NotGiven = NOT_GIVEN,
140
140
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141
141
  # The extra values given here take precedence over values defined on the client or passed to this method.
142
142
  extra_headers: Headers | None = None,
@@ -293,11 +293,11 @@ class AsyncLicenseKeysResource(AsyncAPIResource):
293
293
  def list(
294
294
  self,
295
295
  *,
296
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
297
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
298
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
299
- product_id: Optional[str] | NotGiven = NOT_GIVEN,
300
- status: Optional[LicenseKeyStatus] | NotGiven = NOT_GIVEN,
296
+ customer_id: str | NotGiven = NOT_GIVEN,
297
+ page_number: int | NotGiven = NOT_GIVEN,
298
+ page_size: int | NotGiven = NOT_GIVEN,
299
+ product_id: str | NotGiven = NOT_GIVEN,
300
+ status: Literal["active", "expired", "disabled"] | NotGiven = NOT_GIVEN,
301
301
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302
302
  # The extra values given here take precedence over values defined on the client or passed to this method.
303
303
  extra_headers: Headers | None = None,
@@ -8,7 +8,7 @@ from typing_extensions import Literal
8
8
 
9
9
  import httpx
10
10
 
11
- from ..types import Currency, IntentStatus, payment_list_params, payment_create_params
11
+ from ..types import Currency, payment_list_params, payment_create_params
12
12
  from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
13
13
  from .._utils import maybe_transform, async_maybe_transform
14
14
  from .._compat import cached_property
@@ -23,7 +23,6 @@ from ..pagination import SyncDefaultPageNumberPagination, AsyncDefaultPageNumber
23
23
  from .._base_client import AsyncPaginator, make_request_options
24
24
  from ..types.payment import Payment
25
25
  from ..types.currency import Currency
26
- from ..types.intent_status import IntentStatus
27
26
  from ..types.billing_address_param import BillingAddressParam
28
27
  from ..types.payment_list_response import PaymentListResponse
29
28
  from ..types.customer_request_param import CustomerRequestParam
@@ -99,10 +98,13 @@ class PaymentsResource(SyncAPIResource):
99
98
  extra_body: Body | None = None,
100
99
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
101
100
  ) -> PaymentCreateResponse:
102
- """Args:
103
- product_cart: List of products in the cart.
101
+ """
102
+ Args:
103
+ billing: Billing address details for the payment
104
104
 
105
- Must contain at least 1 and at most 100 items.
105
+ customer: Customer information for the payment
106
+
107
+ product_cart: List of products in the cart. Must contain at least 1 and at most 100 items.
106
108
 
107
109
  allowed_payment_method_types: List of payment methods allowed during checkout.
108
110
 
@@ -111,8 +113,14 @@ class PaymentsResource(SyncAPIResource):
111
113
  Availability still depends on other factors (e.g., customer location, merchant
112
114
  settings).
113
115
 
116
+ billing_currency: Fix the currency in which the end customer is billed. If Dodo Payments cannot
117
+ support that currency for this transaction, it will not proceed
118
+
114
119
  discount_code: Discount Code to apply to the transaction
115
120
 
121
+ metadata: Additional metadata associated with the payment. Defaults to empty if not
122
+ provided.
123
+
116
124
  payment_link: Whether to generate a payment link. Defaults to false if not specified.
117
125
 
118
126
  return_url: Optional URL to redirect the customer after payment. Must be a valid URL if
@@ -189,14 +197,27 @@ class PaymentsResource(SyncAPIResource):
189
197
  def list(
190
198
  self,
191
199
  *,
192
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
193
- created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
194
- created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
195
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
196
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
197
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
198
- status: Optional[IntentStatus] | NotGiven = NOT_GIVEN,
199
- subscription_id: Optional[str] | NotGiven = NOT_GIVEN,
200
+ brand_id: str | NotGiven = NOT_GIVEN,
201
+ created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
202
+ created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
203
+ customer_id: str | NotGiven = NOT_GIVEN,
204
+ page_number: int | NotGiven = NOT_GIVEN,
205
+ page_size: int | NotGiven = NOT_GIVEN,
206
+ status: Literal[
207
+ "succeeded",
208
+ "failed",
209
+ "cancelled",
210
+ "processing",
211
+ "requires_customer_action",
212
+ "requires_merchant_action",
213
+ "requires_payment_method",
214
+ "requires_confirmation",
215
+ "requires_capture",
216
+ "partially_captured",
217
+ "partially_captured_and_capturable",
218
+ ]
219
+ | NotGiven = NOT_GIVEN,
220
+ subscription_id: str | NotGiven = NOT_GIVEN,
200
221
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
201
222
  # The extra values given here take precedence over values defined on the client or passed to this method.
202
223
  extra_headers: Headers | None = None,
@@ -352,10 +373,13 @@ class AsyncPaymentsResource(AsyncAPIResource):
352
373
  extra_body: Body | None = None,
353
374
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
354
375
  ) -> PaymentCreateResponse:
355
- """Args:
356
- product_cart: List of products in the cart.
376
+ """
377
+ Args:
378
+ billing: Billing address details for the payment
357
379
 
358
- Must contain at least 1 and at most 100 items.
380
+ customer: Customer information for the payment
381
+
382
+ product_cart: List of products in the cart. Must contain at least 1 and at most 100 items.
359
383
 
360
384
  allowed_payment_method_types: List of payment methods allowed during checkout.
361
385
 
@@ -364,8 +388,14 @@ class AsyncPaymentsResource(AsyncAPIResource):
364
388
  Availability still depends on other factors (e.g., customer location, merchant
365
389
  settings).
366
390
 
391
+ billing_currency: Fix the currency in which the end customer is billed. If Dodo Payments cannot
392
+ support that currency for this transaction, it will not proceed
393
+
367
394
  discount_code: Discount Code to apply to the transaction
368
395
 
396
+ metadata: Additional metadata associated with the payment. Defaults to empty if not
397
+ provided.
398
+
369
399
  payment_link: Whether to generate a payment link. Defaults to false if not specified.
370
400
 
371
401
  return_url: Optional URL to redirect the customer after payment. Must be a valid URL if
@@ -442,14 +472,27 @@ class AsyncPaymentsResource(AsyncAPIResource):
442
472
  def list(
443
473
  self,
444
474
  *,
445
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
446
- created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
447
- created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
448
- customer_id: Optional[str] | NotGiven = NOT_GIVEN,
449
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
450
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
451
- status: Optional[IntentStatus] | NotGiven = NOT_GIVEN,
452
- subscription_id: Optional[str] | NotGiven = NOT_GIVEN,
475
+ brand_id: str | NotGiven = NOT_GIVEN,
476
+ created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
477
+ created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
478
+ customer_id: str | NotGiven = NOT_GIVEN,
479
+ page_number: int | NotGiven = NOT_GIVEN,
480
+ page_size: int | NotGiven = NOT_GIVEN,
481
+ status: Literal[
482
+ "succeeded",
483
+ "failed",
484
+ "cancelled",
485
+ "processing",
486
+ "requires_customer_action",
487
+ "requires_merchant_action",
488
+ "requires_payment_method",
489
+ "requires_confirmation",
490
+ "requires_capture",
491
+ "partially_captured",
492
+ "partially_captured_and_capturable",
493
+ ]
494
+ | NotGiven = NOT_GIVEN,
495
+ subscription_id: str | NotGiven = NOT_GIVEN,
453
496
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
454
497
  # The extra values given here take precedence over values defined on the client or passed to this method.
455
498
  extra_headers: Headers | None = None,
@@ -2,8 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
6
-
7
5
  import httpx
8
6
 
9
7
  from ..types import payout_list_params
@@ -47,8 +45,8 @@ class PayoutsResource(SyncAPIResource):
47
45
  def list(
48
46
  self,
49
47
  *,
50
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
51
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
48
+ page_number: int | NotGiven = NOT_GIVEN,
49
+ page_size: int | NotGiven = NOT_GIVEN,
52
50
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
51
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
52
  extra_headers: Headers | None = None,
@@ -113,8 +111,8 @@ class AsyncPayoutsResource(AsyncAPIResource):
113
111
  def list(
114
112
  self,
115
113
  *,
116
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
117
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
114
+ page_number: int | NotGiven = NOT_GIVEN,
115
+ page_size: int | NotGiven = NOT_GIVEN,
118
116
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
119
117
  # The extra values given here take precedence over values defined on the client or passed to this method.
120
118
  extra_headers: Headers | None = None,