dodopayments 2.9.1 → 2.11.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 +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +9 -9
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/internal/transport/base_client.rb +2 -0
- data/lib/dodopayments/internal/type/union.rb +21 -7
- data/lib/dodopayments/models/abandoned_checkout_detected_webhook_event.rb +4 -16
- data/lib/dodopayments/models/abandoned_checkout_recovered_webhook_event.rb +4 -16
- data/lib/dodopayments/models/checkout_session_flags.rb +15 -1
- data/lib/dodopayments/models/checkout_session_request.rb +25 -2
- data/lib/dodopayments/models/checkout_session_response.rb +33 -1
- data/lib/dodopayments/models/credit_added_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_balance_low_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_deducted_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_manual_adjustment_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_overage_charged_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_overage_reset_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_rolled_over_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_rollover_forfeited_webhook_event.rb +4 -16
- data/lib/dodopayments/models/discount_detail.rb +143 -0
- data/lib/dodopayments/models/dispute_accepted_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_challenged_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_lost_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_opened_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_won_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dunning_recovered_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dunning_started_webhook_event.rb +4 -16
- data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +4 -16
- data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +4 -16
- data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +4 -16
- data/lib/dodopayments/models/filter_type.rb +71 -0
- data/lib/dodopayments/models/github_permission.rb +19 -0
- data/lib/dodopayments/models/integration_config.rb +3 -19
- data/lib/dodopayments/models/integration_config_response.rb +3 -19
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +22 -0
- data/lib/dodopayments/models/license_key_created_webhook_event.rb +4 -16
- data/lib/dodopayments/models/meter_filter.rb +3 -331
- data/lib/dodopayments/models/payment.rb +15 -3
- data/lib/dodopayments/models/payment_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_create_params.rb +25 -3
- data/lib/dodopayments/models/payment_create_response.rb +14 -3
- data/lib/dodopayments/models/payment_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_method_types.rb +1 -0
- data/lib/dodopayments/models/payment_processing_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_succeeded_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payout_list_response.rb +6 -3
- data/lib/dodopayments/models/price.rb +20 -48
- data/lib/dodopayments/models/product.rb +3 -3
- data/lib/dodopayments/models/product_collection.rb +74 -0
- data/lib/dodopayments/models/product_collection_create_params.rb +47 -0
- data/lib/dodopayments/models/product_collection_delete_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_list_params.rb +46 -0
- data/lib/dodopayments/models/product_collection_list_response.rb +65 -0
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_response.rb +33 -0
- data/lib/dodopayments/models/product_collection_update_images_params.rb +29 -0
- data/lib/dodopayments/models/product_collection_update_images_response.rb +25 -0
- data/lib/dodopayments/models/product_collection_update_params.rb +61 -0
- data/lib/dodopayments/models/product_collections/group_create_params.rb +22 -0
- data/lib/dodopayments/models/product_collections/group_delete_params.rb +28 -0
- data/lib/dodopayments/models/product_collections/group_product.rb +26 -0
- data/lib/dodopayments/models/product_collections/group_update_params.rb +59 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +41 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +15 -0
- data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +36 -0
- data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +47 -0
- data/lib/dodopayments/models/product_collections/groups/product_collection_product.rb +132 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_details.rb +42 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_response.rb +39 -0
- data/lib/dodopayments/models/product_create_params.rb +3 -3
- data/lib/dodopayments/models/product_item_req.rb +42 -1
- data/lib/dodopayments/models/product_update_params.rb +3 -3
- data/lib/dodopayments/models/refund_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/refund_succeeded_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription.rb +24 -5
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_create_params.rb +25 -3
- data/lib/dodopayments/models/subscription_create_response.rb +14 -3
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_list_response.rb +45 -5
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +21 -49
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_update_params.rb +12 -1
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +19 -37
- data/lib/dodopayments/models/subscription_updated_webhook_event.rb +4 -16
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +41 -39
- data/lib/dodopayments/models/unwrap_webhook_event.rb +41 -39
- data/lib/dodopayments/models/update_subscription_plan_req.rb +17 -6
- data/lib/dodopayments/models/webhook_event_type.rb +1 -2
- data/lib/dodopayments/models/webhook_payload.rb +52 -143
- data/lib/dodopayments/models.rb +24 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +12 -4
- data/lib/dodopayments/resources/invoices/payments.rb +18 -0
- data/lib/dodopayments/resources/payments.rb +6 -2
- data/lib/dodopayments/resources/product_collections/groups/items.rb +111 -0
- data/lib/dodopayments/resources/product_collections/groups.rb +109 -0
- data/lib/dodopayments/resources/product_collections.rb +179 -0
- data/lib/dodopayments/resources/subscriptions.rb +20 -10
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +29 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/abandoned_checkout_detected_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/checkout_session_flags.rbi +23 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +26 -0
- data/rbi/dodopayments/models/checkout_session_response.rbi +43 -5
- data/rbi/dodopayments/models/credit_added_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/credit_balance_low_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_deducted_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_expired_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_manual_adjustment_webhook_event.rbi +4 -39
- data/rbi/dodopayments/models/credit_overage_charged_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/credit_overage_reset_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/credit_rolled_over_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_rollover_forfeited_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/discount_detail.rbi +161 -0
- data/rbi/dodopayments/models/dispute_accepted_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_cancelled_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_challenged_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/dispute_expired_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_lost_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/dispute_opened_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_won_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/dunning_recovered_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dunning_started_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +4 -39
- data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/filter_type.rbi +112 -0
- data/rbi/dodopayments/models/github_permission.rbi +26 -0
- data/rbi/dodopayments/models/integration_config.rbi +3 -59
- data/rbi/dodopayments/models/integration_config_response.rbi +3 -59
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +40 -0
- data/rbi/dodopayments/models/license_key_created_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/meter_filter.rbi +3 -572
- data/rbi/dodopayments/models/payment.rbi +10 -2
- data/rbi/dodopayments/models/payment_cancelled_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/payment_create_params.rbi +26 -2
- data/rbi/dodopayments/models/payment_create_response.rbi +12 -2
- data/rbi/dodopayments/models/payment_failed_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/payment_method_types.rbi +1 -0
- data/rbi/dodopayments/models/payment_processing_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/payment_succeeded_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/price.rbi +18 -90
- data/rbi/dodopayments/models/product_collection.rbi +108 -0
- data/rbi/dodopayments/models/product_collection_create_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_list_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_list_response.rbi +88 -0
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +56 -0
- data/rbi/dodopayments/models/product_collection_update_images_params.rbi +52 -0
- data/rbi/dodopayments/models/product_collection_update_images_response.rbi +40 -0
- data/rbi/dodopayments/models/product_collection_update_params.rbi +84 -0
- data/rbi/dodopayments/models/product_collections/group_create_params.rbi +40 -0
- data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +48 -0
- data/rbi/dodopayments/models/product_collections/group_product.rbi +46 -0
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +80 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +17 -0
- data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +55 -0
- data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/product_collection_product.rbi +148 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_details.rbi +67 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_response.rbi +68 -0
- data/rbi/dodopayments/models/product_item_req.rbi +74 -3
- data/rbi/dodopayments/models/refund_failed_webhook_event.rbi +4 -31
- data/rbi/dodopayments/models/refund_succeeded_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/subscription.rbi +22 -4
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_create_params.rbi +26 -2
- data/rbi/dodopayments/models/subscription_create_response.rbi +12 -2
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_list_response.rbi +77 -4
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +18 -123
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_update_params.rbi +14 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +28 -112
- data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +18 -8
- data/rbi/dodopayments/models/webhook_event_type.rbi +5 -4
- data/rbi/dodopayments/models/webhook_payload.rbi +46 -466
- data/rbi/dodopayments/models.rbi +31 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +22 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +9 -0
- data/rbi/dodopayments/resources/payments.rbi +11 -1
- data/rbi/dodopayments/resources/product_collections/groups/items.rbi +83 -0
- data/rbi/dodopayments/resources/product_collections/groups.rbi +88 -0
- data/rbi/dodopayments/resources/product_collections.rbi +149 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +37 -13
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/abandoned_checkout_detected_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +10 -0
- data/sig/dodopayments/models/checkout_session_response.rbs +27 -3
- data/sig/dodopayments/models/credit_added_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_balance_low_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_deducted_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_manual_adjustment_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_overage_charged_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_overage_reset_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_rolled_over_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_rollover_forfeited_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/discount_detail.rbs +95 -0
- data/sig/dodopayments/models/dispute_accepted_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_challenged_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_lost_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_opened_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_won_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dunning_recovered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dunning_started_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_created_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_delivered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_revoked_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/filter_type.rbs +52 -0
- data/sig/dodopayments/models/github_permission.rbs +17 -0
- data/sig/dodopayments/models/integration_config.rbs +4 -18
- data/sig/dodopayments/models/integration_config_response.rbs +4 -18
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +25 -0
- data/sig/dodopayments/models/license_key_created_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/meter_filter.rbs +4 -252
- data/sig/dodopayments/models/payment.rbs +5 -0
- data/sig/dodopayments/models/payment_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_create_params.rbs +10 -0
- data/sig/dodopayments/models/payment_create_response.rbs +5 -0
- data/sig/dodopayments/models/payment_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_method_types.rbs +2 -0
- data/sig/dodopayments/models/payment_processing_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_succeeded_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/price.rbs +15 -45
- data/sig/dodopayments/models/product_collection.rbs +55 -0
- data/sig/dodopayments/models/product_collection_create_params.rbs +41 -0
- data/sig/dodopayments/models/product_collection_delete_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_list_params.rbs +49 -0
- data/sig/dodopayments/models/product_collection_list_response.rbs +50 -0
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_response.rbs +30 -0
- data/sig/dodopayments/models/product_collection_update_images_params.rbs +28 -0
- data/sig/dodopayments/models/product_collection_update_images_response.rbs +16 -0
- data/sig/dodopayments/models/product_collection_update_params.rbs +51 -0
- data/sig/dodopayments/models/product_collections/group_create_params.rbs +27 -0
- data/sig/dodopayments/models/product_collections/group_delete_params.rbs +30 -0
- data/sig/dodopayments/models/product_collections/group_product.rbs +17 -0
- data/sig/dodopayments/models/product_collections/group_update_params.rbs +48 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +12 -0
- data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +36 -0
- data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/product_collection_product.rbs +99 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_details.rbs +34 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_response.rbs +39 -0
- data/sig/dodopayments/models/product_item_req.rbs +27 -3
- data/sig/dodopayments/models/refund_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/refund_succeeded_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription.rbs +10 -0
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_create_params.rbs +10 -0
- data/sig/dodopayments/models/subscription_create_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_list_response.rbs +29 -0
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_preview_change_plan_response.rbs +15 -45
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +17 -57
- data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -4
- data/sig/dodopayments/models/webhook_payload.rbs +50 -213
- data/sig/dodopayments/models.rbs +24 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +4 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +5 -0
- data/sig/dodopayments/resources/payments.rbs +2 -0
- data/sig/dodopayments/resources/product_collections/groups/items.rbs +33 -0
- data/sig/dodopayments/resources/product_collections/groups.rbs +34 -0
- data/sig/dodopayments/resources/product_collections.rbs +56 -0
- data/sig/dodopayments/resources/subscriptions.rbs +6 -1
- metadata +89 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_delete_params =
|
|
5
|
+
{ id: String, group_id: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class GroupDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor group_id: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
id: String,
|
|
18
|
+
group_id: String,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: String,
|
|
24
|
+
group_id: String,
|
|
25
|
+
request_options: Dodopayments::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_product = { product_id: String, status: bool? }
|
|
5
|
+
|
|
6
|
+
class GroupProduct < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor product_id: String
|
|
8
|
+
|
|
9
|
+
attr_accessor status: bool?
|
|
10
|
+
|
|
11
|
+
def initialize: (product_id: String, ?status: bool?) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { product_id: String, status: bool? }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
group_id: String,
|
|
8
|
+
group_name: String?,
|
|
9
|
+
product_order: ::Array[String]?,
|
|
10
|
+
status: bool?
|
|
11
|
+
}
|
|
12
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class GroupUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor group_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor group_name: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor product_order: ::Array[String]?
|
|
25
|
+
|
|
26
|
+
attr_accessor status: bool?
|
|
27
|
+
|
|
28
|
+
def initialize: (
|
|
29
|
+
id: String,
|
|
30
|
+
group_id: String,
|
|
31
|
+
?group_name: String?,
|
|
32
|
+
?product_order: ::Array[String]?,
|
|
33
|
+
?status: bool?,
|
|
34
|
+
?request_options: Dodopayments::request_opts
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
id: String,
|
|
39
|
+
group_id: String,
|
|
40
|
+
group_name: String?,
|
|
41
|
+
product_order: ::Array[String]?,
|
|
42
|
+
status: bool?,
|
|
43
|
+
request_options: Dodopayments::RequestOptions
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type item_create_params =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
group_id: String,
|
|
9
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct]
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class ItemCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor group_id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor products: ::Array[Dodopayments::ProductCollections::GroupProduct]
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
group_id: String,
|
|
26
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
27
|
+
?request_options: Dodopayments::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
id: String,
|
|
32
|
+
group_id: String,
|
|
33
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
34
|
+
request_options: Dodopayments::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type item_create_response =
|
|
6
|
+
::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
|
|
7
|
+
|
|
8
|
+
ItemCreateResponse: Dodopayments::Internal::Type::Converter
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type item_delete_params =
|
|
6
|
+
{ id: String, group_id: String, item_id: String }
|
|
7
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class ItemDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
10
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor group_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor item_id: String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
group_id: String,
|
|
22
|
+
item_id: String,
|
|
23
|
+
?request_options: Dodopayments::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
group_id: String,
|
|
29
|
+
item_id: String,
|
|
30
|
+
request_options: Dodopayments::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type item_update_params =
|
|
6
|
+
{ id: String, group_id: String, item_id: String, status: bool }
|
|
7
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class ItemUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
10
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor group_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor item_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor status: bool
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
id: String,
|
|
23
|
+
group_id: String,
|
|
24
|
+
item_id: String,
|
|
25
|
+
status: bool,
|
|
26
|
+
?request_options: Dodopayments::request_opts
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
id: String,
|
|
31
|
+
group_id: String,
|
|
32
|
+
item_id: String,
|
|
33
|
+
status: bool,
|
|
34
|
+
request_options: Dodopayments::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
module Groups
|
|
5
|
+
type product_collection_product =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
addons_count: Integer,
|
|
9
|
+
files_count: Integer,
|
|
10
|
+
has_credit_entitlements: bool,
|
|
11
|
+
is_recurring: bool,
|
|
12
|
+
license_key_enabled: bool,
|
|
13
|
+
meters_count: Integer,
|
|
14
|
+
product_id: String,
|
|
15
|
+
status: bool,
|
|
16
|
+
currency: Dodopayments::Models::currency?,
|
|
17
|
+
description: String?,
|
|
18
|
+
name: String?,
|
|
19
|
+
price: Integer?,
|
|
20
|
+
price_detail: Dodopayments::Models::price?,
|
|
21
|
+
tax_category: Dodopayments::Models::tax_category?,
|
|
22
|
+
tax_inclusive: bool?
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class ProductCollectionProduct < Dodopayments::Internal::Type::BaseModel
|
|
26
|
+
attr_accessor id: String
|
|
27
|
+
|
|
28
|
+
attr_accessor addons_count: Integer
|
|
29
|
+
|
|
30
|
+
attr_accessor files_count: Integer
|
|
31
|
+
|
|
32
|
+
attr_accessor has_credit_entitlements: bool
|
|
33
|
+
|
|
34
|
+
attr_accessor is_recurring: bool
|
|
35
|
+
|
|
36
|
+
attr_accessor license_key_enabled: bool
|
|
37
|
+
|
|
38
|
+
attr_accessor meters_count: Integer
|
|
39
|
+
|
|
40
|
+
attr_accessor product_id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor status: bool
|
|
43
|
+
|
|
44
|
+
attr_accessor currency: Dodopayments::Models::currency?
|
|
45
|
+
|
|
46
|
+
attr_accessor description: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor name: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor price: Integer?
|
|
51
|
+
|
|
52
|
+
attr_accessor price_detail: Dodopayments::Models::price?
|
|
53
|
+
|
|
54
|
+
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
55
|
+
|
|
56
|
+
attr_accessor tax_inclusive: bool?
|
|
57
|
+
|
|
58
|
+
def initialize: (
|
|
59
|
+
id: String,
|
|
60
|
+
addons_count: Integer,
|
|
61
|
+
files_count: Integer,
|
|
62
|
+
has_credit_entitlements: bool,
|
|
63
|
+
is_recurring: bool,
|
|
64
|
+
license_key_enabled: bool,
|
|
65
|
+
meters_count: Integer,
|
|
66
|
+
product_id: String,
|
|
67
|
+
status: bool,
|
|
68
|
+
?currency: Dodopayments::Models::currency?,
|
|
69
|
+
?description: String?,
|
|
70
|
+
?name: String?,
|
|
71
|
+
?price: Integer?,
|
|
72
|
+
?price_detail: Dodopayments::Models::price?,
|
|
73
|
+
?tax_category: Dodopayments::Models::tax_category?,
|
|
74
|
+
?tax_inclusive: bool?
|
|
75
|
+
) -> void
|
|
76
|
+
|
|
77
|
+
def to_hash: -> {
|
|
78
|
+
id: String,
|
|
79
|
+
addons_count: Integer,
|
|
80
|
+
files_count: Integer,
|
|
81
|
+
has_credit_entitlements: bool,
|
|
82
|
+
is_recurring: bool,
|
|
83
|
+
license_key_enabled: bool,
|
|
84
|
+
meters_count: Integer,
|
|
85
|
+
product_id: String,
|
|
86
|
+
status: bool,
|
|
87
|
+
currency: Dodopayments::Models::currency?,
|
|
88
|
+
description: String?,
|
|
89
|
+
name: String?,
|
|
90
|
+
price: Integer?,
|
|
91
|
+
price_detail: Dodopayments::Models::price?,
|
|
92
|
+
tax_category: Dodopayments::Models::tax_category?,
|
|
93
|
+
tax_inclusive: bool?
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class ProductCollectionGroupDetails = ProductCollections::ProductCollectionGroupDetails
|
|
4
|
+
|
|
5
|
+
module ProductCollections
|
|
6
|
+
type product_collection_group_details =
|
|
7
|
+
{
|
|
8
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
9
|
+
group_name: String?,
|
|
10
|
+
status: bool?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ProductCollectionGroupDetails < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor products: ::Array[Dodopayments::ProductCollections::GroupProduct]
|
|
15
|
+
|
|
16
|
+
attr_accessor group_name: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor status: bool?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
22
|
+
?group_name: String?,
|
|
23
|
+
?status: bool?
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
products: ::Array[Dodopayments::ProductCollections::GroupProduct],
|
|
28
|
+
group_name: String?,
|
|
29
|
+
status: bool?
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class ProductCollectionGroupResponse = ProductCollections::ProductCollectionGroupResponse
|
|
4
|
+
|
|
5
|
+
module ProductCollections
|
|
6
|
+
type product_collection_group_response =
|
|
7
|
+
{
|
|
8
|
+
group_id: String,
|
|
9
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
10
|
+
status: bool,
|
|
11
|
+
group_name: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ProductCollectionGroupResponse < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor group_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
|
|
18
|
+
|
|
19
|
+
attr_accessor status: bool
|
|
20
|
+
|
|
21
|
+
attr_accessor group_name: String?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
group_id: String,
|
|
25
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
26
|
+
status: bool,
|
|
27
|
+
?group_name: String?
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
group_id: String,
|
|
32
|
+
products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
|
|
33
|
+
status: bool,
|
|
34
|
+
group_name: String?
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
quantity: Integer,
|
|
7
7
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
8
|
-
amount: Integer
|
|
8
|
+
amount: Integer?,
|
|
9
|
+
credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class ProductItemReq < Dodopayments::Internal::Type::BaseModel
|
|
@@ -17,19 +18,42 @@ module Dodopayments
|
|
|
17
18
|
|
|
18
19
|
attr_accessor amount: Integer?
|
|
19
20
|
|
|
21
|
+
attr_accessor credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
|
|
22
|
+
|
|
20
23
|
def initialize: (
|
|
21
24
|
product_id: String,
|
|
22
25
|
quantity: Integer,
|
|
23
26
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
24
|
-
?amount: Integer
|
|
27
|
+
?amount: Integer?,
|
|
28
|
+
?credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
|
|
25
29
|
) -> void
|
|
26
30
|
|
|
27
31
|
def to_hash: -> {
|
|
28
32
|
product_id: String,
|
|
29
33
|
quantity: Integer,
|
|
30
34
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
31
|
-
amount: Integer
|
|
35
|
+
amount: Integer?,
|
|
36
|
+
credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
|
|
32
37
|
}
|
|
38
|
+
|
|
39
|
+
type credit_entitlement =
|
|
40
|
+
{ credit_entitlement_id: String, credits_amount: String }
|
|
41
|
+
|
|
42
|
+
class CreditEntitlement < Dodopayments::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor credit_entitlement_id: String
|
|
44
|
+
|
|
45
|
+
attr_accessor credits_amount: String
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
credit_entitlement_id: String,
|
|
49
|
+
credits_amount: String
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
credit_entitlement_id: String,
|
|
54
|
+
credits_amount: String
|
|
55
|
+
}
|
|
56
|
+
end
|
|
33
57
|
end
|
|
34
58
|
end
|
|
35
59
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Refund,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"refund.failed"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class RefundFailedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"refund.failed"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Refund,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"refund.failed"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Refund,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"refund.failed"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"refund.failed"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
REFUND_FAILED: :"refund.failed"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::RefundFailedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Refund,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"refund.succeeded"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class RefundSucceededWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"refund.succeeded"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Refund,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"refund.succeeded"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Refund,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"refund.succeeded"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"refund.succeeded"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
REFUND_SUCCEEDED: :"refund.succeeded"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::RefundSucceededWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -30,8 +30,10 @@ module Dodopayments
|
|
|
30
30
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
31
31
|
cancelled_at: Time?,
|
|
32
32
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
33
|
+
customer_business_name: String?,
|
|
33
34
|
discount_cycles_remaining: Integer?,
|
|
34
35
|
discount_id: String?,
|
|
36
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
35
37
|
expires_at: Time?,
|
|
36
38
|
payment_method_id: String?,
|
|
37
39
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -95,10 +97,14 @@ module Dodopayments
|
|
|
95
97
|
|
|
96
98
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
97
99
|
|
|
100
|
+
attr_accessor customer_business_name: String?
|
|
101
|
+
|
|
98
102
|
attr_accessor discount_cycles_remaining: Integer?
|
|
99
103
|
|
|
100
104
|
attr_accessor discount_id: String?
|
|
101
105
|
|
|
106
|
+
attr_accessor discounts: ::Array[Dodopayments::DiscountDetail]?
|
|
107
|
+
|
|
102
108
|
attr_accessor expires_at: Time?
|
|
103
109
|
|
|
104
110
|
attr_accessor payment_method_id: String?
|
|
@@ -136,8 +142,10 @@ module Dodopayments
|
|
|
136
142
|
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
137
143
|
?cancelled_at: Time?,
|
|
138
144
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
145
|
+
?customer_business_name: String?,
|
|
139
146
|
?discount_cycles_remaining: Integer?,
|
|
140
147
|
?discount_id: String?,
|
|
148
|
+
?discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
141
149
|
?expires_at: Time?,
|
|
142
150
|
?payment_method_id: String?,
|
|
143
151
|
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -173,8 +181,10 @@ module Dodopayments
|
|
|
173
181
|
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
174
182
|
cancelled_at: Time?,
|
|
175
183
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
184
|
+
customer_business_name: String?,
|
|
176
185
|
discount_cycles_remaining: Integer?,
|
|
177
186
|
discount_id: String?,
|
|
187
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
178
188
|
expires_at: Time?,
|
|
179
189
|
payment_method_id: String?,
|
|
180
190
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Subscription,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"subscription.active"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class SubscriptionActiveWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"subscription.active"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Subscription,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"subscription.active"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Subscription,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"subscription.active"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"subscription.active"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
SUBSCRIPTION_ACTIVE: :"subscription.active"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionActiveWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Subscription,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"subscription.cancelled"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class SubscriptionCancelledWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"subscription.cancelled"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Subscription,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"subscription.cancelled"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Subscription,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"subscription.cancelled"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"subscription.cancelled"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
SUBSCRIPTION_CANCELLED: :"subscription.cancelled"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|