dodopayments 1.53.5 → 1.54.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 +19 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/util.rb +5 -5
- data/lib/dodopayments/models/checkout_session_request.rb +18 -2
- data/lib/dodopayments/models/customer_limited_details.rb +9 -1
- data/lib/dodopayments/models/payment_create_params.rb +9 -1
- data/lib/dodopayments/models/payout_list_params.rb +17 -1
- data/lib/dodopayments/models/payout_list_response.rb +6 -0
- data/lib/dodopayments/models/subscription.rb +9 -1
- data/lib/dodopayments/models/subscription_create_params.rb +9 -1
- data/lib/dodopayments/models/subscription_list_response.rb +9 -1
- data/lib/dodopayments/resources/checkout_sessions.rb +3 -1
- data/lib/dodopayments/resources/payments.rb +3 -1
- data/lib/dodopayments/resources/payouts.rb +5 -1
- data/lib/dodopayments/resources/subscriptions.rb +3 -1
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/checkout_session_request.rbi +16 -0
- data/rbi/dodopayments/models/customer_limited_details.rbi +21 -5
- data/rbi/dodopayments/models/payment_create_params.rbi +8 -0
- data/rbi/dodopayments/models/payout_list_params.rbi +22 -0
- data/rbi/dodopayments/models/subscription.rbi +11 -3
- data/rbi/dodopayments/models/subscription_create_params.rbi +8 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +11 -3
- data/rbi/dodopayments/resources/checkout_sessions.rbi +3 -0
- data/rbi/dodopayments/resources/payments.rbi +3 -0
- data/rbi/dodopayments/resources/payouts.rbi +6 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +3 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +10 -0
- data/sig/dodopayments/models/customer_limited_details.rbs +20 -3
- data/sig/dodopayments/models/payment_create_params.rbs +5 -0
- data/sig/dodopayments/models/payout_list_params.rbs +18 -1
- data/sig/dodopayments/models/subscription.rbs +8 -3
- data/sig/dodopayments/models/subscription_create_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +8 -3
- data/sig/dodopayments/resources/checkout_sessions.rbs +1 -0
- data/sig/dodopayments/resources/payments.rbs +1 -0
- data/sig/dodopayments/resources/payouts.rbs +2 -0
- data/sig/dodopayments/resources/subscriptions.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 632ee24b75862fb42d76c1f2eb5d8a5acf117210188d9ce7f95a0a02b7c55424
|
|
4
|
+
data.tar.gz: 39ff2d906db19493491c65906463eb8c181ad0c09cc07740fbd531e4c81d7010
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 699acbcea634f1bb3cc3a132ebacc51cb1b9e8fe415df6d13f12ffd35f32c9a5d181d8dcf3eeebc78de33661d61bd3f461d3c49d96b4d006f831b5c50e7b22d5
|
|
7
|
+
data.tar.gz: 3345a6f54e2618138d74713806b28cd215d0187ae2fbce4e78e0f32b82a6ed679d7c44c57218b90ccea338dcf5149b2e966a3861de65450b0054a14e307bbaff
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.54.0 (2025-10-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.53.5...v1.54.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.53.5...v1.54.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updated openapi spec to v1.55.0 ([4bb71ad](https://github.com/dodopayments/dodopayments-ruby/commit/4bb71ad9b3cebdec22722b969684c4dd266035c9))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* absolutely qualified uris should always override the default ([0a9a011](https://github.com/dodopayments/dodopayments-ruby/commit/0a9a011c532bfba6f37d29ebab9fb08589941c6b))
|
|
15
|
+
* should not reuse buffers for `IO.copy_stream` interop ([780663d](https://github.com/dodopayments/dodopayments-ruby/commit/780663d4dad0150f25766d54af480058f31bd57e))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* ignore linter error for tests having large collections ([28e86ee](https://github.com/dodopayments/dodopayments-ruby/commit/28e86ee01088492878c56d50a3a57d8bf9001aa3))
|
|
21
|
+
|
|
3
22
|
## 1.53.5 (2025-10-01)
|
|
4
23
|
|
|
5
24
|
Full Changelog: [v1.53.4...v1.53.5](https://github.com/dodopayments/dodopayments-ruby/compare/v1.53.4...v1.53.5)
|
data/README.md
CHANGED
|
@@ -346,8 +346,9 @@ module Dodopayments
|
|
|
346
346
|
base_path, base_query = lhs.fetch_values(:path, :query)
|
|
347
347
|
slashed = base_path.end_with?("/") ? base_path : "#{base_path}/"
|
|
348
348
|
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
merged = {**parse_uri(rhs.fetch(:path)), **rhs.except(:path, :query)}
|
|
350
|
+
parsed_path, parsed_query = merged.fetch_values(:path, :query)
|
|
351
|
+
override = URI::Generic.build(**merged.slice(:scheme, :host, :port), path: parsed_path)
|
|
351
352
|
|
|
352
353
|
joined = URI.join(URI::Generic.build(lhs.except(:path, :query)), slashed, override)
|
|
353
354
|
query = deep_merge(
|
|
@@ -473,10 +474,9 @@ module Dodopayments
|
|
|
473
474
|
# @return [Enumerable<String>]
|
|
474
475
|
def writable_enum(&blk)
|
|
475
476
|
Enumerator.new do |y|
|
|
476
|
-
buf = String.new
|
|
477
477
|
y.define_singleton_method(:write) do
|
|
478
|
-
self <<
|
|
479
|
-
|
|
478
|
+
self << _1.dup
|
|
479
|
+
_1.bytesize
|
|
480
480
|
end
|
|
481
481
|
|
|
482
482
|
blk.call(y)
|
|
@@ -63,6 +63,12 @@ module Dodopayments
|
|
|
63
63
|
# @return [Dodopayments::Models::CheckoutSessionRequest::FeatureFlags, nil]
|
|
64
64
|
optional :feature_flags, -> { Dodopayments::CheckoutSessionRequest::FeatureFlags }
|
|
65
65
|
|
|
66
|
+
# @!attribute force_3ds
|
|
67
|
+
# Override merchant default 3DS behaviour for this session
|
|
68
|
+
#
|
|
69
|
+
# @return [Boolean, nil]
|
|
70
|
+
optional :force_3ds, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
71
|
+
|
|
66
72
|
# @!attribute metadata
|
|
67
73
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
68
74
|
# provided.
|
|
@@ -87,7 +93,7 @@ module Dodopayments
|
|
|
87
93
|
# @return [Dodopayments::Models::CheckoutSessionRequest::SubscriptionData, nil]
|
|
88
94
|
optional :subscription_data, -> { Dodopayments::CheckoutSessionRequest::SubscriptionData }, nil?: true
|
|
89
95
|
|
|
90
|
-
# @!method initialize(product_cart:, allowed_payment_method_types: nil, billing_address: nil, billing_currency: nil, confirm: nil, customer: nil, customization: nil, discount_code: nil, feature_flags: nil, metadata: nil, return_url: nil, show_saved_payment_methods: nil, subscription_data: nil)
|
|
96
|
+
# @!method initialize(product_cart:, allowed_payment_method_types: nil, billing_address: nil, billing_currency: nil, confirm: nil, customer: nil, customization: nil, discount_code: nil, feature_flags: nil, force_3ds: nil, metadata: nil, return_url: nil, show_saved_payment_methods: nil, subscription_data: nil)
|
|
91
97
|
# Some parameter documentations has been truncated, see
|
|
92
98
|
# {Dodopayments::Models::CheckoutSessionRequest} for more details.
|
|
93
99
|
#
|
|
@@ -109,6 +115,8 @@ module Dodopayments
|
|
|
109
115
|
#
|
|
110
116
|
# @param feature_flags [Dodopayments::Models::CheckoutSessionRequest::FeatureFlags]
|
|
111
117
|
#
|
|
118
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this session
|
|
119
|
+
#
|
|
112
120
|
# @param metadata [Hash{Symbol=>String}, nil] Additional metadata associated with the payment. Defaults to empty if not provid
|
|
113
121
|
#
|
|
114
122
|
# @param return_url [String, nil] The url to redirect after payment failure or success.
|
|
@@ -208,6 +216,12 @@ module Dodopayments
|
|
|
208
216
|
|
|
209
217
|
# @see Dodopayments::Models::CheckoutSessionRequest#customization
|
|
210
218
|
class Customization < Dodopayments::Internal::Type::BaseModel
|
|
219
|
+
# @!attribute force_language
|
|
220
|
+
# Force the checkout interface to render in a specific language (e.g. `en`, `es`)
|
|
221
|
+
#
|
|
222
|
+
# @return [String, nil]
|
|
223
|
+
optional :force_language, String, nil?: true
|
|
224
|
+
|
|
211
225
|
# @!attribute show_on_demand_tag
|
|
212
226
|
# Show on demand tag
|
|
213
227
|
#
|
|
@@ -232,12 +246,14 @@ module Dodopayments
|
|
|
232
246
|
# @return [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::Theme, nil]
|
|
233
247
|
optional :theme, enum: -> { Dodopayments::CheckoutSessionRequest::Customization::Theme }
|
|
234
248
|
|
|
235
|
-
# @!method initialize(show_on_demand_tag: nil, show_order_details: nil, theme: nil)
|
|
249
|
+
# @!method initialize(force_language: nil, show_on_demand_tag: nil, show_order_details: nil, theme: nil)
|
|
236
250
|
# Some parameter documentations has been truncated, see
|
|
237
251
|
# {Dodopayments::Models::CheckoutSessionRequest::Customization} for more details.
|
|
238
252
|
#
|
|
239
253
|
# Customization for the checkout session page
|
|
240
254
|
#
|
|
255
|
+
# @param force_language [String, nil] Force the checkout interface to render in a specific language (e.g. `en`, `es`)
|
|
256
|
+
#
|
|
241
257
|
# @param show_on_demand_tag [Boolean] Show on demand tag
|
|
242
258
|
#
|
|
243
259
|
# @param show_order_details [Boolean] Show order details by default
|
|
@@ -21,12 +21,20 @@ module Dodopayments
|
|
|
21
21
|
# @return [String]
|
|
22
22
|
required :name, String
|
|
23
23
|
|
|
24
|
-
# @!
|
|
24
|
+
# @!attribute phone_number
|
|
25
|
+
# Phone number of the customer
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :phone_number, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(customer_id:, email:, name:, phone_number: nil)
|
|
25
31
|
# @param customer_id [String] Unique identifier for the customer
|
|
26
32
|
#
|
|
27
33
|
# @param email [String] Email address of the customer
|
|
28
34
|
#
|
|
29
35
|
# @param name [String] Full name of the customer
|
|
36
|
+
#
|
|
37
|
+
# @param phone_number [String, nil] Phone number of the customer
|
|
30
38
|
end
|
|
31
39
|
end
|
|
32
40
|
end
|
|
@@ -51,6 +51,12 @@ module Dodopayments
|
|
|
51
51
|
# @return [String, nil]
|
|
52
52
|
optional :discount_code, String, nil?: true
|
|
53
53
|
|
|
54
|
+
# @!attribute force_3ds
|
|
55
|
+
# Override merchant default 3DS behaviour for this payment
|
|
56
|
+
#
|
|
57
|
+
# @return [Boolean, nil]
|
|
58
|
+
optional :force_3ds, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
59
|
+
|
|
54
60
|
# @!attribute metadata
|
|
55
61
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
56
62
|
# provided.
|
|
@@ -84,7 +90,7 @@ module Dodopayments
|
|
|
84
90
|
# @return [String, nil]
|
|
85
91
|
optional :tax_id, String, nil?: true
|
|
86
92
|
|
|
87
|
-
# @!method initialize(billing:, customer:, product_cart:, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {})
|
|
93
|
+
# @!method initialize(billing:, customer:, product_cart:, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {})
|
|
88
94
|
# Some parameter documentations has been truncated, see
|
|
89
95
|
# {Dodopayments::Models::PaymentCreateParams} for more details.
|
|
90
96
|
#
|
|
@@ -100,6 +106,8 @@ module Dodopayments
|
|
|
100
106
|
#
|
|
101
107
|
# @param discount_code [String, nil] Discount Code to apply to the transaction
|
|
102
108
|
#
|
|
109
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this payment
|
|
110
|
+
#
|
|
103
111
|
# @param metadata [Hash{Symbol=>String}] Additional metadata associated with the payment.
|
|
104
112
|
#
|
|
105
113
|
# @param payment_link [Boolean, nil] Whether to generate a payment link. Defaults to false if not specified.
|
|
@@ -7,6 +7,18 @@ module Dodopayments
|
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute created_at_gte
|
|
11
|
+
# Get payouts created after this time (inclusive)
|
|
12
|
+
#
|
|
13
|
+
# @return [Time, nil]
|
|
14
|
+
optional :created_at_gte, Time
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at_lte
|
|
17
|
+
# Get payouts created before this time (inclusive)
|
|
18
|
+
#
|
|
19
|
+
# @return [Time, nil]
|
|
20
|
+
optional :created_at_lte, Time
|
|
21
|
+
|
|
10
22
|
# @!attribute page_number
|
|
11
23
|
# Page number default is 0
|
|
12
24
|
#
|
|
@@ -19,7 +31,11 @@ module Dodopayments
|
|
|
19
31
|
# @return [Integer, nil]
|
|
20
32
|
optional :page_size, Integer
|
|
21
33
|
|
|
22
|
-
# @!method initialize(page_number: nil, page_size: nil, request_options: {})
|
|
34
|
+
# @!method initialize(created_at_gte: nil, created_at_lte: nil, page_number: nil, page_size: nil, request_options: {})
|
|
35
|
+
# @param created_at_gte [Time] Get payouts created after this time (inclusive)
|
|
36
|
+
#
|
|
37
|
+
# @param created_at_lte [Time] Get payouts created before this time (inclusive)
|
|
38
|
+
#
|
|
23
39
|
# @param page_number [Integer] Page number default is 0
|
|
24
40
|
#
|
|
25
41
|
# @param page_size [Integer] Page size default is 10 max is 100
|
|
@@ -17,6 +17,8 @@ module Dodopayments
|
|
|
17
17
|
required :business_id, String
|
|
18
18
|
|
|
19
19
|
# @!attribute chargebacks
|
|
20
|
+
# @deprecated
|
|
21
|
+
#
|
|
20
22
|
# The total value of chargebacks associated with the payout.
|
|
21
23
|
#
|
|
22
24
|
# @return [Integer]
|
|
@@ -53,6 +55,8 @@ module Dodopayments
|
|
|
53
55
|
required :payout_id, String
|
|
54
56
|
|
|
55
57
|
# @!attribute refunds
|
|
58
|
+
# @deprecated
|
|
59
|
+
#
|
|
56
60
|
# The total value of refunds associated with the payout.
|
|
57
61
|
#
|
|
58
62
|
# @return [Integer]
|
|
@@ -65,6 +69,8 @@ module Dodopayments
|
|
|
65
69
|
required :status, enum: -> { Dodopayments::Models::PayoutListResponse::Status }
|
|
66
70
|
|
|
67
71
|
# @!attribute tax
|
|
72
|
+
# @deprecated
|
|
73
|
+
#
|
|
68
74
|
# The tax applied to the payout.
|
|
69
75
|
#
|
|
70
76
|
# @return [Integer]
|
|
@@ -162,7 +162,13 @@ module Dodopayments
|
|
|
162
162
|
# @return [Time, nil]
|
|
163
163
|
optional :expires_at, Time, nil?: true
|
|
164
164
|
|
|
165
|
-
# @!
|
|
165
|
+
# @!attribute tax_id
|
|
166
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
167
|
+
#
|
|
168
|
+
# @return [String, nil]
|
|
169
|
+
optional :tax_id, String, nil?: true
|
|
170
|
+
|
|
171
|
+
# @!method initialize(addons:, billing:, cancel_at_next_billing_date:, created_at:, currency:, customer:, metadata:, meters:, next_billing_date:, on_demand:, payment_frequency_count:, payment_frequency_interval:, previous_billing_date:, product_id:, quantity:, recurring_pre_tax_amount:, status:, subscription_id:, subscription_period_count:, subscription_period_interval:, tax_inclusive:, trial_period_days:, cancelled_at: nil, discount_cycles_remaining: nil, discount_id: nil, expires_at: nil, tax_id: nil)
|
|
166
172
|
# Some parameter documentations has been truncated, see
|
|
167
173
|
# {Dodopayments::Models::Subscription} for more details.
|
|
168
174
|
#
|
|
@@ -219,6 +225,8 @@ module Dodopayments
|
|
|
219
225
|
# @param discount_id [String, nil] The discount id if discount is applied
|
|
220
226
|
#
|
|
221
227
|
# @param expires_at [Time, nil] Timestamp when the subscription will expire
|
|
228
|
+
#
|
|
229
|
+
# @param tax_id [String, nil] Tax identifier provided for this subscription (if applicable)
|
|
222
230
|
|
|
223
231
|
class Meter < Dodopayments::Internal::Type::BaseModel
|
|
224
232
|
# @!attribute currency
|
|
@@ -63,6 +63,12 @@ module Dodopayments
|
|
|
63
63
|
# @return [String, nil]
|
|
64
64
|
optional :discount_code, String, nil?: true
|
|
65
65
|
|
|
66
|
+
# @!attribute force_3ds
|
|
67
|
+
# Override merchant default 3DS behaviour for this subscription
|
|
68
|
+
#
|
|
69
|
+
# @return [Boolean, nil]
|
|
70
|
+
optional :force_3ds, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
71
|
+
|
|
66
72
|
# @!attribute metadata
|
|
67
73
|
# Additional metadata for the subscription Defaults to empty if not specified
|
|
68
74
|
#
|
|
@@ -106,7 +112,7 @@ module Dodopayments
|
|
|
106
112
|
# @return [Integer, nil]
|
|
107
113
|
optional :trial_period_days, Integer, nil?: true
|
|
108
114
|
|
|
109
|
-
# @!method initialize(billing:, customer:, product_id:, quantity:, addons: nil, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, metadata: nil, on_demand: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, trial_period_days: nil, request_options: {})
|
|
115
|
+
# @!method initialize(billing:, customer:, product_id:, quantity:, addons: nil, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, on_demand: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, trial_period_days: nil, request_options: {})
|
|
110
116
|
# Some parameter documentations has been truncated, see
|
|
111
117
|
# {Dodopayments::Models::SubscriptionCreateParams} for more details.
|
|
112
118
|
#
|
|
@@ -126,6 +132,8 @@ module Dodopayments
|
|
|
126
132
|
#
|
|
127
133
|
# @param discount_code [String, nil] Discount Code to apply to the subscription
|
|
128
134
|
#
|
|
135
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this subscription
|
|
136
|
+
#
|
|
129
137
|
# @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription
|
|
130
138
|
#
|
|
131
139
|
# @param on_demand [Dodopayments::Models::OnDemandSubscription, nil]
|
|
@@ -144,7 +144,13 @@ module Dodopayments
|
|
|
144
144
|
# @return [String, nil]
|
|
145
145
|
optional :discount_id, String, nil?: true
|
|
146
146
|
|
|
147
|
-
# @!
|
|
147
|
+
# @!attribute tax_id
|
|
148
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
149
|
+
#
|
|
150
|
+
# @return [String, nil]
|
|
151
|
+
optional :tax_id, String, nil?: true
|
|
152
|
+
|
|
153
|
+
# @!method initialize(billing:, cancel_at_next_billing_date:, created_at:, currency:, customer:, metadata:, next_billing_date:, on_demand:, payment_frequency_count:, payment_frequency_interval:, previous_billing_date:, product_id:, quantity:, recurring_pre_tax_amount:, status:, subscription_id:, subscription_period_count:, subscription_period_interval:, tax_inclusive:, trial_period_days:, cancelled_at: nil, discount_cycles_remaining: nil, discount_id: nil, tax_id: nil)
|
|
148
154
|
# Some parameter documentations has been truncated, see
|
|
149
155
|
# {Dodopayments::Models::SubscriptionListResponse} for more details.
|
|
150
156
|
#
|
|
@@ -195,6 +201,8 @@ module Dodopayments
|
|
|
195
201
|
# @param discount_cycles_remaining [Integer, nil] Number of remaining discount cycles if discount is applied
|
|
196
202
|
#
|
|
197
203
|
# @param discount_id [String, nil] The discount id if discount is applied
|
|
204
|
+
#
|
|
205
|
+
# @param tax_id [String, nil] Tax identifier provided for this subscription (if applicable)
|
|
198
206
|
end
|
|
199
207
|
end
|
|
200
208
|
end
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
# Some parameter documentations has been truncated, see
|
|
7
7
|
# {Dodopayments::Models::CheckoutSessionCreateParams} for more details.
|
|
8
8
|
#
|
|
9
|
-
# @overload create(product_cart:, allowed_payment_method_types: nil, billing_address: nil, billing_currency: nil, confirm: nil, customer: nil, customization: nil, discount_code: nil, feature_flags: nil, metadata: nil, return_url: nil, show_saved_payment_methods: nil, subscription_data: nil, request_options: {})
|
|
9
|
+
# @overload create(product_cart:, allowed_payment_method_types: nil, billing_address: nil, billing_currency: nil, confirm: nil, customer: nil, customization: nil, discount_code: nil, feature_flags: nil, force_3ds: nil, metadata: nil, return_url: nil, show_saved_payment_methods: nil, subscription_data: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param product_cart [Array<Dodopayments::Models::CheckoutSessionRequest::ProductCart>]
|
|
12
12
|
#
|
|
@@ -26,6 +26,8 @@ module Dodopayments
|
|
|
26
26
|
#
|
|
27
27
|
# @param feature_flags [Dodopayments::Models::CheckoutSessionRequest::FeatureFlags]
|
|
28
28
|
#
|
|
29
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this session
|
|
30
|
+
#
|
|
29
31
|
# @param metadata [Hash{Symbol=>String}, nil] Additional metadata associated with the payment. Defaults to empty if not provid
|
|
30
32
|
#
|
|
31
33
|
# @param return_url [String, nil] The url to redirect after payment failure or success.
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
# Some parameter documentations has been truncated, see
|
|
7
7
|
# {Dodopayments::Models::PaymentCreateParams} for more details.
|
|
8
8
|
#
|
|
9
|
-
# @overload create(billing:, customer:, product_cart:, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {})
|
|
9
|
+
# @overload create(billing:, customer:, product_cart:, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param billing [Dodopayments::Models::BillingAddress] Billing address details for the payment
|
|
12
12
|
#
|
|
@@ -20,6 +20,8 @@ module Dodopayments
|
|
|
20
20
|
#
|
|
21
21
|
# @param discount_code [String, nil] Discount Code to apply to the transaction
|
|
22
22
|
#
|
|
23
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this payment
|
|
24
|
+
#
|
|
23
25
|
# @param metadata [Hash{Symbol=>String}] Additional metadata associated with the payment.
|
|
24
26
|
#
|
|
25
27
|
# @param payment_link [Boolean, nil] Whether to generate a payment link. Defaults to false if not specified.
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Resources
|
|
5
5
|
class Payouts
|
|
6
|
-
# @overload list(page_number: nil, page_size: nil, request_options: {})
|
|
6
|
+
# @overload list(created_at_gte: nil, created_at_lte: nil, page_number: nil, page_size: nil, request_options: {})
|
|
7
|
+
#
|
|
8
|
+
# @param created_at_gte [Time] Get payouts created after this time (inclusive)
|
|
9
|
+
#
|
|
10
|
+
# @param created_at_lte [Time] Get payouts created before this time (inclusive)
|
|
7
11
|
#
|
|
8
12
|
# @param page_number [Integer] Page number default is 0
|
|
9
13
|
#
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
# Some parameter documentations has been truncated, see
|
|
7
7
|
# {Dodopayments::Models::SubscriptionCreateParams} for more details.
|
|
8
8
|
#
|
|
9
|
-
# @overload create(billing:, customer:, product_id:, quantity:, addons: nil, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, metadata: nil, on_demand: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, trial_period_days: nil, request_options: {})
|
|
9
|
+
# @overload create(billing:, customer:, product_id:, quantity:, addons: nil, allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, on_demand: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, trial_period_days: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param billing [Dodopayments::Models::BillingAddress] Billing address information for the subscription
|
|
12
12
|
#
|
|
@@ -24,6 +24,8 @@ module Dodopayments
|
|
|
24
24
|
#
|
|
25
25
|
# @param discount_code [String, nil] Discount Code to apply to the subscription
|
|
26
26
|
#
|
|
27
|
+
# @param force_3ds [Boolean, nil] Override merchant default 3DS behaviour for this subscription
|
|
28
|
+
#
|
|
27
29
|
# @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription
|
|
28
30
|
#
|
|
29
31
|
# @param on_demand [Dodopayments::Models::OnDemandSubscription, nil]
|
data/lib/dodopayments/version.rb
CHANGED
|
@@ -98,6 +98,10 @@ module Dodopayments
|
|
|
98
98
|
end
|
|
99
99
|
attr_writer :feature_flags
|
|
100
100
|
|
|
101
|
+
# Override merchant default 3DS behaviour for this session
|
|
102
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
103
|
+
attr_accessor :force_3ds
|
|
104
|
+
|
|
101
105
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
102
106
|
# provided.
|
|
103
107
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -155,6 +159,7 @@ module Dodopayments
|
|
|
155
159
|
discount_code: T.nilable(String),
|
|
156
160
|
feature_flags:
|
|
157
161
|
Dodopayments::CheckoutSessionRequest::FeatureFlags::OrHash,
|
|
162
|
+
force_3ds: T.nilable(T::Boolean),
|
|
158
163
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
159
164
|
return_url: T.nilable(String),
|
|
160
165
|
show_saved_payment_methods: T::Boolean,
|
|
@@ -186,6 +191,8 @@ module Dodopayments
|
|
|
186
191
|
customization: nil,
|
|
187
192
|
discount_code: nil,
|
|
188
193
|
feature_flags: nil,
|
|
194
|
+
# Override merchant default 3DS behaviour for this session
|
|
195
|
+
force_3ds: nil,
|
|
189
196
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
190
197
|
# provided.
|
|
191
198
|
metadata: nil,
|
|
@@ -218,6 +225,7 @@ module Dodopayments
|
|
|
218
225
|
customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
219
226
|
discount_code: T.nilable(String),
|
|
220
227
|
feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
228
|
+
force_3ds: T.nilable(T::Boolean),
|
|
221
229
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
222
230
|
return_url: T.nilable(String),
|
|
223
231
|
show_saved_payment_methods: T::Boolean,
|
|
@@ -375,6 +383,10 @@ module Dodopayments
|
|
|
375
383
|
)
|
|
376
384
|
end
|
|
377
385
|
|
|
386
|
+
# Force the checkout interface to render in a specific language (e.g. `en`, `es`)
|
|
387
|
+
sig { returns(T.nilable(String)) }
|
|
388
|
+
attr_accessor :force_language
|
|
389
|
+
|
|
378
390
|
# Show on demand tag
|
|
379
391
|
#
|
|
380
392
|
# Default is true
|
|
@@ -416,6 +428,7 @@ module Dodopayments
|
|
|
416
428
|
# Customization for the checkout session page
|
|
417
429
|
sig do
|
|
418
430
|
params(
|
|
431
|
+
force_language: T.nilable(String),
|
|
419
432
|
show_on_demand_tag: T::Boolean,
|
|
420
433
|
show_order_details: T::Boolean,
|
|
421
434
|
theme:
|
|
@@ -423,6 +436,8 @@ module Dodopayments
|
|
|
423
436
|
).returns(T.attached_class)
|
|
424
437
|
end
|
|
425
438
|
def self.new(
|
|
439
|
+
# Force the checkout interface to render in a specific language (e.g. `en`, `es`)
|
|
440
|
+
force_language: nil,
|
|
426
441
|
# Show on demand tag
|
|
427
442
|
#
|
|
428
443
|
# Default is true
|
|
@@ -441,6 +456,7 @@ module Dodopayments
|
|
|
441
456
|
sig do
|
|
442
457
|
override.returns(
|
|
443
458
|
{
|
|
459
|
+
force_language: T.nilable(String),
|
|
444
460
|
show_on_demand_tag: T::Boolean,
|
|
445
461
|
show_order_details: T::Boolean,
|
|
446
462
|
theme:
|
|
@@ -23,10 +23,17 @@ module Dodopayments
|
|
|
23
23
|
sig { returns(String) }
|
|
24
24
|
attr_accessor :name
|
|
25
25
|
|
|
26
|
+
# Phone number of the customer
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_accessor :phone_number
|
|
29
|
+
|
|
26
30
|
sig do
|
|
27
|
-
params(
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
params(
|
|
32
|
+
customer_id: String,
|
|
33
|
+
email: String,
|
|
34
|
+
name: String,
|
|
35
|
+
phone_number: T.nilable(String)
|
|
36
|
+
).returns(T.attached_class)
|
|
30
37
|
end
|
|
31
38
|
def self.new(
|
|
32
39
|
# Unique identifier for the customer
|
|
@@ -34,12 +41,21 @@ module Dodopayments
|
|
|
34
41
|
# Email address of the customer
|
|
35
42
|
email:,
|
|
36
43
|
# Full name of the customer
|
|
37
|
-
name
|
|
44
|
+
name:,
|
|
45
|
+
# Phone number of the customer
|
|
46
|
+
phone_number: nil
|
|
38
47
|
)
|
|
39
48
|
end
|
|
40
49
|
|
|
41
50
|
sig do
|
|
42
|
-
override.returns(
|
|
51
|
+
override.returns(
|
|
52
|
+
{
|
|
53
|
+
customer_id: String,
|
|
54
|
+
email: String,
|
|
55
|
+
name: String,
|
|
56
|
+
phone_number: T.nilable(String)
|
|
57
|
+
}
|
|
58
|
+
)
|
|
43
59
|
end
|
|
44
60
|
def to_hash
|
|
45
61
|
end
|
|
@@ -53,6 +53,10 @@ module Dodopayments
|
|
|
53
53
|
sig { returns(T.nilable(String)) }
|
|
54
54
|
attr_accessor :discount_code
|
|
55
55
|
|
|
56
|
+
# Override merchant default 3DS behaviour for this payment
|
|
57
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
58
|
+
attr_accessor :force_3ds
|
|
59
|
+
|
|
56
60
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
57
61
|
# provided.
|
|
58
62
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -95,6 +99,7 @@ module Dodopayments
|
|
|
95
99
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
96
100
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
97
101
|
discount_code: T.nilable(String),
|
|
102
|
+
force_3ds: T.nilable(T::Boolean),
|
|
98
103
|
metadata: T::Hash[Symbol, String],
|
|
99
104
|
payment_link: T.nilable(T::Boolean),
|
|
100
105
|
return_url: T.nilable(String),
|
|
@@ -122,6 +127,8 @@ module Dodopayments
|
|
|
122
127
|
billing_currency: nil,
|
|
123
128
|
# Discount Code to apply to the transaction
|
|
124
129
|
discount_code: nil,
|
|
130
|
+
# Override merchant default 3DS behaviour for this payment
|
|
131
|
+
force_3ds: nil,
|
|
125
132
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
126
133
|
# provided.
|
|
127
134
|
metadata: nil,
|
|
@@ -153,6 +160,7 @@ module Dodopayments
|
|
|
153
160
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
154
161
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
155
162
|
discount_code: T.nilable(String),
|
|
163
|
+
force_3ds: T.nilable(T::Boolean),
|
|
156
164
|
metadata: T::Hash[Symbol, String],
|
|
157
165
|
payment_link: T.nilable(T::Boolean),
|
|
158
166
|
return_url: T.nilable(String),
|
|
@@ -11,6 +11,20 @@ module Dodopayments
|
|
|
11
11
|
T.any(Dodopayments::PayoutListParams, Dodopayments::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Get payouts created after this time (inclusive)
|
|
15
|
+
sig { returns(T.nilable(Time)) }
|
|
16
|
+
attr_reader :created_at_gte
|
|
17
|
+
|
|
18
|
+
sig { params(created_at_gte: Time).void }
|
|
19
|
+
attr_writer :created_at_gte
|
|
20
|
+
|
|
21
|
+
# Get payouts created before this time (inclusive)
|
|
22
|
+
sig { returns(T.nilable(Time)) }
|
|
23
|
+
attr_reader :created_at_lte
|
|
24
|
+
|
|
25
|
+
sig { params(created_at_lte: Time).void }
|
|
26
|
+
attr_writer :created_at_lte
|
|
27
|
+
|
|
14
28
|
# Page number default is 0
|
|
15
29
|
sig { returns(T.nilable(Integer)) }
|
|
16
30
|
attr_reader :page_number
|
|
@@ -27,12 +41,18 @@ module Dodopayments
|
|
|
27
41
|
|
|
28
42
|
sig do
|
|
29
43
|
params(
|
|
44
|
+
created_at_gte: Time,
|
|
45
|
+
created_at_lte: Time,
|
|
30
46
|
page_number: Integer,
|
|
31
47
|
page_size: Integer,
|
|
32
48
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
33
49
|
).returns(T.attached_class)
|
|
34
50
|
end
|
|
35
51
|
def self.new(
|
|
52
|
+
# Get payouts created after this time (inclusive)
|
|
53
|
+
created_at_gte: nil,
|
|
54
|
+
# Get payouts created before this time (inclusive)
|
|
55
|
+
created_at_lte: nil,
|
|
36
56
|
# Page number default is 0
|
|
37
57
|
page_number: nil,
|
|
38
58
|
# Page size default is 10 max is 100
|
|
@@ -44,6 +64,8 @@ module Dodopayments
|
|
|
44
64
|
sig do
|
|
45
65
|
override.returns(
|
|
46
66
|
{
|
|
67
|
+
created_at_gte: Time,
|
|
68
|
+
created_at_lte: Time,
|
|
47
69
|
page_number: Integer,
|
|
48
70
|
page_size: Integer,
|
|
49
71
|
request_options: Dodopayments::RequestOptions
|
|
@@ -122,6 +122,10 @@ module Dodopayments
|
|
|
122
122
|
sig { returns(T.nilable(Time)) }
|
|
123
123
|
attr_accessor :expires_at
|
|
124
124
|
|
|
125
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
126
|
+
sig { returns(T.nilable(String)) }
|
|
127
|
+
attr_accessor :tax_id
|
|
128
|
+
|
|
125
129
|
# Response struct representing subscription details
|
|
126
130
|
sig do
|
|
127
131
|
params(
|
|
@@ -150,7 +154,8 @@ module Dodopayments
|
|
|
150
154
|
cancelled_at: T.nilable(Time),
|
|
151
155
|
discount_cycles_remaining: T.nilable(Integer),
|
|
152
156
|
discount_id: T.nilable(String),
|
|
153
|
-
expires_at: T.nilable(Time)
|
|
157
|
+
expires_at: T.nilable(Time),
|
|
158
|
+
tax_id: T.nilable(String)
|
|
154
159
|
).returns(T.attached_class)
|
|
155
160
|
end
|
|
156
161
|
def self.new(
|
|
@@ -207,7 +212,9 @@ module Dodopayments
|
|
|
207
212
|
# The discount id if discount is applied
|
|
208
213
|
discount_id: nil,
|
|
209
214
|
# Timestamp when the subscription will expire
|
|
210
|
-
expires_at: nil
|
|
215
|
+
expires_at: nil,
|
|
216
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
217
|
+
tax_id: nil
|
|
211
218
|
)
|
|
212
219
|
end
|
|
213
220
|
|
|
@@ -241,7 +248,8 @@ module Dodopayments
|
|
|
241
248
|
cancelled_at: T.nilable(Time),
|
|
242
249
|
discount_cycles_remaining: T.nilable(Integer),
|
|
243
250
|
discount_id: T.nilable(String),
|
|
244
|
-
expires_at: T.nilable(Time)
|
|
251
|
+
expires_at: T.nilable(Time),
|
|
252
|
+
tax_id: T.nilable(String)
|
|
245
253
|
}
|
|
246
254
|
)
|
|
247
255
|
end
|
|
@@ -61,6 +61,10 @@ module Dodopayments
|
|
|
61
61
|
sig { returns(T.nilable(String)) }
|
|
62
62
|
attr_accessor :discount_code
|
|
63
63
|
|
|
64
|
+
# Override merchant default 3DS behaviour for this subscription
|
|
65
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
66
|
+
attr_accessor :force_3ds
|
|
67
|
+
|
|
64
68
|
# Additional metadata for the subscription Defaults to empty if not specified
|
|
65
69
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
66
70
|
attr_reader :metadata
|
|
@@ -118,6 +122,7 @@ module Dodopayments
|
|
|
118
122
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
119
123
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
120
124
|
discount_code: T.nilable(String),
|
|
125
|
+
force_3ds: T.nilable(T::Boolean),
|
|
121
126
|
metadata: T::Hash[Symbol, String],
|
|
122
127
|
on_demand: T.nilable(Dodopayments::OnDemandSubscription::OrHash),
|
|
123
128
|
payment_link: T.nilable(T::Boolean),
|
|
@@ -151,6 +156,8 @@ module Dodopayments
|
|
|
151
156
|
billing_currency: nil,
|
|
152
157
|
# Discount Code to apply to the subscription
|
|
153
158
|
discount_code: nil,
|
|
159
|
+
# Override merchant default 3DS behaviour for this subscription
|
|
160
|
+
force_3ds: nil,
|
|
154
161
|
# Additional metadata for the subscription Defaults to empty if not specified
|
|
155
162
|
metadata: nil,
|
|
156
163
|
on_demand: nil,
|
|
@@ -186,6 +193,7 @@ module Dodopayments
|
|
|
186
193
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
187
194
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
188
195
|
discount_code: T.nilable(String),
|
|
196
|
+
force_3ds: T.nilable(T::Boolean),
|
|
189
197
|
metadata: T::Hash[Symbol, String],
|
|
190
198
|
on_demand: T.nilable(Dodopayments::OnDemandSubscription),
|
|
191
199
|
payment_link: T.nilable(T::Boolean),
|
|
@@ -113,6 +113,10 @@ module Dodopayments
|
|
|
113
113
|
sig { returns(T.nilable(String)) }
|
|
114
114
|
attr_accessor :discount_id
|
|
115
115
|
|
|
116
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
117
|
+
sig { returns(T.nilable(String)) }
|
|
118
|
+
attr_accessor :tax_id
|
|
119
|
+
|
|
116
120
|
# Response struct representing subscription details
|
|
117
121
|
sig do
|
|
118
122
|
params(
|
|
@@ -138,7 +142,8 @@ module Dodopayments
|
|
|
138
142
|
trial_period_days: Integer,
|
|
139
143
|
cancelled_at: T.nilable(Time),
|
|
140
144
|
discount_cycles_remaining: T.nilable(Integer),
|
|
141
|
-
discount_id: T.nilable(String)
|
|
145
|
+
discount_id: T.nilable(String),
|
|
146
|
+
tax_id: T.nilable(String)
|
|
142
147
|
).returns(T.attached_class)
|
|
143
148
|
end
|
|
144
149
|
def self.new(
|
|
@@ -189,7 +194,9 @@ module Dodopayments
|
|
|
189
194
|
# Number of remaining discount cycles if discount is applied
|
|
190
195
|
discount_cycles_remaining: nil,
|
|
191
196
|
# The discount id if discount is applied
|
|
192
|
-
discount_id: nil
|
|
197
|
+
discount_id: nil,
|
|
198
|
+
# Tax identifier provided for this subscription (if applicable)
|
|
199
|
+
tax_id: nil
|
|
193
200
|
)
|
|
194
201
|
end
|
|
195
202
|
|
|
@@ -220,7 +227,8 @@ module Dodopayments
|
|
|
220
227
|
trial_period_days: Integer,
|
|
221
228
|
cancelled_at: T.nilable(Time),
|
|
222
229
|
discount_cycles_remaining: T.nilable(Integer),
|
|
223
|
-
discount_id: T.nilable(String)
|
|
230
|
+
discount_id: T.nilable(String),
|
|
231
|
+
tax_id: T.nilable(String)
|
|
224
232
|
}
|
|
225
233
|
)
|
|
226
234
|
end
|
|
@@ -27,6 +27,7 @@ module Dodopayments
|
|
|
27
27
|
discount_code: T.nilable(String),
|
|
28
28
|
feature_flags:
|
|
29
29
|
Dodopayments::CheckoutSessionRequest::FeatureFlags::OrHash,
|
|
30
|
+
force_3ds: T.nilable(T::Boolean),
|
|
30
31
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
31
32
|
return_url: T.nilable(String),
|
|
32
33
|
show_saved_payment_methods: T::Boolean,
|
|
@@ -59,6 +60,8 @@ module Dodopayments
|
|
|
59
60
|
customization: nil,
|
|
60
61
|
discount_code: nil,
|
|
61
62
|
feature_flags: nil,
|
|
63
|
+
# Override merchant default 3DS behaviour for this session
|
|
64
|
+
force_3ds: nil,
|
|
62
65
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
63
66
|
# provided.
|
|
64
67
|
metadata: nil,
|
|
@@ -16,6 +16,7 @@ module Dodopayments
|
|
|
16
16
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
17
17
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
18
18
|
discount_code: T.nilable(String),
|
|
19
|
+
force_3ds: T.nilable(T::Boolean),
|
|
19
20
|
metadata: T::Hash[Symbol, String],
|
|
20
21
|
payment_link: T.nilable(T::Boolean),
|
|
21
22
|
return_url: T.nilable(String),
|
|
@@ -43,6 +44,8 @@ module Dodopayments
|
|
|
43
44
|
billing_currency: nil,
|
|
44
45
|
# Discount Code to apply to the transaction
|
|
45
46
|
discount_code: nil,
|
|
47
|
+
# Override merchant default 3DS behaviour for this payment
|
|
48
|
+
force_3ds: nil,
|
|
46
49
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
47
50
|
# provided.
|
|
48
51
|
metadata: nil,
|
|
@@ -5,6 +5,8 @@ module Dodopayments
|
|
|
5
5
|
class Payouts
|
|
6
6
|
sig do
|
|
7
7
|
params(
|
|
8
|
+
created_at_gte: Time,
|
|
9
|
+
created_at_lte: Time,
|
|
8
10
|
page_number: Integer,
|
|
9
11
|
page_size: Integer,
|
|
10
12
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -15,6 +17,10 @@ module Dodopayments
|
|
|
15
17
|
)
|
|
16
18
|
end
|
|
17
19
|
def list(
|
|
20
|
+
# Get payouts created after this time (inclusive)
|
|
21
|
+
created_at_gte: nil,
|
|
22
|
+
# Get payouts created before this time (inclusive)
|
|
23
|
+
created_at_lte: nil,
|
|
18
24
|
# Page number default is 0
|
|
19
25
|
page_number: nil,
|
|
20
26
|
# Page size default is 10 max is 100
|
|
@@ -18,6 +18,7 @@ module Dodopayments
|
|
|
18
18
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
19
19
|
billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
20
20
|
discount_code: T.nilable(String),
|
|
21
|
+
force_3ds: T.nilable(T::Boolean),
|
|
21
22
|
metadata: T::Hash[Symbol, String],
|
|
22
23
|
on_demand: T.nilable(Dodopayments::OnDemandSubscription::OrHash),
|
|
23
24
|
payment_link: T.nilable(T::Boolean),
|
|
@@ -51,6 +52,8 @@ module Dodopayments
|
|
|
51
52
|
billing_currency: nil,
|
|
52
53
|
# Discount Code to apply to the subscription
|
|
53
54
|
discount_code: nil,
|
|
55
|
+
# Override merchant default 3DS behaviour for this subscription
|
|
56
|
+
force_3ds: nil,
|
|
54
57
|
# Additional metadata for the subscription Defaults to empty if not specified
|
|
55
58
|
metadata: nil,
|
|
56
59
|
on_demand: nil,
|
|
@@ -11,6 +11,7 @@ module Dodopayments
|
|
|
11
11
|
customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
12
12
|
discount_code: String?,
|
|
13
13
|
feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
14
|
+
:force_3ds => bool?,
|
|
14
15
|
metadata: ::Hash[Symbol, String]?,
|
|
15
16
|
return_url: String?,
|
|
16
17
|
show_saved_payment_methods: bool,
|
|
@@ -46,6 +47,8 @@ module Dodopayments
|
|
|
46
47
|
Dodopayments::CheckoutSessionRequest::FeatureFlags
|
|
47
48
|
) -> Dodopayments::CheckoutSessionRequest::FeatureFlags
|
|
48
49
|
|
|
50
|
+
attr_accessor force_3ds: bool?
|
|
51
|
+
|
|
49
52
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
50
53
|
|
|
51
54
|
attr_accessor return_url: String?
|
|
@@ -66,6 +69,7 @@ module Dodopayments
|
|
|
66
69
|
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
67
70
|
?discount_code: String?,
|
|
68
71
|
?feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
72
|
+
?force_3ds: bool?,
|
|
69
73
|
?metadata: ::Hash[Symbol, String]?,
|
|
70
74
|
?return_url: String?,
|
|
71
75
|
?show_saved_payment_methods: bool,
|
|
@@ -82,6 +86,7 @@ module Dodopayments
|
|
|
82
86
|
customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
83
87
|
discount_code: String?,
|
|
84
88
|
feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
89
|
+
:force_3ds => bool?,
|
|
85
90
|
metadata: ::Hash[Symbol, String]?,
|
|
86
91
|
return_url: String?,
|
|
87
92
|
show_saved_payment_methods: bool,
|
|
@@ -159,12 +164,15 @@ module Dodopayments
|
|
|
159
164
|
|
|
160
165
|
type customization =
|
|
161
166
|
{
|
|
167
|
+
force_language: String?,
|
|
162
168
|
show_on_demand_tag: bool,
|
|
163
169
|
show_order_details: bool,
|
|
164
170
|
theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
class Customization < Dodopayments::Internal::Type::BaseModel
|
|
174
|
+
attr_accessor force_language: String?
|
|
175
|
+
|
|
168
176
|
attr_reader show_on_demand_tag: bool?
|
|
169
177
|
|
|
170
178
|
def show_on_demand_tag=: (bool) -> bool
|
|
@@ -180,12 +188,14 @@ module Dodopayments
|
|
|
180
188
|
) -> Dodopayments::Models::CheckoutSessionRequest::Customization::theme
|
|
181
189
|
|
|
182
190
|
def initialize: (
|
|
191
|
+
?force_language: String?,
|
|
183
192
|
?show_on_demand_tag: bool,
|
|
184
193
|
?show_order_details: bool,
|
|
185
194
|
?theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
|
|
186
195
|
) -> void
|
|
187
196
|
|
|
188
197
|
def to_hash: -> {
|
|
198
|
+
force_language: String?,
|
|
189
199
|
show_on_demand_tag: bool,
|
|
190
200
|
show_order_details: bool,
|
|
191
201
|
theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_limited_details =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
customer_id: String,
|
|
6
|
+
email: String,
|
|
7
|
+
name: String,
|
|
8
|
+
phone_number: String?
|
|
9
|
+
}
|
|
5
10
|
|
|
6
11
|
class CustomerLimitedDetails < Dodopayments::Internal::Type::BaseModel
|
|
7
12
|
attr_accessor customer_id: String
|
|
@@ -10,9 +15,21 @@ module Dodopayments
|
|
|
10
15
|
|
|
11
16
|
attr_accessor name: String
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
attr_accessor phone_number: String?
|
|
14
19
|
|
|
15
|
-
def
|
|
20
|
+
def initialize: (
|
|
21
|
+
customer_id: String,
|
|
22
|
+
email: String,
|
|
23
|
+
name: String,
|
|
24
|
+
?phone_number: String?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
customer_id: String,
|
|
29
|
+
email: String,
|
|
30
|
+
name: String,
|
|
31
|
+
phone_number: String?
|
|
32
|
+
}
|
|
16
33
|
end
|
|
17
34
|
end
|
|
18
35
|
end
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
9
9
|
billing_currency: Dodopayments::Models::currency?,
|
|
10
10
|
discount_code: String?,
|
|
11
|
+
:force_3ds => bool?,
|
|
11
12
|
metadata: ::Hash[Symbol, String],
|
|
12
13
|
payment_link: bool?,
|
|
13
14
|
return_url: String?,
|
|
@@ -32,6 +33,8 @@ module Dodopayments
|
|
|
32
33
|
|
|
33
34
|
attr_accessor discount_code: String?
|
|
34
35
|
|
|
36
|
+
attr_accessor force_3ds: bool?
|
|
37
|
+
|
|
35
38
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
36
39
|
|
|
37
40
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
@@ -53,6 +56,7 @@ module Dodopayments
|
|
|
53
56
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
54
57
|
?billing_currency: Dodopayments::Models::currency?,
|
|
55
58
|
?discount_code: String?,
|
|
59
|
+
?force_3ds: bool?,
|
|
56
60
|
?metadata: ::Hash[Symbol, String],
|
|
57
61
|
?payment_link: bool?,
|
|
58
62
|
?return_url: String?,
|
|
@@ -68,6 +72,7 @@ module Dodopayments
|
|
|
68
72
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
69
73
|
billing_currency: Dodopayments::Models::currency?,
|
|
70
74
|
discount_code: String?,
|
|
75
|
+
:force_3ds => bool?,
|
|
71
76
|
metadata: ::Hash[Symbol, String],
|
|
72
77
|
payment_link: bool?,
|
|
73
78
|
return_url: String?,
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type payout_list_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
created_at_gte: Time,
|
|
6
|
+
created_at_lte: Time,
|
|
7
|
+
page_number: Integer,
|
|
8
|
+
page_size: Integer
|
|
9
|
+
}
|
|
5
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class PayoutListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
13
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
14
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
15
|
|
|
16
|
+
attr_reader created_at_gte: Time?
|
|
17
|
+
|
|
18
|
+
def created_at_gte=: (Time) -> Time
|
|
19
|
+
|
|
20
|
+
attr_reader created_at_lte: Time?
|
|
21
|
+
|
|
22
|
+
def created_at_lte=: (Time) -> Time
|
|
23
|
+
|
|
11
24
|
attr_reader page_number: Integer?
|
|
12
25
|
|
|
13
26
|
def page_number=: (Integer) -> Integer
|
|
@@ -17,12 +30,16 @@ module Dodopayments
|
|
|
17
30
|
def page_size=: (Integer) -> Integer
|
|
18
31
|
|
|
19
32
|
def initialize: (
|
|
33
|
+
?created_at_gte: Time,
|
|
34
|
+
?created_at_lte: Time,
|
|
20
35
|
?page_number: Integer,
|
|
21
36
|
?page_size: Integer,
|
|
22
37
|
?request_options: Dodopayments::request_opts
|
|
23
38
|
) -> void
|
|
24
39
|
|
|
25
40
|
def to_hash: -> {
|
|
41
|
+
created_at_gte: Time,
|
|
42
|
+
created_at_lte: Time,
|
|
26
43
|
page_number: Integer,
|
|
27
44
|
page_size: Integer,
|
|
28
45
|
request_options: Dodopayments::RequestOptions
|
|
@@ -27,7 +27,8 @@ module Dodopayments
|
|
|
27
27
|
cancelled_at: Time?,
|
|
28
28
|
discount_cycles_remaining: Integer?,
|
|
29
29
|
discount_id: String?,
|
|
30
|
-
expires_at: Time
|
|
30
|
+
expires_at: Time?,
|
|
31
|
+
tax_id: String?
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
class Subscription < Dodopayments::Internal::Type::BaseModel
|
|
@@ -83,6 +84,8 @@ module Dodopayments
|
|
|
83
84
|
|
|
84
85
|
attr_accessor expires_at: Time?
|
|
85
86
|
|
|
87
|
+
attr_accessor tax_id: String?
|
|
88
|
+
|
|
86
89
|
def initialize: (
|
|
87
90
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
88
91
|
billing: Dodopayments::BillingAddress,
|
|
@@ -109,7 +112,8 @@ module Dodopayments
|
|
|
109
112
|
?cancelled_at: Time?,
|
|
110
113
|
?discount_cycles_remaining: Integer?,
|
|
111
114
|
?discount_id: String?,
|
|
112
|
-
?expires_at: Time
|
|
115
|
+
?expires_at: Time?,
|
|
116
|
+
?tax_id: String?
|
|
113
117
|
) -> void
|
|
114
118
|
|
|
115
119
|
def to_hash: -> {
|
|
@@ -138,7 +142,8 @@ module Dodopayments
|
|
|
138
142
|
cancelled_at: Time?,
|
|
139
143
|
discount_cycles_remaining: Integer?,
|
|
140
144
|
discount_id: String?,
|
|
141
|
-
expires_at: Time
|
|
145
|
+
expires_at: Time?,
|
|
146
|
+
tax_id: String?
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
type meter =
|
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
11
11
|
billing_currency: Dodopayments::Models::currency?,
|
|
12
12
|
discount_code: String?,
|
|
13
|
+
:force_3ds => bool?,
|
|
13
14
|
metadata: ::Hash[Symbol, String],
|
|
14
15
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
15
16
|
payment_link: bool?,
|
|
@@ -40,6 +41,8 @@ module Dodopayments
|
|
|
40
41
|
|
|
41
42
|
attr_accessor discount_code: String?
|
|
42
43
|
|
|
44
|
+
attr_accessor force_3ds: bool?
|
|
45
|
+
|
|
43
46
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
44
47
|
|
|
45
48
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
@@ -67,6 +70,7 @@ module Dodopayments
|
|
|
67
70
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
68
71
|
?billing_currency: Dodopayments::Models::currency?,
|
|
69
72
|
?discount_code: String?,
|
|
73
|
+
?force_3ds: bool?,
|
|
70
74
|
?metadata: ::Hash[Symbol, String],
|
|
71
75
|
?on_demand: Dodopayments::OnDemandSubscription?,
|
|
72
76
|
?payment_link: bool?,
|
|
@@ -86,6 +90,7 @@ module Dodopayments
|
|
|
86
90
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
87
91
|
billing_currency: Dodopayments::Models::currency?,
|
|
88
92
|
discount_code: String?,
|
|
93
|
+
:force_3ds => bool?,
|
|
89
94
|
metadata: ::Hash[Symbol, String],
|
|
90
95
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
91
96
|
payment_link: bool?,
|
|
@@ -24,7 +24,8 @@ module Dodopayments
|
|
|
24
24
|
trial_period_days: Integer,
|
|
25
25
|
cancelled_at: Time?,
|
|
26
26
|
discount_cycles_remaining: Integer?,
|
|
27
|
-
discount_id: String
|
|
27
|
+
discount_id: String?,
|
|
28
|
+
tax_id: String?
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
class SubscriptionListResponse < Dodopayments::Internal::Type::BaseModel
|
|
@@ -74,6 +75,8 @@ module Dodopayments
|
|
|
74
75
|
|
|
75
76
|
attr_accessor discount_id: String?
|
|
76
77
|
|
|
78
|
+
attr_accessor tax_id: String?
|
|
79
|
+
|
|
77
80
|
def initialize: (
|
|
78
81
|
billing: Dodopayments::BillingAddress,
|
|
79
82
|
cancel_at_next_billing_date: bool,
|
|
@@ -97,7 +100,8 @@ module Dodopayments
|
|
|
97
100
|
trial_period_days: Integer,
|
|
98
101
|
?cancelled_at: Time?,
|
|
99
102
|
?discount_cycles_remaining: Integer?,
|
|
100
|
-
?discount_id: String
|
|
103
|
+
?discount_id: String?,
|
|
104
|
+
?tax_id: String?
|
|
101
105
|
) -> void
|
|
102
106
|
|
|
103
107
|
def to_hash: -> {
|
|
@@ -123,7 +127,8 @@ module Dodopayments
|
|
|
123
127
|
trial_period_days: Integer,
|
|
124
128
|
cancelled_at: Time?,
|
|
125
129
|
discount_cycles_remaining: Integer?,
|
|
126
|
-
discount_id: String
|
|
130
|
+
discount_id: String?,
|
|
131
|
+
tax_id: String?
|
|
127
132
|
}
|
|
128
133
|
end
|
|
129
134
|
end
|
|
@@ -11,6 +11,7 @@ module Dodopayments
|
|
|
11
11
|
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
12
12
|
?discount_code: String?,
|
|
13
13
|
?feature_flags: Dodopayments::CheckoutSessionRequest::FeatureFlags,
|
|
14
|
+
?force_3ds: bool?,
|
|
14
15
|
?metadata: ::Hash[Symbol, String]?,
|
|
15
16
|
?return_url: String?,
|
|
16
17
|
?show_saved_payment_methods: bool,
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
9
9
|
?billing_currency: Dodopayments::Models::currency?,
|
|
10
10
|
?discount_code: String?,
|
|
11
|
+
?force_3ds: bool?,
|
|
11
12
|
?metadata: ::Hash[Symbol, String],
|
|
12
13
|
?payment_link: bool?,
|
|
13
14
|
?return_url: String?,
|
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
11
11
|
?billing_currency: Dodopayments::Models::currency?,
|
|
12
12
|
?discount_code: String?,
|
|
13
|
+
?force_3ds: bool?,
|
|
13
14
|
?metadata: ::Hash[Symbol, String],
|
|
14
15
|
?on_demand: Dodopayments::OnDemandSubscription?,
|
|
15
16
|
?payment_link: bool?,
|
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.54.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: 2025-10-
|
|
11
|
+
date: 2025-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|