dodopayments 1.43.1__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.
- dodopayments-1.44.0/.release-please-manifest.json +3 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/CHANGELOG.md +9 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/PKG-INFO +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/api.md +1 -6
- {dodopayments-1.43.1 → dodopayments-1.44.0}/pyproject.toml +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_base_client.py +4 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_client.py +0 -9
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_files.py +4 -4
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_version.py +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/__init__.py +0 -14
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/subscriptions.py +4 -6
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/__init__.py +0 -2
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_change_plan_params.py +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_list_params.py +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_status.py +1 -1
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/webhook_event_type.py +0 -1
- dodopayments-1.43.1/.release-please-manifest.json +0 -3
- dodopayments-1.43.1/src/dodopayments/resources/webhook_events.py +0 -326
- dodopayments-1.43.1/src/dodopayments/types/webhook_event.py +0 -26
- dodopayments-1.43.1/src/dodopayments/types/webhook_event_list_params.py +0 -39
- dodopayments-1.43.1/tests/api_resources/test_webhook_events.py +0 -192
- {dodopayments-1.43.1 → dodopayments-1.44.0}/.gitignore +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/CONTRIBUTING.md +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/LICENSE +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/README.md +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/SECURITY.md +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/bin/check-release-environment +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/bin/publish-pypi +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/examples/.keep +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/mypy.ini +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/noxfile.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/release-please-config.json +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/requirements-dev.lock +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/requirements.lock +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodo_payments/lib/.keep +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_compat.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_constants.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_exceptions.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_models.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_qs.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_resource.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_streaming.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_types.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_logs.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_proxy.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_reflection.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_resources_proxy.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_streams.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_sync.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_transform.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_typing.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/_utils/_utils.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/lib/.keep +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/pagination.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/py.typed +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/addons.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/brands.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/customers/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/customers/customer_portal.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/customers/customers.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/discounts.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/disputes.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/invoices.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/invoices/payments.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/license_key_instances.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/license_keys.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/licenses.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/misc.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/payments.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/payouts.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/products/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/products/images.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/products/products.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/resources/refunds.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_cart_response_item.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_update_images_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/addon_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/attach_addon_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/attach_existing_customer_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/billing_address.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/billing_address_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/brand.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/brand_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/brand_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/brand_update_images_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/brand_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/country_code.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/create_new_customer_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/currency.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_limited_details.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_portal_session.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_request_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customer_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customers/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/customers/customer_portal_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/discount.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/discount_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/discount_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/discount_type.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/discount_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/dispute.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/dispute_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/dispute_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/dispute_stage.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/dispute_status.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/get_dispute.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/intent_status.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/invoices/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_activate_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_deactivate_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_duration.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_duration_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_instance_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_status.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_key_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_validate_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/license_validate_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/misc_list_supported_countries_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/one_time_product_cart_item.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/one_time_product_cart_item_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_create_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_method_types.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payment_retrieve_line_items_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payout_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/payout_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/price.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/price_param.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_update_files_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_update_files_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/product_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/products/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/products/image_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/products/image_update_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/refund.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/refund_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/refund_list_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/refund_status.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_charge_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_charge_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_create_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_create_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_list_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_update_params.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/tax_category.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/time_interval.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/customers/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/customers/test_customer_portal.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/invoices/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/invoices/test_payments.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/products/__init__.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/products/test_images.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_addons.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_brands.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_customers.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_discounts.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_disputes.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_license_key_instances.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_license_keys.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_licenses.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_misc.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_payments.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_payouts.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_products.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_refunds.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/api_resources/test_subscriptions.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/conftest.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/sample_file.txt +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_client.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_deepcopy.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_extract_files.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_files.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_models.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_qs.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_required_args.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_response.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_streaming.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_transform.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_utils/test_proxy.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/test_utils/test_typing.py +0 -0
- {dodopayments-1.43.1 → dodopayments-1.44.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 1.43.1 (2025-07-25)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v1.43.0...v1.43.1](https://github.com/dodopayments/dodopayments-python/compare/v1.43.0...v1.43.1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dodopayments
|
|
3
|
-
Version: 1.
|
|
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
|
|
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:
|
|
@@ -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
|
-
|
|
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],
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -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", "
|
|
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", "
|
|
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]
|
{dodopayments-1.43.1 → dodopayments-1.44.0}/src/dodopayments/types/subscription_list_params.py
RENAMED
|
@@ -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", "
|
|
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", "
|
|
7
|
+
SubscriptionStatus: TypeAlias = Literal["pending", "active", "on_hold", "cancelled", "failed", "expired"]
|
|
@@ -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
|
-
)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
|
|
6
|
-
from .._models import BaseModel
|
|
7
|
-
|
|
8
|
-
__all__ = ["WebhookEvent"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class WebhookEvent(BaseModel):
|
|
12
|
-
business_id: str
|
|
13
|
-
|
|
14
|
-
created_at: datetime
|
|
15
|
-
|
|
16
|
-
event_id: str
|
|
17
|
-
|
|
18
|
-
event_type: str
|
|
19
|
-
|
|
20
|
-
object_id: str
|
|
21
|
-
|
|
22
|
-
latest_attempted_at: Optional[datetime] = None
|
|
23
|
-
|
|
24
|
-
request: Optional[str] = None
|
|
25
|
-
|
|
26
|
-
response: Optional[str] = None
|