dodopayments 0.0.1.pre.alpha.0
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.
- checksums.yaml +7 -0
- data/README.md +154 -0
- data/lib/dodopayments/base_client.rb +453 -0
- data/lib/dodopayments/base_model.rb +1217 -0
- data/lib/dodopayments/base_page.rb +62 -0
- data/lib/dodopayments/client.rb +147 -0
- data/lib/dodopayments/default_page_number_pagination.rb +97 -0
- data/lib/dodopayments/errors.rb +183 -0
- data/lib/dodopayments/extern.rb +9 -0
- data/lib/dodopayments/models/attach_existing_customer.rb +19 -0
- data/lib/dodopayments/models/billing_address.rb +48 -0
- data/lib/dodopayments/models/country_code.rb +262 -0
- data/lib/dodopayments/models/create_new_customer.rb +44 -0
- data/lib/dodopayments/models/customer.rb +49 -0
- data/lib/dodopayments/models/customer_create_params.rb +36 -0
- data/lib/dodopayments/models/customer_limited_details.rb +34 -0
- data/lib/dodopayments/models/customer_list_params.rb +32 -0
- data/lib/dodopayments/models/customer_portal_session.rb +19 -0
- data/lib/dodopayments/models/customer_request.rb +18 -0
- data/lib/dodopayments/models/customer_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/customer_update_params.rb +30 -0
- data/lib/dodopayments/models/customers/customer_portal_create_params.rb +27 -0
- data/lib/dodopayments/models/discount.rb +108 -0
- data/lib/dodopayments/models/discount_create_params.rb +87 -0
- data/lib/dodopayments/models/discount_delete_params.rb +18 -0
- data/lib/dodopayments/models/discount_list_params.rb +32 -0
- data/lib/dodopayments/models/discount_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/discount_type.rb +12 -0
- data/lib/dodopayments/models/discount_update_params.rb +82 -0
- data/lib/dodopayments/models/dispute.rb +80 -0
- data/lib/dodopayments/models/dispute_list_params.rb +79 -0
- data/lib/dodopayments/models/dispute_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/dispute_stage.rb +14 -0
- data/lib/dodopayments/models/dispute_status.rb +18 -0
- data/lib/dodopayments/models/intent_status.rb +22 -0
- data/lib/dodopayments/models/invoices/payment_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/license_activate_params.rb +30 -0
- data/lib/dodopayments/models/license_deactivate_params.rb +30 -0
- data/lib/dodopayments/models/license_key.rb +113 -0
- data/lib/dodopayments/models/license_key_duration.rb +25 -0
- data/lib/dodopayments/models/license_key_instance.rb +43 -0
- data/lib/dodopayments/models/license_key_instance_list_params.rb +39 -0
- data/lib/dodopayments/models/license_key_instance_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/license_key_instance_update_params.rb +24 -0
- data/lib/dodopayments/models/license_key_list_params.rb +53 -0
- data/lib/dodopayments/models/license_key_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/license_key_status.rb +14 -0
- data/lib/dodopayments/models/license_key_update_params.rb +42 -0
- data/lib/dodopayments/models/license_validate_params.rb +30 -0
- data/lib/dodopayments/models/license_validate_response.rb +19 -0
- data/lib/dodopayments/models/misc_list_supported_countries_params.rb +18 -0
- data/lib/dodopayments/models/misc_list_supported_countries_response.rb +7 -0
- data/lib/dodopayments/models/one_time_product_cart_item.rb +33 -0
- data/lib/dodopayments/models/payment.rb +339 -0
- data/lib/dodopayments/models/payment_create_params.rb +90 -0
- data/lib/dodopayments/models/payment_create_response.rb +82 -0
- data/lib/dodopayments/models/payment_list_params.rb +79 -0
- data/lib/dodopayments/models/payment_list_response.rb +238 -0
- data/lib/dodopayments/models/payment_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/payout_list_params.rb +32 -0
- data/lib/dodopayments/models/payout_list_response.rb +295 -0
- data/lib/dodopayments/models/price.rb +512 -0
- data/lib/dodopayments/models/product.rb +149 -0
- data/lib/dodopayments/models/product_create_params.rb +107 -0
- data/lib/dodopayments/models/product_delete_params.rb +18 -0
- data/lib/dodopayments/models/product_list_params.rb +54 -0
- data/lib/dodopayments/models/product_list_response.rb +293 -0
- data/lib/dodopayments/models/product_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/product_unarchive_params.rb +18 -0
- data/lib/dodopayments/models/product_update_params.rb +124 -0
- data/lib/dodopayments/models/products/image_update_params.rb +26 -0
- data/lib/dodopayments/models/products/image_update_response.rb +27 -0
- data/lib/dodopayments/models/refund.rb +218 -0
- data/lib/dodopayments/models/refund_create_params.rb +40 -0
- data/lib/dodopayments/models/refund_list_params.rb +71 -0
- data/lib/dodopayments/models/refund_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/refund_status.rb +15 -0
- data/lib/dodopayments/models/subscription.rb +309 -0
- data/lib/dodopayments/models/subscription_create_params.rb +106 -0
- data/lib/dodopayments/models/subscription_create_response.rb +73 -0
- data/lib/dodopayments/models/subscription_list_params.rb +71 -0
- data/lib/dodopayments/models/subscription_retrieve_params.rb +18 -0
- data/lib/dodopayments/models/subscription_status.rb +18 -0
- data/lib/dodopayments/models/subscription_update_params.rb +30 -0
- data/lib/dodopayments/models/time_interval.rb +15 -0
- data/lib/dodopayments/models/webhook_event.rb +73 -0
- data/lib/dodopayments/models/webhook_event_list_params.rb +71 -0
- data/lib/dodopayments/models/webhook_event_retrieve_params.rb +18 -0
- data/lib/dodopayments/pooled_net_requester.rb +164 -0
- data/lib/dodopayments/request_options.rb +110 -0
- data/lib/dodopayments/resources/customers/customer_portal.rb +34 -0
- data/lib/dodopayments/resources/customers.rb +97 -0
- data/lib/dodopayments/resources/discounts.rb +154 -0
- data/lib/dodopayments/resources/disputes.rb +59 -0
- data/lib/dodopayments/resources/invoices/payments.rb +30 -0
- data/lib/dodopayments/resources/invoices.rb +16 -0
- data/lib/dodopayments/resources/license_key_instances.rb +71 -0
- data/lib/dodopayments/resources/license_keys.rb +82 -0
- data/lib/dodopayments/resources/licenses.rb +72 -0
- data/lib/dodopayments/resources/misc.rb +26 -0
- data/lib/dodopayments/resources/payments.rb +93 -0
- data/lib/dodopayments/resources/payouts.rb +33 -0
- data/lib/dodopayments/resources/products/images.rb +34 -0
- data/lib/dodopayments/resources/products.rb +176 -0
- data/lib/dodopayments/resources/refunds.rb +80 -0
- data/lib/dodopayments/resources/subscriptions.rb +117 -0
- data/lib/dodopayments/resources/webhook_events.rb +57 -0
- data/lib/dodopayments/util.rb +717 -0
- data/lib/dodopayments/version.rb +5 -0
- data/lib/dodopayments.rb +128 -0
- data/manifest.yaml +14 -0
- data/rbi/lib/dodopayments/base_client.rbi +186 -0
- data/rbi/lib/dodopayments/base_model.rbi +606 -0
- data/rbi/lib/dodopayments/base_page.rbi +40 -0
- data/rbi/lib/dodopayments/client.rbi +117 -0
- data/rbi/lib/dodopayments/default_page_number_pagination.rbi +17 -0
- data/rbi/lib/dodopayments/errors.rbi +179 -0
- data/rbi/lib/dodopayments/extern.rbi +8 -0
- data/rbi/lib/dodopayments/models/attach_existing_customer.rbi +23 -0
- data/rbi/lib/dodopayments/models/billing_address.rbi +65 -0
- data/rbi/lib/dodopayments/models/country_code.rbi +266 -0
- data/rbi/lib/dodopayments/models/create_new_customer.rbi +61 -0
- data/rbi/lib/dodopayments/models/customer.rbi +85 -0
- data/rbi/lib/dodopayments/models/customer_create_params.rbi +60 -0
- data/rbi/lib/dodopayments/models/customer_limited_details.rbi +42 -0
- data/rbi/lib/dodopayments/models/customer_list_params.rbi +52 -0
- data/rbi/lib/dodopayments/models/customer_portal_session.rbi +23 -0
- data/rbi/lib/dodopayments/models/customer_request.rbi +15 -0
- data/rbi/lib/dodopayments/models/customer_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/customer_update_params.rbi +50 -0
- data/rbi/lib/dodopayments/models/customers/customer_portal_create_params.rbi +37 -0
- data/rbi/lib/dodopayments/models/discount.rbi +161 -0
- data/rbi/lib/dodopayments/models/discount_create_params.rbi +124 -0
- data/rbi/lib/dodopayments/models/discount_delete_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/discount_list_params.rbi +52 -0
- data/rbi/lib/dodopayments/models/discount_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/discount_type.rbi +17 -0
- data/rbi/lib/dodopayments/models/discount_update_params.rbi +119 -0
- data/rbi/lib/dodopayments/models/dispute.rbi +112 -0
- data/rbi/lib/dodopayments/models/dispute_list_params.rbi +116 -0
- data/rbi/lib/dodopayments/models/dispute_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/dispute_stage.rbi +19 -0
- data/rbi/lib/dodopayments/models/dispute_status.rbi +23 -0
- data/rbi/lib/dodopayments/models/intent_status.rbi +27 -0
- data/rbi/lib/dodopayments/models/invoices/payment_retrieve_params.rbi +23 -0
- data/rbi/lib/dodopayments/models/license_activate_params.rbi +43 -0
- data/rbi/lib/dodopayments/models/license_deactivate_params.rbi +50 -0
- data/rbi/lib/dodopayments/models/license_key.rbi +170 -0
- data/rbi/lib/dodopayments/models/license_key_duration.rbi +31 -0
- data/rbi/lib/dodopayments/models/license_key_instance.rbi +68 -0
- data/rbi/lib/dodopayments/models/license_key_instance_list_params.rbi +63 -0
- data/rbi/lib/dodopayments/models/license_key_instance_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/license_key_instance_update_params.rbi +35 -0
- data/rbi/lib/dodopayments/models/license_key_list_params.rbi +85 -0
- data/rbi/lib/dodopayments/models/license_key_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/license_key_status.rbi +19 -0
- data/rbi/lib/dodopayments/models/license_key_update_params.rbi +66 -0
- data/rbi/lib/dodopayments/models/license_validate_params.rbi +50 -0
- data/rbi/lib/dodopayments/models/license_validate_response.rbi +23 -0
- data/rbi/lib/dodopayments/models/misc_list_supported_countries_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/misc_list_supported_countries_response.rbi +7 -0
- data/rbi/lib/dodopayments/models/one_time_product_cart_item.rbi +43 -0
- data/rbi/lib/dodopayments/models/payment.rbi +439 -0
- data/rbi/lib/dodopayments/models/payment_create_params.rbi +133 -0
- data/rbi/lib/dodopayments/models/payment_create_response.rbi +127 -0
- data/rbi/lib/dodopayments/models/payment_list_params.rbi +116 -0
- data/rbi/lib/dodopayments/models/payment_list_response.rbi +295 -0
- data/rbi/lib/dodopayments/models/payment_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/payout_list_params.rbi +52 -0
- data/rbi/lib/dodopayments/models/payout_list_response.rbi +374 -0
- data/rbi/lib/dodopayments/models/price.rbi +603 -0
- data/rbi/lib/dodopayments/models/product.rbi +228 -0
- data/rbi/lib/dodopayments/models/product_create_params.rbi +162 -0
- data/rbi/lib/dodopayments/models/product_delete_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/product_list_params.rbi +78 -0
- data/rbi/lib/dodopayments/models/product_list_response.rbi +374 -0
- data/rbi/lib/dodopayments/models/product_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/product_unarchive_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/product_update_params.rbi +191 -0
- data/rbi/lib/dodopayments/models/products/image_update_params.rbi +41 -0
- data/rbi/lib/dodopayments/models/products/image_update_response.rbi +33 -0
- data/rbi/lib/dodopayments/models/refund.rbi +267 -0
- data/rbi/lib/dodopayments/models/refund_create_params.rbi +64 -0
- data/rbi/lib/dodopayments/models/refund_list_params.rbi +104 -0
- data/rbi/lib/dodopayments/models/refund_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/refund_status.rbi +20 -0
- data/rbi/lib/dodopayments/models/subscription.rbi +397 -0
- data/rbi/lib/dodopayments/models/subscription_create_params.rbi +154 -0
- data/rbi/lib/dodopayments/models/subscription_create_response.rbi +113 -0
- data/rbi/lib/dodopayments/models/subscription_list_params.rbi +104 -0
- data/rbi/lib/dodopayments/models/subscription_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/models/subscription_status.rbi +23 -0
- data/rbi/lib/dodopayments/models/subscription_update_params.rbi +50 -0
- data/rbi/lib/dodopayments/models/time_interval.rbi +20 -0
- data/rbi/lib/dodopayments/models/webhook_event.rbi +114 -0
- data/rbi/lib/dodopayments/models/webhook_event_list_params.rbi +104 -0
- data/rbi/lib/dodopayments/models/webhook_event_retrieve_params.rbi +21 -0
- data/rbi/lib/dodopayments/pooled_net_requester.rbi +47 -0
- data/rbi/lib/dodopayments/request_options.rbi +109 -0
- data/rbi/lib/dodopayments/resources/customers/customer_portal.rbi +30 -0
- data/rbi/lib/dodopayments/resources/customers.rbi +76 -0
- data/rbi/lib/dodopayments/resources/discounts.rbi +139 -0
- data/rbi/lib/dodopayments/resources/disputes.rbi +57 -0
- data/rbi/lib/dodopayments/resources/invoices/payments.rbi +23 -0
- data/rbi/lib/dodopayments/resources/invoices.rbi +15 -0
- data/rbi/lib/dodopayments/resources/license_key_instances.rbi +61 -0
- data/rbi/lib/dodopayments/resources/license_keys.rbi +77 -0
- data/rbi/lib/dodopayments/resources/licenses.rbi +44 -0
- data/rbi/lib/dodopayments/resources/misc.rbi +18 -0
- data/rbi/lib/dodopayments/resources/payments.rbi +91 -0
- data/rbi/lib/dodopayments/resources/payouts.rbi +28 -0
- data/rbi/lib/dodopayments/resources/products/images.rbi +29 -0
- data/rbi/lib/dodopayments/resources/products.rbi +164 -0
- data/rbi/lib/dodopayments/resources/refunds.rbi +75 -0
- data/rbi/lib/dodopayments/resources/subscriptions.rbi +112 -0
- data/rbi/lib/dodopayments/resources/webhook_events.rbi +50 -0
- data/rbi/lib/dodopayments/util.rbi +270 -0
- data/rbi/lib/dodopayments/version.rbi +5 -0
- data/sig/dodopayments/base_client.rbs +103 -0
- data/sig/dodopayments/base_model.rbs +246 -0
- data/sig/dodopayments/base_page.rbs +20 -0
- data/sig/dodopayments/client.rbs +58 -0
- data/sig/dodopayments/default_page_number_pagination.rbs +7 -0
- data/sig/dodopayments/errors.rbs +99 -0
- data/sig/dodopayments/extern.rbs +4 -0
- data/sig/dodopayments/models/attach_existing_customer.rbs +18 -0
- data/sig/dodopayments/models/billing_address.rbs +38 -0
- data/sig/dodopayments/models/country_code.rbs +508 -0
- data/sig/dodopayments/models/create_new_customer.rbs +37 -0
- data/sig/dodopayments/models/customer.rbs +42 -0
- data/sig/dodopayments/models/customer_create_params.rbs +32 -0
- data/sig/dodopayments/models/customer_limited_details.rbs +23 -0
- data/sig/dodopayments/models/customer_list_params.rbs +29 -0
- data/sig/dodopayments/models/customer_portal_session.rbs +18 -0
- data/sig/dodopayments/models/customer_request.rbs +11 -0
- data/sig/dodopayments/models/customer_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/customer_update_params.rbs +29 -0
- data/sig/dodopayments/models/customers/customer_portal_create_params.rbs +27 -0
- data/sig/dodopayments/models/discount.rbs +62 -0
- data/sig/dodopayments/models/discount_create_params.rbs +52 -0
- data/sig/dodopayments/models/discount_delete_params.rbs +19 -0
- data/sig/dodopayments/models/discount_list_params.rbs +29 -0
- data/sig/dodopayments/models/discount_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/discount_type.rbs +11 -0
- data/sig/dodopayments/models/discount_update_params.rbs +52 -0
- data/sig/dodopayments/models/dispute.rbs +50 -0
- data/sig/dodopayments/models/dispute_list_params.rbs +52 -0
- data/sig/dodopayments/models/dispute_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/dispute_stage.rbs +13 -0
- data/sig/dodopayments/models/dispute_status.rbs +24 -0
- data/sig/dodopayments/models/intent_status.rbs +32 -0
- data/sig/dodopayments/models/invoices/payment_retrieve_params.rbs +21 -0
- data/sig/dodopayments/models/license_activate_params.rbs +28 -0
- data/sig/dodopayments/models/license_deactivate_params.rbs +29 -0
- data/sig/dodopayments/models/license_key.rbs +66 -0
- data/sig/dodopayments/models/license_key_duration.rbs +21 -0
- data/sig/dodopayments/models/license_key_instance.rbs +39 -0
- data/sig/dodopayments/models/license_key_instance_list_params.rbs +32 -0
- data/sig/dodopayments/models/license_key_instance_retrieve_params.rbs +20 -0
- data/sig/dodopayments/models/license_key_instance_update_params.rbs +22 -0
- data/sig/dodopayments/models/license_key_list_params.rbs +44 -0
- data/sig/dodopayments/models/license_key_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/license_key_status.rbs +13 -0
- data/sig/dodopayments/models/license_key_update_params.rbs +32 -0
- data/sig/dodopayments/models/license_validate_params.rbs +29 -0
- data/sig/dodopayments/models/license_validate_response.rbs +18 -0
- data/sig/dodopayments/models/misc_list_supported_countries_params.rbs +20 -0
- data/sig/dodopayments/models/misc_list_supported_countries_response.rbs +8 -0
- data/sig/dodopayments/models/one_time_product_cart_item.rbs +23 -0
- data/sig/dodopayments/models/payment.rbs +408 -0
- data/sig/dodopayments/models/payment_create_params.rbs +58 -0
- data/sig/dodopayments/models/payment_create_response.rbs +51 -0
- data/sig/dodopayments/models/payment_list_params.rbs +52 -0
- data/sig/dodopayments/models/payment_list_response.rbs +356 -0
- data/sig/dodopayments/models/payment_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/payout_list_params.rbs +29 -0
- data/sig/dodopayments/models/payout_list_response.rbs +386 -0
- data/sig/dodopayments/models/price.rbs +717 -0
- data/sig/dodopayments/models/product.rbs +89 -0
- data/sig/dodopayments/models/product_create_params.rbs +71 -0
- data/sig/dodopayments/models/product_delete_params.rbs +19 -0
- data/sig/dodopayments/models/product_list_params.rbs +42 -0
- data/sig/dodopayments/models/product_list_response.rbs +379 -0
- data/sig/dodopayments/models/product_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/product_unarchive_params.rbs +19 -0
- data/sig/dodopayments/models/product_update_params.rbs +75 -0
- data/sig/dodopayments/models/products/image_update_params.rbs +27 -0
- data/sig/dodopayments/models/products/image_update_response.rbs +22 -0
- data/sig/dodopayments/models/refund.rbs +345 -0
- data/sig/dodopayments/models/refund_create_params.rbs +32 -0
- data/sig/dodopayments/models/refund_list_params.rbs +48 -0
- data/sig/dodopayments/models/refund_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/refund_status.rbs +14 -0
- data/sig/dodopayments/models/subscription.rbs +387 -0
- data/sig/dodopayments/models/subscription_create_params.rbs +66 -0
- data/sig/dodopayments/models/subscription_create_response.rbs +47 -0
- data/sig/dodopayments/models/subscription_list_params.rbs +48 -0
- data/sig/dodopayments/models/subscription_retrieve_params.rbs +19 -0
- data/sig/dodopayments/models/subscription_status.rbs +18 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +32 -0
- data/sig/dodopayments/models/time_interval.rbs +14 -0
- data/sig/dodopayments/models/webhook_event.rbs +50 -0
- data/sig/dodopayments/models/webhook_event_list_params.rbs +48 -0
- data/sig/dodopayments/models/webhook_event_retrieve_params.rbs +19 -0
- data/sig/dodopayments/pooled_net_requester.rbs +30 -0
- data/sig/dodopayments/request_options.rbs +46 -0
- data/sig/dodopayments/resources/customers/customer_portal.rbs +21 -0
- data/sig/dodopayments/resources/customers.rbs +55 -0
- data/sig/dodopayments/resources/discounts.rbs +73 -0
- data/sig/dodopayments/resources/disputes.rbs +33 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +20 -0
- data/sig/dodopayments/resources/invoices.rbs +9 -0
- data/sig/dodopayments/resources/license_key_instances.rbs +42 -0
- data/sig/dodopayments/resources/license_keys.rbs +46 -0
- data/sig/dodopayments/resources/licenses.rbs +40 -0
- data/sig/dodopayments/resources/misc.rbs +16 -0
- data/sig/dodopayments/resources/payments.rbs +49 -0
- data/sig/dodopayments/resources/payouts.rbs +17 -0
- data/sig/dodopayments/resources/products/images.rbs +21 -0
- data/sig/dodopayments/resources/products.rbs +86 -0
- data/sig/dodopayments/resources/refunds.rbs +43 -0
- data/sig/dodopayments/resources/subscriptions.rbs +65 -0
- data/sig/dodopayments/resources/webhook_events.rbs +33 -0
- data/sig/dodopayments/util.rbs +136 -0
- data/sig/dodopayments/version.rbs +3 -0
- metadata +383 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Customers
|
6
|
+
sig { returns(Dodopayments::Resources::Customers::CustomerPortal) }
|
7
|
+
def customer_portal
|
8
|
+
end
|
9
|
+
|
10
|
+
sig do
|
11
|
+
params(
|
12
|
+
email: String,
|
13
|
+
name: String,
|
14
|
+
phone_number: T.nilable(String),
|
15
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
16
|
+
)
|
17
|
+
.returns(Dodopayments::Models::Customer)
|
18
|
+
end
|
19
|
+
def create(email:, name:, phone_number: nil, request_options: {})
|
20
|
+
end
|
21
|
+
|
22
|
+
sig do
|
23
|
+
params(
|
24
|
+
customer_id: String,
|
25
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
26
|
+
)
|
27
|
+
.returns(Dodopayments::Models::Customer)
|
28
|
+
end
|
29
|
+
def retrieve(
|
30
|
+
# Customer Id
|
31
|
+
customer_id,
|
32
|
+
request_options: {}
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
sig do
|
37
|
+
params(
|
38
|
+
customer_id: String,
|
39
|
+
name: T.nilable(String),
|
40
|
+
phone_number: T.nilable(String),
|
41
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
42
|
+
)
|
43
|
+
.returns(Dodopayments::Models::Customer)
|
44
|
+
end
|
45
|
+
def update(
|
46
|
+
# Customer Id
|
47
|
+
customer_id,
|
48
|
+
name: nil,
|
49
|
+
phone_number: nil,
|
50
|
+
request_options: {}
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
sig do
|
55
|
+
params(
|
56
|
+
page_number: T.nilable(Integer),
|
57
|
+
page_size: T.nilable(Integer),
|
58
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
59
|
+
)
|
60
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::Customer])
|
61
|
+
end
|
62
|
+
def list(
|
63
|
+
# Page number default is 0
|
64
|
+
page_number: nil,
|
65
|
+
# Page size default is 10 max is 100
|
66
|
+
page_size: nil,
|
67
|
+
request_options: {}
|
68
|
+
)
|
69
|
+
end
|
70
|
+
|
71
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
72
|
+
def self.new(client:)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Discounts
|
6
|
+
# If `code` is omitted or empty, a random 16-char uppercase code is generated.
|
7
|
+
sig do
|
8
|
+
params(
|
9
|
+
amount: Integer,
|
10
|
+
type: Symbol,
|
11
|
+
code: T.nilable(String),
|
12
|
+
expires_at: T.nilable(Time),
|
13
|
+
name: T.nilable(String),
|
14
|
+
restricted_to: T.nilable(T::Array[String]),
|
15
|
+
usage_limit: T.nilable(Integer),
|
16
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
17
|
+
)
|
18
|
+
.returns(Dodopayments::Models::Discount)
|
19
|
+
end
|
20
|
+
def create(
|
21
|
+
# The discount amount.
|
22
|
+
#
|
23
|
+
# - If `discount_type` is **not** `percentage`, `amount` is in **USD cents**. For
|
24
|
+
# example, `100` means `$1.00`. Only USD is allowed.
|
25
|
+
# - If `discount_type` **is** `percentage`, `amount` is in **basis points**. For
|
26
|
+
# example, `540` means `5.4%`.
|
27
|
+
#
|
28
|
+
# Must be at least 1.
|
29
|
+
amount:,
|
30
|
+
type:,
|
31
|
+
# Optionally supply a code (will be uppercased).
|
32
|
+
#
|
33
|
+
# - Must be at least 3 characters if provided.
|
34
|
+
# - If omitted, a random 16-character code is generated.
|
35
|
+
code: nil,
|
36
|
+
# When the discount expires, if ever.
|
37
|
+
expires_at: nil,
|
38
|
+
name: nil,
|
39
|
+
# List of product IDs to restrict usage (if any).
|
40
|
+
restricted_to: nil,
|
41
|
+
# How many times this discount can be used (if any). Must be >= 1 if provided.
|
42
|
+
usage_limit: nil,
|
43
|
+
request_options: {}
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
# GET /discounts/{discount_id}
|
48
|
+
sig do
|
49
|
+
params(
|
50
|
+
discount_id: String,
|
51
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
52
|
+
)
|
53
|
+
.returns(Dodopayments::Models::Discount)
|
54
|
+
end
|
55
|
+
def retrieve(
|
56
|
+
# Discount Id
|
57
|
+
discount_id,
|
58
|
+
request_options: {}
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
# PATCH /discounts/{discount_id}
|
63
|
+
sig do
|
64
|
+
params(
|
65
|
+
discount_id: String,
|
66
|
+
amount: T.nilable(Integer),
|
67
|
+
code: T.nilable(String),
|
68
|
+
expires_at: T.nilable(Time),
|
69
|
+
name: T.nilable(String),
|
70
|
+
restricted_to: T.nilable(T::Array[String]),
|
71
|
+
type: T.nilable(Symbol),
|
72
|
+
usage_limit: T.nilable(Integer),
|
73
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
74
|
+
)
|
75
|
+
.returns(Dodopayments::Models::Discount)
|
76
|
+
end
|
77
|
+
def update(
|
78
|
+
# Discount Id
|
79
|
+
discount_id,
|
80
|
+
# If present, update the discount amount:
|
81
|
+
#
|
82
|
+
# - If `discount_type` is `percentage`, this represents **basis points** (e.g.,
|
83
|
+
# `540` = `5.4%`).
|
84
|
+
# - Otherwise, this represents **USD cents** (e.g., `100` = `$1.00`).
|
85
|
+
#
|
86
|
+
# Must be at least 1 if provided.
|
87
|
+
amount: nil,
|
88
|
+
# If present, update the discount code (uppercase).
|
89
|
+
code: nil,
|
90
|
+
expires_at: nil,
|
91
|
+
name: nil,
|
92
|
+
# If present, replaces all restricted product IDs with this new set. To remove all
|
93
|
+
# restrictions, send empty array
|
94
|
+
restricted_to: nil,
|
95
|
+
type: nil,
|
96
|
+
usage_limit: nil,
|
97
|
+
request_options: {}
|
98
|
+
)
|
99
|
+
end
|
100
|
+
|
101
|
+
# GET /discounts
|
102
|
+
sig do
|
103
|
+
params(
|
104
|
+
page_number: T.nilable(Integer),
|
105
|
+
page_size: T.nilable(Integer),
|
106
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
107
|
+
)
|
108
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::Discount])
|
109
|
+
end
|
110
|
+
def list(
|
111
|
+
# Page number (default = 0).
|
112
|
+
page_number: nil,
|
113
|
+
# Page size (default = 10, max = 100).
|
114
|
+
page_size: nil,
|
115
|
+
request_options: {}
|
116
|
+
)
|
117
|
+
end
|
118
|
+
|
119
|
+
# DELETE /discounts/{discount_id}
|
120
|
+
sig do
|
121
|
+
params(
|
122
|
+
discount_id: String,
|
123
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
124
|
+
)
|
125
|
+
.void
|
126
|
+
end
|
127
|
+
def delete(
|
128
|
+
# Discount Id
|
129
|
+
discount_id,
|
130
|
+
request_options: {}
|
131
|
+
)
|
132
|
+
end
|
133
|
+
|
134
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
135
|
+
def self.new(client:)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Disputes
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
dispute_id: String,
|
9
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
+
)
|
11
|
+
.returns(Dodopayments::Models::Dispute)
|
12
|
+
end
|
13
|
+
def retrieve(
|
14
|
+
# Dispute Id
|
15
|
+
dispute_id,
|
16
|
+
request_options: {}
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
sig do
|
21
|
+
params(
|
22
|
+
created_at_gte: T.nilable(Time),
|
23
|
+
created_at_lte: T.nilable(Time),
|
24
|
+
customer_id: T.nilable(String),
|
25
|
+
dispute_stage: T.nilable(Symbol),
|
26
|
+
dispute_status: T.nilable(Symbol),
|
27
|
+
page_number: T.nilable(Integer),
|
28
|
+
page_size: T.nilable(Integer),
|
29
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
30
|
+
)
|
31
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::Dispute])
|
32
|
+
end
|
33
|
+
def list(
|
34
|
+
# Get events after this created time
|
35
|
+
created_at_gte: nil,
|
36
|
+
# Get events created before this time
|
37
|
+
created_at_lte: nil,
|
38
|
+
# Filter by customer_id
|
39
|
+
customer_id: nil,
|
40
|
+
# Filter by dispute stage
|
41
|
+
dispute_stage: nil,
|
42
|
+
# Filter by dispute status
|
43
|
+
dispute_status: nil,
|
44
|
+
# Page number default is 0
|
45
|
+
page_number: nil,
|
46
|
+
# Page size default is 10 max is 100
|
47
|
+
page_size: nil,
|
48
|
+
request_options: {}
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
53
|
+
def self.new(client:)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Invoices
|
6
|
+
class Payments
|
7
|
+
sig do
|
8
|
+
params(
|
9
|
+
payment_id: String,
|
10
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
)
|
12
|
+
.void
|
13
|
+
end
|
14
|
+
def retrieve(payment_id, request_options: {})
|
15
|
+
end
|
16
|
+
|
17
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
18
|
+
def self.new(client:)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Invoices
|
6
|
+
sig { returns(Dodopayments::Resources::Invoices::Payments) }
|
7
|
+
def payments
|
8
|
+
end
|
9
|
+
|
10
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
11
|
+
def self.new(client:)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class LicenseKeyInstances
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
id: String,
|
9
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
+
)
|
11
|
+
.returns(Dodopayments::Models::LicenseKeyInstance)
|
12
|
+
end
|
13
|
+
def retrieve(
|
14
|
+
# License key instance ID
|
15
|
+
id,
|
16
|
+
request_options: {}
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
sig do
|
21
|
+
params(
|
22
|
+
id: String,
|
23
|
+
name: String,
|
24
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
25
|
+
)
|
26
|
+
.returns(Dodopayments::Models::LicenseKeyInstance)
|
27
|
+
end
|
28
|
+
def update(
|
29
|
+
# License key instance ID
|
30
|
+
id,
|
31
|
+
name:,
|
32
|
+
request_options: {}
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
sig do
|
37
|
+
params(
|
38
|
+
license_key_id: T.nilable(String),
|
39
|
+
page_number: T.nilable(Integer),
|
40
|
+
page_size: T.nilable(Integer),
|
41
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
42
|
+
)
|
43
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::LicenseKeyInstance])
|
44
|
+
end
|
45
|
+
def list(
|
46
|
+
# Filter by license key ID
|
47
|
+
license_key_id: nil,
|
48
|
+
# Page number default is 0
|
49
|
+
page_number: nil,
|
50
|
+
# Page size default is 10 max is 100
|
51
|
+
page_size: nil,
|
52
|
+
request_options: {}
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
56
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
57
|
+
def self.new(client:)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class LicenseKeys
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
id: String,
|
9
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
+
)
|
11
|
+
.returns(Dodopayments::Models::LicenseKey)
|
12
|
+
end
|
13
|
+
def retrieve(
|
14
|
+
# License key ID
|
15
|
+
id,
|
16
|
+
request_options: {}
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
sig do
|
21
|
+
params(
|
22
|
+
id: String,
|
23
|
+
activations_limit: T.nilable(Integer),
|
24
|
+
disabled: T.nilable(T::Boolean),
|
25
|
+
expires_at: T.nilable(Time),
|
26
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
27
|
+
)
|
28
|
+
.returns(Dodopayments::Models::LicenseKey)
|
29
|
+
end
|
30
|
+
def update(
|
31
|
+
# License key ID
|
32
|
+
id,
|
33
|
+
# The updated activation limit for the license key. Use `null` to remove the
|
34
|
+
# limit, or omit this field to leave it unchanged.
|
35
|
+
activations_limit: nil,
|
36
|
+
# Indicates whether the license key should be disabled. A value of `true` disables
|
37
|
+
# the key, while `false` enables it. Omit this field to leave it unchanged.
|
38
|
+
disabled: nil,
|
39
|
+
# The updated expiration timestamp for the license key in UTC. Use `null` to
|
40
|
+
# remove the expiration date, or omit this field to leave it unchanged.
|
41
|
+
expires_at: nil,
|
42
|
+
request_options: {}
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
sig do
|
47
|
+
params(
|
48
|
+
customer_id: T.nilable(String),
|
49
|
+
page_number: T.nilable(Integer),
|
50
|
+
page_size: T.nilable(Integer),
|
51
|
+
product_id: T.nilable(String),
|
52
|
+
status: T.nilable(Symbol),
|
53
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
54
|
+
)
|
55
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::LicenseKey])
|
56
|
+
end
|
57
|
+
def list(
|
58
|
+
# Filter by customer ID
|
59
|
+
customer_id: nil,
|
60
|
+
# Page number default is 0
|
61
|
+
page_number: nil,
|
62
|
+
# Page size default is 10 max is 100
|
63
|
+
page_size: nil,
|
64
|
+
# Filter by product ID
|
65
|
+
product_id: nil,
|
66
|
+
# Filter by license key status
|
67
|
+
status: nil,
|
68
|
+
request_options: {}
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
73
|
+
def self.new(client:)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Licenses
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
license_key: String,
|
9
|
+
name: String,
|
10
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
)
|
12
|
+
.returns(Dodopayments::Models::LicenseKeyInstance)
|
13
|
+
end
|
14
|
+
def activate(license_key:, name:, request_options: {})
|
15
|
+
end
|
16
|
+
|
17
|
+
sig do
|
18
|
+
params(
|
19
|
+
license_key: String,
|
20
|
+
license_key_instance_id: String,
|
21
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
22
|
+
)
|
23
|
+
.void
|
24
|
+
end
|
25
|
+
def deactivate(license_key:, license_key_instance_id:, request_options: {})
|
26
|
+
end
|
27
|
+
|
28
|
+
sig do
|
29
|
+
params(
|
30
|
+
license_key: String,
|
31
|
+
license_key_instance_id: T.nilable(String),
|
32
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
33
|
+
)
|
34
|
+
.returns(Dodopayments::Models::LicenseValidateResponse)
|
35
|
+
end
|
36
|
+
def validate(license_key:, license_key_instance_id: nil, request_options: {})
|
37
|
+
end
|
38
|
+
|
39
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
40
|
+
def self.new(client:)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Misc
|
6
|
+
sig do
|
7
|
+
params(request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything])))
|
8
|
+
.returns(Dodopayments::Models::MiscListSupportedCountriesResponse)
|
9
|
+
end
|
10
|
+
def list_supported_countries(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
14
|
+
def self.new(client:)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Payments
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
billing: Dodopayments::Models::BillingAddress,
|
9
|
+
customer: T.any(Dodopayments::Models::AttachExistingCustomer, Dodopayments::Models::CreateNewCustomer),
|
10
|
+
product_cart: T::Array[Dodopayments::Models::OneTimeProductCartItem],
|
11
|
+
discount_code: T.nilable(String),
|
12
|
+
metadata: T::Hash[Symbol, String],
|
13
|
+
payment_link: T.nilable(T::Boolean),
|
14
|
+
return_url: T.nilable(String),
|
15
|
+
tax_id: T.nilable(String),
|
16
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
17
|
+
)
|
18
|
+
.returns(Dodopayments::Models::PaymentCreateResponse)
|
19
|
+
end
|
20
|
+
def create(
|
21
|
+
billing:,
|
22
|
+
customer:,
|
23
|
+
# List of products in the cart. Must contain at least 1 and at most 100 items.
|
24
|
+
product_cart:,
|
25
|
+
# Discount Code to apply to the transaction
|
26
|
+
discount_code: nil,
|
27
|
+
metadata: nil,
|
28
|
+
# Whether to generate a payment link. Defaults to false if not specified.
|
29
|
+
payment_link: nil,
|
30
|
+
# Optional URL to redirect the customer after payment. Must be a valid URL if
|
31
|
+
# provided.
|
32
|
+
return_url: nil,
|
33
|
+
# Tax ID in case the payment is B2B. If tax id validation fails the payment
|
34
|
+
# creation will fail
|
35
|
+
tax_id: nil,
|
36
|
+
request_options: {}
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
sig do
|
41
|
+
params(
|
42
|
+
payment_id: String,
|
43
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
44
|
+
)
|
45
|
+
.returns(Dodopayments::Models::Payment)
|
46
|
+
end
|
47
|
+
def retrieve(
|
48
|
+
# Payment Id
|
49
|
+
payment_id,
|
50
|
+
request_options: {}
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
sig do
|
55
|
+
params(
|
56
|
+
created_at_gte: T.nilable(Time),
|
57
|
+
created_at_lte: T.nilable(Time),
|
58
|
+
customer_id: T.nilable(String),
|
59
|
+
page_number: T.nilable(Integer),
|
60
|
+
page_size: T.nilable(Integer),
|
61
|
+
status: T.nilable(Symbol),
|
62
|
+
subscription_id: T.nilable(String),
|
63
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
64
|
+
)
|
65
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::PaymentListResponse])
|
66
|
+
end
|
67
|
+
def list(
|
68
|
+
# Get events after this created time
|
69
|
+
created_at_gte: nil,
|
70
|
+
# Get events created before this time
|
71
|
+
created_at_lte: nil,
|
72
|
+
# Filter by customer id
|
73
|
+
customer_id: nil,
|
74
|
+
# Page number default is 0
|
75
|
+
page_number: nil,
|
76
|
+
# Page size default is 10 max is 100
|
77
|
+
page_size: nil,
|
78
|
+
# Filter by status
|
79
|
+
status: nil,
|
80
|
+
# Filter by subscription id
|
81
|
+
subscription_id: nil,
|
82
|
+
request_options: {}
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
87
|
+
def self.new(client:)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Payouts
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
page_number: T.nilable(Integer),
|
9
|
+
page_size: T.nilable(Integer),
|
10
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
)
|
12
|
+
.returns(Dodopayments::DefaultPageNumberPagination[Dodopayments::Models::PayoutListResponse])
|
13
|
+
end
|
14
|
+
def list(
|
15
|
+
# Page number default is 0
|
16
|
+
page_number: nil,
|
17
|
+
# Page size default is 10 max is 100
|
18
|
+
page_size: nil,
|
19
|
+
request_options: {}
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
24
|
+
def self.new(client:)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Resources
|
5
|
+
class Products
|
6
|
+
class Images
|
7
|
+
sig do
|
8
|
+
params(
|
9
|
+
id: String,
|
10
|
+
force_update: T.nilable(T::Boolean),
|
11
|
+
request_options: T.nilable(T.any(Dodopayments::RequestOptions, T::Hash[Symbol, T.anything]))
|
12
|
+
)
|
13
|
+
.returns(Dodopayments::Models::Products::ImageUpdateResponse)
|
14
|
+
end
|
15
|
+
def update(
|
16
|
+
# Product Id
|
17
|
+
id,
|
18
|
+
force_update: nil,
|
19
|
+
request_options: {}
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
24
|
+
def self.new(client:)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|