dodopayments 1.43.0__tar.gz → 1.44.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.

Potentially problematic release.


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

Files changed (205) hide show
  1. {dodopayments-1.43.0 → dodopayments-1.44.0}/.gitignore +0 -1
  2. dodopayments-1.44.0/.release-please-manifest.json +3 -0
  3. {dodopayments-1.43.0 → dodopayments-1.44.0}/CHANGELOG.md +17 -0
  4. {dodopayments-1.43.0 → dodopayments-1.44.0}/PKG-INFO +1 -1
  5. {dodopayments-1.43.0 → dodopayments-1.44.0}/api.md +1 -6
  6. {dodopayments-1.43.0 → dodopayments-1.44.0}/pyproject.toml +1 -1
  7. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_base_client.py +4 -1
  8. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_client.py +0 -9
  9. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_files.py +4 -4
  10. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_version.py +1 -1
  11. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/__init__.py +0 -14
  12. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/subscriptions.py +4 -6
  13. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/__init__.py +0 -2
  14. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_change_plan_params.py +1 -1
  15. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_list_params.py +1 -1
  16. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_status.py +1 -1
  17. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/webhook_event_type.py +0 -1
  18. dodopayments-1.43.0/.release-please-manifest.json +0 -3
  19. dodopayments-1.43.0/src/dodopayments/resources/webhook_events.py +0 -326
  20. dodopayments-1.43.0/src/dodopayments/types/webhook_event.py +0 -26
  21. dodopayments-1.43.0/src/dodopayments/types/webhook_event_list_params.py +0 -39
  22. dodopayments-1.43.0/tests/api_resources/test_webhook_events.py +0 -192
  23. {dodopayments-1.43.0 → dodopayments-1.44.0}/CONTRIBUTING.md +0 -0
  24. {dodopayments-1.43.0 → dodopayments-1.44.0}/LICENSE +0 -0
  25. {dodopayments-1.43.0 → dodopayments-1.44.0}/README.md +0 -0
  26. {dodopayments-1.43.0 → dodopayments-1.44.0}/SECURITY.md +0 -0
  27. {dodopayments-1.43.0 → dodopayments-1.44.0}/bin/check-release-environment +0 -0
  28. {dodopayments-1.43.0 → dodopayments-1.44.0}/bin/publish-pypi +0 -0
  29. {dodopayments-1.43.0 → dodopayments-1.44.0}/examples/.keep +0 -0
  30. {dodopayments-1.43.0 → dodopayments-1.44.0}/mypy.ini +0 -0
  31. {dodopayments-1.43.0 → dodopayments-1.44.0}/noxfile.py +0 -0
  32. {dodopayments-1.43.0 → dodopayments-1.44.0}/release-please-config.json +0 -0
  33. {dodopayments-1.43.0 → dodopayments-1.44.0}/requirements-dev.lock +0 -0
  34. {dodopayments-1.43.0 → dodopayments-1.44.0}/requirements.lock +0 -0
  35. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodo_payments/lib/.keep +0 -0
  36. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/__init__.py +0 -0
  37. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_compat.py +0 -0
  38. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_constants.py +0 -0
  39. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_exceptions.py +0 -0
  40. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_models.py +0 -0
  41. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_qs.py +0 -0
  42. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_resource.py +0 -0
  43. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_response.py +0 -0
  44. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_streaming.py +0 -0
  45. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_types.py +0 -0
  46. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/__init__.py +0 -0
  47. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_logs.py +0 -0
  48. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_proxy.py +0 -0
  49. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_reflection.py +0 -0
  50. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_resources_proxy.py +0 -0
  51. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_streams.py +0 -0
  52. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_sync.py +0 -0
  53. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_transform.py +0 -0
  54. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_typing.py +0 -0
  55. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/_utils/_utils.py +0 -0
  56. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/lib/.keep +0 -0
  57. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/pagination.py +0 -0
  58. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/py.typed +0 -0
  59. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/addons.py +0 -0
  60. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/brands.py +0 -0
  61. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/customers/__init__.py +0 -0
  62. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/customers/customer_portal.py +0 -0
  63. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/customers/customers.py +0 -0
  64. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/discounts.py +0 -0
  65. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/disputes.py +0 -0
  66. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/__init__.py +0 -0
  67. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/invoices.py +0 -0
  68. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/payments.py +0 -0
  69. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/license_key_instances.py +0 -0
  70. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/license_keys.py +0 -0
  71. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/licenses.py +0 -0
  72. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/misc.py +0 -0
  73. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/payments.py +0 -0
  74. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/payouts.py +0 -0
  75. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/products/__init__.py +0 -0
  76. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/products/images.py +0 -0
  77. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/products/products.py +0 -0
  78. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/resources/refunds.py +0 -0
  79. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_cart_response_item.py +0 -0
  80. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_create_params.py +0 -0
  81. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_list_params.py +0 -0
  82. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_response.py +0 -0
  83. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_update_images_response.py +0 -0
  84. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/addon_update_params.py +0 -0
  85. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/attach_addon_param.py +0 -0
  86. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/attach_existing_customer_param.py +0 -0
  87. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/billing_address.py +0 -0
  88. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/billing_address_param.py +0 -0
  89. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/brand.py +0 -0
  90. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/brand_create_params.py +0 -0
  91. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/brand_list_response.py +0 -0
  92. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/brand_update_images_response.py +0 -0
  93. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/brand_update_params.py +0 -0
  94. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/country_code.py +0 -0
  95. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/create_new_customer_param.py +0 -0
  96. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/currency.py +0 -0
  97. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer.py +0 -0
  98. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_create_params.py +0 -0
  99. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_limited_details.py +0 -0
  100. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_list_params.py +0 -0
  101. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_portal_session.py +0 -0
  102. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_request_param.py +0 -0
  103. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customer_update_params.py +0 -0
  104. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customers/__init__.py +0 -0
  105. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/customers/customer_portal_create_params.py +0 -0
  106. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/discount.py +0 -0
  107. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/discount_create_params.py +0 -0
  108. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/discount_list_params.py +0 -0
  109. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/discount_type.py +0 -0
  110. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/discount_update_params.py +0 -0
  111. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/dispute.py +0 -0
  112. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/dispute_list_params.py +0 -0
  113. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/dispute_list_response.py +0 -0
  114. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/dispute_stage.py +0 -0
  115. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/dispute_status.py +0 -0
  116. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/get_dispute.py +0 -0
  117. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/intent_status.py +0 -0
  118. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/invoices/__init__.py +0 -0
  119. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_activate_params.py +0 -0
  120. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_deactivate_params.py +0 -0
  121. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key.py +0 -0
  122. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_duration.py +0 -0
  123. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_duration_param.py +0 -0
  124. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance.py +0 -0
  125. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance_list_params.py +0 -0
  126. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance_update_params.py +0 -0
  127. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_list_params.py +0 -0
  128. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_status.py +0 -0
  129. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_key_update_params.py +0 -0
  130. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_validate_params.py +0 -0
  131. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/license_validate_response.py +0 -0
  132. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/misc_list_supported_countries_response.py +0 -0
  133. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/one_time_product_cart_item.py +0 -0
  134. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/one_time_product_cart_item_param.py +0 -0
  135. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment.py +0 -0
  136. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_create_params.py +0 -0
  137. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_create_response.py +0 -0
  138. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_list_params.py +0 -0
  139. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_list_response.py +0 -0
  140. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_method_types.py +0 -0
  141. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payment_retrieve_line_items_response.py +0 -0
  142. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payout_list_params.py +0 -0
  143. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/payout_list_response.py +0 -0
  144. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/price.py +0 -0
  145. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/price_param.py +0 -0
  146. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product.py +0 -0
  147. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_create_params.py +0 -0
  148. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_list_params.py +0 -0
  149. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_list_response.py +0 -0
  150. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_update_files_params.py +0 -0
  151. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_update_files_response.py +0 -0
  152. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/product_update_params.py +0 -0
  153. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/products/__init__.py +0 -0
  154. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/products/image_update_params.py +0 -0
  155. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/products/image_update_response.py +0 -0
  156. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/refund.py +0 -0
  157. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/refund_create_params.py +0 -0
  158. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/refund_list_params.py +0 -0
  159. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/refund_status.py +0 -0
  160. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription.py +0 -0
  161. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_charge_params.py +0 -0
  162. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_charge_response.py +0 -0
  163. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_create_params.py +0 -0
  164. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_create_response.py +0 -0
  165. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_list_response.py +0 -0
  166. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/subscription_update_params.py +0 -0
  167. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/tax_category.py +0 -0
  168. {dodopayments-1.43.0 → dodopayments-1.44.0}/src/dodopayments/types/time_interval.py +0 -0
  169. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/__init__.py +0 -0
  170. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/__init__.py +0 -0
  171. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/customers/__init__.py +0 -0
  172. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/customers/test_customer_portal.py +0 -0
  173. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/invoices/__init__.py +0 -0
  174. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/invoices/test_payments.py +0 -0
  175. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/products/__init__.py +0 -0
  176. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/products/test_images.py +0 -0
  177. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_addons.py +0 -0
  178. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_brands.py +0 -0
  179. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_customers.py +0 -0
  180. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_discounts.py +0 -0
  181. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_disputes.py +0 -0
  182. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_license_key_instances.py +0 -0
  183. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_license_keys.py +0 -0
  184. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_licenses.py +0 -0
  185. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_misc.py +0 -0
  186. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_payments.py +0 -0
  187. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_payouts.py +0 -0
  188. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_products.py +0 -0
  189. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_refunds.py +0 -0
  190. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/api_resources/test_subscriptions.py +0 -0
  191. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/conftest.py +0 -0
  192. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/sample_file.txt +0 -0
  193. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_client.py +0 -0
  194. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_deepcopy.py +0 -0
  195. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_extract_files.py +0 -0
  196. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_files.py +0 -0
  197. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_models.py +0 -0
  198. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_qs.py +0 -0
  199. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_required_args.py +0 -0
  200. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_response.py +0 -0
  201. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_streaming.py +0 -0
  202. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_transform.py +0 -0
  203. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_utils/test_proxy.py +0 -0
  204. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/test_utils/test_typing.py +0 -0
  205. {dodopayments-1.43.0 → dodopayments-1.44.0}/tests/utils.py +0 -0
