dodopayments 1.53.5 → 1.55.7

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/README.md +1 -1
  4. data/lib/dodopayments/internal/util.rb +5 -5
  5. data/lib/dodopayments/models/checkout_session_request.rb +18 -2
  6. data/lib/dodopayments/models/customer_limited_details.rb +9 -1
  7. data/lib/dodopayments/models/new_customer.rb +14 -5
  8. data/lib/dodopayments/models/payment_create_params.rb +9 -1
  9. data/lib/dodopayments/models/payout_list_params.rb +17 -1
  10. data/lib/dodopayments/models/payout_list_response.rb +6 -0
  11. data/lib/dodopayments/models/subscription.rb +9 -1
  12. data/lib/dodopayments/models/subscription_create_params.rb +9 -1
  13. data/lib/dodopayments/models/subscription_list_response.rb +9 -1
  14. data/lib/dodopayments/resources/checkout_sessions.rb +3 -1
  15. data/lib/dodopayments/resources/payments.rb +3 -1
  16. data/lib/dodopayments/resources/payouts.rb +5 -1
  17. data/lib/dodopayments/resources/subscriptions.rb +3 -1
  18. data/lib/dodopayments/version.rb +1 -1
  19. data/rbi/dodopayments/models/checkout_session_request.rbi +16 -0
  20. data/rbi/dodopayments/models/customer_limited_details.rbi +21 -5
  21. data/rbi/dodopayments/models/new_customer.rbi +20 -4
  22. data/rbi/dodopayments/models/payment_create_params.rbi +8 -0
  23. data/rbi/dodopayments/models/payout_list_params.rbi +22 -0
  24. data/rbi/dodopayments/models/subscription.rbi +11 -3
  25. data/rbi/dodopayments/models/subscription_create_params.rbi +8 -0
  26. data/rbi/dodopayments/models/subscription_list_response.rbi +11 -3
  27. data/rbi/dodopayments/resources/checkout_sessions.rbi +3 -0
  28. data/rbi/dodopayments/resources/payments.rbi +3 -0
  29. data/rbi/dodopayments/resources/payouts.rbi +6 -0
  30. data/rbi/dodopayments/resources/subscriptions.rbi +3 -0
  31. data/sig/dodopayments/models/checkout_session_request.rbs +10 -0
  32. data/sig/dodopayments/models/customer_limited_details.rbs +20 -3
  33. data/sig/dodopayments/models/new_customer.rbs +4 -4
  34. data/sig/dodopayments/models/payment_create_params.rbs +5 -0
  35. data/sig/dodopayments/models/payout_list_params.rbs +18 -1
  36. data/sig/dodopayments/models/subscription.rbs +8 -3
  37. data/sig/dodopayments/models/subscription_create_params.rbs +5 -0
  38. data/sig/dodopayments/models/subscription_list_response.rbs +8 -3
  39. data/sig/dodopayments/resources/checkout_sessions.rbs +1 -0
  40. data/sig/dodopayments/resources/payments.rbs +1 -0
  41. data/sig/dodopayments/resources/payouts.rbs +2 -0
  42. data/sig/dodopayments/resources/subscriptions.rbs +1 -0
  43. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa5423b5289785f33d63e1cc61ecbf036f7f42b18bd9da4f29647cafa52df786
4
- data.tar.gz: 3f8abcda4598c912e19afafc8b3cda63232b36ad266e896867592306c0c9c894
3
+ metadata.gz: 527ad5aeb2718d8afaa8ae3837961c0ed70bc42216cfaf907b9cf9991ab96173
4
+ data.tar.gz: a38f8279d3110c349c5ca3ea8dd8250c85041d19ffbd0ac7d999a5c01eb32c11
5
5
  SHA512:
6
- metadata.gz: cf2b1cc5655183c535603d6462ea702e0be3bec3aaaad869f0de91445eae6611bf3fc5ddea23c9bea6a0775ab1803bc06d96be07cf37bb73198a5ab42f07582f
7
- data.tar.gz: cc9d49216945bc4c8d364524deb8dbfb9d90e7dd6400a319fbaa65592a5403bc25b710d7292f13c0c8656387d12adab919ecf0931897f3ba22375e406a264d15
6
+ metadata.gz: 3335d1888e20925cc00b3f18e8bfc95f6a981837429ef7189746bd95243410bf8ba05f125163ef7a5075c480fe1d33e9626a8db1e67e163531a7f3dfde9f46f0
7
+ data.tar.gz: b79506359e274395e1b26ddf11185a829904526e92403aa4646654323ebf08c39740a0a6a70c11f20850e51cb912659011b3068a7b2e403357af4a2aeb105982
data/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.55.7 (2025-10-17)
4
+
5
+ Full Changelog: [v1.54.0...v1.55.7](https://github.com/dodopayments/dodopayments-ruby/compare/v1.54.0...v1.55.7)
6
+
7
+ ### Features
8
+
9
+ * **api:** updates for openapi spec v1.55.7 ([7bcc59e](https://github.com/dodopayments/dodopayments-ruby/commit/7bcc59eeedcb804bd8e83205e78c04c785089f63))
10
+
11
+ ## 1.54.0 (2025-10-16)
12
+
13
+ Full Changelog: [v1.53.5...v1.54.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.53.5...v1.54.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** updated openapi spec to v1.55.0 ([4bb71ad](https://github.com/dodopayments/dodopayments-ruby/commit/4bb71ad9b3cebdec22722b969684c4dd266035c9))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * absolutely qualified uris should always override the default ([0a9a011](https://github.com/dodopayments/dodopayments-ruby/commit/0a9a011c532bfba6f37d29ebab9fb08589941c6b))
23
+ * should not reuse buffers for `IO.copy_stream` interop ([780663d](https://github.com/dodopayments/dodopayments-ruby/commit/780663d4dad0150f25766d54af480058f31bd57e))
24
+
25
+
26
+ ### Chores
27
+
28
+ * ignore linter error for tests having large collections ([28e86ee](https://github.com/dodopayments/dodopayments-ruby/commit/28e86ee01088492878c56d50a3a57d8bf9001aa3))
29
+
3
30
  ## 1.53.5 (2025-10-01)
4
31
 
5
32
  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
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "dodopayments", "~> 1.53.5"
20
+ gem "dodopayments", "~> 1.55.7"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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
- parsed_path, parsed_query = parse_uri(rhs.fetch(:path)).fetch_values(:path, :query)
350
- override = URI::Generic.build(**rhs.slice(:scheme, :host, :port), path: parsed_path)
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 << buf.replace(_1)
479
- buf.bytesize
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
- # @!method initialize(customer_id:, email:, name:)
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
@@ -4,23 +4,32 @@ module Dodopayments
4
4
  module Models
5
5
  class NewCustomer < Dodopayments::Internal::Type::BaseModel
6
6
  # @!attribute email
7
+ # Email is required for creating a new customer
7
8
  #
8
9
  # @return [String]
9
10
  required :email, String
10
11
 
11
12
  # @!attribute name
13
+ # Optional full name of the customer. If provided during session creation, it is
14
+ # persisted and becomes immutable for the session. If omitted here, it can be
15
+ # provided later via the confirm API.
12
16
  #
13
- # @return [String]
14
- required :name, String
17
+ # @return [String, nil]
18
+ optional :name, String, nil?: true
15
19
 
16
20
  # @!attribute phone_number
17
21
  #
18
22
  # @return [String, nil]
19
23
  optional :phone_number, String, nil?: true
20
24
 
21
- # @!method initialize(email:, name:, phone_number: nil)
22
- # @param email [String]
23
- # @param name [String]
25
+ # @!method initialize(email:, name: nil, phone_number: nil)
26
+ # Some parameter documentations has been truncated, see
27
+ # {Dodopayments::Models::NewCustomer} for more details.
28
+ #
29
+ # @param email [String] Email is required for creating a new customer
30
+ #
31
+ # @param name [String, nil] Optional full name of the customer. If provided during session creation,
32
+ #
24
33
  # @param phone_number [String, nil]
25
34
  end
26
35
  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
- # @!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)
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
- # @!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)
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.53.5"
4
+ VERSION = "1.55.7"
5
5
  end
@@ -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(customer_id: String, email: String, name: String).returns(
28
- T.attached_class
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({ customer_id: String, email: String, name: String })
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
@@ -8,10 +8,14 @@ module Dodopayments
8
8
  T.any(Dodopayments::NewCustomer, Dodopayments::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # Email is required for creating a new customer
11
12
  sig { returns(String) }
12
13
  attr_accessor :email
13
14
 
14
- sig { returns(String) }
15
+ # Optional full name of the customer. If provided during session creation, it is
16
+ # persisted and becomes immutable for the session. If omitted here, it can be
17
+ # provided later via the confirm API.
18
+ sig { returns(T.nilable(String)) }
15
19
  attr_accessor :name
16
20
 
17
21
  sig { returns(T.nilable(String)) }
@@ -20,16 +24,28 @@ module Dodopayments
20
24
  sig do
21
25
  params(
22
26
  email: String,
23
- name: String,
27
+ name: T.nilable(String),
24
28
  phone_number: T.nilable(String)
25
29
  ).returns(T.attached_class)
26
30
  end
27
- def self.new(email:, name:, phone_number: nil)
31
+ def self.new(
32
+ # Email is required for creating a new customer
33
+ email:,
34
+ # Optional full name of the customer. If provided during session creation, it is
35
+ # persisted and becomes immutable for the session. If omitted here, it can be
36
+ # provided later via the confirm API.
37
+ name: nil,
38
+ phone_number: nil
39
+ )
28
40
  end
29
41
 
30
42
  sig do
31
43
  override.returns(
32
- { email: String, name: String, phone_number: T.nilable(String) }
44
+ {
45
+ email: String,
46
+ name: T.nilable(String),
47
+ phone_number: T.nilable(String)
48
+ }
33
49
  )
34
50
  end
35
51
  def to_hash
@@ -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),