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.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -6
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/resources/account.rb +47 -20
  9. data/lib/stripe/resources/account_session.rb +111 -7
  10. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  11. data/lib/stripe/resources/balance.rb +42 -0
  12. data/lib/stripe/resources/balance_transaction.rb +2 -0
  13. data/lib/stripe/resources/bank_account.rb +2 -2
  14. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  15. data/lib/stripe/resources/capability.rb +1 -1
  16. data/lib/stripe/resources/charge.rb +13 -5
  17. data/lib/stripe/resources/checkout/session.rb +20 -4
  18. data/lib/stripe/resources/confirmation_token.rb +33 -87
  19. data/lib/stripe/resources/country_spec.rb +1 -1
  20. data/lib/stripe/resources/coupon.rb +1 -2
  21. data/lib/stripe/resources/credit_note.rb +12 -9
  22. data/lib/stripe/resources/customer.rb +2 -4
  23. data/lib/stripe/resources/customer_session.rb +3 -3
  24. data/lib/stripe/resources/dispute.rb +2 -2
  25. data/lib/stripe/resources/event.rb +1 -1
  26. data/lib/stripe/resources/file.rb +1 -1
  27. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  28. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  29. data/lib/stripe/resources/invoice.rb +114 -27
  30. data/lib/stripe/resources/invoice_item.rb +2 -3
  31. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  32. data/lib/stripe/resources/invoice_payment.rb +9 -2
  33. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  34. data/lib/stripe/resources/issuing/card.rb +1 -1
  35. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  36. data/lib/stripe/resources/payment_intent.rb +196 -302
  37. data/lib/stripe/resources/payment_method.rb +46 -103
  38. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  39. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  40. data/lib/stripe/resources/payout.rb +4 -4
  41. data/lib/stripe/resources/person.rb +2 -2
  42. data/lib/stripe/resources/plan.rb +2 -3
  43. data/lib/stripe/resources/price.rb +1 -1
  44. data/lib/stripe/resources/product.rb +1 -2
  45. data/lib/stripe/resources/radar/value_list.rb +1 -2
  46. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  47. data/lib/stripe/resources/refund.rb +6 -1
  48. data/lib/stripe/resources/reversal.rb +1 -1
  49. data/lib/stripe/resources/review.rb +1 -1
  50. data/lib/stripe/resources/setup_intent.rb +111 -281
  51. data/lib/stripe/resources/source.rb +1 -1
  52. data/lib/stripe/resources/subscription.rb +89 -29
  53. data/lib/stripe/resources/subscription_item.rb +33 -0
  54. data/lib/stripe/resources/subscription_schedule.rb +119 -4
  55. data/lib/stripe/resources/tax/calculation.rb +4 -0
  56. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  57. data/lib/stripe/resources/tax/registration.rb +1 -1
  58. data/lib/stripe/resources/tax_id.rb +1 -2
  59. data/lib/stripe/resources/tax_rate.rb +2 -2
  60. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  61. data/lib/stripe/resources/terminal/location.rb +2 -3
  62. data/lib/stripe/resources/terminal/reader.rb +275 -3
  63. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  64. data/lib/stripe/resources/token.rb +2 -2
  65. data/lib/stripe/resources/transfer.rb +1 -1
  66. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  67. data/lib/stripe/services/account_external_account_service.rb +2 -3
  68. data/lib/stripe/services/account_login_link_service.rb +1 -1
  69. data/lib/stripe/services/account_person_service.rb +1 -2
  70. data/lib/stripe/services/account_service.rb +38 -13
  71. data/lib/stripe/services/account_session_service.rb +75 -7
  72. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  73. data/lib/stripe/services/balance_service.rb +1 -1
  74. data/lib/stripe/services/charge_service.rb +4 -4
  75. data/lib/stripe/services/checkout/session_service.rb +11 -3
  76. data/lib/stripe/services/coupon_service.rb +1 -2
  77. data/lib/stripe/services/credit_note_service.rb +7 -8
  78. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  79. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  80. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  81. data/lib/stripe/services/customer_service.rb +3 -5
  82. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  83. data/lib/stripe/services/dispute_service.rb +1 -1
  84. data/lib/stripe/services/file_service.rb +1 -1
  85. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  86. data/lib/stripe/services/invoice_item_service.rb +1 -2
  87. data/lib/stripe/services/invoice_service.rb +92 -23
  88. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  89. data/lib/stripe/services/issuing/card_service.rb +1 -1
  90. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  91. data/lib/stripe/services/payment_intent_service.rb +176 -292
  92. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  93. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  94. data/lib/stripe/services/payment_method_service.rb +43 -100
  95. data/lib/stripe/services/payout_service.rb +2 -2
  96. data/lib/stripe/services/plan_service.rb +2 -3
  97. data/lib/stripe/services/price_service.rb +2 -2
  98. data/lib/stripe/services/product_feature_service.rb +1 -2
  99. data/lib/stripe/services/product_service.rb +2 -3
  100. data/lib/stripe/services/promotion_code_service.rb +1 -1
  101. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  102. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  103. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  104. data/lib/stripe/services/setup_intent_service.rb +110 -280
  105. data/lib/stripe/services/source_service.rb +1 -1
  106. data/lib/stripe/services/subscription_item_service.rb +26 -0
  107. data/lib/stripe/services/subscription_schedule_service.rb +93 -3
  108. data/lib/stripe/services/subscription_service.rb +77 -26
  109. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  110. data/lib/stripe/services/tax/registration_service.rb +1 -1
  111. data/lib/stripe/services/tax_id_service.rb +1 -2
  112. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  113. data/lib/stripe/services/terminal/location_service.rb +2 -3
  114. data/lib/stripe/services/terminal/reader_service.rb +106 -2
  115. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -87
  116. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  117. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  118. data/lib/stripe/services/token_service.rb +1 -1
  119. data/lib/stripe/services/transfer_service.rb +1 -1
  120. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  121. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  122. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  123. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  124. data/lib/stripe/version.rb +1 -1
  125. data/rbi/stripe/resources/account.rbi +46 -23
  126. data/rbi/stripe/resources/account_session.rbi +131 -12
  127. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  128. data/rbi/stripe/resources/balance.rbi +55 -0
  129. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  130. data/rbi/stripe/resources/bank_account.rbi +2 -2
  131. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  132. data/rbi/stripe/resources/billing_portal/session.rbi +1 -1
  133. data/rbi/stripe/resources/capability.rbi +1 -1
  134. data/rbi/stripe/resources/charge.rbi +17 -5
  135. data/rbi/stripe/resources/checkout/session.rbi +22 -6
  136. data/rbi/stripe/resources/confirmation_token.rbi +33 -99
  137. data/rbi/stripe/resources/country_spec.rbi +1 -1
  138. data/rbi/stripe/resources/coupon.rbi +1 -3
  139. data/rbi/stripe/resources/credit_note.rbi +14 -9
  140. data/rbi/stripe/resources/customer.rbi +2 -6
  141. data/rbi/stripe/resources/customer_session.rbi +3 -3
  142. data/rbi/stripe/resources/dispute.rbi +2 -2
  143. data/rbi/stripe/resources/event.rbi +1 -1
  144. data/rbi/stripe/resources/file.rbi +1 -1
  145. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  146. data/rbi/stripe/resources/identity/verification_session.rbi +20 -11
  147. data/rbi/stripe/resources/invoice.rbi +109 -33
  148. data/rbi/stripe/resources/invoice_item.rbi +2 -4
  149. data/rbi/stripe/resources/invoice_line_item.rbi +1 -1
  150. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  151. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  152. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  153. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  154. data/rbi/stripe/resources/payment_intent.rbi +201 -349
  155. data/rbi/stripe/resources/payment_method.rbi +46 -116
  156. data/rbi/stripe/resources/payment_method_configuration.rbi +334 -4
  157. data/rbi/stripe/resources/payment_method_domain.rbi +2 -2
  158. data/rbi/stripe/resources/payout.rbi +4 -4
  159. data/rbi/stripe/resources/person.rbi +2 -2
  160. data/rbi/stripe/resources/plan.rbi +2 -4
  161. data/rbi/stripe/resources/price.rbi +1 -1
  162. data/rbi/stripe/resources/product.rbi +1 -3
  163. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  164. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  165. data/rbi/stripe/resources/refund.rbi +5 -1
  166. data/rbi/stripe/resources/reversal.rbi +1 -1
  167. data/rbi/stripe/resources/review.rbi +1 -1
  168. data/rbi/stripe/resources/setup_intent.rbi +111 -325
  169. data/rbi/stripe/resources/source.rbi +1 -1
  170. data/rbi/stripe/resources/subscription.rbi +99 -36
  171. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  172. data/rbi/stripe/resources/subscription_schedule.rbi +138 -10
  173. data/rbi/stripe/resources/tax/calculation.rbi +5 -1
  174. data/rbi/stripe/resources/tax/calculation_line_item.rbi +3 -0
  175. data/rbi/stripe/resources/tax/registration.rbi +1 -1
  176. data/rbi/stripe/resources/tax_id.rbi +1 -3
  177. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  178. data/rbi/stripe/resources/terminal/configuration.rbi +1 -3
  179. data/rbi/stripe/resources/terminal/location.rbi +2 -4
  180. data/rbi/stripe/resources/terminal/reader.rbi +265 -5
  181. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  182. data/rbi/stripe/resources/token.rbi +2 -2
  183. data/rbi/stripe/resources/transfer.rbi +1 -1
  184. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  185. data/rbi/stripe/services/account_external_account_service.rbi +2 -4
  186. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  187. data/rbi/stripe/services/account_person_service.rbi +1 -3
  188. data/rbi/stripe/services/account_service.rbi +40 -16
  189. data/rbi/stripe/services/account_session_service.rbi +86 -12
  190. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  191. data/rbi/stripe/services/balance_service.rbi +1 -1
  192. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  193. data/rbi/stripe/services/charge_service.rbi +4 -4
  194. data/rbi/stripe/services/checkout/session_service.rbi +12 -5
  195. data/rbi/stripe/services/coupon_service.rbi +1 -3
  196. data/rbi/stripe/services/credit_note_service.rbi +7 -8
  197. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  198. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  199. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  200. data/rbi/stripe/services/customer_service.rbi +3 -7
  201. data/rbi/stripe/services/customer_tax_id_service.rbi +1 -3
  202. data/rbi/stripe/services/dispute_service.rbi +1 -1
  203. data/rbi/stripe/services/file_service.rbi +1 -1
  204. data/rbi/stripe/services/identity/verification_session_service.rbi +5 -5
  205. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  206. data/rbi/stripe/services/invoice_service.rbi +90 -29
  207. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  208. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  209. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  210. data/rbi/stripe/services/payment_intent_service.rbi +179 -339
  211. data/rbi/stripe/services/payment_method_configuration_service.rbi +236 -4
  212. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  213. data/rbi/stripe/services/payment_method_service.rbi +43 -113
  214. data/rbi/stripe/services/payout_service.rbi +2 -2
  215. data/rbi/stripe/services/plan_service.rbi +2 -4
  216. data/rbi/stripe/services/price_service.rbi +2 -2
  217. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  218. data/rbi/stripe/services/product_service.rbi +2 -4
  219. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  220. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  221. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  222. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  223. data/rbi/stripe/services/setup_intent_service.rbi +110 -324
  224. data/rbi/stripe/services/source_service.rbi +1 -1
  225. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  226. data/rbi/stripe/services/subscription_schedule_service.rbi +107 -9
  227. data/rbi/stripe/services/subscription_service.rbi +85 -33
  228. data/rbi/stripe/services/tax/calculation_service.rbi +5 -1
  229. data/rbi/stripe/services/tax/registration_service.rbi +1 -1
  230. data/rbi/stripe/services/tax_id_service.rbi +1 -3
  231. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  232. data/rbi/stripe/services/terminal/location_service.rbi +2 -4
  233. data/rbi/stripe/services/terminal/reader_service.rbi +115 -4
  234. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +33 -99
  235. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  236. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  237. data/rbi/stripe/services/token_service.rbi +1 -1
  238. data/rbi/stripe/services/transfer_service.rbi +1 -1
  239. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  240. data/rbi/stripe/services/v2/core/event_destination_service.rbi +4 -12
  241. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  242. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  243. metadata +3 -2
