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
@@ -50,20 +50,11 @@ module Stripe
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
class Affirm < Stripe::RequestParams
|
54
|
-
end
|
55
|
-
|
56
|
-
class
|
57
|
-
end
|
58
|
-
|
59
|
-
class Alipay < Stripe::RequestParams
|
60
|
-
end
|
61
|
-
|
62
|
-
class Alma < Stripe::RequestParams
|
63
|
-
end
|
64
|
-
|
65
|
-
class AmazonPay < Stripe::RequestParams
|
66
|
-
end
|
53
|
+
class Affirm < Stripe::RequestParams; end
|
54
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
55
|
+
class Alipay < Stripe::RequestParams; end
|
56
|
+
class Alma < Stripe::RequestParams; end
|
57
|
+
class AmazonPay < Stripe::RequestParams; end
|
67
58
|
|
68
59
|
class AuBecsDebit < Stripe::RequestParams
|
69
60
|
# The account number for the bank account.
|
@@ -89,11 +80,8 @@ module Stripe
|
|
89
80
|
end
|
90
81
|
end
|
91
82
|
|
92
|
-
class Bancontact < Stripe::RequestParams
|
93
|
-
end
|
94
|
-
|
95
|
-
class Billie < Stripe::RequestParams
|
96
|
-
end
|
83
|
+
class Bancontact < Stripe::RequestParams; end
|
84
|
+
class Billie < Stripe::RequestParams; end
|
97
85
|
|
98
86
|
class BillingDetails < Stripe::RequestParams
|
99
87
|
class Address < Stripe::RequestParams
|
@@ -146,8 +134,7 @@ module Stripe
|
|
146
134
|
end
|
147
135
|
end
|
148
136
|
|
149
|
-
class Blik < Stripe::RequestParams
|
150
|
-
end
|
137
|
+
class Blik < Stripe::RequestParams; end
|
151
138
|
|
152
139
|
class Boleto < Stripe::RequestParams
|
153
140
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -197,11 +184,8 @@ module Stripe
|
|
197
184
|
end
|
198
185
|
end
|
199
186
|
|
200
|
-
class Cashapp < Stripe::RequestParams
|
201
|
-
end
|
202
|
-
|
203
|
-
class CustomerBalance < Stripe::RequestParams
|
204
|
-
end
|
187
|
+
class Cashapp < Stripe::RequestParams; end
|
188
|
+
class CustomerBalance < Stripe::RequestParams; end
|
205
189
|
|
206
190
|
class Eps < Stripe::RequestParams
|
207
191
|
# The customer's bank.
|
@@ -224,11 +208,8 @@ module Stripe
|
|
224
208
|
end
|
225
209
|
end
|
226
210
|
|
227
|
-
class Giropay < Stripe::RequestParams
|
228
|
-
end
|
229
|
-
|
230
|
-
class Grabpay < Stripe::RequestParams
|
231
|
-
end
|
211
|
+
class Giropay < Stripe::RequestParams; end
|
212
|
+
class Grabpay < Stripe::RequestParams; end
|
232
213
|
|
233
214
|
class Ideal < Stripe::RequestParams
|
234
215
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -239,11 +220,8 @@ module Stripe
|
|
239
220
|
end
|
240
221
|
end
|
241
222
|
|
242
|
-
class InteracPresent < Stripe::RequestParams
|
243
|
-
end
|
244
|
-
|
245
|
-
class KakaoPay < Stripe::RequestParams
|
246
|
-
end
|
223
|
+
class InteracPresent < Stripe::RequestParams; end
|
224
|
+
class KakaoPay < Stripe::RequestParams; end
|
247
225
|
|
248
226
|
class Klarna < Stripe::RequestParams
|
249
227
|
class Dob < Stripe::RequestParams
|
@@ -268,20 +246,11 @@ module Stripe
|
|
268
246
|
end
|
269
247
|
end
|
270
248
|
|
271
|
-
class Konbini < Stripe::RequestParams
|
272
|
-
end
|
273
|
-
|
274
|
-
class
|
275
|
-
end
|
276
|
-
|
277
|
-
class Link < Stripe::RequestParams
|
278
|
-
end
|
279
|
-
|
280
|
-
class Mobilepay < Stripe::RequestParams
|
281
|
-
end
|
282
|
-
|
283
|
-
class Multibanco < Stripe::RequestParams
|
284
|
-
end
|
249
|
+
class Konbini < Stripe::RequestParams; end
|
250
|
+
class KrCard < Stripe::RequestParams; end
|
251
|
+
class Link < Stripe::RequestParams; end
|
252
|
+
class Mobilepay < Stripe::RequestParams; end
|
253
|
+
class Multibanco < Stripe::RequestParams; end
|
285
254
|
|
286
255
|
class NaverPay < Stripe::RequestParams
|
287
256
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -323,8 +292,7 @@ module Stripe
|
|
323
292
|
end
|
324
293
|
end
|
325
294
|
|
326
|
-
class Oxxo < Stripe::RequestParams
|
327
|
-
end
|
295
|
+
class Oxxo < Stripe::RequestParams; end
|
328
296
|
|
329
297
|
class P24 < Stripe::RequestParams
|
330
298
|
# The customer's bank.
|
@@ -335,23 +303,12 @@ module Stripe
|
|
335
303
|
end
|
336
304
|
end
|
337
305
|
|
338
|
-
class PayByBank < Stripe::RequestParams
|
339
|
-
end
|
340
|
-
|
341
|
-
class
|
342
|
-
end
|
343
|
-
|
344
|
-
class Paynow < Stripe::RequestParams
|
345
|
-
end
|
346
|
-
|
347
|
-
class Paypal < Stripe::RequestParams
|
348
|
-
end
|
349
|
-
|
350
|
-
class Pix < Stripe::RequestParams
|
351
|
-
end
|
352
|
-
|
353
|
-
class Promptpay < Stripe::RequestParams
|
354
|
-
end
|
306
|
+
class PayByBank < Stripe::RequestParams; end
|
307
|
+
class Payco < Stripe::RequestParams; end
|
308
|
+
class Paynow < Stripe::RequestParams; end
|
309
|
+
class Paypal < Stripe::RequestParams; end
|
310
|
+
class Pix < Stripe::RequestParams; end
|
311
|
+
class Promptpay < Stripe::RequestParams; end
|
355
312
|
|
356
313
|
class RadarOptions < Stripe::RequestParams
|
357
314
|
# 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.
|
@@ -362,14 +319,9 @@ module Stripe
|
|
362
319
|
end
|
363
320
|
end
|
364
321
|
|
365
|
-
class RevolutPay < Stripe::RequestParams
|
366
|
-
end
|
367
|
-
|
368
|
-
class SamsungPay < Stripe::RequestParams
|
369
|
-
end
|
370
|
-
|
371
|
-
class Satispay < Stripe::RequestParams
|
372
|
-
end
|
322
|
+
class RevolutPay < Stripe::RequestParams; end
|
323
|
+
class SamsungPay < Stripe::RequestParams; end
|
324
|
+
class Satispay < Stripe::RequestParams; end
|
373
325
|
|
374
326
|
class SepaDebit < Stripe::RequestParams
|
375
327
|
# IBAN of the bank account.
|
@@ -389,11 +341,8 @@ module Stripe
|
|
389
341
|
end
|
390
342
|
end
|
391
343
|
|
392
|
-
class Swish < Stripe::RequestParams
|
393
|
-
end
|
394
|
-
|
395
|
-
class Twint < Stripe::RequestParams
|
396
|
-
end
|
344
|
+
class Swish < Stripe::RequestParams; end
|
345
|
+
class Twint < Stripe::RequestParams; end
|
397
346
|
|
398
347
|
class UsBankAccount < Stripe::RequestParams
|
399
348
|
# Account holder type: individual or company.
|
@@ -422,11 +371,8 @@ module Stripe
|
|
422
371
|
end
|
423
372
|
end
|
424
373
|
|
425
|
-
class WechatPay < Stripe::RequestParams
|
426
|
-
end
|
427
|
-
|
428
|
-
class Zip < Stripe::RequestParams
|
429
|
-
end
|
374
|
+
class WechatPay < Stripe::RequestParams; end
|
375
|
+
class Zip < Stripe::RequestParams; end
|
430
376
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
431
377
|
attr_accessor :acss_debit
|
432
378
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -741,11 +687,8 @@ module Stripe
|
|
741
687
|
end
|
742
688
|
end
|
743
689
|
|
744
|
-
class Link < Stripe::RequestParams
|
745
|
-
end
|
746
|
-
|
747
|
-
class PayByBank < Stripe::RequestParams
|
748
|
-
end
|
690
|
+
class Link < Stripe::RequestParams; end
|
691
|
+
class PayByBank < Stripe::RequestParams; end
|
749
692
|
|
750
693
|
class UsBankAccount < Stripe::RequestParams
|
751
694
|
# Bank account holder type.
|
@@ -819,16 +762,16 @@ module Stripe
|
|
819
762
|
|
820
763
|
# Attaches a PaymentMethod object to a Customer.
|
821
764
|
#
|
822
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
823
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
765
|
+
# 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)
|
766
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
824
767
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
825
768
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
826
769
|
# future use, which makes later declines and payment friction more likely.
|
827
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
770
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
828
771
|
# future payments.
|
829
772
|
#
|
830
773
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
831
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
774
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
832
775
|
# on the Customer to the PaymentMethod's ID.
|
833
776
|
def attach(payment_method, params = {}, opts = {})
|
834
777
|
request(
|
@@ -840,9 +783,9 @@ module Stripe
|
|
840
783
|
)
|
841
784
|
end
|
842
785
|
|
843
|
-
# 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.
|
786
|
+
# 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.
|
844
787
|
#
|
845
|
-
# 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.
|
788
|
+
# 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.
|
846
789
|
def create(params = {}, opts = {})
|
847
790
|
request(
|
848
791
|
method: :post,
|
@@ -864,7 +807,7 @@ module Stripe
|
|
864
807
|
)
|
865
808
|
end
|
866
809
|
|
867
|
-
# 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.
|
810
|
+
# 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.
|
868
811
|
def list(params = {}, opts = {})
|
869
812
|
request(
|
870
813
|
method: :get,
|
@@ -875,7 +818,7 @@ module Stripe
|
|
875
818
|
)
|
876
819
|
end
|
877
820
|
|
878
|
-
# 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)
|
821
|
+
# 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)
|
879
822
|
def retrieve(payment_method, params = {}, opts = {})
|
880
823
|
request(
|
881
824
|
method: :get,
|
@@ -173,11 +173,11 @@ module Stripe
|
|
173
173
|
)
|
174
174
|
end
|
175
175
|
|
176
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
176
|
+
# 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.
|
177
177
|
#
|
178
178
|
# 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.
|
179
179
|
#
|
180
|
-
# 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/
|
180
|
+
# 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.
|
181
181
|
def create(params = {}, opts = {})
|
182
182
|
request(method: :post, path: "/v1/payouts", params: params, opts: opts, base_address: :api)
|
183
183
|
end
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class PlanService < StripeService
|
6
|
-
class DeleteParams < Stripe::RequestParams
|
7
|
-
end
|
6
|
+
class DeleteParams < Stripe::RequestParams; end
|
8
7
|
|
9
8
|
class RetrieveParams < Stripe::RequestParams
|
10
9
|
# Specifies which fields in the response should be expanded.
|
@@ -252,7 +251,7 @@ module Stripe
|
|
252
251
|
end
|
253
252
|
end
|
254
253
|
|
255
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
254
|
+
# 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.
|
256
255
|
def create(params = {}, opts = {})
|
257
256
|
request(method: :post, path: "/v1/plans", params: params, opts: opts, base_address: :api)
|
258
257
|
end
|
@@ -501,7 +501,7 @@ module Stripe
|
|
501
501
|
request(method: :post, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
502
502
|
end
|
503
503
|
|
504
|
-
# 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.
|
504
|
+
# 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.
|
505
505
|
def list(params = {}, opts = {})
|
506
506
|
request(method: :get, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
507
507
|
end
|
@@ -517,7 +517,7 @@ module Stripe
|
|
517
517
|
)
|
518
518
|
end
|
519
519
|
|
520
|
-
# Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
520
|
+
# Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
521
521
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
522
522
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
523
523
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class ProductFeatureService < StripeService
|
6
|
-
class DeleteParams < Stripe::RequestParams
|
7
|
-
end
|
6
|
+
class DeleteParams < Stripe::RequestParams; end
|
8
7
|
|
9
8
|
class RetrieveParams < Stripe::RequestParams
|
10
9
|
# Specifies which fields in the response should be expanded.
|
@@ -10,8 +10,7 @@ module Stripe
|
|
10
10
|
@features = Stripe::ProductFeatureService.new(@requestor)
|
11
11
|
end
|
12
12
|
|
13
|
-
class DeleteParams < Stripe::RequestParams
|
14
|
-
end
|
13
|
+
class DeleteParams < Stripe::RequestParams; end
|
15
14
|
|
16
15
|
class RetrieveParams < Stripe::RequestParams
|
17
16
|
# Specifies which fields in the response should be expanded.
|
@@ -467,7 +466,7 @@ module Stripe
|
|
467
466
|
)
|
468
467
|
end
|
469
468
|
|
470
|
-
# Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
469
|
+
# Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
471
470
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
472
471
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
473
472
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -203,7 +203,7 @@ module Stripe
|
|
203
203
|
)
|
204
204
|
end
|
205
205
|
|
206
|
-
# 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.
|
206
|
+
# 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.
|
207
207
|
def retrieve(promotion_code, params = {}, opts = {})
|
208
208
|
request(
|
209
209
|
method: :get,
|
@@ -78,7 +78,7 @@ module Stripe
|
|
78
78
|
|
79
79
|
# Retrieves the details of an early fraud warning that has previously been created.
|
80
80
|
#
|
81
|
-
# Please refer to the [early fraud warning](https://stripe.com/
|
81
|
+
# Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
|
82
82
|
def retrieve(early_fraud_warning, params = {}, opts = {})
|
83
83
|
request(
|
84
84
|
method: :get,
|
@@ -4,8 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module Radar
|
6
6
|
class ValueListItemService < StripeService
|
7
|
-
class DeleteParams < Stripe::RequestParams
|
8
|
-
end
|
7
|
+
class DeleteParams < Stripe::RequestParams; end
|
9
8
|
|
10
9
|
class RetrieveParams < Stripe::RequestParams
|
11
10
|
# Specifies which fields in the response should be expanded.
|
@@ -4,8 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module Radar
|
6
6
|
class ValueListService < StripeService
|
7
|
-
class DeleteParams < Stripe::RequestParams
|
8
|
-
end
|
7
|
+
class DeleteParams < Stripe::RequestParams; end
|
9
8
|
|
10
9
|
class RetrieveParams < Stripe::RequestParams
|
11
10
|
# Specifies which fields in the response should be expanded.
|