@@ -1,5 +1,4 @@
1
1
  .prism.log
2
- .vscode
3
2
  _dev
4
3
 
5
4
  __pycache__
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.44.0"
3
+ }
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.44.0 (2025-08-02)
4
+
5
+ Full Changelog: [v1.43.1...v1.44.0](https://github.com/dodopayments/dodopayments-python/compare/v1.43.1...v1.44.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** updated openapi spec to 1.44.0 ([fad1533](https://github.com/dodopayments/dodopayments-python/commit/fad1533668d7cf2d3bda6b0d40a01f85c244723f))
10
+ * **client:** support file upload requests ([4ebfcb1](https://github.com/dodopayments/dodopayments-python/commit/4ebfcb160f5ecb4c8f86e46d5767395344614165))
11
+
12
+ ## 1.43.1 (2025-07-25)
13
+
14
+ Full Changelog: [v1.43.0...v1.43.1](https://github.com/dodopayments/dodopayments-python/compare/v1.43.0...v1.43.1)
15
+
16
+ ### Chores
17
+
18
+ * **project:** add settings file for vscode ([dcc13b8](https://github.com/dodopayments/dodopayments-python/commit/dcc13b814a78d0147d9d621aca865edd779a8b31))
19
+
3
20
  ## 1.43.0 (2025-07-23)
4
21
 
5
22
  Full Changelog: [v1.42.0...v1.43.0](https://github.com/dodopayments/dodopayments-python/compare/v1.42.0...v1.43.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dodopayments
3
- Version: 1.43.0
3
+ Version: 1.44.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
@@ -167,14 +167,9 @@ Methods:
167
167
  Types:
168
168
 
169
169
  ```python
170
- from dodopayments.types import WebhookEvent, WebhookEventType, WebhookPayload
170
+ from dodopayments.types import WebhookEventType, WebhookPayload
171
171
  ```
172
172
 
173
- Methods:
174
-
175
- - <code title="get /webhook_events/{webhook_event_id}">client.webhook_events.<a href="./src/dodopayments/resources/webhook_events.py">retrieve</a>(webhook_event_id) -> <a href="./src/dodopayments/types/webhook_event.py">WebhookEvent</a></code>
176
- - <code title="get /webhook_events">client.webhook_events.<a href="./src/dodopayments/resources/webhook_events.py">list</a>(\*\*<a href="src/dodopayments/types/webhook_event_list_params.py">params</a>) -> <a href="./src/dodopayments/types/webhook_event.py">SyncDefaultPageNumberPagination[WebhookEvent]</a></code>
177
-
178
173
  # Products
179
174
 
180
175
  Types:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dodopayments"
3
- version = "1.43.0"
3
+ version = "1.44.0"
4
4
  description = "The official Python library for the Dodo Payments API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -532,7 +532,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
532
532
  is_body_allowed = options.method.lower() != "get"
533
533
 
534
534
  if is_body_allowed:
535
- kwargs["json"] = json_data if is_given(json_data) else None
535
+ if isinstance(json_data, bytes):
536
+ kwargs["content"] = json_data
537
+ else:
538
+ kwargs["json"] = json_data if is_given(json_data) else None
536
539
  kwargs["files"] = files
537
540
  else:
538
541
  headers.pop("Content-Type", None)
@@ -33,7 +33,6 @@ from .resources import (
33
33
  discounts,
34
34
  license_keys,
35
35
  subscriptions,
36
- webhook_events,
37
36
  license_key_instances,
38
37
  )
39
38
  from ._streaming import Stream as Stream, AsyncStream as AsyncStream
@@ -76,7 +75,6 @@ class DodoPayments(SyncAPIClient):
76
75
  refunds: refunds.RefundsResource
77
76
  disputes: disputes.DisputesResource
78
77
  payouts: payouts.PayoutsResource
79
- webhook_events: webhook_events.WebhookEventsResource
80
78
  products: products.ProductsResource
81
79
  misc: misc.MiscResource
82
80
  discounts: discounts.DiscountsResource
@@ -173,7 +171,6 @@ class DodoPayments(SyncAPIClient):
173
171
  self.refunds = refunds.RefundsResource(self)
174
172
  self.disputes = disputes.DisputesResource(self)
175
173
  self.payouts = payouts.PayoutsResource(self)
176
- self.webhook_events = webhook_events.WebhookEventsResource(self)
177
174
  self.products = products.ProductsResource(self)
178
175
  self.misc = misc.MiscResource(self)
179
176
  self.discounts = discounts.DiscountsResource(self)
@@ -300,7 +297,6 @@ class AsyncDodoPayments(AsyncAPIClient):
300
297
  refunds: refunds.AsyncRefundsResource
301
298
  disputes: disputes.AsyncDisputesResource
302
299
  payouts: payouts.AsyncPayoutsResource
303
- webhook_events: webhook_events.AsyncWebhookEventsResource
304
300
  products: products.AsyncProductsResource
305
301
  misc: misc.AsyncMiscResource
306
302
  discounts: discounts.AsyncDiscountsResource
@@ -397,7 +393,6 @@ class AsyncDodoPayments(AsyncAPIClient):
397
393
  self.refunds = refunds.AsyncRefundsResource(self)
398
394
  self.disputes = disputes.AsyncDisputesResource(self)
399
395
  self.payouts = payouts.AsyncPayoutsResource(self)
400
- self.webhook_events = webhook_events.AsyncWebhookEventsResource(self)
401
396
  self.products = products.AsyncProductsResource(self)
402
397
  self.misc = misc.AsyncMiscResource(self)
403
398
  self.discounts = discounts.AsyncDiscountsResource(self)
@@ -527,7 +522,6 @@ class DodoPaymentsWithRawResponse:
527
522
  self.refunds = refunds.RefundsResourceWithRawResponse(client.refunds)
528
523
  self.disputes = disputes.DisputesResourceWithRawResponse(client.disputes)
529
524
  self.payouts = payouts.PayoutsResourceWithRawResponse(client.payouts)
530
- self.webhook_events = webhook_events.WebhookEventsResourceWithRawResponse(client.webhook_events)
531
525
  self.products = products.ProductsResourceWithRawResponse(client.products)
532
526
  self.misc = misc.MiscResourceWithRawResponse(client.misc)
533
527
  self.discounts = discounts.DiscountsResourceWithRawResponse(client.discounts)
@@ -549,7 +543,6 @@ class AsyncDodoPaymentsWithRawResponse:
549
543
  self.refunds = refunds.AsyncRefundsResourceWithRawResponse(client.refunds)
550
544
  self.disputes = disputes.AsyncDisputesResourceWithRawResponse(client.disputes)
551
545
  self.payouts = payouts.AsyncPayoutsResourceWithRawResponse(client.payouts)
552
- self.webhook_events = webhook_events.AsyncWebhookEventsResourceWithRawResponse(client.webhook_events)
553
546
  self.products = products.AsyncProductsResourceWithRawResponse(client.products)
554
547
  self.misc = misc.AsyncMiscResourceWithRawResponse(client.misc)
555
548
  self.discounts = discounts.AsyncDiscountsResourceWithRawResponse(client.discounts)
@@ -571,7 +564,6 @@ class DodoPaymentsWithStreamedResponse:
571
564
  self.refunds = refunds.RefundsResourceWithStreamingResponse(client.refunds)
572
565
  self.disputes = disputes.DisputesResourceWithStreamingResponse(client.disputes)
573
566
  self.payouts = payouts.PayoutsResourceWithStreamingResponse(client.payouts)
574
- self.webhook_events = webhook_events.WebhookEventsResourceWithStreamingResponse(client.webhook_events)
575
567
  self.products = products.ProductsResourceWithStreamingResponse(client.products)
576
568
  self.misc = misc.MiscResourceWithStreamingResponse(client.misc)
577
569
  self.discounts = discounts.DiscountsResourceWithStreamingResponse(client.discounts)
@@ -593,7 +585,6 @@ class AsyncDodoPaymentsWithStreamedResponse:
593
585
  self.refunds = refunds.AsyncRefundsResourceWithStreamingResponse(client.refunds)
594
586
  self.disputes = disputes.AsyncDisputesResourceWithStreamingResponse(client.disputes)
595
587
  self.payouts = payouts.AsyncPayoutsResourceWithStreamingResponse(client.payouts)
596
- self.webhook_events = webhook_events.AsyncWebhookEventsResourceWithStreamingResponse(client.webhook_events)
597
588
  self.products = products.AsyncProductsResourceWithStreamingResponse(client.products)
598
589
  self.misc = misc.AsyncMiscResourceWithStreamingResponse(client.misc)
599
590
  self.discounts = discounts.AsyncDiscountsResourceWithStreamingResponse(client.discounts)
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
69
69
  return file
70
70
 
71
71
  if is_tuple_t(file):
72
- return (file[0], _read_file_content(file[1]), *file[2:])
72
+ return (file[0], read_file_content(file[1]), *file[2:])
73
73
 
74
74
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
75
75
 
76
76
 
77
- def _read_file_content(file: FileContent) -> HttpxFileContent:
77
+ def read_file_content(file: FileContent) -> HttpxFileContent:
78
78
  if isinstance(file, os.PathLike):
79
79
  return pathlib.Path(file).read_bytes()
80
80
  return file
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
111
111
  return file
112
112
 
113
113
  if is_tuple_t(file):
114
- return (file[0], await _async_read_file_content(file[1]), *file[2:])
114
+ return (file[0], await async_read_file_content(file[1]), *file[2:])
115
115
 
116
116
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
117
117
 
118
118
 
119
- async def _async_read_file_content(file: FileContent) -> HttpxFileContent:
119
+ async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120
120
  if isinstance(file, os.PathLike):
121
121
  return await anyio.Path(file).read_bytes()
122
122
 
@@ -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.43.0" # x-release-please-version
4
+ __version__ = "1.44.0" # x-release-please-version
@@ -112,14 +112,6 @@ from .subscriptions import (
112
112
  SubscriptionsResourceWithStreamingResponse,
113
113
  AsyncSubscriptionsResourceWithStreamingResponse,
114
114
  )
115
- from .webhook_events import (
116
- WebhookEventsResource,
117
- AsyncWebhookEventsResource,
118
- WebhookEventsResourceWithRawResponse,
119
- AsyncWebhookEventsResourceWithRawResponse,
120
- WebhookEventsResourceWithStreamingResponse,
121
- AsyncWebhookEventsResourceWithStreamingResponse,
122
- )
123
115
  from .license_key_instances import (
124
116
  LicenseKeyInstancesResource,
125
117
  AsyncLicenseKeyInstancesResource,
@@ -190,12 +182,6 @@ __all__ = [
190
182
  "AsyncPayoutsResourceWithRawResponse",
191
183
  "PayoutsResourceWithStreamingResponse",
192
184
  "AsyncPayoutsResourceWithStreamingResponse",
193
- "WebhookEventsResource",
194
- "AsyncWebhookEventsResource",
195
- "WebhookEventsResourceWithRawResponse",
196
- "AsyncWebhookEventsResourceWithRawResponse",
197
- "WebhookEventsResourceWithStreamingResponse",
198
- "AsyncWebhookEventsResourceWithStreamingResponse",
199
185
  "ProductsResource",
200
186
  "AsyncProductsResource",
201
187
  "ProductsResourceWithRawResponse",
@@ -250,8 +250,7 @@ class SubscriptionsResource(SyncAPIResource):
250
250
  customer_id: str | NotGiven = NOT_GIVEN,
251
251
  page_number: int | NotGiven = NOT_GIVEN,
252
252
  page_size: int | NotGiven = NOT_GIVEN,
253
- status: Literal["pending", "active", "on_hold", "paused", "cancelled", "failed", "expired"]
254
- | NotGiven = NOT_GIVEN,
253
+ status: Literal["pending", "active", "on_hold", "cancelled", "failed", "expired"] | NotGiven = NOT_GIVEN,
255
254
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
256
255
  # The extra values given here take precedence over values defined on the client or passed to this method.
257
256
  extra_headers: Headers | None = None,
@@ -312,7 +311,7 @@ class SubscriptionsResource(SyncAPIResource):
312
311
  subscription_id: str,
313
312
  *,
314
313
  product_id: str,
315
- proration_billing_mode: Literal["prorated_immediately", "full_immediately"],
314
+ proration_billing_mode: Literal["prorated_immediately", "full_immediately", "difference_immediately"],
316
315
  quantity: int,
317
316
  addons: Optional[Iterable[AttachAddonParam]] | NotGiven = NOT_GIVEN,
318
317
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -632,8 +631,7 @@ class AsyncSubscriptionsResource(AsyncAPIResource):
632
631
  customer_id: str | NotGiven = NOT_GIVEN,
633
632
  page_number: int | NotGiven = NOT_GIVEN,
634
633
  page_size: int | NotGiven = NOT_GIVEN,
635
- status: Literal["pending", "active", "on_hold", "paused", "cancelled", "failed", "expired"]
636
- | NotGiven = NOT_GIVEN,
634
+ status: Literal["pending", "active", "on_hold", "cancelled", "failed", "expired"] | NotGiven = NOT_GIVEN,
637
635
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
638
636
  # The extra values given here take precedence over values defined on the client or passed to this method.
639
637
  extra_headers: Headers | None = None,
@@ -694,7 +692,7 @@ class AsyncSubscriptionsResource(AsyncAPIResource):
694
692
  subscription_id: str,
695
693
  *,
696
694
  product_id: str,
697
- proration_billing_mode: Literal["prorated_immediately", "full_immediately"],
695
+ proration_billing_mode: Literal["prorated_immediately", "full_immediately", "difference_immediately"],
698
696
  quantity: int,
699
697
  addons: Optional[Iterable[AttachAddonParam]] | NotGiven = NOT_GIVEN,
700
698
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -22,7 +22,6 @@ from .dispute_stage import DisputeStage as DisputeStage
22
22
  from .intent_status import IntentStatus as IntentStatus
23
23
  from .refund_status import RefundStatus as RefundStatus
24
24
  from .time_interval import TimeInterval as TimeInterval
25
- from .webhook_event import WebhookEvent as WebhookEvent
26
25
  from .addon_response import AddonResponse as AddonResponse
27
26
  from .dispute_status import DisputeStatus as DisputeStatus
28
27
  from .billing_address import BillingAddress as BillingAddress
@@ -72,7 +71,6 @@ from .create_new_customer_param import CreateNewCustomerParam as CreateNewCustom
72
71
  from .license_deactivate_params import LicenseDeactivateParams as LicenseDeactivateParams
73
72
  from .license_key_update_params import LicenseKeyUpdateParams as LicenseKeyUpdateParams
74
73
  from .license_validate_response import LicenseValidateResponse as LicenseValidateResponse
75
- from .webhook_event_list_params import WebhookEventListParams as WebhookEventListParams
76
74
  from .license_key_duration_param import LicenseKeyDurationParam as LicenseKeyDurationParam
77
75
  from .one_time_product_cart_item import OneTimeProductCartItem as OneTimeProductCartItem
78
76
  from .subscription_charge_params import SubscriptionChargeParams as SubscriptionChargeParams
@@ -14,7 +14,7 @@ class SubscriptionChangePlanParams(TypedDict, total=False):
14
14
  product_id: Required[str]
15
15
  """Unique identifier of the product to subscribe to"""
16
16
 
17
- proration_billing_mode: Required[Literal["prorated_immediately", "full_immediately"]]
17
+ proration_billing_mode: Required[Literal["prorated_immediately", "full_immediately", "difference_immediately"]]
18
18
  """Proration Billing Mode"""
19
19
 
20
20
  quantity: Required[int]
@@ -30,5 +30,5 @@ class SubscriptionListParams(TypedDict, total=False):
30
30
  page_size: int
31
31
  """Page size default is 10 max is 100"""
32
32
 
33
- status: Literal["pending", "active", "on_hold", "paused", "cancelled", "failed", "expired"]
33
+ status: Literal["pending", "active", "on_hold", "cancelled", "failed", "expired"]
34
34
  """Filter by status"""
@@ -4,4 +4,4 @@ from typing_extensions import Literal, TypeAlias
4
4
 
5
5
  __all__ = ["SubscriptionStatus"]
6
6
 
7
- SubscriptionStatus: TypeAlias = Literal["pending", "active", "on_hold", "paused", "cancelled", "failed", "expired"]
7
+ SubscriptionStatus: TypeAlias = Literal["pending", "active", "on_hold", "cancelled", "failed", "expired"]
@@ -21,7 +21,6 @@ WebhookEventType: TypeAlias = Literal[
21
21
  "subscription.active",
22
22
  "subscription.renewed",
23
23
  "subscription.on_hold",
24
- "subscription.paused",
25
24
  "subscription.cancelled",
26
25
  "subscription.failed",
27
26
  "subscription.expired",
@@ -1,3 +0,0 @@
1
- {
2
- ".": "1.43.0"
3
- }
@@ -1,326 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import typing_extensions
6
- from typing import Union
7
- from datetime import datetime
8
-
9
- import httpx
10
-
11
- from ..types import webhook_event_list_params
12
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
13
- from .._utils import maybe_transform
14
- from .._compat import cached_property
15
- from .._resource import SyncAPIResource, AsyncAPIResource
16
- from .._response import (
17
- to_raw_response_wrapper,
18
- to_streamed_response_wrapper,
19
- async_to_raw_response_wrapper,
20
- async_to_streamed_response_wrapper,
21
- )
22
- from ..pagination import SyncDefaultPageNumberPagination, AsyncDefaultPageNumberPagination
23
- from .._base_client import AsyncPaginator, make_request_options
24
- from ..types.webhook_event import WebhookEvent
25
-
26
- __all__ = ["WebhookEventsResource", "AsyncWebhookEventsResource"]
27
-
28
-
29
- class WebhookEventsResource(SyncAPIResource):
30
- @cached_property
31
- def with_raw_response(self) -> WebhookEventsResourceWithRawResponse:
32
- """
33
- This property can be used as a prefix for any HTTP method call to return
34
- the raw response object instead of the parsed content.
35
-
36
- For more information, see https://www.github.com/dodopayments/dodopayments-python#accessing-raw-response-data-eg-headers
37
- """
38
- return WebhookEventsResourceWithRawResponse(self)
39
-
40
- @cached_property
41
- def with_streaming_response(self) -> WebhookEventsResourceWithStreamingResponse:
42
- """
43
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44
-
45
- For more information, see https://www.github.com/dodopayments/dodopayments-python#with_streaming_response
46
- """
47
- return WebhookEventsResourceWithStreamingResponse(self)
48
-
49
- @typing_extensions.deprecated("deprecated")
50
- def retrieve(
51
- self,
52
- webhook_event_id: str,
53
- *,
54
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
- # The extra values given here take precedence over values defined on the client or passed to this method.
56
- extra_headers: Headers | None = None,
57
- extra_query: Query | None = None,
58
- extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
- ) -> WebhookEvent:
61
- """
62
- Args:
63
- extra_headers: Send extra headers
64
-
65
- extra_query: Add additional query parameters to the request
66
-
67
- extra_body: Add additional JSON properties to the request
68
-
69
- timeout: Override the client-level default timeout for this request, in seconds
70
- """
71
- if not webhook_event_id:
72
- raise ValueError(f"Expected a non-empty value for `webhook_event_id` but received {webhook_event_id!r}")
73
- return self._get(
74
- f"/webhook_events/{webhook_event_id}",
75
- options=make_request_options(
76
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
- ),
78
- cast_to=WebhookEvent,
79
- )
80
-
81
- def list(
82
- self,
83
- *,
84
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
85
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
86
- limit: int | NotGiven = NOT_GIVEN,
87
- object_id: str | NotGiven = NOT_GIVEN,
88
- page_number: int | NotGiven = NOT_GIVEN,
89
- page_size: int | NotGiven = NOT_GIVEN,
90
- webhook_event_id: str | NotGiven = NOT_GIVEN,
91
- webhook_id: str | NotGiven = NOT_GIVEN,
92
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
93
- # The extra values given here take precedence over values defined on the client or passed to this method.
94
- extra_headers: Headers | None = None,
95
- extra_query: Query | None = None,
96
- extra_body: Body | None = None,
97
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
98
- ) -> SyncDefaultPageNumberPagination[WebhookEvent]:
99
- """
100
- Args:
101
- created_at_gte: Get events after this created time
102
-
103
- created_at_lte: Get events created before this time
104
-
105
- limit: Min : 1, Max : 100, default 10
106
-
107
- object_id: Get events history of a specific object like payment/subscription/refund/dispute
108
-
109
- page_number: Page number default is 0
110
-
111
- page_size: Page size default is 10 max is 100
112
-
113
- webhook_event_id: Filter by webhook event id
114
-
115
- webhook_id: Filter by webhook destination
116
-
117
- extra_headers: Send extra headers
118
-
119
- extra_query: Add additional query parameters to the request
120
-
121
- extra_body: Add additional JSON properties to the request
122
-
123
- timeout: Override the client-level default timeout for this request, in seconds
124
- """
125
- return self._get_api_list(
126
- "/webhook_events",
127
- page=SyncDefaultPageNumberPagination[WebhookEvent],
128
- options=make_request_options(
129
- extra_headers=extra_headers,
130
- extra_query=extra_query,
131
- extra_body=extra_body,
132
- timeout=timeout,
133
- query=maybe_transform(
134
- {
135
- "created_at_gte": created_at_gte,
136
- "created_at_lte": created_at_lte,
137
- "limit": limit,
138
- "object_id": object_id,
139
- "page_number": page_number,
140
- "page_size": page_size,
141
- "webhook_event_id": webhook_event_id,
142
- "webhook_id": webhook_id,
143
- },
144
- webhook_event_list_params.WebhookEventListParams,
145
- ),
146
- ),
147
- model=WebhookEvent,
148
- )
149
-
150
-
151
- class AsyncWebhookEventsResource(AsyncAPIResource):
152
- @cached_property
153
- def with_raw_response(self) -> AsyncWebhookEventsResourceWithRawResponse:
154
- """
155
- This property can be used as a prefix for any HTTP method call to return
156
- the raw response object instead of the parsed content.
157
-
158
- For more information, see https://www.github.com/dodopayments/dodopayments-python#accessing-raw-response-data-eg-headers
159
- """
160
- return AsyncWebhookEventsResourceWithRawResponse(self)
161
-
162
- @cached_property
163
- def with_streaming_response(self) -> AsyncWebhookEventsResourceWithStreamingResponse:
164
- """
165
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
166
-
167
- For more information, see https://www.github.com/dodopayments/dodopayments-python#with_streaming_response
168
- """
169
- return AsyncWebhookEventsResourceWithStreamingResponse(self)
170
-
171
- @typing_extensions.deprecated("deprecated")
172
- async def retrieve(
173
- self,
174
- webhook_event_id: str,
175
- *,
176
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177
- # The extra values given here take precedence over values defined on the client or passed to this method.
178
- extra_headers: Headers | None = None,
179
- extra_query: Query | None = None,
180
- extra_body: Body | None = None,
181
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
182
- ) -> WebhookEvent:
183
- """
184
- Args:
185
- extra_headers: Send extra headers
186
-
187
- extra_query: Add additional query parameters to the request
188
-
189
- extra_body: Add additional JSON properties to the request
190
-
191
- timeout: Override the client-level default timeout for this request, in seconds
192
- """
193
- if not webhook_event_id:
194
- raise ValueError(f"Expected a non-empty value for `webhook_event_id` but received {webhook_event_id!r}")
195
- return await self._get(
196
- f"/webhook_events/{webhook_event_id}",
197
- options=make_request_options(
198
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
199
- ),
200
- cast_to=WebhookEvent,
201
- )
202
-
203
- def list(
204
- self,
205
- *,
206
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
207
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
208
- limit: int | NotGiven = NOT_GIVEN,
209
- object_id: str | NotGiven = NOT_GIVEN,
210
- page_number: int | NotGiven = NOT_GIVEN,
211
- page_size: int | NotGiven = NOT_GIVEN,
212
- webhook_event_id: str | NotGiven = NOT_GIVEN,
213
- webhook_id: str | NotGiven = NOT_GIVEN,
214
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
215
- # The extra values given here take precedence over values defined on the client or passed to this method.
216
- extra_headers: Headers | None = None,
217
- extra_query: Query | None = None,
218
- extra_body: Body | None = None,
219
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
220
- ) -> AsyncPaginator[WebhookEvent, AsyncDefaultPageNumberPagination[WebhookEvent]]:
221
- """
222
- Args:
223
- created_at_gte: Get events after this created time
224
-
225
- created_at_lte: Get events created before this time
226
-
227
- limit: Min : 1, Max : 100, default 10
228
-
229
- object_id: Get events history of a specific object like payment/subscription/refund/dispute
230
-
231
- page_number: Page number default is 0
232
-
233
- page_size: Page size default is 10 max is 100
234
-
235
- webhook_event_id: Filter by webhook event id
236
-
237
- webhook_id: Filter by webhook destination
238
-
239
- extra_headers: Send extra headers
240
-
241
- extra_query: Add additional query parameters to the request
242
-
243
- extra_body: Add additional JSON properties to the request
244
-
245
- timeout: Override the client-level default timeout for this request, in seconds
246
- """
247
- return self._get_api_list(
248
- "/webhook_events",
249
- page=AsyncDefaultPageNumberPagination[WebhookEvent],
250
- options=make_request_options(
251
- extra_headers=extra_headers,
252
- extra_query=extra_query,
253
- extra_body=extra_body,
254
- timeout=timeout,
255
- query=maybe_transform(
256
- {
257
- "created_at_gte": created_at_gte,
258
- "created_at_lte": created_at_lte,
259
- "limit": limit,
260
- "object_id": object_id,
261
- "page_number": page_number,
262
- "page_size": page_size,
263
- "webhook_event_id": webhook_event_id,
264
- "webhook_id": webhook_id,
265
- },
266
- webhook_event_list_params.WebhookEventListParams,
267
- ),
268
- ),
269
- model=WebhookEvent,
270
- )
271
-
272
-
273
- class WebhookEventsResourceWithRawResponse:
274
- def __init__(self, webhook_events: WebhookEventsResource) -> None:
275
- self._webhook_events = webhook_events
276
-
277
- self.retrieve = ( # pyright: ignore[reportDeprecated]
278
- to_raw_response_wrapper(
279
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
280
- )
281
- )
282
- self.list = to_raw_response_wrapper(
283
- webhook_events.list,
284
- )
285
-
286
-
287
- class AsyncWebhookEventsResourceWithRawResponse:
288
- def __init__(self, webhook_events: AsyncWebhookEventsResource) -> None:
289
- self._webhook_events = webhook_events
290
-
291
- self.retrieve = ( # pyright: ignore[reportDeprecated]
292
- async_to_raw_response_wrapper(
293
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
294
- )
295
- )
296
- self.list = async_to_raw_response_wrapper(
297
- webhook_events.list,
298
- )
299
-
300
-
301
- class WebhookEventsResourceWithStreamingResponse:
302
- def __init__(self, webhook_events: WebhookEventsResource) -> None:
303
- self._webhook_events = webhook_events
304
-
305
- self.retrieve = ( # pyright: ignore[reportDeprecated]
306
- to_streamed_response_wrapper(
307
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
308
- )
309
- )
310
- self.list = to_streamed_response_wrapper(
311
- webhook_events.list,
312
- )
313
-
314
-
315
- class AsyncWebhookEventsResourceWithStreamingResponse:
316
- def __init__(self, webhook_events: AsyncWebhookEventsResource) -> None:
317
- self._webhook_events = webhook_events
318
-
319
- self.retrieve = ( # pyright: ignore[reportDeprecated]
320
- async_to_streamed_response_wrapper(
321
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
322
- )
323
- )
324
- self.list = async_to_streamed_response_wrapper(
325
- webhook_events.list,
326
- )