@@ -95,8 +95,28 @@ module Stripe
95
95
  end
96
96
  end
97
97
 
98
- class Documents < Stripe::RequestParams
98
+ class DisputesList < Stripe::RequestParams
99
99
  class Features < Stripe::RequestParams
100
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
101
+ attr_accessor :capture_payments
102
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
103
+ attr_accessor :destination_on_behalf_of_charge_management
104
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
105
+ attr_accessor :dispute_management
106
+ # Whether to allow sending refunds. This is `true` by default.
107
+ attr_accessor :refund_management
108
+
109
+ def initialize(
110
+ capture_payments: nil,
111
+ destination_on_behalf_of_charge_management: nil,
112
+ dispute_management: nil,
113
+ refund_management: nil
114
+ )
115
+ @capture_payments = capture_payments
116
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
117
+ @dispute_management = dispute_management
118
+ @refund_management = refund_management
119
+ end
100
120
  end
101
121
  # Whether the embedded component is enabled.
102
122
  attr_accessor :enabled
@@ -109,6 +129,19 @@ module Stripe
109
129
  end
110
130
  end
111
131
 
132
+ class Documents < Stripe::RequestParams
133
+ class Features < Stripe::RequestParams; end
134
+ # Whether the embedded component is enabled.
135
+ attr_accessor :enabled
136
+ # The list of features enabled in the embedded component.
137
+ attr_accessor :features
138
+
139
+ def initialize(enabled: nil, features: nil)
140
+ @enabled = enabled
141
+ @features = features
142
+ end
143
+ end
144
+
112
145
  class FinancialAccount < Stripe::RequestParams
