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
|
@@ -15,38 +15,24 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
type github_config =
|
|
17
17
|
{
|
|
18
|
-
permission: Dodopayments::Models::
|
|
18
|
+
permission: Dodopayments::Models::github_permission,
|
|
19
19
|
target_id: String
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
23
|
-
attr_accessor permission: Dodopayments::Models::
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::github_permission
|
|
24
24
|
|
|
25
25
|
attr_accessor target_id: String
|
|
26
26
|
|
|
27
27
|
def initialize: (
|
|
28
|
-
permission: Dodopayments::Models::
|
|
28
|
+
permission: Dodopayments::Models::github_permission,
|
|
29
29
|
target_id: String
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
permission: Dodopayments::Models::
|
|
33
|
+
permission: Dodopayments::Models::github_permission,
|
|
34
34
|
target_id: String
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
-
|
|
39
|
-
module Permission
|
|
40
|
-
extend Dodopayments::Internal::Type::Enum
|
|
41
|
-
|
|
42
|
-
PULL: :pull
|
|
43
|
-
PUSH: :push
|
|
44
|
-
ADMIN: :admin
|
|
45
|
-
MAINTAIN: :maintain
|
|
46
|
-
TRIAGE: :triage
|
|
47
|
-
|
|
48
|
-
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfig::GitHubConfig::permission]
|
|
49
|
-
end
|
|
50
36
|
end
|
|
51
37
|
|
|
52
38
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -15,38 +15,24 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
type github_config =
|
|
17
17
|
{
|
|
18
|
-
permission: Dodopayments::Models::
|
|
18
|
+
permission: Dodopayments::Models::github_permission,
|
|
19
19
|
target_id: String
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
23
|
-
attr_accessor permission: Dodopayments::Models::
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::github_permission
|
|
24
24
|
|
|
25
25
|
attr_accessor target_id: String
|
|
26
26
|
|
|
27
27
|
def initialize: (
|
|
28
|
-
permission: Dodopayments::Models::
|
|
28
|
+
permission: Dodopayments::Models::github_permission,
|
|
29
29
|
target_id: String
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
permission: Dodopayments::Models::
|
|
33
|
+
permission: Dodopayments::Models::github_permission,
|
|
34
34
|
target_id: String
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
-
|
|
39
|
-
module Permission
|
|
40
|
-
extend Dodopayments::Internal::Type::Enum
|
|
41
|
-
|
|
42
|
-
PULL: :pull
|
|
43
|
-
PUSH: :push
|
|
44
|
-
ADMIN: :admin
|
|
45
|
-
MAINTAIN: :maintain
|
|
46
|
-
TRIAGE: :triage
|
|
47
|
-
|
|
48
|
-
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission]
|
|
49
|
-
end
|
|
50
36
|
end
|
|
51
37
|
|
|
52
38
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Invoices
|
|
4
|
+
type payment_retrieve_payout_params =
|
|
5
|
+
{ payout_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PaymentRetrievePayoutParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor payout_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
payout_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
payout_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::LicenseKey,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"license_key.created"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class LicenseKeyCreatedWebhookEvent < 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: :"license_key.created"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::LicenseKey,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"license_key.created"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::LicenseKey,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"license_key.created"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"license_key.created"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
LICENSE_KEY_CREATED: :"license_key.created"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::LicenseKeyCreatedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -2,272 +2,24 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type meter_filter =
|
|
4
4
|
{
|
|
5
|
-
clauses: Dodopayments::Models::
|
|
5
|
+
clauses: Dodopayments::Models::filter_type,
|
|
6
6
|
conjunction: Dodopayments::Models::conjunction
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
class MeterFilter < Dodopayments::Internal::Type::BaseModel
|
|
10
|
-
attr_accessor clauses: Dodopayments::Models::
|
|
10
|
+
attr_accessor clauses: Dodopayments::Models::filter_type
|
|
11
11
|
|
|
12
12
|
attr_accessor conjunction: Dodopayments::Models::conjunction
|
|
13
13
|
|
|
14
14
|
def initialize: (
|
|
15
|
-
clauses: Dodopayments::Models::
|
|
15
|
+
clauses: Dodopayments::Models::filter_type,
|
|
16
16
|
conjunction: Dodopayments::Models::conjunction
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
19
19
|
def to_hash: -> {
|
|
20
|
-
clauses: Dodopayments::Models::
|
|
20
|
+
clauses: Dodopayments::Models::filter_type,
|
|
21
21
|
conjunction: Dodopayments::Models::conjunction
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
type clauses =
|
|
25
|
-
::Array[Dodopayments::MeterFilter::Clauses::DirectFilterCondition]
|
|
26
|
-
| ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter]
|
|
27
|
-
|
|
28
|
-
module Clauses
|
|
29
|
-
extend Dodopayments::Internal::Type::Union
|
|
30
|
-
|
|
31
|
-
type direct_filter_condition =
|
|
32
|
-
{
|
|
33
|
-
key: String,
|
|
34
|
-
operator: Dodopayments::Models::filter_operator,
|
|
35
|
-
value: Dodopayments::Models::MeterFilter::Clauses::DirectFilterCondition::value
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
class DirectFilterCondition < Dodopayments::Internal::Type::BaseModel
|
|
39
|
-
attr_accessor key: String
|
|
40
|
-
|
|
41
|
-
attr_accessor operator: Dodopayments::Models::filter_operator
|
|
42
|
-
|
|
43
|
-
attr_accessor value: Dodopayments::Models::MeterFilter::Clauses::DirectFilterCondition::value
|
|
44
|
-
|
|
45
|
-
def initialize: (
|
|
46
|
-
key: String,
|
|
47
|
-
operator: Dodopayments::Models::filter_operator,
|
|
48
|
-
value: Dodopayments::Models::MeterFilter::Clauses::DirectFilterCondition::value
|
|
49
|
-
) -> void
|
|
50
|
-
|
|
51
|
-
def to_hash: -> {
|
|
52
|
-
key: String,
|
|
53
|
-
operator: Dodopayments::Models::filter_operator,
|
|
54
|
-
value: Dodopayments::Models::MeterFilter::Clauses::DirectFilterCondition::value
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type value = String | Float | bool
|
|
58
|
-
|
|
59
|
-
module Value
|
|
60
|
-
extend Dodopayments::Internal::Type::Union
|
|
61
|
-
|
|
62
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::DirectFilterCondition::value]
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
type nested_meter_filter =
|
|
67
|
-
{
|
|
68
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::clauses,
|
|
69
|
-
conjunction: Dodopayments::Models::conjunction
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
class NestedMeterFilter < Dodopayments::Internal::Type::BaseModel
|
|
73
|
-
attr_accessor clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::clauses
|
|
74
|
-
|
|
75
|
-
attr_accessor conjunction: Dodopayments::Models::conjunction
|
|
76
|
-
|
|
77
|
-
def initialize: (
|
|
78
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::clauses,
|
|
79
|
-
conjunction: Dodopayments::Models::conjunction
|
|
80
|
-
) -> void
|
|
81
|
-
|
|
82
|
-
def to_hash: -> {
|
|
83
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::clauses,
|
|
84
|
-
conjunction: Dodopayments::Models::conjunction
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
type clauses =
|
|
88
|
-
::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition]
|
|
89
|
-
| ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter]
|
|
90
|
-
|
|
91
|
-
module Clauses
|
|
92
|
-
extend Dodopayments::Internal::Type::Union
|
|
93
|
-
|
|
94
|
-
type level1_filter_condition =
|
|
95
|
-
{
|
|
96
|
-
key: String,
|
|
97
|
-
operator: Dodopayments::Models::filter_operator,
|
|
98
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition::value
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
class Level1FilterCondition < Dodopayments::Internal::Type::BaseModel
|
|
102
|
-
attr_accessor key: String
|
|
103
|
-
|
|
104
|
-
attr_accessor operator: Dodopayments::Models::filter_operator
|
|
105
|
-
|
|
106
|
-
attr_accessor value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition::value
|
|
107
|
-
|
|
108
|
-
def initialize: (
|
|
109
|
-
key: String,
|
|
110
|
-
operator: Dodopayments::Models::filter_operator,
|
|
111
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition::value
|
|
112
|
-
) -> void
|
|
113
|
-
|
|
114
|
-
def to_hash: -> {
|
|
115
|
-
key: String,
|
|
116
|
-
operator: Dodopayments::Models::filter_operator,
|
|
117
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition::value
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
type value = String | Float | bool
|
|
121
|
-
|
|
122
|
-
module Value
|
|
123
|
-
extend Dodopayments::Internal::Type::Union
|
|
124
|
-
|
|
125
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1FilterCondition::value]
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
type level1_nested_filter =
|
|
130
|
-
{
|
|
131
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::clauses,
|
|
132
|
-
conjunction: Dodopayments::Models::conjunction
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
class Level1NestedFilter < Dodopayments::Internal::Type::BaseModel
|
|
136
|
-
attr_accessor clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::clauses
|
|
137
|
-
|
|
138
|
-
attr_accessor conjunction: Dodopayments::Models::conjunction
|
|
139
|
-
|
|
140
|
-
def initialize: (
|
|
141
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::clauses,
|
|
142
|
-
conjunction: Dodopayments::Models::conjunction
|
|
143
|
-
) -> void
|
|
144
|
-
|
|
145
|
-
def to_hash: -> {
|
|
146
|
-
clauses: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::clauses,
|
|
147
|
-
conjunction: Dodopayments::Models::conjunction
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
type clauses =
|
|
151
|
-
::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition]
|
|
152
|
-
| ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter]
|
|
153
|
-
|
|
154
|
-
module Clauses
|
|
155
|
-
extend Dodopayments::Internal::Type::Union
|
|
156
|
-
|
|
157
|
-
type level2_filter_condition =
|
|
158
|
-
{
|
|
159
|
-
key: String,
|
|
160
|
-
operator: Dodopayments::Models::filter_operator,
|
|
161
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition::value
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
class Level2FilterCondition < Dodopayments::Internal::Type::BaseModel
|
|
165
|
-
attr_accessor key: String
|
|
166
|
-
|
|
167
|
-
attr_accessor operator: Dodopayments::Models::filter_operator
|
|
168
|
-
|
|
169
|
-
attr_accessor value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition::value
|
|
170
|
-
|
|
171
|
-
def initialize: (
|
|
172
|
-
key: String,
|
|
173
|
-
operator: Dodopayments::Models::filter_operator,
|
|
174
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition::value
|
|
175
|
-
) -> void
|
|
176
|
-
|
|
177
|
-
def to_hash: -> {
|
|
178
|
-
key: String,
|
|
179
|
-
operator: Dodopayments::Models::filter_operator,
|
|
180
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition::value
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
type value = String | Float | bool
|
|
184
|
-
|
|
185
|
-
module Value
|
|
186
|
-
extend Dodopayments::Internal::Type::Union
|
|
187
|
-
|
|
188
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2FilterCondition::value]
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
type level2_nested_filter =
|
|
193
|
-
{
|
|
194
|
-
clauses: ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause],
|
|
195
|
-
conjunction: Dodopayments::Models::conjunction
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
class Level2NestedFilter < Dodopayments::Internal::Type::BaseModel
|
|
199
|
-
attr_accessor clauses: ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause]
|
|
200
|
-
|
|
201
|
-
attr_accessor conjunction: Dodopayments::Models::conjunction
|
|
202
|
-
|
|
203
|
-
def initialize: (
|
|
204
|
-
clauses: ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause],
|
|
205
|
-
conjunction: Dodopayments::Models::conjunction
|
|
206
|
-
) -> void
|
|
207
|
-
|
|
208
|
-
def to_hash: -> {
|
|
209
|
-
clauses: ::Array[Dodopayments::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause],
|
|
210
|
-
conjunction: Dodopayments::Models::conjunction
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
type clause =
|
|
214
|
-
{
|
|
215
|
-
key: String,
|
|
216
|
-
operator: Dodopayments::Models::filter_operator,
|
|
217
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause::value
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
class Clause < Dodopayments::Internal::Type::BaseModel
|
|
221
|
-
attr_accessor key: String
|
|
222
|
-
|
|
223
|
-
attr_accessor operator: Dodopayments::Models::filter_operator
|
|
224
|
-
|
|
225
|
-
attr_accessor value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause::value
|
|
226
|
-
|
|
227
|
-
def initialize: (
|
|
228
|
-
key: String,
|
|
229
|
-
operator: Dodopayments::Models::filter_operator,
|
|
230
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause::value
|
|
231
|
-
) -> void
|
|
232
|
-
|
|
233
|
-
def to_hash: -> {
|
|
234
|
-
key: String,
|
|
235
|
-
operator: Dodopayments::Models::filter_operator,
|
|
236
|
-
value: Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause::value
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
type value = String | Float | bool
|
|
240
|
-
|
|
241
|
-
module Value
|
|
242
|
-
extend Dodopayments::Internal::Type::Union
|
|
243
|
-
|
|
244
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::Clauses::Level2NestedFilter::Clause::value]
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::Clauses::Level1NestedFilter::clauses]
|
|
250
|
-
|
|
251
|
-
Level2FilterConditionArray: Dodopayments::Internal::Type::Converter
|
|
252
|
-
|
|
253
|
-
Level2NestedFilterArray: Dodopayments::Internal::Type::Converter
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::Clauses::NestedMeterFilter::clauses]
|
|
258
|
-
|
|
259
|
-
Level1FilterConditionArray: Dodopayments::Internal::Type::Converter
|
|
260
|
-
|
|
261
|
-
Level1NestedFilterArray: Dodopayments::Internal::Type::Converter
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def self?.variants: -> ::Array[Dodopayments::Models::MeterFilter::clauses]
|
|
266
|
-
|
|
267
|
-
DirectFilterConditionArray: Dodopayments::Internal::Type::Converter
|
|
268
|
-
|
|
269
|
-
NestedMeterFilterArray: Dodopayments::Internal::Type::Converter
|
|
270
|
-
end
|
|
271
23
|
end
|
|
272
24
|
end
|
|
273
25
|
end
|
|
@@ -24,6 +24,7 @@ module Dodopayments
|
|
|
24
24
|
checkout_session_id: String?,
|
|
25
25
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
26
26
|
discount_id: String?,
|
|
27
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
27
28
|
error_code: String?,
|
|
28
29
|
error_message: String?,
|
|
29
30
|
invoice_id: String?,
|
|
@@ -85,6 +86,8 @@ module Dodopayments
|
|
|
85
86
|
|
|
86
87
|
attr_accessor discount_id: String?
|
|
87
88
|
|
|
89
|
+
attr_accessor discounts: ::Array[Dodopayments::DiscountDetail]?
|
|
90
|
+
|
|
88
91
|
attr_accessor error_code: String?
|
|
89
92
|
|
|
90
93
|
attr_accessor error_message: String?
|
|
@@ -136,6 +139,7 @@ module Dodopayments
|
|
|
136
139
|
?checkout_session_id: String?,
|
|
137
140
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
138
141
|
?discount_id: String?,
|
|
142
|
+
?discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
139
143
|
?error_code: String?,
|
|
140
144
|
?error_message: String?,
|
|
141
145
|
?invoice_id: String?,
|
|
@@ -175,6 +179,7 @@ module Dodopayments
|
|
|
175
179
|
checkout_session_id: String?,
|
|
176
180
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
177
181
|
discount_id: String?,
|
|
182
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
178
183
|
error_code: String?,
|
|
179
184
|
error_message: String?,
|
|
180
185
|
invoice_id: String?,
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Payment,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"payment.cancelled"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class PaymentCancelledWebhookEvent < 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: :"payment.cancelled"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Payment,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"payment.cancelled"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Payment,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"payment.cancelled"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"payment.cancelled"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PAYMENT_CANCELLED: :"payment.cancelled"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::PaymentCancelledWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -8,7 +8,9 @@ module Dodopayments
|
|
|
8
8
|
adaptive_currency_fees_inclusive: bool?,
|
|
9
9
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
10
10
|
billing_currency: Dodopayments::Models::currency?,
|
|
11
|
+
customer_business_name: String?,
|
|
11
12
|
discount_code: String?,
|
|
13
|
+
discount_codes: ::Array[String]?,
|
|
12
14
|
:force_3ds => bool?,
|
|
13
15
|
metadata: ::Hash[Symbol, String],
|
|
14
16
|
payment_link: bool?,
|
|
@@ -38,8 +40,12 @@ module Dodopayments
|
|
|
38
40
|
|
|
39
41
|
attr_accessor billing_currency: Dodopayments::Models::currency?
|
|
40
42
|
|
|
43
|
+
attr_accessor customer_business_name: String?
|
|
44
|
+
|
|
41
45
|
attr_accessor discount_code: String?
|
|
42
46
|
|
|
47
|
+
attr_accessor discount_codes: ::Array[String]?
|
|
48
|
+
|
|
43
49
|
attr_accessor force_3ds: bool?
|
|
44
50
|
|
|
45
51
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
@@ -75,7 +81,9 @@ module Dodopayments
|
|
|
75
81
|
?adaptive_currency_fees_inclusive: bool?,
|
|
76
82
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
77
83
|
?billing_currency: Dodopayments::Models::currency?,
|
|
84
|
+
?customer_business_name: String?,
|
|
78
85
|
?discount_code: String?,
|
|
86
|
+
?discount_codes: ::Array[String]?,
|
|
79
87
|
?force_3ds: bool?,
|
|
80
88
|
?metadata: ::Hash[Symbol, String],
|
|
81
89
|
?payment_link: bool?,
|
|
@@ -96,7 +104,9 @@ module Dodopayments
|
|
|
96
104
|
adaptive_currency_fees_inclusive: bool?,
|
|
97
105
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
98
106
|
billing_currency: Dodopayments::Models::currency?,
|
|
107
|
+
customer_business_name: String?,
|
|
99
108
|
discount_code: String?,
|
|
109
|
+
discount_codes: ::Array[String]?,
|
|
100
110
|
:force_3ds => bool?,
|
|
101
111
|
metadata: ::Hash[Symbol, String],
|
|
102
112
|
payment_link: bool?,
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
payment_id: String,
|
|
9
9
|
total_amount: Integer,
|
|
10
10
|
discount_id: String?,
|
|
11
|
+
discount_ids: ::Array[String]?,
|
|
11
12
|
expires_on: Time?,
|
|
12
13
|
payment_link: String?,
|
|
13
14
|
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -26,6 +27,8 @@ module Dodopayments
|
|
|
26
27
|
|
|
27
28
|
attr_accessor discount_id: String?
|
|
28
29
|
|
|
30
|
+
attr_accessor discount_ids: ::Array[String]?
|
|
31
|
+
|
|
29
32
|
attr_accessor expires_on: Time?
|
|
30
33
|
|
|
31
34
|
attr_accessor payment_link: String?
|
|
@@ -39,6 +42,7 @@ module Dodopayments
|
|
|
39
42
|
payment_id: String,
|
|
40
43
|
total_amount: Integer,
|
|
41
44
|
?discount_id: String?,
|
|
45
|
+
?discount_ids: ::Array[String]?,
|
|
42
46
|
?expires_on: Time?,
|
|
43
47
|
?payment_link: String?,
|
|
44
48
|
?product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -51,6 +55,7 @@ module Dodopayments
|
|
|
51
55
|
payment_id: String,
|
|
52
56
|
total_amount: Integer,
|
|
53
57
|
discount_id: String?,
|
|
58
|
+
discount_ids: ::Array[String]?,
|
|
54
59
|
expires_on: Time?,
|
|
55
60
|
payment_link: String?,
|
|
56
61
|
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Payment,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"payment.failed"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class PaymentFailedWebhookEvent < 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: :"payment.failed"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Payment,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"payment.failed"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Payment,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"payment.failed"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"payment.failed"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PAYMENT_FAILED: :"payment.failed"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::PaymentFailedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -78,6 +78,7 @@ module Dodopayments
|
|
|
78
78
|
| :sepa
|
|
79
79
|
| :sepa_bank_transfer
|
|
80
80
|
| :sofort
|
|
81
|
+
| :sunbit
|
|
81
82
|
| :swish
|
|
82
83
|
| :touch_n_go
|
|
83
84
|
| :trustly
|
|
@@ -186,6 +187,7 @@ module Dodopayments
|
|
|
186
187
|
SEPA: :sepa
|
|
187
188
|
SEPA_BANK_TRANSFER: :sepa_bank_transfer
|
|
188
189
|
SOFORT: :sofort
|
|
190
|
+
SUNBIT: :sunbit
|
|
189
191
|
SWISH: :swish
|
|
190
192
|
TOUCH_N_GO: :touch_n_go
|
|
191
193
|
TRUSTLY: :trustly
|