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
@@ -51,21 +51,11 @@ module Stripe
|
|
51
51
|
}
|
52
52
|
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
53
53
|
end
|
54
|
-
class Affirm < Stripe::RequestParams
|
55
|
-
|
56
|
-
end
|
57
|
-
class
|
58
|
-
|
59
|
-
end
|
60
|
-
class Alipay < Stripe::RequestParams
|
61
|
-
|
62
|
-
end
|
63
|
-
class Alma < Stripe::RequestParams
|
64
|
-
|
65
|
-
end
|
66
|
-
class AmazonPay < Stripe::RequestParams
|
67
|
-
|
68
|
-
end
|
54
|
+
class Affirm < Stripe::RequestParams; end
|
55
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
56
|
+
class Alipay < Stripe::RequestParams; end
|
57
|
+
class Alma < Stripe::RequestParams; end
|
58
|
+
class AmazonPay < Stripe::RequestParams; end
|
69
59
|
class AuBecsDebit < Stripe::RequestParams
|
70
60
|
# The account number for the bank account.
|
71
61
|
sig { returns(String) }
|
@@ -86,12 +76,8 @@ module Stripe
|
|
86
76
|
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
87
77
|
def initialize(account_number: nil, sort_code: nil); end
|
88
78
|
end
|
89
|
-
class Bancontact < Stripe::RequestParams
|
90
|
-
|
91
|
-
end
|
92
|
-
class Billie < Stripe::RequestParams
|
93
|
-
|
94
|
-
end
|
79
|
+
class Bancontact < Stripe::RequestParams; end
|
80
|
+
class Billie < Stripe::RequestParams; end
|
95
81
|
class BillingDetails < Stripe::RequestParams
|
96
82
|
class Address < Stripe::RequestParams
|
97
83
|
# City, district, suburb, town, or village.
|
@@ -146,9 +132,7 @@ module Stripe
|
|
146
132
|
}
|
147
133
|
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
148
134
|
end
|
149
|
-
class Blik < Stripe::RequestParams
|
150
|
-
|
151
|
-
end
|
135
|
+
class Blik < Stripe::RequestParams; end
|
152
136
|
class Boleto < Stripe::RequestParams
|
153
137
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
154
138
|
sig { returns(String) }
|
@@ -194,12 +178,8 @@ module Stripe
|
|
194
178
|
token: nil
|
195
179
|
); end
|
196
180
|
end
|
197
|
-
class Cashapp < Stripe::RequestParams
|
198
|
-
|
199
|
-
end
|
200
|
-
class CustomerBalance < Stripe::RequestParams
|
201
|
-
|
202
|
-
end
|
181
|
+
class Cashapp < Stripe::RequestParams; end
|
182
|
+
class CustomerBalance < Stripe::RequestParams; end
|
203
183
|
class Eps < Stripe::RequestParams
|
204
184
|
# The customer's bank.
|
205
185
|
sig { returns(T.nilable(String)) }
|
@@ -217,12 +197,8 @@ module Stripe
|
|
217
197
|
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
218
198
|
def initialize(account_holder_type: nil, bank: nil); end
|
219
199
|
end
|
220
|
-
class Giropay < Stripe::RequestParams
|
221
|
-
|
222
|
-
end
|
223
|
-
class Grabpay < Stripe::RequestParams
|
224
|
-
|
225
|
-
end
|
200
|
+
class Giropay < Stripe::RequestParams; end
|
201
|
+
class Grabpay < Stripe::RequestParams; end
|
226
202
|
class Ideal < Stripe::RequestParams
|
227
203
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
228
204
|
sig { returns(T.nilable(String)) }
|
@@ -230,12 +206,8 @@ module Stripe
|
|
230
206
|
sig { params(bank: T.nilable(String)).void }
|
231
207
|
def initialize(bank: nil); end
|
232
208
|
end
|
233
|
-
class InteracPresent < Stripe::RequestParams
|
234
|
-
|
235
|
-
end
|
236
|
-
class KakaoPay < Stripe::RequestParams
|
237
|
-
|
238
|
-
end
|
209
|
+
class InteracPresent < Stripe::RequestParams; end
|
210
|
+
class KakaoPay < Stripe::RequestParams; end
|
239
211
|
class Klarna < Stripe::RequestParams
|
240
212
|
class Dob < Stripe::RequestParams
|
241
213
|
# The day of birth, between 1 and 31.
|
@@ -258,21 +230,11 @@ module Stripe
|
|
258
230
|
}
|
259
231
|
def initialize(dob: nil); end
|
260
232
|
end
|
261
|
-
class Konbini < Stripe::RequestParams
|
262
|
-
|
263
|
-
end
|
264
|
-
class
|
265
|
-
|
266
|
-
end
|
267
|
-
class Link < Stripe::RequestParams
|
268
|
-
|
269
|
-
end
|
270
|
-
class Mobilepay < Stripe::RequestParams
|
271
|
-
|
272
|
-
end
|
273
|
-
class Multibanco < Stripe::RequestParams
|
274
|
-
|
275
|
-
end
|
233
|
+
class Konbini < Stripe::RequestParams; end
|
234
|
+
class KrCard < Stripe::RequestParams; end
|
235
|
+
class Link < Stripe::RequestParams; end
|
236
|
+
class Mobilepay < Stripe::RequestParams; end
|
237
|
+
class Multibanco < Stripe::RequestParams; end
|
276
238
|
class NaverPay < Stripe::RequestParams
|
277
239
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
278
240
|
sig { returns(T.nilable(String)) }
|
@@ -311,9 +273,7 @@ module Stripe
|
|
311
273
|
suffix: nil
|
312
274
|
); end
|
313
275
|
end
|
314
|
-
class Oxxo < Stripe::RequestParams
|
315
|
-
|
316
|
-
end
|
276
|
+
class Oxxo < Stripe::RequestParams; end
|
317
277
|
class P24 < Stripe::RequestParams
|
318
278
|
# The customer's bank.
|
319
279
|
sig { returns(T.nilable(String)) }
|
@@ -321,24 +281,12 @@ module Stripe
|
|
321
281
|
sig { params(bank: T.nilable(String)).void }
|
322
282
|
def initialize(bank: nil); end
|
323
283
|
end
|
324
|
-
class PayByBank < Stripe::RequestParams
|
325
|
-
|
326
|
-
end
|
327
|
-
class
|
328
|
-
|
329
|
-
end
|
330
|
-
class Paynow < Stripe::RequestParams
|
331
|
-
|
332
|
-
end
|
333
|
-
class Paypal < Stripe::RequestParams
|
334
|
-
|
335
|
-
end
|
336
|
-
class Pix < Stripe::RequestParams
|
337
|
-
|
338
|
-
end
|
339
|
-
class Promptpay < Stripe::RequestParams
|
340
|
-
|
341
|
-
end
|
284
|
+
class PayByBank < Stripe::RequestParams; end
|
285
|
+
class Payco < Stripe::RequestParams; end
|
286
|
+
class Paynow < Stripe::RequestParams; end
|
287
|
+
class Paypal < Stripe::RequestParams; end
|
288
|
+
class Pix < Stripe::RequestParams; end
|
289
|
+
class Promptpay < Stripe::RequestParams; end
|
342
290
|
class RadarOptions < Stripe::RequestParams
|
343
291
|
# 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.
|
344
292
|
sig { returns(T.nilable(String)) }
|
@@ -346,15 +294,9 @@ module Stripe
|
|
346
294
|
sig { params(session: T.nilable(String)).void }
|
347
295
|
def initialize(session: nil); end
|
348
296
|
end
|
349
|
-
class RevolutPay < Stripe::RequestParams
|
350
|
-
|
351
|
-
end
|
352
|
-
class SamsungPay < Stripe::RequestParams
|
353
|
-
|
354
|
-
end
|
355
|
-
class Satispay < Stripe::RequestParams
|
356
|
-
|
357
|
-
end
|
297
|
+
class RevolutPay < Stripe::RequestParams; end
|
298
|
+
class SamsungPay < Stripe::RequestParams; end
|
299
|
+
class Satispay < Stripe::RequestParams; end
|
358
300
|
class SepaDebit < Stripe::RequestParams
|
359
301
|
# IBAN of the bank account.
|
360
302
|
sig { returns(String) }
|
@@ -369,12 +311,8 @@ module Stripe
|
|
369
311
|
sig { params(country: String).void }
|
370
312
|
def initialize(country: nil); end
|
371
313
|
end
|
372
|
-
class Swish < Stripe::RequestParams
|
373
|
-
|
374
|
-
end
|
375
|
-
class Twint < Stripe::RequestParams
|
376
|
-
|
377
|
-
end
|
314
|
+
class Swish < Stripe::RequestParams; end
|
315
|
+
class Twint < Stripe::RequestParams; end
|
378
316
|
class UsBankAccount < Stripe::RequestParams
|
379
317
|
# Account holder type: individual or company.
|
380
318
|
sig { returns(T.nilable(String)) }
|
@@ -402,12 +340,8 @@ module Stripe
|
|
402
340
|
routing_number: nil
|
403
341
|
); end
|
404
342
|
end
|
405
|
-
class WechatPay < Stripe::RequestParams
|
406
|
-
|
407
|
-
end
|
408
|
-
class Zip < Stripe::RequestParams
|
409
|
-
|
410
|
-
end
|
343
|
+
class WechatPay < Stripe::RequestParams; end
|
344
|
+
class Zip < Stripe::RequestParams; end
|
411
345
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
412
346
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::AcssDebit)) }
|
413
347
|
attr_accessor :acss_debit
|
@@ -722,12 +656,8 @@ module Stripe
|
|
722
656
|
}
|
723
657
|
def initialize(exp_month: nil, exp_year: nil, networks: nil); end
|
724
658
|
end
|
725
|
-
class Link < Stripe::RequestParams
|
726
|
-
|
727
|
-
end
|
728
|
-
class PayByBank < Stripe::RequestParams
|
729
|
-
|
730
|
-
end
|
659
|
+
class Link < Stripe::RequestParams; end
|
660
|
+
class PayByBank < Stripe::RequestParams; end
|
731
661
|
class UsBankAccount < Stripe::RequestParams
|
732
662
|
# Bank account holder type.
|
733
663
|
sig { returns(T.nilable(String)) }
|
@@ -795,25 +725,25 @@ module Stripe
|
|
795
725
|
end
|
796
726
|
# Attaches a PaymentMethod object to a Customer.
|
797
727
|
#
|
798
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
799
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
728
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
729
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
800
730
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
801
731
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
802
732
|
# future use, which makes later declines and payment friction more likely.
|
803
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
733
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
804
734
|
# future payments.
|
805
735
|
#
|
806
736
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
807
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
737
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
808
738
|
# on the Customer to the PaymentMethod's ID.
|
809
739
|
sig {
|
810
740
|
params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
811
741
|
}
|
812
742
|
def attach(payment_method, params = {}, opts = {}); end
|
813
743
|
|
814
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
744
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
815
745
|
#
|
816
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
746
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
817
747
|
sig {
|
818
748
|
params(params: T.any(::Stripe::PaymentMethodService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
819
749
|
}
|
@@ -825,13 +755,13 @@ module Stripe
|
|
825
755
|
}
|
826
756
|
def detach(payment_method, params = {}, opts = {}); end
|
827
757
|
|
828
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
758
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
829
759
|
sig {
|
830
760
|
params(params: T.any(::Stripe::PaymentMethodService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
831
761
|
}
|
832
762
|
def list(params = {}, opts = {}); end
|
833
763
|
|
834
|
-
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
|
764
|
+
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
|
835
765
|
sig {
|
836
766
|
params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
837
767
|
}
|
@@ -166,11 +166,11 @@ module Stripe
|
|
166
166
|
}
|
167
167
|
def cancel(payout, params = {}, opts = {}); end
|
168
168
|
|
169
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
169
|
+
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
|
170
170
|
#
|
171
171
|
# If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
|
172
172
|
#
|
173
|
-
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/
|
173
|
+
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
|
174
174
|
sig {
|
175
175
|
params(params: T.any(::Stripe::PayoutService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout)
|
176
176
|
}
|
@@ -4,9 +4,7 @@
|
|
4
4
|
# typed: true
|
5
5
|
module Stripe
|
6
6
|
class PlanService < 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])) }
|
@@ -251,7 +249,7 @@ module Stripe
|
|
251
249
|
usage_type: nil
|
252
250
|
); end
|
253
251
|
end
|
254
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
252
|
+
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
255
253
|
sig {
|
256
254
|
params(params: T.any(::Stripe::PlanService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan)
|
257
255
|
}
|
@@ -516,7 +516,7 @@ module Stripe
|
|
516
516
|
}
|
517
517
|
def create(params = {}, opts = {}); end
|
518
518
|
|
519
|
-
# Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
519
|
+
# Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
520
520
|
sig {
|
521
521
|
params(params: T.any(::Stripe::PriceService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
522
522
|
}
|
@@ -528,7 +528,7 @@ module Stripe
|
|
528
528
|
}
|
529
529
|
def retrieve(price, params = {}, opts = {}); end
|
530
530
|
|
531
|
-
# Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
531
|
+
# Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
532
532
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
533
533
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
534
534
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -4,9 +4,7 @@
|
|
4
4
|
# typed: true
|
5
5
|
module Stripe
|
6
6
|
class ProductFeatureService < 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])) }
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
class ProductService < StripeService
|
7
7
|
attr_reader :features
|
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])) }
|
@@ -461,7 +459,7 @@ module Stripe
|
|
461
459
|
}
|
462
460
|
def retrieve(id, params = {}, opts = {}); end
|
463
461
|
|
464
|
-
# Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
462
|
+
# Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
465
463
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
466
464
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
467
465
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -199,7 +199,7 @@ module Stripe
|
|
199
199
|
}
|
200
200
|
def list(params = {}, opts = {}); end
|
201
201
|
|
202
|
-
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
|
202
|
+
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code.
|
203
203
|
sig {
|
204
204
|
params(promotion_code: String, params: T.any(::Stripe::PromotionCodeService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode)
|
205
205
|
}
|
@@ -75,7 +75,7 @@ module Stripe
|
|
75
75
|
|
76
76
|
# Retrieves the details of an early fraud warning that has previously been created.
|
77
77
|
#
|
78
|
-
# Please refer to the [early fraud warning](https://stripe.com/
|
78
|
+
# Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
|
79
79
|
sig {
|
80
80
|
params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::EarlyFraudWarning)
|
81
81
|
}
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
module Radar
|
7
7
|
class ValueListItemService < 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])) }
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
module Radar
|
7
7
|
class ValueListService < 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])) }
|