113
146
  class Features < Stripe::RequestParams
114
147
  # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@@ -295,6 +328,36 @@ module Stripe
295
328
  end
296
329
  end
297
330
 
331
+ class PaymentDisputes < Stripe::RequestParams
332
+ class Features < Stripe::RequestParams
333
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
334
+ attr_accessor :destination_on_behalf_of_charge_management
335
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
336
+ attr_accessor :dispute_management
337
+ # Whether to allow sending refunds. This is `true` by default.
338
+ attr_accessor :refund_management
339
+
340
+ def initialize(
341
+ destination_on_behalf_of_charge_management: nil,
342
+ dispute_management: nil,
343
+ refund_management: nil
344
+ )
345
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
346
+ @dispute_management = dispute_management
347
+ @refund_management = refund_management
348
+ end
349
+ end
350
+ # Whether the embedded component is enabled.
351
+ attr_accessor :enabled
352
+ # The list of features enabled in the embedded component.
353
+ attr_accessor :features
354
+
355
+ def initialize(enabled: nil, features: nil)
356
+ @enabled = enabled
357
+ @features = features
358
+ end
359
+ end
360
+
298
361
  class Payments < Stripe::RequestParams
299
362
  class Features < Stripe::RequestParams
300
363
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -368,8 +431,7 @@ module Stripe
368
431
  end
