dodopayments 2.30.0 → 2.31.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_flags.rb +4 -2
- data/lib/dodopayments/models/checkout_session_request.rb +14 -4
- data/lib/dodopayments/models/customers/email_policies.rb +3 -2
- data/lib/dodopayments/models/refund.rb +22 -1
- data/lib/dodopayments/models/refund_list_item.rb +22 -1
- data/lib/dodopayments/models/refund_network_reference_type.rb +19 -0
- data/lib/dodopayments/models/subscription.rb +10 -1
- data/lib/dodopayments/models/subscription_cancelled_by.rb +54 -0
- data/lib/dodopayments/models/subscription_list_response.rb +10 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +18 -7
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +4 -4
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +2 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +8 -4
- data/rbi/dodopayments/models/checkout_session_request.rbi +25 -8
- data/rbi/dodopayments/models/customers/email_policies.rbi +4 -2
- data/rbi/dodopayments/models/refund.rbi +26 -0
- data/rbi/dodopayments/models/refund_list_item.rbi +26 -0
- data/rbi/dodopayments/models/refund_network_reference_type.rbi +41 -0
- data/rbi/dodopayments/models/subscription.rbi +18 -0
- data/rbi/dodopayments/models/subscription_cancelled_by.rbi +107 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +18 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +24 -10
- data/rbi/dodopayments/models.rbi +4 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +24 -4
- data/sig/dodopayments/models/checkout_session_request.rbs +4 -6
- data/sig/dodopayments/models/refund.rbs +10 -0
- data/sig/dodopayments/models/refund_list_item.rbs +10 -0
- data/sig/dodopayments/models/refund_network_reference_type.rbs +20 -0
- data/sig/dodopayments/models/subscription.rbs +5 -0
- data/sig/dodopayments/models/subscription_cancelled_by.rbs +43 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_preview_change_plan_response.rbs +5 -0
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -2
- metadata +8 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_cancelled_by =
|
|
4
|
+
{
|
|
5
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
6
|
+
email: String?,
|
|
7
|
+
name: String?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SubscriptionCancelledBy < Dodopayments::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type
|
|
12
|
+
|
|
13
|
+
attr_accessor email: String?
|
|
14
|
+
|
|
15
|
+
attr_accessor name: String?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
19
|
+
?email: String?,
|
|
20
|
+
?name: String?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
actor_type: Dodopayments::Models::SubscriptionCancelledBy::actor_type,
|
|
25
|
+
email: String?,
|
|
26
|
+
name: String?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type actor_type = :customer | :merchant_user | :api_key | :dodo_team
|
|
30
|
+
|
|
31
|
+
module ActorType
|
|
32
|
+
extend Dodopayments::Internal::Type::Enum
|
|
33
|
+
|
|
34
|
+
CUSTOMER: :customer
|
|
35
|
+
MERCHANT_USER: :merchant_user
|
|
36
|
+
API_KEY: :api_key
|
|
37
|
+
DODO_TEAM: :dodo_team
|
|
38
|
+
|
|
39
|
+
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionCancelledBy::actor_type]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -25,6 +25,7 @@ module Dodopayments
|
|
|
25
25
|
tax_inclusive: bool,
|
|
26
26
|
trial_period_days: Integer,
|
|
27
27
|
cancelled_at: Time?,
|
|
28
|
+
cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
28
29
|
customer_business_name: String?,
|
|
29
30
|
discount_cycles_remaining: Integer?,
|
|
30
31
|
discount_id: String?,
|
|
@@ -83,6 +84,8 @@ module Dodopayments
|
|
|
83
84
|
|
|
84
85
|
attr_accessor cancelled_at: Time?
|
|
85
86
|
|
|
87
|
+
attr_accessor cancelled_by: Dodopayments::SubscriptionCancelledBy?
|
|
88
|
+
|
|
86
89
|
attr_accessor customer_business_name: String?
|
|
87
90
|
|
|
88
91
|
attr_accessor discount_cycles_remaining: Integer?
|
|
@@ -125,6 +128,7 @@ module Dodopayments
|
|
|
125
128
|
tax_inclusive: bool,
|
|
126
129
|
trial_period_days: Integer,
|
|
127
130
|
?cancelled_at: Time?,
|
|
131
|
+
?cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
128
132
|
?customer_business_name: String?,
|
|
129
133
|
?discount_cycles_remaining: Integer?,
|
|
130
134
|
?discount_id: String?,
|
|
@@ -160,6 +164,7 @@ module Dodopayments
|
|
|
160
164
|
tax_inclusive: bool,
|
|
161
165
|
trial_period_days: Integer,
|
|
162
166
|
cancelled_at: Time?,
|
|
167
|
+
cancelled_by: Dodopayments::SubscriptionCancelledBy?,
|
|
163
168
|
customer_business_name: String?,
|
|
164
169
|
discount_cycles_remaining: Integer?,
|
|
165
170
|
discount_id: String?,
|
|
@@ -283,6 +283,7 @@ module Dodopayments
|
|
|
283
283
|
{
|
|
284
284
|
currency: Dodopayments::Models::currency,
|
|
285
285
|
customer_credits: Integer,
|
|
286
|
+
customer_credits_currency: Dodopayments::Models::currency,
|
|
286
287
|
settlement_amount: Integer,
|
|
287
288
|
settlement_currency: Dodopayments::Models::currency,
|
|
288
289
|
total_amount: Integer,
|
|
@@ -295,6 +296,8 @@ module Dodopayments
|
|
|
295
296
|
|
|
296
297
|
attr_accessor customer_credits: Integer
|
|
297
298
|
|
|
299
|
+
attr_accessor customer_credits_currency: Dodopayments::Models::currency
|
|
300
|
+
|
|
298
301
|
attr_accessor settlement_amount: Integer
|
|
299
302
|
|
|
300
303
|
attr_accessor settlement_currency: Dodopayments::Models::currency
|
|
@@ -308,6 +311,7 @@ module Dodopayments
|
|
|
308
311
|
def initialize: (
|
|
309
312
|
currency: Dodopayments::Models::currency,
|
|
310
313
|
customer_credits: Integer,
|
|
314
|
+
customer_credits_currency: Dodopayments::Models::currency,
|
|
311
315
|
settlement_amount: Integer,
|
|
312
316
|
settlement_currency: Dodopayments::Models::currency,
|
|
313
317
|
total_amount: Integer,
|
|
@@ -318,6 +322,7 @@ module Dodopayments
|
|
|
318
322
|
def to_hash: -> {
|
|
319
323
|
currency: Dodopayments::Models::currency,
|
|
320
324
|
customer_credits: Integer,
|
|
325
|
+
customer_credits_currency: Dodopayments::Models::currency,
|
|
321
326
|
settlement_amount: Integer,
|
|
322
327
|
settlement_currency: Dodopayments::Models::currency,
|
|
323
328
|
total_amount: Integer,
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -421,6 +421,8 @@ module Dodopayments
|
|
|
421
421
|
|
|
422
422
|
class RefundListParams = Dodopayments::Models::RefundListParams
|
|
423
423
|
|
|
424
|
+
module RefundNetworkReferenceType = Dodopayments::Models::RefundNetworkReferenceType
|
|
425
|
+
|
|
424
426
|
class RefundRetrieveParams = Dodopayments::Models::RefundRetrieveParams
|
|
425
427
|
|
|
426
428
|
module RefundStatus = Dodopayments::Models::RefundStatus
|
|
@@ -435,6 +437,8 @@ module Dodopayments
|
|
|
435
437
|
|
|
436
438
|
class SubscriptionCancelChangePlanParams = Dodopayments::Models::SubscriptionCancelChangePlanParams
|
|
437
439
|
|
|
440
|
+
class SubscriptionCancelledBy = Dodopayments::Models::SubscriptionCancelledBy
|
|
441
|
+
|
|
438
442
|
class SubscriptionCancelledWebhookEvent = Dodopayments::Models::SubscriptionCancelledWebhookEvent
|
|
439
443
|
|
|
440
444
|
class SubscriptionChangePlanParams = Dodopayments::Models::SubscriptionChangePlanParams
|
|
@@ -18,7 +18,7 @@ module Dodopayments
|
|
|
18
18
|
?force_3ds: bool?,
|
|
19
19
|
?mandate_min_amount_inr_paise: Integer?,
|
|
20
20
|
?metadata: Dodopayments::Models::metadata?,
|
|
21
|
-
?minimal_address: bool
|
|
21
|
+
?minimal_address: bool?,
|
|
22
22
|
?payment_method_id: String?,
|
|
23
23
|
?product_collection_id: String?,
|
|
24
24
|
?return_url: String?,
|
|
@@ -51,7 +51,7 @@ module Dodopayments
|
|
|
51
51
|
?force_3ds: bool?,
|
|
52
52
|
?mandate_min_amount_inr_paise: Integer?,
|
|
53
53
|
?metadata: Dodopayments::Models::metadata?,
|
|
54
|
-
?minimal_address: bool
|
|
54
|
+
?minimal_address: bool?,
|
|
55
55
|
?payment_method_id: String?,
|
|
56
56
|
?product_collection_id: String?,
|
|
57
57
|
?return_url: String?,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dodopayments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dodo Payments
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -389,6 +389,7 @@ files:
|
|
|
389
389
|
- lib/dodopayments/models/refund_failed_webhook_event.rb
|
|
390
390
|
- lib/dodopayments/models/refund_list_item.rb
|
|
391
391
|
- lib/dodopayments/models/refund_list_params.rb
|
|
392
|
+
- lib/dodopayments/models/refund_network_reference_type.rb
|
|
392
393
|
- lib/dodopayments/models/refund_retrieve_params.rb
|
|
393
394
|
- lib/dodopayments/models/refund_status.rb
|
|
394
395
|
- lib/dodopayments/models/refund_succeeded_webhook_event.rb
|
|
@@ -396,6 +397,7 @@ files:
|
|
|
396
397
|
- lib/dodopayments/models/subscription.rb
|
|
397
398
|
- lib/dodopayments/models/subscription_active_webhook_event.rb
|
|
398
399
|
- lib/dodopayments/models/subscription_cancel_change_plan_params.rb
|
|
400
|
+
- lib/dodopayments/models/subscription_cancelled_by.rb
|
|
399
401
|
- lib/dodopayments/models/subscription_cancelled_webhook_event.rb
|
|
400
402
|
- lib/dodopayments/models/subscription_change_plan_params.rb
|
|
401
403
|
- lib/dodopayments/models/subscription_change_plan_response.rb
|
|
@@ -825,6 +827,7 @@ files:
|
|
|
825
827
|
- rbi/dodopayments/models/refund_failed_webhook_event.rbi
|
|
826
828
|
- rbi/dodopayments/models/refund_list_item.rbi
|
|
827
829
|
- rbi/dodopayments/models/refund_list_params.rbi
|
|
830
|
+
- rbi/dodopayments/models/refund_network_reference_type.rbi
|
|
828
831
|
- rbi/dodopayments/models/refund_retrieve_params.rbi
|
|
829
832
|
- rbi/dodopayments/models/refund_status.rbi
|
|
830
833
|
- rbi/dodopayments/models/refund_succeeded_webhook_event.rbi
|
|
@@ -832,6 +835,7 @@ files:
|
|
|
832
835
|
- rbi/dodopayments/models/subscription.rbi
|
|
833
836
|
- rbi/dodopayments/models/subscription_active_webhook_event.rbi
|
|
834
837
|
- rbi/dodopayments/models/subscription_cancel_change_plan_params.rbi
|
|
838
|
+
- rbi/dodopayments/models/subscription_cancelled_by.rbi
|
|
835
839
|
- rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi
|
|
836
840
|
- rbi/dodopayments/models/subscription_change_plan_params.rbi
|
|
837
841
|
- rbi/dodopayments/models/subscription_change_plan_response.rbi
|
|
@@ -1260,6 +1264,7 @@ files:
|
|
|
1260
1264
|
- sig/dodopayments/models/refund_failed_webhook_event.rbs
|
|
1261
1265
|
- sig/dodopayments/models/refund_list_item.rbs
|
|
1262
1266
|
- sig/dodopayments/models/refund_list_params.rbs
|
|
1267
|
+
- sig/dodopayments/models/refund_network_reference_type.rbs
|
|
1263
1268
|
- sig/dodopayments/models/refund_retrieve_params.rbs
|
|
1264
1269
|
- sig/dodopayments/models/refund_status.rbs
|
|
1265
1270
|
- sig/dodopayments/models/refund_succeeded_webhook_event.rbs
|
|
@@ -1267,6 +1272,7 @@ files:
|
|
|
1267
1272
|
- sig/dodopayments/models/subscription.rbs
|
|
1268
1273
|
- sig/dodopayments/models/subscription_active_webhook_event.rbs
|
|
1269
1274
|
- sig/dodopayments/models/subscription_cancel_change_plan_params.rbs
|
|
1275
|
+
- sig/dodopayments/models/subscription_cancelled_by.rbs
|
|
1270
1276
|
- sig/dodopayments/models/subscription_cancelled_webhook_event.rbs
|
|
1271
1277
|
- sig/dodopayments/models/subscription_change_plan_params.rbs
|
|
1272
1278
|
- sig/dodopayments/models/subscription_change_plan_response.rbs
|