dodopayments 2.28.0 → 2.29.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/balance_ledger_entry.rb +4 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +4 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +19 -1
- data/lib/dodopayments/models/customers/email_failure_code.rb +1 -0
- data/lib/dodopayments/models/customers/email_log_item.rb +1 -10
- data/lib/dodopayments/models/customers/email_policies.rb +13 -1
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +20 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +20 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +31 -0
- data/rbi/dodopayments/models/customers/email_failure_code.rbi +5 -0
- data/rbi/dodopayments/models/customers/email_log_item.rbi +0 -10
- data/rbi/dodopayments/models/customers/email_policies.rbi +13 -3
- data/sig/dodopayments/models/balance_ledger_entry.rbs +8 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +8 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/customers/email_failure_code.rbs +2 -0
- data/sig/dodopayments/models/customers/email_log_item.rbs +0 -5
- data/sig/dodopayments/models/customers/email_policies.rbs +8 -3
- 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: 8a906f14bc16e6454f0cdae1264cb2f4bd930e2e7b236c8c692cc2a8f7fda700
|
|
4
|
+
data.tar.gz: 2d0c702ef4868d7e4e1eaab5f1ea09a6eb2028dee9debe9650b36ff07f18bdd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6455bf5f046c28307fd7482310b2f9b281c291671bceb8b3ff6ae2d564205767fbc169e603d0c6647ba7a0e1f60367d10e9b79fb0fdf3a0055362a90144083ef
|
|
7
|
+
data.tar.gz: 8af0e496f42407fe77d5ff318bb7c0d70ee24923b05aeee36cd714500efe2c0511c1ca5281fb2853f746da83040c1fe82a6b45749425b5b596ec3d1e73f13c71
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.29.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.28.0...v2.29.0) (2026-09-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** tax id checkout flag, ledger event types, email policy fields ([ad7450d](https://github.com/dodopayments/dodopayments-ruby/commit/ad7450dd2a99f9cd25e68dd98a41707502b4450b))
|
|
9
|
+
* **api:** tax id checkout flag, ledger event types, email policy fields ([ec1a1fc](https://github.com/dodopayments/dodopayments-ruby/commit/ec1a1fc18aafce1c716a2d3d7aa661043c4521e5))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* add Dependabot config for GitHub Actions ([f0c36db](https://github.com/dodopayments/dodopayments-ruby/commit/f0c36dbd15a20af18c77240dcac3a7205b71cae8))
|
|
15
|
+
|
|
3
16
|
## [2.28.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.27.0...v2.28.0) (2026-09-10)
|
|
4
17
|
|
|
5
18
|
|
data/README.md
CHANGED
|
@@ -112,6 +112,10 @@ module Dodopayments
|
|
|
112
112
|
BYOP_FEE = :byop_fee
|
|
113
113
|
ETHOCA_FEES = :ethoca_fees
|
|
114
114
|
ETHOCA_FEES_REVERSAL = :ethoca_fees_reversal
|
|
115
|
+
VISA_RDR_FEE = :visa_rdr_fee
|
|
116
|
+
DISPUTE_FEES_REVERSAL = :dispute_fees_reversal
|
|
117
|
+
DEFLECTION_FEES = :deflection_fees
|
|
118
|
+
DEFLECTION_FEES_REVERSAL = :deflection_fees_reversal
|
|
115
119
|
|
|
116
120
|
# @!method self.values
|
|
117
121
|
# @return [Array<Symbol>]
|
|
@@ -259,6 +259,10 @@ module Dodopayments
|
|
|
259
259
|
BYOP_FEE = :byop_fee
|
|
260
260
|
ETHOCA_FEES = :ethoca_fees
|
|
261
261
|
ETHOCA_FEES_REVERSAL = :ethoca_fees_reversal
|
|
262
|
+
VISA_RDR_FEE = :visa_rdr_fee
|
|
263
|
+
DISPUTE_FEES_REVERSAL = :dispute_fees_reversal
|
|
264
|
+
DEFLECTION_FEES = :deflection_fees
|
|
265
|
+
DEFLECTION_FEES_REVERSAL = :deflection_fees_reversal
|
|
262
266
|
|
|
263
267
|
# @!method self.values
|
|
264
268
|
# @return [Array<Symbol>]
|
|
@@ -122,6 +122,22 @@ module Dodopayments
|
|
|
122
122
|
# @return [Boolean, nil]
|
|
123
123
|
optional :require_phone_number, Dodopayments::Internal::Type::Boolean
|
|
124
124
|
|
|
125
|
+
# @!attribute require_tax_id
|
|
126
|
+
# If true, the customer must give a tax id to check out as a business. A tax id is
|
|
127
|
+
# the GST number in India, or the VAT number in the EU. You must also set
|
|
128
|
+
# `allow_tax_id` to true.
|
|
129
|
+
#
|
|
130
|
+
# On the checkout page, this field does not change checkout for a customer who
|
|
131
|
+
# buys as an individual.
|
|
132
|
+
#
|
|
133
|
+
# A `confirm: true` request skips the checkout page. The request must contain
|
|
134
|
+
# `tax_id`.
|
|
135
|
+
#
|
|
136
|
+
# Default is false
|
|
137
|
+
#
|
|
138
|
+
# @return [Boolean, nil]
|
|
139
|
+
optional :require_tax_id, Dodopayments::Internal::Type::Boolean
|
|
140
|
+
|
|
125
141
|
# @!attribute single_page
|
|
126
142
|
# If true, the session uses the single-page checkout flow: the page initializes
|
|
127
143
|
# the payment at load time and confirms it in place, with no separate payment
|
|
@@ -132,7 +148,7 @@ module Dodopayments
|
|
|
132
148
|
# @return [Boolean, nil]
|
|
133
149
|
optional :single_page, Dodopayments::Internal::Type::Boolean
|
|
134
150
|
|
|
135
|
-
# @!method initialize(allow_currency_selection: nil, allow_customer_editing_business_name: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_tax_id: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_editing_addons: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil, redirect_immediately: nil, require_phone_number: nil, single_page: nil)
|
|
151
|
+
# @!method initialize(allow_currency_selection: nil, allow_customer_editing_business_name: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_tax_id: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_editing_addons: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil, redirect_immediately: nil, require_phone_number: nil, require_tax_id: nil, single_page: nil)
|
|
136
152
|
# Some parameter documentations has been truncated, see
|
|
137
153
|
# {Dodopayments::Models::CheckoutSessionFlags} for more details.
|
|
138
154
|
#
|
|
@@ -170,6 +186,8 @@ module Dodopayments
|
|
|
170
186
|
#
|
|
171
187
|
# @param require_phone_number [Boolean] If true, the customer must provide a phone number to complete checkout.
|
|
172
188
|
#
|
|
189
|
+
# @param require_tax_id [Boolean] If true, the customer must give a tax id to check out as a business.
|
|
190
|
+
#
|
|
173
191
|
# @param single_page [Boolean] If true, the session uses the single-page checkout flow: the page
|
|
174
192
|
end
|
|
175
193
|
end
|
|
@@ -67,13 +67,6 @@ module Dodopayments
|
|
|
67
67
|
# @return [String, nil]
|
|
68
68
|
optional :from, String, nil?: true
|
|
69
69
|
|
|
70
|
-
# @!attribute intended_recipient
|
|
71
|
-
# What the merchant typed, when test mode redirected the send to the business
|
|
72
|
-
# owner.
|
|
73
|
-
#
|
|
74
|
-
# @return [String, nil]
|
|
75
|
-
optional :intended_recipient, String, nil?: true
|
|
76
|
-
|
|
77
70
|
# @!attribute recipient
|
|
78
71
|
# The address the email reached.
|
|
79
72
|
#
|
|
@@ -86,7 +79,7 @@ module Dodopayments
|
|
|
86
79
|
# @return [String, nil]
|
|
87
80
|
optional :subject, String, nil?: true
|
|
88
81
|
|
|
89
|
-
# @!method initialize(category:, created_at:, email_log_id:, email_type:, has_preview:, policies:, status:, failure_code: nil, failure_reason: nil, from: nil,
|
|
82
|
+
# @!method initialize(category:, created_at:, email_log_id:, email_type:, has_preview:, policies:, status:, failure_code: nil, failure_reason: nil, from: nil, recipient: nil, subject: nil)
|
|
90
83
|
# Some parameter documentations has been truncated, see
|
|
91
84
|
# {Dodopayments::Models::Customers::EmailLogItem} for more details.
|
|
92
85
|
#
|
|
@@ -110,8 +103,6 @@ module Dodopayments
|
|
|
110
103
|
#
|
|
111
104
|
# @param from [String, nil] The address the email was sent from.
|
|
112
105
|
#
|
|
113
|
-
# @param intended_recipient [String, nil] What the merchant typed, when test mode redirected the send to the
|
|
114
|
-
#
|
|
115
106
|
# @param recipient [String, nil] The address the email reached.
|
|
116
107
|
#
|
|
117
108
|
# @param subject [String, nil] The subject line as it was sent. Empty until the provider replicates.
|
|
@@ -28,7 +28,17 @@ module Dodopayments
|
|
|
28
28
|
# @return [Boolean]
|
|
29
29
|
required :retry_allowed, Dodopayments::Internal::Type::Boolean
|
|
30
30
|
|
|
31
|
-
# @!
|
|
31
|
+
# @!attribute superseded
|
|
32
|
+
# A later send of this email reached the provider, so this row is history. To send
|
|
33
|
+
# it again would deliver a second copy.
|
|
34
|
+
#
|
|
35
|
+
# @return [Boolean]
|
|
36
|
+
required :superseded, Dodopayments::Internal::Type::Boolean
|
|
37
|
+
|
|
38
|
+
# @!method initialize(requires_different_address:, resend_allowed:, resends_remaining:, retry_allowed:, superseded:)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Dodopayments::Models::Customers::EmailPolicies} for more details.
|
|
41
|
+
#
|
|
32
42
|
# What the merchant may do with one row. The server decides; the client never
|
|
33
43
|
# derives eligibility itself.
|
|
34
44
|
#
|
|
@@ -39,6 +49,8 @@ module Dodopayments
|
|
|
39
49
|
# @param resends_remaining [Integer] How many sends are left in this email's chain.
|
|
40
50
|
#
|
|
41
51
|
# @param retry_allowed [Boolean] The row failed and may be sent again.
|
|
52
|
+
#
|
|
53
|
+
# @param superseded [Boolean] A later send of this email reached the provider, so this row is history.
|
|
42
54
|
end
|
|
43
55
|
end
|
|
44
56
|
end
|
data/lib/dodopayments/version.rb
CHANGED
|
@@ -233,6 +233,26 @@ module Dodopayments
|
|
|
233
233
|
:ethoca_fees_reversal,
|
|
234
234
|
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
235
235
|
)
|
|
236
|
+
VISA_RDR_FEE =
|
|
237
|
+
T.let(
|
|
238
|
+
:visa_rdr_fee,
|
|
239
|
+
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
240
|
+
)
|
|
241
|
+
DISPUTE_FEES_REVERSAL =
|
|
242
|
+
T.let(
|
|
243
|
+
:dispute_fees_reversal,
|
|
244
|
+
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
245
|
+
)
|
|
246
|
+
DEFLECTION_FEES =
|
|
247
|
+
T.let(
|
|
248
|
+
:deflection_fees,
|
|
249
|
+
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
250
|
+
)
|
|
251
|
+
DEFLECTION_FEES_REVERSAL =
|
|
252
|
+
T.let(
|
|
253
|
+
:deflection_fees_reversal,
|
|
254
|
+
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
255
|
+
)
|
|
236
256
|
|
|
237
257
|
sig do
|
|
238
258
|
override.returns(
|
|
@@ -1025,6 +1025,26 @@ module Dodopayments
|
|
|
1025
1025
|
:ethoca_fees_reversal,
|
|
1026
1026
|
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1027
1027
|
)
|
|
1028
|
+
VISA_RDR_FEE =
|
|
1029
|
+
T.let(
|
|
1030
|
+
:visa_rdr_fee,
|
|
1031
|
+
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1032
|
+
)
|
|
1033
|
+
DISPUTE_FEES_REVERSAL =
|
|
1034
|
+
T.let(
|
|
1035
|
+
:dispute_fees_reversal,
|
|
1036
|
+
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1037
|
+
)
|
|
1038
|
+
DEFLECTION_FEES =
|
|
1039
|
+
T.let(
|
|
1040
|
+
:deflection_fees,
|
|
1041
|
+
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1042
|
+
)
|
|
1043
|
+
DEFLECTION_FEES_REVERSAL =
|
|
1044
|
+
T.let(
|
|
1045
|
+
:deflection_fees_reversal,
|
|
1046
|
+
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1047
|
+
)
|
|
1028
1048
|
|
|
1029
1049
|
sig do
|
|
1030
1050
|
override.returns(
|
|
@@ -147,6 +147,23 @@ module Dodopayments
|
|
|
147
147
|
sig { params(require_phone_number: T::Boolean).void }
|
|
148
148
|
attr_writer :require_phone_number
|
|
149
149
|
|
|
150
|
+
# If true, the customer must give a tax id to check out as a business. A tax id is
|
|
151
|
+
# the GST number in India, or the VAT number in the EU. You must also set
|
|
152
|
+
# `allow_tax_id` to true.
|
|
153
|
+
#
|
|
154
|
+
# On the checkout page, this field does not change checkout for a customer who
|
|
155
|
+
# buys as an individual.
|
|
156
|
+
#
|
|
157
|
+
# A `confirm: true` request skips the checkout page. The request must contain
|
|
158
|
+
# `tax_id`.
|
|
159
|
+
#
|
|
160
|
+
# Default is false
|
|
161
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
162
|
+
attr_reader :require_tax_id
|
|
163
|
+
|
|
164
|
+
sig { params(require_tax_id: T::Boolean).void }
|
|
165
|
+
attr_writer :require_tax_id
|
|
166
|
+
|
|
150
167
|
# If true, the session uses the single-page checkout flow: the page initializes
|
|
151
168
|
# the payment at load time and confirms it in place, with no separate payment
|
|
152
169
|
# page.
|
|
@@ -177,6 +194,7 @@ module Dodopayments
|
|
|
177
194
|
always_create_new_customer: T::Boolean,
|
|
178
195
|
redirect_immediately: T::Boolean,
|
|
179
196
|
require_phone_number: T::Boolean,
|
|
197
|
+
require_tax_id: T::Boolean,
|
|
180
198
|
single_page: T::Boolean
|
|
181
199
|
).returns(T.attached_class)
|
|
182
200
|
end
|
|
@@ -232,6 +250,18 @@ module Dodopayments
|
|
|
232
250
|
#
|
|
233
251
|
# Default is false
|
|
234
252
|
require_phone_number: nil,
|
|
253
|
+
# If true, the customer must give a tax id to check out as a business. A tax id is
|
|
254
|
+
# the GST number in India, or the VAT number in the EU. You must also set
|
|
255
|
+
# `allow_tax_id` to true.
|
|
256
|
+
#
|
|
257
|
+
# On the checkout page, this field does not change checkout for a customer who
|
|
258
|
+
# buys as an individual.
|
|
259
|
+
#
|
|
260
|
+
# A `confirm: true` request skips the checkout page. The request must contain
|
|
261
|
+
# `tax_id`.
|
|
262
|
+
#
|
|
263
|
+
# Default is false
|
|
264
|
+
require_tax_id: nil,
|
|
235
265
|
# If true, the session uses the single-page checkout flow: the page initializes
|
|
236
266
|
# the payment at load time and confirms it in place, with no separate payment
|
|
237
267
|
# page.
|
|
@@ -261,6 +291,7 @@ module Dodopayments
|
|
|
261
291
|
always_create_new_customer: T::Boolean,
|
|
262
292
|
redirect_immediately: T::Boolean,
|
|
263
293
|
require_phone_number: T::Boolean,
|
|
294
|
+
require_tax_id: T::Boolean,
|
|
264
295
|
single_page: T::Boolean
|
|
265
296
|
}
|
|
266
297
|
)
|
|
@@ -56,6 +56,11 @@ module Dodopayments
|
|
|
56
56
|
:send_failed,
|
|
57
57
|
Dodopayments::Customers::EmailFailureCode::TaggedSymbol
|
|
58
58
|
)
|
|
59
|
+
TEST_MODE_QUOTA_SPENT =
|
|
60
|
+
T.let(
|
|
61
|
+
:test_mode_quota_spent,
|
|
62
|
+
Dodopayments::Customers::EmailFailureCode::TaggedSymbol
|
|
63
|
+
)
|
|
59
64
|
|
|
60
65
|
sig do
|
|
61
66
|
override.returns(
|
|
@@ -63,11 +63,6 @@ module Dodopayments
|
|
|
63
63
|
sig { returns(T.nilable(String)) }
|
|
64
64
|
attr_accessor :from
|
|
65
65
|
|
|
66
|
-
# What the merchant typed, when test mode redirected the send to the business
|
|
67
|
-
# owner.
|
|
68
|
-
sig { returns(T.nilable(String)) }
|
|
69
|
-
attr_accessor :intended_recipient
|
|
70
|
-
|
|
71
66
|
# The address the email reached.
|
|
72
67
|
sig { returns(T.nilable(String)) }
|
|
73
68
|
attr_accessor :recipient
|
|
@@ -89,7 +84,6 @@ module Dodopayments
|
|
|
89
84
|
T.nilable(Dodopayments::Customers::EmailFailureCode::OrSymbol),
|
|
90
85
|
failure_reason: T.nilable(String),
|
|
91
86
|
from: T.nilable(String),
|
|
92
|
-
intended_recipient: T.nilable(String),
|
|
93
87
|
recipient: T.nilable(String),
|
|
94
88
|
subject: T.nilable(String)
|
|
95
89
|
).returns(T.attached_class)
|
|
@@ -117,9 +111,6 @@ module Dodopayments
|
|
|
117
111
|
failure_reason: nil,
|
|
118
112
|
# The address the email was sent from.
|
|
119
113
|
from: nil,
|
|
120
|
-
# What the merchant typed, when test mode redirected the send to the business
|
|
121
|
-
# owner.
|
|
122
|
-
intended_recipient: nil,
|
|
123
114
|
# The address the email reached.
|
|
124
115
|
recipient: nil,
|
|
125
116
|
# The subject line as it was sent. Empty until the provider replicates.
|
|
@@ -143,7 +134,6 @@ module Dodopayments
|
|
|
143
134
|
),
|
|
144
135
|
failure_reason: T.nilable(String),
|
|
145
136
|
from: T.nilable(String),
|
|
146
|
-
intended_recipient: T.nilable(String),
|
|
147
137
|
recipient: T.nilable(String),
|
|
148
138
|
subject: T.nilable(String)
|
|
149
139
|
}
|
|
@@ -28,6 +28,11 @@ module Dodopayments
|
|
|
28
28
|
sig { returns(T::Boolean) }
|
|
29
29
|
attr_accessor :retry_allowed
|
|
30
30
|
|
|
31
|
+
# A later send of this email reached the provider, so this row is history. To send
|
|
32
|
+
# it again would deliver a second copy.
|
|
33
|
+
sig { returns(T::Boolean) }
|
|
34
|
+
attr_accessor :superseded
|
|
35
|
+
|
|
31
36
|
# What the merchant may do with one row. The server decides; the client never
|
|
32
37
|
# derives eligibility itself.
|
|
33
38
|
sig do
|
|
@@ -35,7 +40,8 @@ module Dodopayments
|
|
|
35
40
|
requires_different_address: T::Boolean,
|
|
36
41
|
resend_allowed: T::Boolean,
|
|
37
42
|
resends_remaining: Integer,
|
|
38
|
-
retry_allowed: T::Boolean
|
|
43
|
+
retry_allowed: T::Boolean,
|
|
44
|
+
superseded: T::Boolean
|
|
39
45
|
).returns(T.attached_class)
|
|
40
46
|
end
|
|
41
47
|
def self.new(
|
|
@@ -46,7 +52,10 @@ module Dodopayments
|
|
|
46
52
|
# How many sends are left in this email's chain.
|
|
47
53
|
resends_remaining:,
|
|
48
54
|
# The row failed and may be sent again.
|
|
49
|
-
retry_allowed
|
|
55
|
+
retry_allowed:,
|
|
56
|
+
# A later send of this email reached the provider, so this row is history. To send
|
|
57
|
+
# it again would deliver a second copy.
|
|
58
|
+
superseded:
|
|
50
59
|
)
|
|
51
60
|
end
|
|
52
61
|
|
|
@@ -56,7 +65,8 @@ module Dodopayments
|
|
|
56
65
|
requires_different_address: T::Boolean,
|
|
57
66
|
resend_allowed: T::Boolean,
|
|
58
67
|
resends_remaining: Integer,
|
|
59
|
-
retry_allowed: T::Boolean
|
|
68
|
+
retry_allowed: T::Boolean,
|
|
69
|
+
superseded: T::Boolean
|
|
60
70
|
}
|
|
61
71
|
)
|
|
62
72
|
end
|
|
@@ -101,6 +101,10 @@ module Dodopayments
|
|
|
101
101
|
| :byop_fee
|
|
102
102
|
| :ethoca_fees
|
|
103
103
|
| :ethoca_fees_reversal
|
|
104
|
+
| :visa_rdr_fee
|
|
105
|
+
| :dispute_fees_reversal
|
|
106
|
+
| :deflection_fees
|
|
107
|
+
| :deflection_fees_reversal
|
|
104
108
|
|
|
105
109
|
module EventType
|
|
106
110
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -129,6 +133,10 @@ module Dodopayments
|
|
|
129
133
|
BYOP_FEE: :byop_fee
|
|
130
134
|
ETHOCA_FEES: :ethoca_fees
|
|
131
135
|
ETHOCA_FEES_REVERSAL: :ethoca_fees_reversal
|
|
136
|
+
VISA_RDR_FEE: :visa_rdr_fee
|
|
137
|
+
DISPUTE_FEES_REVERSAL: :dispute_fees_reversal
|
|
138
|
+
DEFLECTION_FEES: :deflection_fees
|
|
139
|
+
DEFLECTION_FEES_REVERSAL: :deflection_fees_reversal
|
|
132
140
|
|
|
133
141
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceLedgerEntry::event_type]
|
|
134
142
|
end
|
|
@@ -401,6 +401,10 @@ module Dodopayments
|
|
|
401
401
|
| :byop_fee
|
|
402
402
|
| :ethoca_fees
|
|
403
403
|
| :ethoca_fees_reversal
|
|
404
|
+
| :visa_rdr_fee
|
|
405
|
+
| :dispute_fees_reversal
|
|
406
|
+
| :deflection_fees
|
|
407
|
+
| :deflection_fees_reversal
|
|
404
408
|
|
|
405
409
|
module EventType
|
|
406
410
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -429,6 +433,10 @@ module Dodopayments
|
|
|
429
433
|
BYOP_FEE: :byop_fee
|
|
430
434
|
ETHOCA_FEES: :ethoca_fees
|
|
431
435
|
ETHOCA_FEES_REVERSAL: :ethoca_fees_reversal
|
|
436
|
+
VISA_RDR_FEE: :visa_rdr_fee
|
|
437
|
+
DISPUTE_FEES_REVERSAL: :dispute_fees_reversal
|
|
438
|
+
DEFLECTION_FEES: :deflection_fees
|
|
439
|
+
DEFLECTION_FEES_REVERSAL: :deflection_fees_reversal
|
|
432
440
|
|
|
433
441
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceRetrieveLedgerParams::event_type]
|
|
434
442
|
end
|
|
@@ -19,6 +19,7 @@ module Dodopayments
|
|
|
19
19
|
always_create_new_customer: bool,
|
|
20
20
|
redirect_immediately: bool,
|
|
21
21
|
require_phone_number: bool,
|
|
22
|
+
require_tax_id: bool,
|
|
22
23
|
single_page: bool
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -91,6 +92,10 @@ module Dodopayments
|
|
|
91
92
|
|
|
92
93
|
def require_phone_number=: (bool) -> bool
|
|
93
94
|
|
|
95
|
+
attr_reader require_tax_id: bool?
|
|
96
|
+
|
|
97
|
+
def require_tax_id=: (bool) -> bool
|
|
98
|
+
|
|
94
99
|
attr_reader single_page: bool?
|
|
95
100
|
|
|
96
101
|
def single_page=: (bool) -> bool
|
|
@@ -113,6 +118,7 @@ module Dodopayments
|
|
|
113
118
|
?always_create_new_customer: bool,
|
|
114
119
|
?redirect_immediately: bool,
|
|
115
120
|
?require_phone_number: bool,
|
|
121
|
+
?require_tax_id: bool,
|
|
116
122
|
?single_page: bool
|
|
117
123
|
) -> void
|
|
118
124
|
|
|
@@ -134,6 +140,7 @@ module Dodopayments
|
|
|
134
140
|
always_create_new_customer: bool,
|
|
135
141
|
redirect_immediately: bool,
|
|
136
142
|
require_phone_number: bool,
|
|
143
|
+
require_tax_id: bool,
|
|
137
144
|
single_page: bool
|
|
138
145
|
}
|
|
139
146
|
end
|
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
| :message_too_large
|
|
11
11
|
| :marked_as_spam
|
|
12
12
|
| :send_failed
|
|
13
|
+
| :test_mode_quota_spent
|
|
13
14
|
|
|
14
15
|
module EmailFailureCode
|
|
15
16
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -22,6 +23,7 @@ module Dodopayments
|
|
|
22
23
|
MESSAGE_TOO_LARGE: :message_too_large
|
|
23
24
|
MARKED_AS_SPAM: :marked_as_spam
|
|
24
25
|
SEND_FAILED: :send_failed
|
|
26
|
+
TEST_MODE_QUOTA_SPENT: :test_mode_quota_spent
|
|
25
27
|
|
|
26
28
|
def self?.values: -> ::Array[Dodopayments::Models::Customers::email_failure_code]
|
|
27
29
|
end
|
|
@@ -13,7 +13,6 @@ module Dodopayments
|
|
|
13
13
|
failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
14
14
|
failure_reason: String?,
|
|
15
15
|
from: String?,
|
|
16
|
-
intended_recipient: String?,
|
|
17
16
|
recipient: String?,
|
|
18
17
|
subject: String?
|
|
19
18
|
}
|
|
@@ -39,8 +38,6 @@ module Dodopayments
|
|
|
39
38
|
|
|
40
39
|
attr_accessor from: String?
|
|
41
40
|
|
|
42
|
-
attr_accessor intended_recipient: String?
|
|
43
|
-
|
|
44
41
|
attr_accessor recipient: String?
|
|
45
42
|
|
|
46
43
|
attr_accessor subject: String?
|
|
@@ -56,7 +53,6 @@ module Dodopayments
|
|
|
56
53
|
?failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
57
54
|
?failure_reason: String?,
|
|
58
55
|
?from: String?,
|
|
59
|
-
?intended_recipient: String?,
|
|
60
56
|
?recipient: String?,
|
|
61
57
|
?subject: String?
|
|
62
58
|
) -> void
|
|
@@ -72,7 +68,6 @@ module Dodopayments
|
|
|
72
68
|
failure_code: Dodopayments::Models::Customers::email_failure_code?,
|
|
73
69
|
failure_reason: String?,
|
|
74
70
|
from: String?,
|
|
75
|
-
intended_recipient: String?,
|
|
76
71
|
recipient: String?,
|
|
77
72
|
subject: String?
|
|
78
73
|
}
|
|
@@ -6,7 +6,8 @@ module Dodopayments
|
|
|
6
6
|
requires_different_address: bool,
|
|
7
7
|
resend_allowed: bool,
|
|
8
8
|
resends_remaining: Integer,
|
|
9
|
-
retry_allowed: bool
|
|
9
|
+
retry_allowed: bool,
|
|
10
|
+
superseded: bool
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
class EmailPolicies < Dodopayments::Internal::Type::BaseModel
|
|
@@ -18,18 +19,22 @@ module Dodopayments
|
|
|
18
19
|
|
|
19
20
|
attr_accessor retry_allowed: bool
|
|
20
21
|
|
|
22
|
+
attr_accessor superseded: bool
|
|
23
|
+
|
|
21
24
|
def initialize: (
|
|
22
25
|
requires_different_address: bool,
|
|
23
26
|
resend_allowed: bool,
|
|
24
27
|
resends_remaining: Integer,
|
|
25
|
-
retry_allowed: bool
|
|
28
|
+
retry_allowed: bool,
|
|
29
|
+
superseded: bool
|
|
26
30
|
) -> void
|
|
27
31
|
|
|
28
32
|
def to_hash: -> {
|
|
29
33
|
requires_different_address: bool,
|
|
30
34
|
resend_allowed: bool,
|
|
31
35
|
resends_remaining: Integer,
|
|
32
|
-
retry_allowed: bool
|
|
36
|
+
retry_allowed: bool,
|
|
37
|
+
superseded: bool
|
|
33
38
|
}
|
|
34
39
|
end
|
|
35
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dodopayments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.29.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-09-
|
|
11
|
+
date: 2026-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|