369
432
 
370
433
  class PayoutsList < Stripe::RequestParams
371
- class Features < Stripe::RequestParams
372
- end
434
+ class Features < Stripe::RequestParams; end
373
435
  # Whether the embedded component is enabled.
374
436
  attr_accessor :enabled
375
437
  # The list of features enabled in the embedded component.
@@ -382,8 +444,7 @@ module Stripe
382
444
  end
383
445
 
384
446
  class TaxRegistrations < Stripe::RequestParams
385
- class Features < Stripe::RequestParams
386
- end
447
+ class Features < Stripe::RequestParams; end
387
448
  # Whether the embedded component is enabled.
388
449
  attr_accessor :enabled
389
450
  # The list of features enabled in the embedded component.
@@ -396,8 +457,7 @@ module Stripe
396
457
  end
397
458
 
398
459
  class TaxSettings < Stripe::RequestParams
399
- class Features < Stripe::RequestParams
400
- end
460
+ class Features < Stripe::RequestParams; end
401
461
  # Whether the embedded component is enabled.
402
462
  attr_accessor :enabled
403
463
  # The list of features enabled in the embedded component.
@@ -414,6 +474,8 @@ module Stripe
414
474
  attr_accessor :account_onboarding
415
475
  # Configuration for the balances embedded component.
