dodopayments 1.71.1 → 1.73.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 +13 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_preview_params.rb +14 -0
- data/lib/dodopayments/models/checkout_session_preview_response.rb +426 -0
- data/lib/dodopayments/models/checkout_session_request.rb +9 -1
- data/lib/dodopayments/models/discount_retrieve_by_code_params.rb +14 -0
- data/lib/dodopayments/models/payment.rb +9 -1
- data/lib/dodopayments/models/payment_method_types.rb +13 -98
- data/lib/dodopayments/models/product.rb +9 -1
- data/lib/dodopayments/models/subscription_change_plan_params.rb +10 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_params.rb +10 -1
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +60 -1
- data/lib/dodopayments/resources/discounts.rb +22 -0
- data/lib/dodopayments/resources/subscriptions.rb +6 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +3 -0
- data/rbi/dodopayments/models/checkout_session_preview_params.rbi +32 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +616 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +8 -0
- data/rbi/dodopayments/models/discount_retrieve_by_code_params.rbi +32 -0
- data/rbi/dodopayments/models/payment.rbi +8 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +18 -186
- data/rbi/dodopayments/models/product.rbi +11 -3
- data/rbi/dodopayments/models/subscription_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +88 -0
- data/rbi/dodopayments/resources/discounts.rbi +16 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +8 -0
- data/sig/dodopayments/models/checkout_session_preview_params.rbs +15 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +330 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/discount_retrieve_by_code_params.rbs +15 -0
- data/sig/dodopayments/models/payment.rbs +5 -0
- data/sig/dodopayments/models/payment_method_types.rbs +26 -196
- data/sig/dodopayments/models/product.rbs +8 -3
- data/sig/dodopayments/models/subscription_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models/subscription_preview_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +23 -0
- data/sig/dodopayments/resources/discounts.rbs +5 -0
- data/sig/dodopayments/resources/subscriptions.rbs +2 -0
- metadata +11 -2
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
7
7
|
quantity: Integer,
|
|
8
|
-
addons: ::Array[Dodopayments::AttachAddon]
|
|
8
|
+
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
9
|
+
metadata: ::Hash[Symbol, String]?
|
|
9
10
|
}
|
|
10
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module Dodopayments
|
|
|
21
22
|
|
|
22
23
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
23
24
|
|
|
25
|
+
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
product_id: String,
|
|
26
29
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
27
30
|
quantity: Integer,
|
|
28
31
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
32
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
29
33
|
?request_options: Dodopayments::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module Dodopayments
|
|
|
34
38
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
35
39
|
quantity: Integer,
|
|
36
40
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
41
|
+
metadata: ::Hash[Symbol, String]?,
|
|
37
42
|
request_options: Dodopayments::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
7
7
|
quantity: Integer,
|
|
8
|
-
addons: ::Array[Dodopayments::AttachAddon]
|
|
8
|
+
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
9
|
+
metadata: ::Hash[Symbol, String]?
|
|
9
10
|
}
|
|
10
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module Dodopayments
|
|
|
21
22
|
|
|
22
23
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
23
24
|
|
|
25
|
+
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
product_id: String,
|
|
26
29
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
27
30
|
quantity: Integer,
|
|
28
31
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
32
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
29
33
|
?request_options: Dodopayments::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module Dodopayments
|
|
|
34
38
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
35
39
|
quantity: Integer,
|
|
36
40
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
41
|
+
metadata: ::Hash[Symbol, String]?,
|
|
37
42
|
request_options: Dodopayments::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -35,6 +35,8 @@ module Dodopayments
|
|
|
35
35
|
|
|
36
36
|
class CheckoutSessionCreateParams = Dodopayments::Models::CheckoutSessionCreateParams
|
|
37
37
|
|
|
38
|
+
class CheckoutSessionPreviewParams = Dodopayments::Models::CheckoutSessionPreviewParams
|
|
39
|
+
|
|
38
40
|
class CheckoutSessionRequest = Dodopayments::Models::CheckoutSessionRequest
|
|
39
41
|
|
|
40
42
|
class CheckoutSessionResponse = Dodopayments::Models::CheckoutSessionResponse
|
|
@@ -77,6 +79,8 @@ module Dodopayments
|
|
|
77
79
|
|
|
78
80
|
class DiscountListParams = Dodopayments::Models::DiscountListParams
|
|
79
81
|
|
|
82
|
+
class DiscountRetrieveByCodeParams = Dodopayments::Models::DiscountRetrieveByCodeParams
|
|
83
|
+
|
|
80
84
|
class DiscountRetrieveParams = Dodopayments::Models::DiscountRetrieveParams
|
|
81
85
|
|
|
82
86
|
module DiscountType = Dodopayments::Models::DiscountType
|
|
@@ -15,6 +15,7 @@ module Dodopayments
|
|
|
15
15
|
?metadata: ::Hash[Symbol, String]?,
|
|
16
16
|
?minimal_address: bool,
|
|
17
17
|
?payment_method_id: String?,
|
|
18
|
+
?product_collection_id: String?,
|
|
18
19
|
?return_url: String?,
|
|
19
20
|
?short_link: bool,
|
|
20
21
|
?show_saved_payment_methods: bool,
|
|
@@ -27,6 +28,28 @@ module Dodopayments
|
|
|
27
28
|
?request_options: Dodopayments::request_opts
|
|
28
29
|
) -> Dodopayments::CheckoutSessionStatus
|
|
29
30
|
|
|
31
|
+
def preview: (
|
|
32
|
+
product_cart: ::Array[Dodopayments::CheckoutSessionRequest::ProductCart],
|
|
33
|
+
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
34
|
+
?billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
35
|
+
?billing_currency: Dodopayments::Models::currency?,
|
|
36
|
+
?confirm: bool,
|
|
37
|
+
?customer: Dodopayments::Models::customer_request?,
|
|
38
|
+
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
39
|
+
?discount_code: String?,
|
|
40
|
+
?feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
41
|
+
?force_3ds: bool?,
|
|
42
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
43
|
+
?minimal_address: bool,
|
|
44
|
+
?payment_method_id: String?,
|
|
45
|
+
?product_collection_id: String?,
|
|
46
|
+
?return_url: String?,
|
|
47
|
+
?short_link: bool,
|
|
48
|
+
?show_saved_payment_methods: bool,
|
|
49
|
+
?subscription_data: Dodopayments::CheckoutSessionRequest::SubscriptionData?,
|
|
50
|
+
?request_options: Dodopayments::request_opts
|
|
51
|
+
) -> Dodopayments::Models::CheckoutSessionPreviewResponse
|
|
52
|
+
|
|
30
53
|
def initialize: (client: Dodopayments::Client) -> void
|
|
31
54
|
end
|
|
32
55
|
end
|
|
@@ -42,6 +42,11 @@ module Dodopayments
|
|
|
42
42
|
?request_options: Dodopayments::request_opts
|
|
43
43
|
) -> nil
|
|
44
44
|
|
|
45
|
+
def retrieve_by_code: (
|
|
46
|
+
String code,
|
|
47
|
+
?request_options: Dodopayments::request_opts
|
|
48
|
+
) -> Dodopayments::Discount
|
|
49
|
+
|
|
45
50
|
def initialize: (client: Dodopayments::Client) -> void
|
|
46
51
|
end
|
|
47
52
|
end
|
|
@@ -60,6 +60,7 @@ module Dodopayments
|
|
|
60
60
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
61
61
|
quantity: Integer,
|
|
62
62
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
63
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
63
64
|
?request_options: Dodopayments::request_opts
|
|
64
65
|
) -> nil
|
|
65
66
|
|
|
@@ -80,6 +81,7 @@ module Dodopayments
|
|
|
80
81
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
81
82
|
quantity: Integer,
|
|
82
83
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
84
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
83
85
|
?request_options: Dodopayments::request_opts
|
|
84
86
|
) -> Dodopayments::Models::SubscriptionPreviewChangePlanResponse
|
|
85
87
|
|
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: 1.
|
|
4
|
+
version: 1.73.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-01-
|
|
11
|
+
date: 2026-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -92,6 +92,8 @@ files:
|
|
|
92
92
|
- lib/dodopayments/models/brand_update_images_response.rb
|
|
93
93
|
- lib/dodopayments/models/brand_update_params.rb
|
|
94
94
|
- lib/dodopayments/models/checkout_session_create_params.rb
|
|
95
|
+
- lib/dodopayments/models/checkout_session_preview_params.rb
|
|
96
|
+
- lib/dodopayments/models/checkout_session_preview_response.rb
|
|
95
97
|
- lib/dodopayments/models/checkout_session_request.rb
|
|
96
98
|
- lib/dodopayments/models/checkout_session_response.rb
|
|
97
99
|
- lib/dodopayments/models/checkout_session_retrieve_params.rb
|
|
@@ -120,6 +122,7 @@ files:
|
|
|
120
122
|
- lib/dodopayments/models/discount_create_params.rb
|
|
121
123
|
- lib/dodopayments/models/discount_delete_params.rb
|
|
122
124
|
- lib/dodopayments/models/discount_list_params.rb
|
|
125
|
+
- lib/dodopayments/models/discount_retrieve_by_code_params.rb
|
|
123
126
|
- lib/dodopayments/models/discount_retrieve_params.rb
|
|
124
127
|
- lib/dodopayments/models/discount_type.rb
|
|
125
128
|
- lib/dodopayments/models/discount_update_params.rb
|
|
@@ -331,6 +334,8 @@ files:
|
|
|
331
334
|
- rbi/dodopayments/models/brand_update_images_response.rbi
|
|
332
335
|
- rbi/dodopayments/models/brand_update_params.rbi
|
|
333
336
|
- rbi/dodopayments/models/checkout_session_create_params.rbi
|
|
337
|
+
- rbi/dodopayments/models/checkout_session_preview_params.rbi
|
|
338
|
+
- rbi/dodopayments/models/checkout_session_preview_response.rbi
|
|
334
339
|
- rbi/dodopayments/models/checkout_session_request.rbi
|
|
335
340
|
- rbi/dodopayments/models/checkout_session_response.rbi
|
|
336
341
|
- rbi/dodopayments/models/checkout_session_retrieve_params.rbi
|
|
@@ -359,6 +364,7 @@ files:
|
|
|
359
364
|
- rbi/dodopayments/models/discount_create_params.rbi
|
|
360
365
|
- rbi/dodopayments/models/discount_delete_params.rbi
|
|
361
366
|
- rbi/dodopayments/models/discount_list_params.rbi
|
|
367
|
+
- rbi/dodopayments/models/discount_retrieve_by_code_params.rbi
|
|
362
368
|
- rbi/dodopayments/models/discount_retrieve_params.rbi
|
|
363
369
|
- rbi/dodopayments/models/discount_type.rbi
|
|
364
370
|
- rbi/dodopayments/models/discount_update_params.rbi
|
|
@@ -569,6 +575,8 @@ files:
|
|
|
569
575
|
- sig/dodopayments/models/brand_update_images_response.rbs
|
|
570
576
|
- sig/dodopayments/models/brand_update_params.rbs
|
|
571
577
|
- sig/dodopayments/models/checkout_session_create_params.rbs
|
|
578
|
+
- sig/dodopayments/models/checkout_session_preview_params.rbs
|
|
579
|
+
- sig/dodopayments/models/checkout_session_preview_response.rbs
|
|
572
580
|
- sig/dodopayments/models/checkout_session_request.rbs
|
|
573
581
|
- sig/dodopayments/models/checkout_session_response.rbs
|
|
574
582
|
- sig/dodopayments/models/checkout_session_retrieve_params.rbs
|
|
@@ -597,6 +605,7 @@ files:
|
|
|
597
605
|
- sig/dodopayments/models/discount_create_params.rbs
|
|
598
606
|
- sig/dodopayments/models/discount_delete_params.rbs
|
|
599
607
|
- sig/dodopayments/models/discount_list_params.rbs
|
|
608
|
+
- sig/dodopayments/models/discount_retrieve_by_code_params.rbs
|
|
600
609
|
- sig/dodopayments/models/discount_retrieve_params.rbs
|
|
601
610
|
- sig/dodopayments/models/discount_type.rbs
|
|
602
611
|
- sig/dodopayments/models/discount_update_params.rbs
|