stripe 15.1.0 → 15.2.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 +34 -6
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/account.rb +47 -20
- data/lib/stripe/resources/account_session.rb +111 -7
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +1 -1
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +13 -5
- data/lib/stripe/resources/checkout/session.rb +20 -4
- data/lib/stripe/resources/confirmation_token.rb +33 -87
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +1 -2
- data/lib/stripe/resources/credit_note.rb +12 -9
- data/lib/stripe/resources/customer.rb +2 -4
- data/lib/stripe/resources/customer_session.rb +3 -3
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -11
- data/lib/stripe/resources/invoice.rb +114 -27
- data/lib/stripe/resources/invoice_item.rb +2 -3
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +196 -302
- data/lib/stripe/resources/payment_method.rb +46 -103
- data/lib/stripe/resources/payment_method_configuration.rb +297 -2
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +6 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +111 -281
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +89 -29
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +119 -4
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +1 -2
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +275 -3
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +38 -13
- data/lib/stripe/services/account_session_service.rb +75 -7
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +11 -3
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +7 -8
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +92 -23
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +176 -292
- data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +43 -100
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -3
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/setup_intent_service.rb +110 -280
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +93 -3
- data/lib/stripe/services/subscription_service.rb +77 -26
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +1 -2
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +106 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +46 -23
- data/rbi/stripe/resources/account_session.rbi +131 -12
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +1 -1
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +17 -5
- data/rbi/stripe/resources/checkout/session.rbi +22 -6
- data/rbi/stripe/resources/confirmation_token.rbi +33 -99
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +1 -3
- data/rbi/stripe/resources/credit_note.rbi +14 -9
- data/rbi/stripe/resources/customer.rbi +2 -6
- data/rbi/stripe/resources/customer_session.rbi +3 -3
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +1 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +20 -11
- data/rbi/stripe/resources/invoice.rbi +109 -33
- data/rbi/stripe/resources/invoice_item.rbi +2 -4
- data/rbi/stripe/resources/invoice_line_item.rbi +1 -1
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/payment_intent.rbi +201 -349
- data/rbi/stripe/resources/payment_method.rbi +46 -116
- data/rbi/stripe/resources/payment_method_configuration.rbi +334 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +2 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +2 -2
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +5 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +111 -325
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +99 -36
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +138 -10
- data/rbi/stripe/resources/tax/calculation.rbi +5 -1
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +3 -0
- data/rbi/stripe/resources/tax/registration.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +1 -3
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +1 -3
- data/rbi/stripe/resources/terminal/location.rbi +2 -4
- data/rbi/stripe/resources/terminal/reader.rbi +265 -5
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +2 -2
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +2 -4
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +1 -3
- data/rbi/stripe/services/account_service.rbi +40 -16
- data/rbi/stripe/services/account_session_service.rbi +86 -12
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +12 -5
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_service.rbi +7 -8
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +3 -7
- data/rbi/stripe/services/customer_tax_id_service.rbi +1 -3
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +5 -5
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +90 -29
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +179 -339
- data/rbi/stripe/services/payment_method_configuration_service.rbi +236 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +43 -113
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +110 -324
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +107 -9
- data/rbi/stripe/services/subscription_service.rbi +85 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +5 -1
- data/rbi/stripe/services/tax/registration_service.rbi +1 -1
- data/rbi/stripe/services/tax_id_service.rbi +1 -3
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +2 -4
- data/rbi/stripe/services/terminal/reader_service.rbi +115 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +33 -99
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +1 -1
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +4 -12
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +3 -2
@@ -22,21 +22,11 @@ module Stripe
|
|
22
22
|
}
|
23
23
|
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
24
24
|
end
|
25
|
-
class Affirm < Stripe::RequestParams
|
26
|
-
|
27
|
-
end
|
28
|
-
class
|
29
|
-
|
30
|
-
end
|
31
|
-
class Alipay < Stripe::RequestParams
|
32
|
-
|
33
|
-
end
|
34
|
-
class Alma < Stripe::RequestParams
|
35
|
-
|
36
|
-
end
|
37
|
-
class AmazonPay < Stripe::RequestParams
|
38
|
-
|
39
|
-
end
|
25
|
+
class Affirm < Stripe::RequestParams; end
|
26
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
27
|
+
class Alipay < Stripe::RequestParams; end
|
28
|
+
class Alma < Stripe::RequestParams; end
|
29
|
+
class AmazonPay < Stripe::RequestParams; end
|
40
30
|
class AuBecsDebit < Stripe::RequestParams
|
41
31
|
# The account number for the bank account.
|
42
32
|
sig { returns(String) }
|
@@ -57,12 +47,8 @@ module Stripe
|
|
57
47
|
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
58
48
|
def initialize(account_number: nil, sort_code: nil); end
|
59
49
|
end
|
60
|
-
class Bancontact < Stripe::RequestParams
|
61
|
-
|
62
|
-
end
|
63
|
-
class Billie < Stripe::RequestParams
|
64
|
-
|
65
|
-
end
|
50
|
+
class Bancontact < Stripe::RequestParams; end
|
51
|
+
class Billie < Stripe::RequestParams; end
|
66
52
|
class BillingDetails < Stripe::RequestParams
|
67
53
|
class Address < Stripe::RequestParams
|
68
54
|
# City, district, suburb, town, or village.
|
@@ -117,9 +103,7 @@ module Stripe
|
|
117
103
|
}
|
118
104
|
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
119
105
|
end
|
120
|
-
class Blik < Stripe::RequestParams
|
121
|
-
|
122
|
-
end
|
106
|
+
class Blik < Stripe::RequestParams; end
|
123
107
|
class Boleto < Stripe::RequestParams
|
124
108
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
125
109
|
sig { returns(String) }
|
@@ -127,12 +111,8 @@ module Stripe
|
|
127
111
|
sig { params(tax_id: String).void }
|
128
112
|
def initialize(tax_id: nil); end
|
129
113
|
end
|
130
|
-
class Cashapp < Stripe::RequestParams
|
131
|
-
|
132
|
-
end
|
133
|
-
class CustomerBalance < Stripe::RequestParams
|
134
|
-
|
135
|
-
end
|
114
|
+
class Cashapp < Stripe::RequestParams; end
|
115
|
+
class CustomerBalance < Stripe::RequestParams; end
|
136
116
|
class Eps < Stripe::RequestParams
|
137
117
|
# The customer's bank.
|
138
118
|
sig { returns(T.nilable(String)) }
|
@@ -150,12 +130,8 @@ module Stripe
|
|
150
130
|
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
151
131
|
def initialize(account_holder_type: nil, bank: nil); end
|
152
132
|
end
|
153
|
-
class Giropay < Stripe::RequestParams
|
154
|
-
|
155
|
-
end
|
156
|
-
class Grabpay < Stripe::RequestParams
|
157
|
-
|
158
|
-
end
|
133
|
+
class Giropay < Stripe::RequestParams; end
|
134
|
+
class Grabpay < Stripe::RequestParams; end
|
159
135
|
class Ideal < Stripe::RequestParams
|
160
136
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
161
137
|
sig { returns(T.nilable(String)) }
|
@@ -163,12 +139,8 @@ module Stripe
|
|
163
139
|
sig { params(bank: T.nilable(String)).void }
|
164
140
|
def initialize(bank: nil); end
|
165
141
|
end
|
166
|
-
class InteracPresent < Stripe::RequestParams
|
167
|
-
|
168
|
-
end
|
169
|
-
class KakaoPay < Stripe::RequestParams
|
170
|
-
|
171
|
-
end
|
142
|
+
class InteracPresent < Stripe::RequestParams; end
|
143
|
+
class KakaoPay < Stripe::RequestParams; end
|
172
144
|
class Klarna < Stripe::RequestParams
|
173
145
|
class Dob < Stripe::RequestParams
|
174
146
|
# The day of birth, between 1 and 31.
|
@@ -193,21 +165,11 @@ module Stripe
|
|
193
165
|
}
|
194
166
|
def initialize(dob: nil); end
|
195
167
|
end
|
196
|
-
class Konbini < Stripe::RequestParams
|
197
|
-
|
198
|
-
end
|
199
|
-
class
|
200
|
-
|
201
|
-
end
|
202
|
-
class Link < Stripe::RequestParams
|
203
|
-
|
204
|
-
end
|
205
|
-
class Mobilepay < Stripe::RequestParams
|
206
|
-
|
207
|
-
end
|
208
|
-
class Multibanco < Stripe::RequestParams
|
209
|
-
|
210
|
-
end
|
168
|
+
class Konbini < Stripe::RequestParams; end
|
169
|
+
class KrCard < Stripe::RequestParams; end
|
170
|
+
class Link < Stripe::RequestParams; end
|
171
|
+
class Mobilepay < Stripe::RequestParams; end
|
172
|
+
class Multibanco < Stripe::RequestParams; end
|
211
173
|
class NaverPay < Stripe::RequestParams
|
212
174
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
213
175
|
sig { returns(T.nilable(String)) }
|
@@ -246,9 +208,7 @@ module Stripe
|
|
246
208
|
suffix: nil
|
247
209
|
); end
|
248
210
|
end
|
249
|
-
class Oxxo < Stripe::RequestParams
|
250
|
-
|
251
|
-
end
|
211
|
+
class Oxxo < Stripe::RequestParams; end
|
252
212
|
class P24 < Stripe::RequestParams
|
253
213
|
# The customer's bank.
|
254
214
|
sig { returns(T.nilable(String)) }
|
@@ -256,24 +216,12 @@ module Stripe
|
|
256
216
|
sig { params(bank: T.nilable(String)).void }
|
257
217
|
def initialize(bank: nil); end
|
258
218
|
end
|
259
|
-
class PayByBank < Stripe::RequestParams
|
260
|
-
|
261
|
-
end
|
262
|
-
class
|
263
|
-
|
264
|
-
end
|
265
|
-
class Paynow < Stripe::RequestParams
|
266
|
-
|
267
|
-
end
|
268
|
-
class Paypal < Stripe::RequestParams
|
269
|
-
|
270
|
-
end
|
271
|
-
class Pix < Stripe::RequestParams
|
272
|
-
|
273
|
-
end
|
274
|
-
class Promptpay < Stripe::RequestParams
|
275
|
-
|
276
|
-
end
|
219
|
+
class PayByBank < Stripe::RequestParams; end
|
220
|
+
class Payco < Stripe::RequestParams; end
|
221
|
+
class Paynow < Stripe::RequestParams; end
|
222
|
+
class Paypal < Stripe::RequestParams; end
|
223
|
+
class Pix < Stripe::RequestParams; end
|
224
|
+
class Promptpay < Stripe::RequestParams; end
|
277
225
|
class RadarOptions < Stripe::RequestParams
|
278
226
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
279
227
|
sig { returns(T.nilable(String)) }
|
@@ -281,15 +229,9 @@ module Stripe
|
|
281
229
|
sig { params(session: T.nilable(String)).void }
|
282
230
|
def initialize(session: nil); end
|
283
231
|
end
|
284
|
-
class RevolutPay < Stripe::RequestParams
|
285
|
-
|
286
|
-
end
|
287
|
-
class SamsungPay < Stripe::RequestParams
|
288
|
-
|
289
|
-
end
|
290
|
-
class Satispay < Stripe::RequestParams
|
291
|
-
|
292
|
-
end
|
232
|
+
class RevolutPay < Stripe::RequestParams; end
|
233
|
+
class SamsungPay < Stripe::RequestParams; end
|
234
|
+
class Satispay < Stripe::RequestParams; end
|
293
235
|
class SepaDebit < Stripe::RequestParams
|
294
236
|
# IBAN of the bank account.
|
295
237
|
sig { returns(String) }
|
@@ -304,12 +246,8 @@ module Stripe
|
|
304
246
|
sig { params(country: String).void }
|
305
247
|
def initialize(country: nil); end
|
306
248
|
end
|
307
|
-
class Swish < Stripe::RequestParams
|
308
|
-
|
309
|
-
end
|
310
|
-
class Twint < Stripe::RequestParams
|
311
|
-
|
312
|
-
end
|
249
|
+
class Swish < Stripe::RequestParams; end
|
250
|
+
class Twint < Stripe::RequestParams; end
|
313
251
|
class UsBankAccount < Stripe::RequestParams
|
314
252
|
# Account holder type: individual or company.
|
315
253
|
sig { returns(T.nilable(String)) }
|
@@ -337,12 +275,8 @@ module Stripe
|
|
337
275
|
routing_number: nil
|
338
276
|
); end
|
339
277
|
end
|
340
|
-
class WechatPay < Stripe::RequestParams
|
341
|
-
|
342
|
-
end
|
343
|
-
class Zip < Stripe::RequestParams
|
344
|
-
|
345
|
-
end
|
278
|
+
class WechatPay < Stripe::RequestParams; end
|
279
|
+
class Zip < Stripe::RequestParams; end
|
346
280
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
347
281
|
sig {
|
348
282
|
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::AcssDebit))
|
@@ -51,11 +51,42 @@ module Stripe
|
|
51
51
|
type: nil
|
52
52
|
); end
|
53
53
|
end
|
54
|
+
class SucceedInputCollectionParams < Stripe::RequestParams
|
55
|
+
# Specifies which fields in the response should be expanded.
|
56
|
+
sig { returns(T.nilable(T::Array[String])) }
|
57
|
+
attr_accessor :expand
|
58
|
+
# This parameter defines the skip behavior for input collection.
|
59
|
+
sig { returns(T.nilable(String)) }
|
60
|
+
attr_accessor :skip_non_required_inputs
|
61
|
+
sig {
|
62
|
+
params(expand: T.nilable(T::Array[String]), skip_non_required_inputs: T.nilable(String)).void
|
63
|
+
}
|
64
|
+
def initialize(expand: nil, skip_non_required_inputs: nil); end
|
65
|
+
end
|
66
|
+
class TimeoutInputCollectionParams < Stripe::RequestParams
|
67
|
+
# Specifies which fields in the response should be expanded.
|
68
|
+
sig { returns(T.nilable(T::Array[String])) }
|
69
|
+
attr_accessor :expand
|
70
|
+
sig { params(expand: T.nilable(T::Array[String])).void }
|
71
|
+
def initialize(expand: nil); end
|
72
|
+
end
|
54
73
|
# Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
|
55
74
|
sig {
|
56
75
|
params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::PresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
|
57
76
|
}
|
58
77
|
def present_payment_method(reader, params = {}, opts = {}); end
|
78
|
+
|
79
|
+
# Use this endpoint to trigger a successful input collection on a simulated reader.
|
80
|
+
sig {
|
81
|
+
params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::SucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
|
82
|
+
}
|
83
|
+
def succeed_input_collection(reader, params = {}, opts = {}); end
|
84
|
+
|
85
|
+
# Use this endpoint to complete an input collection with a timeout error on a simulated reader.
|
86
|
+
sig {
|
87
|
+
params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::TimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
|
88
|
+
}
|
89
|
+
def timeout_input_collection(reader, params = {}, opts = {}); end
|
59
90
|
end
|
60
91
|
end
|
61
92
|
end
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
module TestHelpers
|
7
7
|
class TestClockService < StripeService
|
8
|
-
class DeleteParams < Stripe::RequestParams
|
9
|
-
|
10
|
-
end
|
8
|
+
class DeleteParams < Stripe::RequestParams; end
|
11
9
|
class RetrieveParams < Stripe::RequestParams
|
12
10
|
# Specifies which fields in the response should be expanded.
|
13
11
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -1242,7 +1242,7 @@ module Stripe
|
|
1242
1242
|
); end
|
1243
1243
|
end
|
1244
1244
|
# Creates a single-use token that represents a bank account's details.
|
1245
|
-
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/
|
1245
|
+
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
1246
1246
|
sig {
|
1247
1247
|
params(params: T.any(::Stripe::TokenService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token)
|
1248
1248
|
}
|
@@ -123,7 +123,7 @@ module Stripe
|
|
123
123
|
}
|
124
124
|
def initialize(description: nil, expand: nil, metadata: nil); end
|
125
125
|
end
|
126
|
-
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/
|
126
|
+
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
127
127
|
sig {
|
128
128
|
params(params: T.any(::Stripe::TransferService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer)
|
129
129
|
}
|
@@ -6,9 +6,7 @@ module Stripe
|
|
6
6
|
module V2
|
7
7
|
module Billing
|
8
8
|
class MeterEventSessionService < StripeService
|
9
|
-
class CreateParams < Stripe::RequestParams
|
10
|
-
|
11
|
-
end
|
9
|
+
class CreateParams < Stripe::RequestParams; end
|
12
10
|
# Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires.
|
13
11
|
sig {
|
14
12
|
params(params: T.any(::Stripe::V2::Billing::MeterEventSessionService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEventSession)
|
@@ -78,15 +78,9 @@ module Stripe
|
|
78
78
|
webhook_endpoint: nil
|
79
79
|
); end
|
80
80
|
end
|
81
|
-
class DeleteParams < Stripe::RequestParams
|
82
|
-
|
83
|
-
end
|
84
|
-
class DisableParams < Stripe::RequestParams
|
85
|
-
|
86
|
-
end
|
87
|
-
class EnableParams < Stripe::RequestParams
|
88
|
-
|
89
|
-
end
|
81
|
+
class DeleteParams < Stripe::RequestParams; end
|
82
|
+
class DisableParams < Stripe::RequestParams; end
|
83
|
+
class EnableParams < Stripe::RequestParams; end
|
90
84
|
class ListParams < Stripe::RequestParams
|
91
85
|
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
|
92
86
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -97,9 +91,7 @@ module Stripe
|
|
97
91
|
sig { params(include: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void }
|
98
92
|
def initialize(include: nil, limit: nil); end
|
99
93
|
end
|
100
|
-
class PingParams < Stripe::RequestParams
|
101
|
-
|
102
|
-
end
|
94
|
+
class PingParams < Stripe::RequestParams; end
|
103
95
|
class RetrieveParams < Stripe::RequestParams
|
104
96
|
# Additional fields to include in the response.
|
105
97
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -18,9 +18,7 @@ module Stripe
|
|
18
18
|
sig { params(limit: T.nilable(Integer), object_id_: String).void }
|
19
19
|
def initialize(limit: nil, object_id_: nil); end
|
20
20
|
end
|
21
|
-
class RetrieveParams < Stripe::RequestParams
|
22
|
-
|
23
|
-
end
|
21
|
+
class RetrieveParams < Stripe::RequestParams; end
|
24
22
|
# List events, going back up to 30 days.
|
25
23
|
sig {
|
26
24
|
params(params: T.any(::Stripe::V2::Core::EventService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject)
|
@@ -4,9 +4,7 @@
|
|
4
4
|
# typed: true
|
5
5
|
module Stripe
|
6
6
|
class WebhookEndpointService < StripeService
|
7
|
-
class DeleteParams < Stripe::RequestParams
|
8
|
-
|
9
|
-
end
|
7
|
+
class DeleteParams < Stripe::RequestParams; end
|
10
8
|
class RetrieveParams < Stripe::RequestParams
|
11
9
|
# Specifies which fields in the response should be expanded.
|
12
10
|
sig { returns(T.nilable(T::Array[String])) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -20,6 +20,7 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- CHANGELOG.md
|
22
22
|
- CODE_OF_CONDUCT.md
|
23
|
+
- CONTRIBUTING.md
|
23
24
|
- CONTRIBUTORS
|
24
25
|
- Gemfile
|
25
26
|
- History.txt
|