416
476
  attr_accessor :balances
477
+ # Configuration for the disputes list embedded component.
478
+ attr_accessor :disputes_list
417
479
  # Configuration for the documents embedded component.
418
480
  attr_accessor :documents
419
481
  # Configuration for the financial account embedded component.
@@ -428,6 +490,8 @@ module Stripe
428
490
  attr_accessor :notification_banner
429
491
  # Configuration for the payment details embedded component.
430
492
  attr_accessor :payment_details
493
+ # Configuration for the payment disputes embedded component.
494
+ attr_accessor :payment_disputes
431
495
  # Configuration for the payments embedded component.
432
496
  attr_accessor :payments
433
497
  # Configuration for the payouts embedded component.
@@ -443,6 +507,7 @@ module Stripe
443
507
  account_management: nil,
444
508
  account_onboarding: nil,
445
509
  balances: nil,
510
+ disputes_list: nil,
446
511
  documents: nil,
447
512
  financial_account: nil,
448
513
  financial_account_transactions: nil,
@@ -450,6 +515,7 @@ module Stripe
450
515
  issuing_cards_list: nil,
451
516
  notification_banner: nil,
452
517
  payment_details: nil,
518
+ payment_disputes: nil,
453
519
  payments: nil,
454
520
  payouts: nil,
455
521
  payouts_list: nil,
@@ -459,6 +525,7 @@ module Stripe
459
525
  @account_management = account_management
460
526
  @account_onboarding = account_onboarding
461
527
  @balances = balances
528
+ @disputes_list = disputes_list
462
529
  @documents = documents
463
530
  @financial_account = financial_account
464
531
  @financial_account_transactions = financial_account_transactions
@@ -466,6 +533,7 @@ module Stripe
466
533
  @issuing_cards_list = issuing_cards_list
467
534
  @notification_banner = notification_banner
468
535
  @payment_details = payment_details
536
+ @payment_disputes = payment_disputes
469
537
  @payments = payments
470
538
  @payouts = payouts
471
539
  @payouts_list = payouts_list
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class ApplePayDomainService < 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.
@@ -13,7 +13,7 @@ module Stripe
13
13
  end
14
14
 
15
15
  # Retrieves the current account balance, based on the authentication that was used to make the request.
16
- # For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
16
+ # For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
17
17
  def retrieve(params = {}, opts = {})
18
18
  request(method: :get, path: "/v1/balance", params: params, opts: opts, base_address: :api)
19
19
  end
@@ -407,9 +407,9 @@ module Stripe
407
407
 
408
408
  # Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
409
409
  #
410
- # Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
410
+ # Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
411
411
  #
412
- # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
412
+ # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
413
413
  def capture(charge, params = {}, opts = {})
414
414
  request(
415
415
  method: :post,
@@ -420,7 +420,7 @@ module Stripe
420
420
  )
