dodopayments 2.8.0 → 2.9.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 +17 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/attach_product_entitlement.rb +22 -0
- data/lib/dodopayments/models/cancellation_feedback.rb +21 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +12 -1
- data/lib/dodopayments/models/checkout_session_request.rb +14 -1
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +1 -0
- data/lib/dodopayments/models/credit_overage_reset_webhook_event.rb +52 -0
- data/lib/dodopayments/models/customer_list_entitlements_params.rb +20 -0
- data/lib/dodopayments/models/customer_list_entitlements_response.rb +105 -0
- data/lib/dodopayments/models/digital_product_delivery.rb +13 -15
- data/lib/dodopayments/models/digital_product_delivery_file.rb +32 -8
- data/lib/dodopayments/models/entitlement.rb +86 -0
- data/lib/dodopayments/models/entitlement_create_params.rb +54 -0
- data/lib/dodopayments/models/entitlement_delete_params.rb +20 -0
- data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +51 -0
- data/lib/dodopayments/models/entitlement_integration_type.rb +21 -0
- data/lib/dodopayments/models/entitlement_list_params.rb +55 -0
- data/lib/dodopayments/models/entitlement_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/entitlement_update_params.rb +54 -0
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +172 -0
- data/lib/dodopayments/models/entitlements/file_delete_params.rb +28 -0
- data/lib/dodopayments/models/entitlements/file_upload_params.rb +22 -0
- data/lib/dodopayments/models/entitlements/file_upload_response.rb +23 -0
- data/lib/dodopayments/models/entitlements/grant_list_params.rb +68 -0
- data/lib/dodopayments/models/entitlements/grant_revoke_params.rb +28 -0
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +40 -0
- data/lib/dodopayments/models/integration_config.rb +174 -0
- data/lib/dodopayments/models/integration_config_response.rb +238 -0
- data/lib/dodopayments/models/license_key_instance_list_params.rb +9 -1
- data/lib/dodopayments/models/one_time_product_cart_item.rb +15 -1
- data/lib/dodopayments/models/payment.rb +19 -3
- data/lib/dodopayments/models/payment_create_params.rb +23 -35
- data/lib/dodopayments/models/payment_create_response.rb +3 -33
- data/lib/dodopayments/models/product.rb +12 -217
- data/lib/dodopayments/models/product_create_params.rb +25 -6
- data/lib/dodopayments/models/product_entitlement_summary.rb +57 -0
- data/lib/dodopayments/models/product_list_response.rb +3 -218
- data/lib/dodopayments/models/product_update_params.rb +21 -7
- data/lib/dodopayments/models/scheduled_plan_change.rb +99 -0
- data/lib/dodopayments/models/subscription.rb +20 -102
- data/lib/dodopayments/models/subscription_create_params.rb +27 -37
- data/lib/dodopayments/models/subscription_create_response.rb +19 -3
- data/lib/dodopayments/models/subscription_list_response.rb +3 -103
- data/lib/dodopayments/models/subscription_update_params.rb +23 -1
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +11 -1
- data/lib/dodopayments/models/unwrap_webhook_event.rb +11 -1
- data/lib/dodopayments/models/update_subscription_plan_req.rb +10 -1
- data/lib/dodopayments/models/webhook_event_type.rb +1 -0
- data/lib/dodopayments/models/webhook_payload.rb +2 -154
- data/lib/dodopayments/models.rb +40 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -2
- data/lib/dodopayments/resources/customers.rb +20 -0
- data/lib/dodopayments/resources/entitlements/files.rb +70 -0
- data/lib/dodopayments/resources/entitlements/grants.rb +78 -0
- data/lib/dodopayments/resources/entitlements.rb +153 -0
- data/lib/dodopayments/resources/license_key_instances.rb +3 -1
- data/lib/dodopayments/resources/payments.rb +6 -2
- data/lib/dodopayments/resources/products.rb +4 -4
- data/lib/dodopayments/resources/subscriptions.rb +20 -5
- data/lib/dodopayments/resources/webhooks.rb +2 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +30 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/attach_product_entitlement.rbi +35 -0
- data/rbi/dodopayments/models/cancellation_feedback.rbi +45 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +20 -3
- data/rbi/dodopayments/models/checkout_session_request.rbi +18 -0
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +5 -0
- data/rbi/dodopayments/models/credit_overage_reset_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/customer_list_entitlements_params.rbi +38 -0
- data/rbi/dodopayments/models/customer_list_entitlements_response.rbi +189 -0
- data/rbi/dodopayments/models/digital_product_delivery.rbi +10 -22
- data/rbi/dodopayments/models/digital_product_delivery_file.rbi +40 -8
- data/rbi/dodopayments/models/entitlement.rbi +112 -0
- data/rbi/dodopayments/models/entitlement_create_params.rbi +112 -0
- data/rbi/dodopayments/models/entitlement_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +102 -0
- data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +103 -0
- data/rbi/dodopayments/models/entitlement_integration_type.rbi +44 -0
- data/rbi/dodopayments/models/entitlement_list_params.rbi +146 -0
- data/rbi/dodopayments/models/entitlement_retrieve_params.rbi +38 -0
- data/rbi/dodopayments/models/entitlement_update_params.rbi +111 -0
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +235 -0
- data/rbi/dodopayments/models/entitlements/file_delete_params.rbi +48 -0
- data/rbi/dodopayments/models/entitlements/file_upload_params.rbi +40 -0
- data/rbi/dodopayments/models/entitlements/file_upload_response.rbi +34 -0
- data/rbi/dodopayments/models/entitlements/grant_list_params.rbi +145 -0
- data/rbi/dodopayments/models/entitlements/grant_revoke_params.rbi +48 -0
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +62 -0
- data/rbi/dodopayments/models/integration_config.rbi +296 -0
- data/rbi/dodopayments/models/integration_config_response.rbi +416 -0
- data/rbi/dodopayments/models/license_key_instance_list_params.rbi +8 -0
- data/rbi/dodopayments/models/one_time_product_cart_item.rbi +24 -3
- data/rbi/dodopayments/models/payment.rbi +31 -3
- data/rbi/dodopayments/models/payment_create_params.rbi +28 -56
- data/rbi/dodopayments/models/payment_create_response.rbi +3 -68
- data/rbi/dodopayments/models/product.rbi +12 -420
- data/rbi/dodopayments/models/product_create_params.rbi +43 -7
- data/rbi/dodopayments/models/product_entitlement_summary.rbi +88 -0
- data/rbi/dodopayments/models/product_list_response.rbi +3 -430
- data/rbi/dodopayments/models/product_update_params.rbi +35 -9
- data/rbi/dodopayments/models/scheduled_plan_change.rbi +141 -0
- data/rbi/dodopayments/models/subscription.rbi +24 -149
- data/rbi/dodopayments/models/subscription_create_params.rbi +36 -68
- data/rbi/dodopayments/models/subscription_create_response.rbi +47 -3
- data/rbi/dodopayments/models/subscription_list_response.rbi +4 -167
- data/rbi/dodopayments/models/subscription_update_params.rbi +27 -0
- data/rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/unwrap_webhook_event.rbi +5 -0
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +10 -0
- data/rbi/dodopayments/models/webhook_event_type.rbi +5 -0
- data/rbi/dodopayments/models/webhook_payload.rbi +4 -197
- data/rbi/dodopayments/models.rbi +46 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +16 -0
- data/rbi/dodopayments/resources/customers.rbi +14 -0
- data/rbi/dodopayments/resources/entitlements/files.rbi +52 -0
- data/rbi/dodopayments/resources/entitlements/grants.rbi +65 -0
- data/rbi/dodopayments/resources/entitlements.rbi +143 -0
- data/rbi/dodopayments/resources/license_key_instances.rbi +3 -0
- data/rbi/dodopayments/resources/payments.rbi +10 -2
- data/rbi/dodopayments/resources/products.rbi +34 -7
- data/rbi/dodopayments/resources/subscriptions.rbi +31 -5
- data/rbi/dodopayments/resources/webhooks.rbi +10 -0
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/attach_product_entitlement.rbs +13 -0
- data/sig/dodopayments/models/cancellation_feedback.rbs +28 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +10 -3
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/credit_ledger_entry.rbs +2 -0
- data/sig/dodopayments/models/credit_overage_reset_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/customer_list_entitlements_params.rbs +23 -0
- data/sig/dodopayments/models/customer_list_entitlements_response.rbs +95 -0
- data/sig/dodopayments/models/digital_product_delivery.rbs +5 -5
- data/sig/dodopayments/models/digital_product_delivery_file.rbs +32 -5
- data/sig/dodopayments/models/entitlement.rbs +67 -0
- data/sig/dodopayments/models/entitlement_create_params.rbs +46 -0
- data/sig/dodopayments/models/entitlement_delete_params.rbs +23 -0
- data/sig/dodopayments/models/entitlement_grant_created_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_delivered_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_failed_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_grant_revoked_webhook_event.rbs +45 -0
- data/sig/dodopayments/models/entitlement_integration_type.rbs +28 -0
- data/sig/dodopayments/models/entitlement_list_params.rbs +69 -0
- data/sig/dodopayments/models/entitlement_retrieve_params.rbs +23 -0
- data/sig/dodopayments/models/entitlement_update_params.rbs +46 -0
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +134 -0
- data/sig/dodopayments/models/entitlements/file_delete_params.rbs +30 -0
- data/sig/dodopayments/models/entitlements/file_upload_params.rbs +25 -0
- data/sig/dodopayments/models/entitlements/file_upload_response.rbs +15 -0
- data/sig/dodopayments/models/entitlements/grant_list_params.rbs +71 -0
- data/sig/dodopayments/models/entitlements/grant_revoke_params.rbs +30 -0
- data/sig/dodopayments/models/entitlements/license_key_grant.rbs +37 -0
- data/sig/dodopayments/models/integration_config.rbs +147 -0
- data/sig/dodopayments/models/integration_config_response.rbs +206 -0
- data/sig/dodopayments/models/license_key_instance_list_params.rbs +10 -1
- data/sig/dodopayments/models/one_time_product_cart_item.rbs +14 -3
- data/sig/dodopayments/models/payment.rbs +16 -4
- data/sig/dodopayments/models/payment_create_params.rbs +16 -27
- data/sig/dodopayments/models/payment_create_response.rbs +4 -27
- data/sig/dodopayments/models/product.rbs +4 -205
- data/sig/dodopayments/models/product_create_params.rbs +4 -4
- data/sig/dodopayments/models/product_entitlement_summary.rbs +40 -0
- data/sig/dodopayments/models/product_list_response.rbs +4 -205
- data/sig/dodopayments/models/product_update_params.rbs +4 -4
- data/sig/dodopayments/models/scheduled_plan_change.rbs +73 -0
- data/sig/dodopayments/models/subscription.rbs +14 -74
- data/sig/dodopayments/models/subscription_create_params.rbs +16 -27
- data/sig/dodopayments/models/subscription_create_response.rbs +16 -4
- data/sig/dodopayments/models/subscription_list_response.rbs +4 -74
- data/sig/dodopayments/models/subscription_update_params.rbs +12 -0
- data/sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/unwrap_webhook_event.rbs +5 -0
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -0
- data/sig/dodopayments/models/webhook_payload.rbs +8 -134
- data/sig/dodopayments/models.rbs +40 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/customers.rbs +5 -0
- data/sig/dodopayments/resources/entitlements/files.rbs +20 -0
- data/sig/dodopayments/resources/entitlements/grants.rbs +24 -0
- data/sig/dodopayments/resources/entitlements.rbs +46 -0
- data/sig/dodopayments/resources/license_key_instances.rbs +1 -0
- data/sig/dodopayments/resources/payments.rbs +3 -1
- data/sig/dodopayments/resources/products.rbs +2 -2
- data/sig/dodopayments/resources/subscriptions.rbs +7 -1
- data/sig/dodopayments/resources/webhooks.rbs +10 -0
- metadata +92 -2
|
@@ -26,13 +26,15 @@ module Dodopayments
|
|
|
26
26
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
27
27
|
tax_inclusive: bool,
|
|
28
28
|
trial_period_days: Integer,
|
|
29
|
+
cancellation_comment: String?,
|
|
30
|
+
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
29
31
|
cancelled_at: Time?,
|
|
30
32
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
31
33
|
discount_cycles_remaining: Integer?,
|
|
32
34
|
discount_id: String?,
|
|
33
35
|
expires_at: Time?,
|
|
34
36
|
payment_method_id: String?,
|
|
35
|
-
scheduled_change: Dodopayments::
|
|
37
|
+
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
36
38
|
tax_id: String?
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -85,6 +87,10 @@ module Dodopayments
|
|
|
85
87
|
|
|
86
88
|
attr_accessor trial_period_days: Integer
|
|
87
89
|
|
|
90
|
+
attr_accessor cancellation_comment: String?
|
|
91
|
+
|
|
92
|
+
attr_accessor cancellation_feedback: Dodopayments::Models::cancellation_feedback?
|
|
93
|
+
|
|
88
94
|
attr_accessor cancelled_at: Time?
|
|
89
95
|
|
|
90
96
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
@@ -97,7 +103,7 @@ module Dodopayments
|
|
|
97
103
|
|
|
98
104
|
attr_accessor payment_method_id: String?
|
|
99
105
|
|
|
100
|
-
attr_accessor scheduled_change: Dodopayments::
|
|
106
|
+
attr_accessor scheduled_change: Dodopayments::ScheduledPlanChange?
|
|
101
107
|
|
|
102
108
|
attr_accessor tax_id: String?
|
|
103
109
|
|
|
@@ -126,13 +132,15 @@ module Dodopayments
|
|
|
126
132
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
127
133
|
tax_inclusive: bool,
|
|
128
134
|
trial_period_days: Integer,
|
|
135
|
+
?cancellation_comment: String?,
|
|
136
|
+
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
129
137
|
?cancelled_at: Time?,
|
|
130
138
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
131
139
|
?discount_cycles_remaining: Integer?,
|
|
132
140
|
?discount_id: String?,
|
|
133
141
|
?expires_at: Time?,
|
|
134
142
|
?payment_method_id: String?,
|
|
135
|
-
?scheduled_change: Dodopayments::
|
|
143
|
+
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
136
144
|
?tax_id: String?
|
|
137
145
|
) -> void
|
|
138
146
|
|
|
@@ -161,85 +169,17 @@ module Dodopayments
|
|
|
161
169
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
162
170
|
tax_inclusive: bool,
|
|
163
171
|
trial_period_days: Integer,
|
|
172
|
+
cancellation_comment: String?,
|
|
173
|
+
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
164
174
|
cancelled_at: Time?,
|
|
165
175
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
166
176
|
discount_cycles_remaining: Integer?,
|
|
167
177
|
discount_id: String?,
|
|
168
178
|
expires_at: Time?,
|
|
169
179
|
payment_method_id: String?,
|
|
170
|
-
scheduled_change: Dodopayments::
|
|
180
|
+
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
171
181
|
tax_id: String?
|
|
172
182
|
}
|
|
173
|
-
|
|
174
|
-
type scheduled_change =
|
|
175
|
-
{
|
|
176
|
-
id: String,
|
|
177
|
-
addons: ::Array[Dodopayments::Subscription::ScheduledChange::Addon],
|
|
178
|
-
created_at: Time,
|
|
179
|
-
effective_at: Time,
|
|
180
|
-
product_id: String,
|
|
181
|
-
quantity: Integer,
|
|
182
|
-
product_description: String?,
|
|
183
|
-
product_name: String?
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
class ScheduledChange < Dodopayments::Internal::Type::BaseModel
|
|
187
|
-
attr_accessor id: String
|
|
188
|
-
|
|
189
|
-
attr_accessor addons: ::Array[Dodopayments::Subscription::ScheduledChange::Addon]
|
|
190
|
-
|
|
191
|
-
attr_accessor created_at: Time
|
|
192
|
-
|
|
193
|
-
attr_accessor effective_at: Time
|
|
194
|
-
|
|
195
|
-
attr_accessor product_id: String
|
|
196
|
-
|
|
197
|
-
attr_accessor quantity: Integer
|
|
198
|
-
|
|
199
|
-
attr_accessor product_description: String?
|
|
200
|
-
|
|
201
|
-
attr_accessor product_name: String?
|
|
202
|
-
|
|
203
|
-
def initialize: (
|
|
204
|
-
id: String,
|
|
205
|
-
addons: ::Array[Dodopayments::Subscription::ScheduledChange::Addon],
|
|
206
|
-
created_at: Time,
|
|
207
|
-
effective_at: Time,
|
|
208
|
-
product_id: String,
|
|
209
|
-
quantity: Integer,
|
|
210
|
-
?product_description: String?,
|
|
211
|
-
?product_name: String?
|
|
212
|
-
) -> void
|
|
213
|
-
|
|
214
|
-
def to_hash: -> {
|
|
215
|
-
id: String,
|
|
216
|
-
addons: ::Array[Dodopayments::Subscription::ScheduledChange::Addon],
|
|
217
|
-
created_at: Time,
|
|
218
|
-
effective_at: Time,
|
|
219
|
-
product_id: String,
|
|
220
|
-
quantity: Integer,
|
|
221
|
-
product_description: String?,
|
|
222
|
-
product_name: String?
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
type addon = { addon_id: String, name: String, quantity: Integer }
|
|
226
|
-
|
|
227
|
-
class Addon < Dodopayments::Internal::Type::BaseModel
|
|
228
|
-
attr_accessor addon_id: String
|
|
229
|
-
|
|
230
|
-
attr_accessor name: String
|
|
231
|
-
|
|
232
|
-
attr_accessor quantity: Integer
|
|
233
|
-
|
|
234
|
-
def initialize: (
|
|
235
|
-
addon_id: String,
|
|
236
|
-
name: String,
|
|
237
|
-
quantity: Integer
|
|
238
|
-
) -> void
|
|
239
|
-
|
|
240
|
-
def to_hash: -> { addon_id: String, name: String, quantity: Integer }
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
183
|
end
|
|
244
184
|
end
|
|
245
185
|
end
|
|
@@ -11,12 +11,14 @@ module Dodopayments
|
|
|
11
11
|
billing_currency: Dodopayments::Models::currency?,
|
|
12
12
|
discount_code: String?,
|
|
13
13
|
:force_3ds => bool?,
|
|
14
|
+
mandate_min_amount_inr_paise: Integer?,
|
|
14
15
|
metadata: ::Hash[Symbol, String],
|
|
15
16
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
16
|
-
one_time_product_cart: ::Array[Dodopayments::
|
|
17
|
+
one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
17
18
|
payment_link: bool?,
|
|
18
19
|
payment_method_id: String?,
|
|
19
20
|
redirect_immediately: bool,
|
|
21
|
+
require_phone_number: bool,
|
|
20
22
|
return_url: String?,
|
|
21
23
|
short_link: bool?,
|
|
22
24
|
show_saved_payment_methods: bool,
|
|
@@ -47,13 +49,15 @@ module Dodopayments
|
|
|
47
49
|
|
|
48
50
|
attr_accessor force_3ds: bool?
|
|
49
51
|
|
|
52
|
+
attr_accessor mandate_min_amount_inr_paise: Integer?
|
|
53
|
+
|
|
50
54
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
51
55
|
|
|
52
56
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
53
57
|
|
|
54
58
|
attr_accessor on_demand: Dodopayments::OnDemandSubscription?
|
|
55
59
|
|
|
56
|
-
attr_accessor one_time_product_cart: ::Array[Dodopayments::
|
|
60
|
+
attr_accessor one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
57
61
|
|
|
58
62
|
attr_accessor payment_link: bool?
|
|
59
63
|
|
|
@@ -63,6 +67,10 @@ module Dodopayments
|
|
|
63
67
|
|
|
64
68
|
def redirect_immediately=: (bool) -> bool
|
|
65
69
|
|
|
70
|
+
attr_reader require_phone_number: bool?
|
|
71
|
+
|
|
72
|
+
def require_phone_number=: (bool) -> bool
|
|
73
|
+
|
|
66
74
|
attr_accessor return_url: String?
|
|
67
75
|
|
|
68
76
|
attr_accessor short_link: bool?
|
|
@@ -85,12 +93,14 @@ module Dodopayments
|
|
|
85
93
|
?billing_currency: Dodopayments::Models::currency?,
|
|
86
94
|
?discount_code: String?,
|
|
87
95
|
?force_3ds: bool?,
|
|
96
|
+
?mandate_min_amount_inr_paise: Integer?,
|
|
88
97
|
?metadata: ::Hash[Symbol, String],
|
|
89
98
|
?on_demand: Dodopayments::OnDemandSubscription?,
|
|
90
|
-
?one_time_product_cart: ::Array[Dodopayments::
|
|
99
|
+
?one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
91
100
|
?payment_link: bool?,
|
|
92
101
|
?payment_method_id: String?,
|
|
93
102
|
?redirect_immediately: bool,
|
|
103
|
+
?require_phone_number: bool,
|
|
94
104
|
?return_url: String?,
|
|
95
105
|
?short_link: bool?,
|
|
96
106
|
?show_saved_payment_methods: bool,
|
|
@@ -109,12 +119,14 @@ module Dodopayments
|
|
|
109
119
|
billing_currency: Dodopayments::Models::currency?,
|
|
110
120
|
discount_code: String?,
|
|
111
121
|
:force_3ds => bool?,
|
|
122
|
+
mandate_min_amount_inr_paise: Integer?,
|
|
112
123
|
metadata: ::Hash[Symbol, String],
|
|
113
124
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
114
|
-
one_time_product_cart: ::Array[Dodopayments::
|
|
125
|
+
one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
115
126
|
payment_link: bool?,
|
|
116
127
|
payment_method_id: String?,
|
|
117
128
|
redirect_immediately: bool,
|
|
129
|
+
require_phone_number: bool,
|
|
118
130
|
return_url: String?,
|
|
119
131
|
short_link: bool?,
|
|
120
132
|
show_saved_payment_methods: bool,
|
|
@@ -122,29 +134,6 @@ module Dodopayments
|
|
|
122
134
|
trial_period_days: Integer?,
|
|
123
135
|
request_options: Dodopayments::RequestOptions
|
|
124
136
|
}
|
|
125
|
-
|
|
126
|
-
type one_time_product_cart =
|
|
127
|
-
{ product_id: String, quantity: Integer, amount: Integer? }
|
|
128
|
-
|
|
129
|
-
class OneTimeProductCart < Dodopayments::Internal::Type::BaseModel
|
|
130
|
-
attr_accessor product_id: String
|
|
131
|
-
|
|
132
|
-
attr_accessor quantity: Integer
|
|
133
|
-
|
|
134
|
-
attr_accessor amount: Integer?
|
|
135
|
-
|
|
136
|
-
def initialize: (
|
|
137
|
-
product_id: String,
|
|
138
|
-
quantity: Integer,
|
|
139
|
-
?amount: Integer?
|
|
140
|
-
) -> void
|
|
141
|
-
|
|
142
|
-
def to_hash: -> {
|
|
143
|
-
product_id: String,
|
|
144
|
-
quantity: Integer,
|
|
145
|
-
amount: Integer?
|
|
146
|
-
}
|
|
147
|
-
end
|
|
148
137
|
end
|
|
149
138
|
end
|
|
150
139
|
end
|
|
@@ -11,7 +11,7 @@ module Dodopayments
|
|
|
11
11
|
client_secret: String?,
|
|
12
12
|
discount_id: String?,
|
|
13
13
|
expires_on: Time?,
|
|
14
|
-
one_time_product_cart: ::Array[Dodopayments::
|
|
14
|
+
one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
|
|
15
15
|
payment_link: String?
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -34,7 +34,7 @@ module Dodopayments
|
|
|
34
34
|
|
|
35
35
|
attr_accessor expires_on: Time?
|
|
36
36
|
|
|
37
|
-
attr_accessor one_time_product_cart: ::Array[Dodopayments::
|
|
37
|
+
attr_accessor one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?
|
|
38
38
|
|
|
39
39
|
attr_accessor payment_link: String?
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ module Dodopayments
|
|
|
48
48
|
?client_secret: String?,
|
|
49
49
|
?discount_id: String?,
|
|
50
50
|
?expires_on: Time?,
|
|
51
|
-
?one_time_product_cart: ::Array[Dodopayments::
|
|
51
|
+
?one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
|
|
52
52
|
?payment_link: String?
|
|
53
53
|
) -> void
|
|
54
54
|
|
|
@@ -62,9 +62,21 @@ module Dodopayments
|
|
|
62
62
|
client_secret: String?,
|
|
63
63
|
discount_id: String?,
|
|
64
64
|
expires_on: Time?,
|
|
65
|
-
one_time_product_cart: ::Array[Dodopayments::
|
|
65
|
+
one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
|
|
66
66
|
payment_link: String?
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
type one_time_product_cart = { product_id: String, quantity: Integer }
|
|
70
|
+
|
|
71
|
+
class OneTimeProductCart < Dodopayments::Internal::Type::BaseModel
|
|
72
|
+
attr_accessor product_id: String
|
|
73
|
+
|
|
74
|
+
attr_accessor quantity: Integer
|
|
75
|
+
|
|
76
|
+
def initialize: (product_id: String, quantity: Integer) -> void
|
|
77
|
+
|
|
78
|
+
def to_hash: -> { product_id: String, quantity: Integer }
|
|
79
|
+
end
|
|
68
80
|
end
|
|
69
81
|
end
|
|
70
82
|
end
|
|
@@ -27,7 +27,7 @@ module Dodopayments
|
|
|
27
27
|
discount_id: String?,
|
|
28
28
|
payment_method_id: String?,
|
|
29
29
|
product_name: String?,
|
|
30
|
-
scheduled_change: Dodopayments::
|
|
30
|
+
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
31
31
|
tax_id: String?
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -82,7 +82,7 @@ module Dodopayments
|
|
|
82
82
|
|
|
83
83
|
attr_accessor product_name: String?
|
|
84
84
|
|
|
85
|
-
attr_accessor scheduled_change: Dodopayments::
|
|
85
|
+
attr_accessor scheduled_change: Dodopayments::ScheduledPlanChange?
|
|
86
86
|
|
|
87
87
|
attr_accessor tax_id: String?
|
|
88
88
|
|
|
@@ -112,7 +112,7 @@ module Dodopayments
|
|
|
112
112
|
?discount_id: String?,
|
|
113
113
|
?payment_method_id: String?,
|
|
114
114
|
?product_name: String?,
|
|
115
|
-
?scheduled_change: Dodopayments::
|
|
115
|
+
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
116
116
|
?tax_id: String?
|
|
117
117
|
) -> void
|
|
118
118
|
|
|
@@ -142,79 +142,9 @@ module Dodopayments
|
|
|
142
142
|
discount_id: String?,
|
|
143
143
|
payment_method_id: String?,
|
|
144
144
|
product_name: String?,
|
|
145
|
-
scheduled_change: Dodopayments::
|
|
145
|
+
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
146
146
|
tax_id: String?
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
type scheduled_change =
|
|
150
|
-
{
|
|
151
|
-
id: String,
|
|
152
|
-
addons: ::Array[Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon],
|
|
153
|
-
created_at: Time,
|
|
154
|
-
effective_at: Time,
|
|
155
|
-
product_id: String,
|
|
156
|
-
quantity: Integer,
|
|
157
|
-
product_description: String?,
|
|
158
|
-
product_name: String?
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
class ScheduledChange < Dodopayments::Internal::Type::BaseModel
|
|
162
|
-
attr_accessor id: String
|
|
163
|
-
|
|
164
|
-
attr_accessor addons: ::Array[Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon]
|
|
165
|
-
|
|
166
|
-
attr_accessor created_at: Time
|
|
167
|
-
|
|
168
|
-
attr_accessor effective_at: Time
|
|
169
|
-
|
|
170
|
-
attr_accessor product_id: String
|
|
171
|
-
|
|
172
|
-
attr_accessor quantity: Integer
|
|
173
|
-
|
|
174
|
-
attr_accessor product_description: String?
|
|
175
|
-
|
|
176
|
-
attr_accessor product_name: String?
|
|
177
|
-
|
|
178
|
-
def initialize: (
|
|
179
|
-
id: String,
|
|
180
|
-
addons: ::Array[Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon],
|
|
181
|
-
created_at: Time,
|
|
182
|
-
effective_at: Time,
|
|
183
|
-
product_id: String,
|
|
184
|
-
quantity: Integer,
|
|
185
|
-
?product_description: String?,
|
|
186
|
-
?product_name: String?
|
|
187
|
-
) -> void
|
|
188
|
-
|
|
189
|
-
def to_hash: -> {
|
|
190
|
-
id: String,
|
|
191
|
-
addons: ::Array[Dodopayments::Models::SubscriptionListResponse::ScheduledChange::Addon],
|
|
192
|
-
created_at: Time,
|
|
193
|
-
effective_at: Time,
|
|
194
|
-
product_id: String,
|
|
195
|
-
quantity: Integer,
|
|
196
|
-
product_description: String?,
|
|
197
|
-
product_name: String?
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
type addon = { addon_id: String, name: String, quantity: Integer }
|
|
201
|
-
|
|
202
|
-
class Addon < Dodopayments::Internal::Type::BaseModel
|
|
203
|
-
attr_accessor addon_id: String
|
|
204
|
-
|
|
205
|
-
attr_accessor name: String
|
|
206
|
-
|
|
207
|
-
attr_accessor quantity: Integer
|
|
208
|
-
|
|
209
|
-
def initialize: (
|
|
210
|
-
addon_id: String,
|
|
211
|
-
name: String,
|
|
212
|
-
quantity: Integer
|
|
213
|
-
) -> void
|
|
214
|
-
|
|
215
|
-
def to_hash: -> { addon_id: String, name: String, quantity: Integer }
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
148
|
end
|
|
219
149
|
end
|
|
220
150
|
end
|
|
@@ -6,6 +6,8 @@ module Dodopayments
|
|
|
6
6
|
billing: Dodopayments::BillingAddress?,
|
|
7
7
|
cancel_at_next_billing_date: bool?,
|
|
8
8
|
cancel_reason: Dodopayments::Models::SubscriptionUpdateParams::cancel_reason?,
|
|
9
|
+
cancellation_comment: String?,
|
|
10
|
+
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
9
11
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
10
12
|
customer_name: String?,
|
|
11
13
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
@@ -28,6 +30,10 @@ module Dodopayments
|
|
|
28
30
|
|
|
29
31
|
attr_accessor cancel_reason: Dodopayments::Models::SubscriptionUpdateParams::cancel_reason?
|
|
30
32
|
|
|
33
|
+
attr_accessor cancellation_comment: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor cancellation_feedback: Dodopayments::Models::cancellation_feedback?
|
|
36
|
+
|
|
31
37
|
attr_accessor credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?
|
|
32
38
|
|
|
33
39
|
attr_accessor customer_name: String?
|
|
@@ -47,6 +53,8 @@ module Dodopayments
|
|
|
47
53
|
?billing: Dodopayments::BillingAddress?,
|
|
48
54
|
?cancel_at_next_billing_date: bool?,
|
|
49
55
|
?cancel_reason: Dodopayments::Models::SubscriptionUpdateParams::cancel_reason?,
|
|
56
|
+
?cancellation_comment: String?,
|
|
57
|
+
?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
50
58
|
?credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
51
59
|
?customer_name: String?,
|
|
52
60
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
@@ -62,6 +70,8 @@ module Dodopayments
|
|
|
62
70
|
billing: Dodopayments::BillingAddress?,
|
|
63
71
|
cancel_at_next_billing_date: bool?,
|
|
64
72
|
cancel_reason: Dodopayments::Models::SubscriptionUpdateParams::cancel_reason?,
|
|
73
|
+
cancellation_comment: String?,
|
|
74
|
+
cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
|
|
65
75
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
66
76
|
customer_name: String?,
|
|
67
77
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
@@ -76,6 +86,7 @@ module Dodopayments
|
|
|
76
86
|
:cancelled_by_customer
|
|
77
87
|
| :cancelled_by_merchant
|
|
78
88
|
| :cancelled_by_merchant_send_dunning
|
|
89
|
+
| :dodo_team
|
|
79
90
|
|
|
80
91
|
module CancelReason
|
|
81
92
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -83,6 +94,7 @@ module Dodopayments
|
|
|
83
94
|
CANCELLED_BY_CUSTOMER: :cancelled_by_customer
|
|
84
95
|
CANCELLED_BY_MERCHANT: :cancelled_by_merchant
|
|
85
96
|
CANCELLED_BY_MERCHANT_SEND_DUNNING: :cancelled_by_merchant_send_dunning
|
|
97
|
+
DODO_TEAM: :dodo_team
|
|
86
98
|
|
|
87
99
|
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionUpdateParams::cancel_reason]
|
|
88
100
|
end
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
| Dodopayments::CreditExpiredWebhookEvent
|
|
10
10
|
| Dodopayments::CreditManualAdjustmentWebhookEvent
|
|
11
11
|
| Dodopayments::CreditOverageChargedWebhookEvent
|
|
12
|
+
| Dodopayments::CreditOverageResetWebhookEvent
|
|
12
13
|
| Dodopayments::CreditRolledOverWebhookEvent
|
|
13
14
|
| Dodopayments::CreditRolloverForfeitedWebhookEvent
|
|
14
15
|
| Dodopayments::DisputeAcceptedWebhookEvent
|
|
@@ -20,6 +21,10 @@ module Dodopayments
|
|
|
20
21
|
| Dodopayments::DisputeWonWebhookEvent
|
|
21
22
|
| Dodopayments::DunningRecoveredWebhookEvent
|
|
22
23
|
| Dodopayments::DunningStartedWebhookEvent
|
|
24
|
+
| Dodopayments::EntitlementGrantCreatedWebhookEvent
|
|
25
|
+
| Dodopayments::EntitlementGrantDeliveredWebhookEvent
|
|
26
|
+
| Dodopayments::EntitlementGrantFailedWebhookEvent
|
|
27
|
+
| Dodopayments::EntitlementGrantRevokedWebhookEvent
|
|
23
28
|
| Dodopayments::LicenseKeyCreatedWebhookEvent
|
|
24
29
|
| Dodopayments::PaymentCancelledWebhookEvent
|
|
25
30
|
| Dodopayments::PaymentFailedWebhookEvent
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
| Dodopayments::CreditExpiredWebhookEvent
|
|
10
10
|
| Dodopayments::CreditManualAdjustmentWebhookEvent
|
|
11
11
|
| Dodopayments::CreditOverageChargedWebhookEvent
|
|
12
|
+
| Dodopayments::CreditOverageResetWebhookEvent
|
|
12
13
|
| Dodopayments::CreditRolledOverWebhookEvent
|
|
13
14
|
| Dodopayments::CreditRolloverForfeitedWebhookEvent
|
|
14
15
|
| Dodopayments::DisputeAcceptedWebhookEvent
|
|
@@ -20,6 +21,10 @@ module Dodopayments
|
|
|
20
21
|
| Dodopayments::DisputeWonWebhookEvent
|
|
21
22
|
| Dodopayments::DunningRecoveredWebhookEvent
|
|
22
23
|
| Dodopayments::DunningStartedWebhookEvent
|
|
24
|
+
| Dodopayments::EntitlementGrantCreatedWebhookEvent
|
|
25
|
+
| Dodopayments::EntitlementGrantDeliveredWebhookEvent
|
|
26
|
+
| Dodopayments::EntitlementGrantFailedWebhookEvent
|
|
27
|
+
| Dodopayments::EntitlementGrantRevokedWebhookEvent
|
|
23
28
|
| Dodopayments::LicenseKeyCreatedWebhookEvent
|
|
24
29
|
| Dodopayments::PaymentCancelledWebhookEvent
|
|
25
30
|
| Dodopayments::PaymentFailedWebhookEvent
|
|
@@ -5,6 +5,7 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
proration_billing_mode: Dodopayments::Models::UpdateSubscriptionPlanReq::proration_billing_mode,
|
|
7
7
|
quantity: Integer,
|
|
8
|
+
adaptive_currency_fees_inclusive: bool?,
|
|
8
9
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
9
10
|
discount_code: String?,
|
|
10
11
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -19,6 +20,8 @@ module Dodopayments
|
|
|
19
20
|
|
|
20
21
|
attr_accessor quantity: Integer
|
|
21
22
|
|
|
23
|
+
attr_accessor adaptive_currency_fees_inclusive: bool?
|
|
24
|
+
|
|
22
25
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
23
26
|
|
|
24
27
|
attr_accessor discount_code: String?
|
|
@@ -37,6 +40,7 @@ module Dodopayments
|
|
|
37
40
|
product_id: String,
|
|
38
41
|
proration_billing_mode: Dodopayments::Models::UpdateSubscriptionPlanReq::proration_billing_mode,
|
|
39
42
|
quantity: Integer,
|
|
43
|
+
?adaptive_currency_fees_inclusive: bool?,
|
|
40
44
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
41
45
|
?discount_code: String?,
|
|
42
46
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -48,6 +52,7 @@ module Dodopayments
|
|
|
48
52
|
product_id: String,
|
|
49
53
|
proration_billing_mode: Dodopayments::Models::UpdateSubscriptionPlanReq::proration_billing_mode,
|
|
50
54
|
quantity: Integer,
|
|
55
|
+
adaptive_currency_fees_inclusive: bool?,
|
|
51
56
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
52
57
|
discount_code: String?,
|
|
53
58
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -34,6 +34,7 @@ module Dodopayments
|
|
|
34
34
|
| :"credit.rolled_over"
|
|
35
35
|
| :"credit.rollover_forfeited"
|
|
36
36
|
| :"credit.overage_charged"
|
|
37
|
+
| :"credit.overage_reset"
|
|
37
38
|
| :"credit.manual_adjustment"
|
|
38
39
|
| :"credit.balance_low"
|
|
39
40
|
| :"abandoned_checkout.detected"
|
|
@@ -83,6 +84,7 @@ module Dodopayments
|
|
|
83
84
|
CREDIT_ROLLED_OVER: :"credit.rolled_over"
|
|
84
85
|
CREDIT_ROLLOVER_FORFEITED: :"credit.rollover_forfeited"
|
|
85
86
|
CREDIT_OVERAGE_CHARGED: :"credit.overage_charged"
|
|
87
|
+
CREDIT_OVERAGE_RESET: :"credit.overage_reset"
|
|
86
88
|
CREDIT_MANUAL_ADJUSTMENT: :"credit.manual_adjustment"
|
|
87
89
|
CREDIT_BALANCE_LOW: :"credit.balance_low"
|
|
88
90
|
ABANDONED_CHECKOUT_DETECTED: :"abandoned_checkout.detected"
|