421
421
  end
422
422
 
423
- # This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
423
+ # This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
424
424
  # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
425
425
  # object used to request payment.
426
426
  def create(params = {}, opts = {})
@@ -443,7 +443,7 @@ module Stripe
443
443
  )
444
444
  end
445
445
 
446
- # Search for charges you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
446
+ # Search for charges you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
447
447
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
448
448
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
449
449
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -1310,8 +1310,7 @@ module Stripe
1310
1310
  end
1311
1311
  end
1312
1312
 
1313
- class PayByBank < Stripe::RequestParams
1314
- end
1313
+ class PayByBank < Stripe::RequestParams; end
1315
1314
 
1316
1315
  class Payco < Stripe::RequestParams
1317
1316
  # Controls when the funds will be captured from the customer's account.
@@ -1707,11 +1706,18 @@ module Stripe
1707
1706
  class SavedPaymentMethodOptions < Stripe::RequestParams
1708
1707
  # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
1709
1708
  attr_accessor :allow_redisplay_filters
1709
+ # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
1710
+ attr_accessor :payment_method_remove
1710
1711
  # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
1711
1712
  attr_accessor :payment_method_save
1712
1713
 
1713
- def initialize(allow_redisplay_filters: nil, payment_method_save: nil)
1714
+ def initialize(
1715
+ allow_redisplay_filters: nil,
1716
+ payment_method_remove: nil,
1717
+ payment_method_save: nil
1718
+ )
1714
1719
  @allow_redisplay_filters = allow_redisplay_filters
1720
+ @payment_method_remove = payment_method_remove
1715
1721
  @payment_method_save = payment_method_save
1716
1722
  end
1717
1723
  end
@@ -2473,6 +2479,8 @@ module Stripe
2473
2479
  end
2474
2480
 
2475
2481
  # Updates a Checkout Session object.
2482
+ #
2483
+ # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
2476
2484
  def update(session, params = {}, opts = {})
2477
2485
  request(
2478
2486
  method: :post,
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class CouponService < 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.
@@ -376,20 +376,19 @@ module Stripe
376
376
  end
377
377
  end
378
378
 
379
- # Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
380
- # its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
381
- # in any combination of the following:
379
+ # Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
380
+ # This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
382
381
  #
383
382
  #
384
- # Refund: create a new refund (using refund_amount) or link an existing refund (using refund).
383
+ # Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
385
384
  # Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
386
385
  # Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
387
386
  #
388
387
  #
389
- # For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.
388
+ # The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
390
389
  #
391
- # You may issue multiple credit notes for an invoice. Each credit note will increment the invoice's pre_payment_credit_notes_amount
392
- # or post_payment_credit_notes_amount depending on its status at the time of credit note creation.
390
+ # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
391
+ # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
393
392
  def create(params = {}, opts = {})
394
393
  request(
395
394
  method: :post,
@@ -444,7 +443,7 @@ module Stripe
444
443
  )
445
444
  end
446
445
 
447
- # Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
446
+ # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
448
447
  def void_credit_note(id, params = {}, opts = {})
449
448
  request(
450
449
  method: :post,
@@ -66,7 +66,7 @@ module Stripe
66
66
  end
67
67
  end
68
68
 
69
- # Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).
69
+ # Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance).
70
70
  def create(customer, params = {}, opts = {})
71
71
  request(
72
72
  method: :post,
@@ -77,7 +77,7 @@ module Stripe
77
77
  )
78
78
  end
79
79
 
80
- # Returns a list of transactions that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
80
+ # Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
81
81
  def list(customer, params = {}, opts = {})
82
82
  request(
83
83
  method: :get,
@@ -88,7 +88,7 @@ module Stripe
88
88
  )
89
89
  end
90
90
 
91
- # Retrieves a specific customer balance transaction that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
91
+ # Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
92
92
  def retrieve(customer, transaction, params = {}, opts = {})
93
93
  request(
94
94
  method: :get,
@@ -30,7 +30,7 @@ module Stripe
30
30
  end
31
31
  end
32
32
 
33
- # Returns a list of transactions that modified the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
33
+ # Returns a list of transactions that modified the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
34
34
  def list(customer, params = {}, opts = {})
35
35
  request(
36
36
  method: :get,
@@ -41,7 +41,7 @@ module Stripe
41
41
  )
42
42
  end
43
43
 
44
- # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
44
+ # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
45
45
  def retrieve(customer, transaction, params = {}, opts = {})
46
46
  request(
47
47
  method: :get,
@@ -186,7 +186,7 @@ module Stripe
186
186
  #
187
187
  # If the card's owner has no default card, then the new card will become the default.
188
188
  # However, if the owner already has a default, then it will not change.
189
- # To change the default, you should [update the customer](https://stripe.com/docs/api#update_customer) to have a new default_source.
189
+ # To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
190
190
  def create(customer, params = {}, opts = {})
191
191
  request(
192
192
  method: :post,
@@ -16,8 +16,7 @@ module Stripe
16
16
  @funding_instructions = Stripe::CustomerFundingInstructionsService.new(@requestor)
17
17
  end
18
18
 
19
- class DeleteParams < Stripe::RequestParams
20
- end
19
+ class DeleteParams < Stripe::RequestParams; end
21
20
 
22
21
  class RetrieveParams < Stripe::RequestParams
23
22
  # Specifies which fields in the response should be expanded.
@@ -266,8 +265,7 @@ module Stripe
266
265
  end
267
266
  end
268
267
 
269
- class DeleteDiscountParams < Stripe::RequestParams
270
- end
268
+ class DeleteDiscountParams < Stripe::RequestParams; end
271
269
 
272
270
  class ListParams < Stripe::RequestParams
273
271
  class Created < Stripe::RequestParams
@@ -636,7 +634,7 @@ module Stripe
636
634
  )
637
635
  end
638
636
 
639
- # Search for customers you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
637
+ # Search for customers you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
640
638
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
641
639
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
642
640
  # 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 CustomerTaxIdService < 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.
@@ -408,7 +408,7 @@ module Stripe
408
408
 
409
409
  # When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
410
410
  #
411
- # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
411
+ # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
412
412
  def update(dispute, params = {}, opts = {})
413
413
  request(
414
414
  method: :post,
@@ -110,7 +110,7 @@ module Stripe
110
110
  request(method: :get, path: "/v1/files", params: params, opts: opts, base_address: :api)
111
111
  end
112
112
 
113
- # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents).
113
+ # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents).
114
114
  def retrieve(file, params = {}, opts = {})
115
115
  request(
116
116
  method: :get,
@@ -235,9 +235,9 @@ module Stripe
235
235
  end
236
236
  end
237
237
 
238
- # A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
238
+ # A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
239
239
  #
240
- # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
240
+ # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
241
241
  def cancel(session, params = {}, opts = {})
242
242
  request(
243
243
  method: :post,
@@ -254,7 +254,7 @@ module Stripe
254
254
  #
255
255
  # If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
256
256
  #
257
- # Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
257
+ # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
258
258
  def create(params = {}, opts = {})
259
259
  request(
260
260
  method: :post,
@@ -281,7 +281,7 @@ module Stripe
281
281
  # request logs, etc.
282
282
  #
283
283
  # A VerificationSession object can be redacted when it is in requires_input or verified
284
- # [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
284
+ # [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
285
285
  # state will automatically cancel it.
286
286
  #
287
287
  # The redaction process may take up to four days. When the redaction process is in progress, the
@@ -294,7 +294,7 @@ module Stripe
294
294
  # placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
295
295
  # used for any purpose.
296
296
  #
297
- # [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
297
+ # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
298
298
  def redact(session, params = {}, opts = {})
299
299
  request(
300
300
  method: :post,
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class InvoiceItemService < 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.