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
@@ -656,7 +656,7 @@ module Stripe
656
656
  attr_reader :redirect_to_url
657
657
  # Attribute for field swish_handle_redirect_or_display_qr_code
658
658
  attr_reader :swish_handle_redirect_or_display_qr_code
659
- # Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
659
+ # Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
660
660
  attr_reader :type
661
661
  # When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
662
662
  attr_reader :use_stripe_sdk
@@ -810,7 +810,10 @@ module Stripe
810
810
  attr_reader :setup_future_usage
811
811
  end
812
812
 
813
- class Billie < Stripe::StripeObject; end
813
+ class Billie < Stripe::StripeObject
814
+ # Controls when the funds will be captured from the customer's account.
815
+ attr_reader :capture_method
816
+ end
814
817
 
815
818
  class Blik < Stripe::StripeObject
816
819
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1261,6 +1264,11 @@ module Stripe
1261
1264
  attr_reader :capture_method
1262
1265
  end
1263
1266
 
1267
+ class Satispay < Stripe::StripeObject
1268
+ # Controls when the funds will be captured from the customer's account.
1269
+ attr_reader :capture_method
1270
+ end
1271
+
1264
1272
  class SepaDebit < Stripe::StripeObject
1265
1273
  class MandateOptions < Stripe::StripeObject
1266
1274
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -1464,6 +1472,8 @@ module Stripe
1464
1472
  attr_reader :revolut_pay
1465
1473
  # Attribute for field samsung_pay
1466
1474
  attr_reader :samsung_pay
1475
+ # Attribute for field satispay
1476
+ attr_reader :satispay
1467
1477
  # Attribute for field sepa_debit
1468
1478
  attr_reader :sepa_debit
1469
1479
  # Attribute for field sofort
@@ -1605,8 +1615,7 @@ module Stripe
1605
1615
 
1606
1616
  class MandateData < Stripe::RequestParams
1607
1617
  class CustomerAcceptance < Stripe::RequestParams
1608
- class Offline < Stripe::RequestParams
1609
- end
1618
+ class Offline < Stripe::RequestParams; end
1610
1619
 
1611
1620
  class Online < Stripe::RequestParams
1612
1621
  # The IP address from which the Mandate was accepted by the customer.
@@ -1659,20 +1668,11 @@ module Stripe
1659
1668
  end
1660
1669
  end
1661
1670
 
1662
- class Affirm < Stripe::RequestParams
1663
- end
1664
-
1665
- class AfterpayClearpay < Stripe::RequestParams
1666
- end
1667
-
1668
- class Alipay < Stripe::RequestParams
1669
- end
1670
-
1671
- class Alma < Stripe::RequestParams
1672
- end
1673
-
1674
- class AmazonPay < Stripe::RequestParams
1675
- end
1671
+ class Affirm < Stripe::RequestParams; end
1672
+ class AfterpayClearpay < Stripe::RequestParams; end
1673
+ class Alipay < Stripe::RequestParams; end
1674
+ class Alma < Stripe::RequestParams; end
1675
+ class AmazonPay < Stripe::RequestParams; end
1676
1676
 
1677
1677
  class AuBecsDebit < Stripe::RequestParams
1678
1678
  # The account number for the bank account.
@@ -1698,11 +1698,8 @@ module Stripe
1698
1698
  end
1699
1699
  end
1700
1700
 
1701
- class Bancontact < Stripe::RequestParams
1702
- end
1703
-
1704
- class Billie < Stripe::RequestParams
1705
- end
1701
+ class Bancontact < Stripe::RequestParams; end
1702
+ class Billie < Stripe::RequestParams; end
1706
1703
 
1707
1704
  class BillingDetails < Stripe::RequestParams
1708
1705
  class Address < Stripe::RequestParams
@@ -1755,8 +1752,7 @@ module Stripe
1755
1752
  end
1756
1753
  end
1757
1754
 
1758
- class Blik < Stripe::RequestParams
1759
- end
1755
+ class Blik < Stripe::RequestParams; end
1760
1756
 
1761
1757
  class Boleto < Stripe::RequestParams
1762
1758
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
@@ -1767,11 +1763,8 @@ module Stripe
1767
1763
  end
1768
1764
  end
1769
1765
 
1770
- class Cashapp < Stripe::RequestParams
1771
- end
1772
-
1773
- class CustomerBalance < Stripe::RequestParams
1774
- end
1766
+ class Cashapp < Stripe::RequestParams; end
1767
+ class CustomerBalance < Stripe::RequestParams; end
1775
1768
 
1776
1769
  class Eps < Stripe::RequestParams
1777
1770
  # The customer's bank.
@@ -1794,11 +1787,8 @@ module Stripe
1794
1787
  end
1795
1788
  end
1796
1789
 
1797
- class Giropay < Stripe::RequestParams
1798
- end
1799
-
1800
- class Grabpay < Stripe::RequestParams
1801
- end
1790
+ class Giropay < Stripe::RequestParams; end
1791
+ class Grabpay < Stripe::RequestParams; end
1802
1792
 
1803
1793
  class Ideal < Stripe::RequestParams
1804
1794
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1809,11 +1799,8 @@ module Stripe
1809
1799
  end
1810
1800
  end
1811
1801
 
1812
- class InteracPresent < Stripe::RequestParams
1813
- end
1814
-
1815
- class KakaoPay < Stripe::RequestParams
1816
- end
1802
+ class InteracPresent < Stripe::RequestParams; end
1803
+ class KakaoPay < Stripe::RequestParams; end
1817
1804
 
1818
1805
  class Klarna < Stripe::RequestParams
1819
1806
  class Dob < Stripe::RequestParams
@@ -1838,20 +1825,11 @@ module Stripe
1838
1825
  end
1839
1826
  end
1840
1827
 
1841
- class Konbini < Stripe::RequestParams
1842
- end
1843
-
1844
- class KrCard < Stripe::RequestParams
1845
- end
1846
-
1847
- class Link < Stripe::RequestParams
1848
- end
1849
-
1850
- class Mobilepay < Stripe::RequestParams
1851
- end
1852
-
1853
- class Multibanco < Stripe::RequestParams
1854
- end
1828
+ class Konbini < Stripe::RequestParams; end
1829
+ class KrCard < Stripe::RequestParams; end
1830
+ class Link < Stripe::RequestParams; end
1831
+ class Mobilepay < Stripe::RequestParams; end
1832
+ class Multibanco < Stripe::RequestParams; end
1855
1833
 
1856
1834
  class NaverPay < Stripe::RequestParams
1857
1835
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
@@ -1893,8 +1871,7 @@ module Stripe
1893
1871
  end
1894
1872
  end
1895
1873
 
1896
- class Oxxo < Stripe::RequestParams
1897
- end
1874
+ class Oxxo < Stripe::RequestParams; end
1898
1875
 
1899
1876
  class P24 < Stripe::RequestParams
1900
1877
  # The customer's bank.
@@ -1905,23 +1882,12 @@ module Stripe
1905
1882
  end
1906
1883
  end
1907
1884
 
1908
- class PayByBank < Stripe::RequestParams
1909
- end
1910
-
1911
- class Payco < Stripe::RequestParams
1912
- end
1913
-
1914
- class Paynow < Stripe::RequestParams
1915
- end
1916
-
1917
- class Paypal < Stripe::RequestParams
1918
- end
1919
-
1920
- class Pix < Stripe::RequestParams
1921
- end
1922
-
1923
- class Promptpay < Stripe::RequestParams
1924
- end
1885
+ class PayByBank < Stripe::RequestParams; end
1886
+ class Payco < Stripe::RequestParams; end
1887
+ class Paynow < Stripe::RequestParams; end
1888
+ class Paypal < Stripe::RequestParams; end
1889
+ class Pix < Stripe::RequestParams; end
1890
+ class Promptpay < Stripe::RequestParams; end
1925
1891
 
1926
1892
  class RadarOptions < Stripe::RequestParams
1927
1893
  # 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.
@@ -1932,14 +1898,9 @@ module Stripe
1932
1898
  end
1933
1899
  end
1934
1900
 
1935
- class RevolutPay < Stripe::RequestParams
1936
- end
1937
-
1938
- class SamsungPay < Stripe::RequestParams
1939
- end
1940
-
1941
- class Satispay < Stripe::RequestParams
1942
- end
1901
+ class RevolutPay < Stripe::RequestParams; end
1902
+ class SamsungPay < Stripe::RequestParams; end
1903
+ class Satispay < Stripe::RequestParams; end
1943
1904
 
1944
1905
  class SepaDebit < Stripe::RequestParams
1945
1906
  # IBAN of the bank account.
@@ -1959,11 +1920,8 @@ module Stripe
1959
1920
  end
1960
1921
  end
1961
1922
 
1962
- class Swish < Stripe::RequestParams
1963
- end
1964
-
1965
- class Twint < Stripe::RequestParams
1966
- end
1923
+ class Swish < Stripe::RequestParams; end
1924
+ class Twint < Stripe::RequestParams; end
1967
1925
 
1968
1926
  class UsBankAccount < Stripe::RequestParams
1969
1927
  # Account holder type: individual or company.
@@ -1992,11 +1950,8 @@ module Stripe
1992
1950
  end
1993
1951
  end
1994
1952
 
1995
- class WechatPay < Stripe::RequestParams
1996
- end
1997
-
1998
- class Zip < Stripe::RequestParams
1999
- end
1953
+ class WechatPay < Stripe::RequestParams; end
1954
+ class Zip < Stripe::RequestParams; end
2000
1955
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2001
1956
  attr_accessor :acss_debit
2002
1957
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -2916,8 +2871,7 @@ module Stripe
2916
2871
  end
2917
2872
  end
2918
2873
 
2919
- class InteracPresent < Stripe::RequestParams
2920
- end
2874
+ class InteracPresent < Stripe::RequestParams; end
2921
2875
 
2922
2876
  class KakaoPay < Stripe::RequestParams
2923
2877
  # Controls when the funds are captured from the customer's account.
@@ -3175,8 +3129,7 @@ module Stripe
3175
3129
  end
3176
3130
  end
3177
3131
 
3178
- class PayByBank < Stripe::RequestParams
3179
- end
3132
+ class PayByBank < Stripe::RequestParams; end
3180
3133
 
3181
3134
  class Payco < Stripe::RequestParams
3182
3135
  # Controls when the funds are captured from the customer's account.
@@ -3318,6 +3271,19 @@ module Stripe
3318
3271
  end
3319
3272
  end
3320
3273
 
3274
+ class Satispay < Stripe::RequestParams
3275
+ # Controls when the funds are captured from the customer's account.
3276
+ #
3277
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3278
+ #
3279
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3280
+ attr_accessor :capture_method
3281
+
3282
+ def initialize(capture_method: nil)
3283
+ @capture_method = capture_method
3284
+ end
3285
+ end
3286
+
3321
3287
  class SepaDebit < Stripe::RequestParams
3322
3288
  class MandateOptions < Stripe::RequestParams
3323
3289
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -3613,6 +3579,8 @@ module Stripe
3613
3579
  attr_accessor :revolut_pay
3614
3580
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
3615
3581
  attr_accessor :samsung_pay
3582
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
3583
+ attr_accessor :satispay
3616
3584
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
3617
3585
  attr_accessor :sepa_debit
3618
3586
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
@@ -3670,6 +3638,7 @@ module Stripe
3670
3638
  promptpay: nil,
3671
3639
  revolut_pay: nil,
3672
3640
  samsung_pay: nil,
3641
+ satispay: nil,
3673
3642
  sepa_debit: nil,
3674
3643
  sofort: nil,
3675
3644
  swish: nil,
@@ -3719,6 +3688,7 @@ module Stripe
3719
3688
  @promptpay = promptpay
3720
3689
  @revolut_pay = revolut_pay
3721
3690
  @samsung_pay = samsung_pay
3691
+ @satispay = satispay
3722
3692
  @sepa_debit = sepa_debit
3723
3693
  @sofort = sofort
3724
3694
  @swish = swish
@@ -3852,6 +3822,8 @@ module Stripe
3852
3822
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
3853
3823
  #
3854
3824
  # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
3825
+ # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
3826
+ # end
3855
3827
  attr_accessor :payment_method
3856
3828
  # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
3857
3829
  attr_accessor :payment_method_configuration
@@ -3979,20 +3951,11 @@ module Stripe
3979
3951
  end
3980
3952
  end
3981
3953
 
3982
- class Affirm < Stripe::RequestParams
3983
- end
3984
-
3985
- class AfterpayClearpay < Stripe::RequestParams
3986
- end
3987
-
3988
- class Alipay < Stripe::RequestParams
3989
- end
3990
-
3991
- class Alma < Stripe::RequestParams
3992
- end
3993
-
3994
- class AmazonPay < Stripe::RequestParams
3995
- end
3954
+ class Affirm < Stripe::RequestParams; end
3955
+ class AfterpayClearpay < Stripe::RequestParams; end
3956
+ class Alipay < Stripe::RequestParams; end
3957
+ class Alma < Stripe::RequestParams; end
3958
+ class AmazonPay < Stripe::RequestParams; end
3996
3959
 
3997
3960
  class AuBecsDebit < Stripe::RequestParams
3998
3961
  # The account number for the bank account.
@@ -4018,11 +3981,8 @@ module Stripe
4018
3981
  end
4019
3982
  end
4020
3983
 
4021
- class Bancontact < Stripe::RequestParams
4022
- end
4023
-
4024
- class Billie < Stripe::RequestParams
4025
- end
3984
+ class Bancontact < Stripe::RequestParams; end
3985
+ class Billie < Stripe::RequestParams; end
4026
3986
 
4027
3987
  class BillingDetails < Stripe::RequestParams
4028
3988
  class Address < Stripe::RequestParams
@@ -4075,8 +4035,7 @@ module Stripe
4075
4035
  end
4076
4036
  end
4077
4037
 
4078
- class Blik < Stripe::RequestParams
4079
- end
4038
+ class Blik < Stripe::RequestParams; end
4080
4039
 
4081
4040
  class Boleto < Stripe::RequestParams
4082
4041
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
@@ -4087,11 +4046,8 @@ module Stripe
4087
4046
  end
4088
4047
  end
4089
4048
 
4090
- class Cashapp < Stripe::RequestParams
4091
- end
4092
-
4093
- class CustomerBalance < Stripe::RequestParams
4094
- end
4049
+ class Cashapp < Stripe::RequestParams; end
4050
+ class CustomerBalance < Stripe::RequestParams; end
4095
4051
 
4096
4052
  class Eps < Stripe::RequestParams
4097
4053
  # The customer's bank.
@@ -4114,11 +4070,8 @@ module Stripe
4114
4070
  end
4115
4071
  end
4116
4072
 
4117
- class Giropay < Stripe::RequestParams
4118
- end
4119
-
4120
- class Grabpay < Stripe::RequestParams
4121
- end
4073
+ class Giropay < Stripe::RequestParams; end
4074
+ class Grabpay < Stripe::RequestParams; end
4122
4075
 
4123
4076
  class Ideal < Stripe::RequestParams
4124
4077
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -4129,11 +4082,8 @@ module Stripe
4129
4082
  end
4130
4083
  end
4131
4084
 
4132
- class InteracPresent < Stripe::RequestParams
4133
- end
4134
-
4135
- class KakaoPay < Stripe::RequestParams
4136
- end
4085
+ class InteracPresent < Stripe::RequestParams; end
4086
+ class KakaoPay < Stripe::RequestParams; end
4137
4087
 
4138
4088
  class Klarna < Stripe::RequestParams
4139
4089
  class Dob < Stripe::RequestParams
@@ -4158,20 +4108,11 @@ module Stripe
4158
4108
  end
4159
4109
  end
4160
4110
 
4161
- class Konbini < Stripe::RequestParams
4162
- end
4163
-
4164
- class KrCard < Stripe::RequestParams
4165
- end
4166
-
4167
- class Link < Stripe::RequestParams
4168
- end
4169
-
4170
- class Mobilepay < Stripe::RequestParams
4171
- end
4172
-
4173
- class Multibanco < Stripe::RequestParams
4174
- end
4111
+ class Konbini < Stripe::RequestParams; end
4112
+ class KrCard < Stripe::RequestParams; end
4113
+ class Link < Stripe::RequestParams; end
4114
+ class Mobilepay < Stripe::RequestParams; end
4115
+ class Multibanco < Stripe::RequestParams; end
4175
4116
 
4176
4117
  class NaverPay < Stripe::RequestParams
4177
4118
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
@@ -4213,8 +4154,7 @@ module Stripe
4213
4154
  end
4214
4155
  end
4215
4156
 
4216
- class Oxxo < Stripe::RequestParams
4217
- end
4157
+ class Oxxo < Stripe::RequestParams; end
4218
4158
 
4219
4159
  class P24 < Stripe::RequestParams
4220
4160
  # The customer's bank.
@@ -4225,23 +4165,12 @@ module Stripe
4225
4165
  end
4226
4166
  end
4227
4167
 
4228
- class PayByBank < Stripe::RequestParams
4229
- end
4230
-
4231
- class Payco < Stripe::RequestParams
4232
- end
4233
-
4234
- class Paynow < Stripe::RequestParams
4235
- end
4236
-
4237
- class Paypal < Stripe::RequestParams
4238
- end
4239
-
4240
- class Pix < Stripe::RequestParams
4241
- end
4242
-
4243
- class Promptpay < Stripe::RequestParams
4244
- end
4168
+ class PayByBank < Stripe::RequestParams; end
4169
+ class Payco < Stripe::RequestParams; end
4170
+ class Paynow < Stripe::RequestParams; end
4171
+ class Paypal < Stripe::RequestParams; end
4172
+ class Pix < Stripe::RequestParams; end
4173
+ class Promptpay < Stripe::RequestParams; end
4245
4174
 
4246
4175
  class RadarOptions < Stripe::RequestParams
4247
4176
  # 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.
@@ -4252,14 +4181,9 @@ module Stripe
4252
4181
  end
4253
4182
  end
4254
4183
 
4255
- class RevolutPay < Stripe::RequestParams
4256
- end
4257
-
4258
- class SamsungPay < Stripe::RequestParams
4259
- end
4260
-
4261
- class Satispay < Stripe::RequestParams
4262
- end
4184
+ class RevolutPay < Stripe::RequestParams; end
4185
+ class SamsungPay < Stripe::RequestParams; end
4186
+ class Satispay < Stripe::RequestParams; end
4263
4187
 
4264
4188
  class SepaDebit < Stripe::RequestParams
4265
4189
  # IBAN of the bank account.
@@ -4279,11 +4203,8 @@ module Stripe
4279
4203
  end
4280
4204
  end
4281
4205
 
4282
- class Swish < Stripe::RequestParams
4283
- end
4284
-
4285
- class Twint < Stripe::RequestParams
4286
- end
4206
+ class Swish < Stripe::RequestParams; end
4207
+ class Twint < Stripe::RequestParams; end
4287
4208
 
4288
4209
  class UsBankAccount < Stripe::RequestParams
4289
4210
  # Account holder type: individual or company.
@@ -4312,11 +4233,8 @@ module Stripe
4312
4233
  end
4313
4234
  end
4314
4235
 
4315
- class WechatPay < Stripe::RequestParams
4316
- end
4317
-
4318
- class Zip < Stripe::RequestParams
4319
- end
4236
+ class WechatPay < Stripe::RequestParams; end
4237
+ class Zip < Stripe::RequestParams; end
4320
4238
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
4321
4239
  attr_accessor :acss_debit
4322
4240
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -5236,8 +5154,7 @@ module Stripe
5236
5154
  end
5237
5155
  end
5238
5156
 
5239
- class InteracPresent < Stripe::RequestParams
5240
- end
5157
+ class InteracPresent < Stripe::RequestParams; end
5241
5158
 
5242
5159
  class KakaoPay < Stripe::RequestParams
5243
5160
  # Controls when the funds are captured from the customer's account.
@@ -5495,8 +5412,7 @@ module Stripe
5495
5412
  end
5496
5413
  end
5497
5414
 
5498
- class PayByBank < Stripe::RequestParams
5499
- end
5415
+ class PayByBank < Stripe::RequestParams; end
5500
5416
 
5501
5417
  class Payco < Stripe::RequestParams
5502
5418
  # Controls when the funds are captured from the customer's account.
@@ -5638,6 +5554,19 @@ module Stripe
5638
5554
  end
5639
5555
  end
5640
5556
 
5557
+ class Satispay < Stripe::RequestParams
5558
+ # Controls when the funds are captured from the customer's account.
5559
+ #
5560
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5561
+ #
5562
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5563
+ attr_accessor :capture_method
5564
+
5565
+ def initialize(capture_method: nil)
5566
+ @capture_method = capture_method
5567
+ end
5568
+ end
5569
+
5641
5570
  class SepaDebit < Stripe::RequestParams
5642
5571
  class MandateOptions < Stripe::RequestParams
5643
5572
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -5933,6 +5862,8 @@ module Stripe
5933
5862
  attr_accessor :revolut_pay
5934
5863
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
5935
5864
  attr_accessor :samsung_pay
5865
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5866
+ attr_accessor :satispay
5936
5867
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5937
5868
  attr_accessor :sepa_debit
5938
5869
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
@@ -5990,6 +5921,7 @@ module Stripe
5990
5921
  promptpay: nil,
5991
5922
  revolut_pay: nil,
5992
5923
  samsung_pay: nil,
5924
+ satispay: nil,
5993
5925
  sepa_debit: nil,
5994
5926
  sofort: nil,
5995
5927
  swish: nil,
@@ -6039,6 +5971,7 @@ module Stripe
6039
5971
  @promptpay = promptpay
6040
5972
  @revolut_pay = revolut_pay
6041
5973
  @samsung_pay = samsung_pay
5974
+ @satispay = satispay
6042
5975
  @sepa_debit = sepa_debit
6043
5976
  @sofort = sofort
6044
5977
  @swish = swish
@@ -6312,8 +6245,7 @@ module Stripe
6312
6245
  class ConfirmParams < Stripe::RequestParams
6313
6246
  class MandateData < Stripe::RequestParams
6314
6247
  class CustomerAcceptance < Stripe::RequestParams
6315
- class Offline < Stripe::RequestParams
6316
- end
6248
+ class Offline < Stripe::RequestParams; end
6317
6249
 
6318
6250
  class Online < Stripe::RequestParams
6319
6251
  # The IP address from which the Mandate was accepted by the customer.
@@ -6366,20 +6298,11 @@ module Stripe
6366
6298
  end
6367
6299
  end
6368
6300
 
6369
- class Affirm < Stripe::RequestParams
6370
- end
6371
-
6372
- class AfterpayClearpay < Stripe::RequestParams
6373
- end
6374
-
6375
- class Alipay < Stripe::RequestParams
6376
- end
6377
-
6378
- class Alma < Stripe::RequestParams
6379
- end
6380
-
6381
- class AmazonPay < Stripe::RequestParams
6382
- end
6301
+ class Affirm < Stripe::RequestParams; end
6302
+ class AfterpayClearpay < Stripe::RequestParams; end
6303
+ class Alipay < Stripe::RequestParams; end
6304
+ class Alma < Stripe::RequestParams; end
6305
+ class AmazonPay < Stripe::RequestParams; end
6383
6306
 
6384
6307
  class AuBecsDebit < Stripe::RequestParams
6385
6308
  # The account number for the bank account.
@@ -6405,11 +6328,8 @@ module Stripe
6405
6328
  end
6406
6329
  end
6407
6330
 
6408
- class Bancontact < Stripe::RequestParams
6409
- end
6410
-
6411
- class Billie < Stripe::RequestParams
6412
- end
6331
+ class Bancontact < Stripe::RequestParams; end
6332
+ class Billie < Stripe::RequestParams; end
6413
6333
 
6414
6334
  class BillingDetails < Stripe::RequestParams
6415
6335
  class Address < Stripe::RequestParams
@@ -6462,8 +6382,7 @@ module Stripe
6462
6382
  end
6463
6383
  end
6464
6384
 
6465
- class Blik < Stripe::RequestParams
6466
- end
6385
+ class Blik < Stripe::RequestParams; end
6467
6386
 
6468
6387
  class Boleto < Stripe::RequestParams
6469
6388
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
@@ -6474,11 +6393,8 @@ module Stripe
6474
6393
  end
6475
6394
  end
6476
6395
 
6477
- class Cashapp < Stripe::RequestParams
6478
- end
6479
-
6480
- class CustomerBalance < Stripe::RequestParams
6481
- end
6396
+ class Cashapp < Stripe::RequestParams; end
6397
+ class CustomerBalance < Stripe::RequestParams; end
6482
6398
 
6483
6399
  class Eps < Stripe::RequestParams
6484
6400
  # The customer's bank.
@@ -6501,11 +6417,8 @@ module Stripe
6501
6417
  end
6502
6418
  end
6503
6419
 
6504
- class Giropay < Stripe::RequestParams
6505
- end
6506
-
6507
- class Grabpay < Stripe::RequestParams
6508
- end
6420
+ class Giropay < Stripe::RequestParams; end
6421
+ class Grabpay < Stripe::RequestParams; end
6509
6422
 
6510
6423
  class Ideal < Stripe::RequestParams
6511
6424
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -6516,11 +6429,8 @@ module Stripe
6516
6429
  end
6517
6430
  end
6518
6431
 
6519
- class InteracPresent < Stripe::RequestParams
6520
- end
6521
-
6522
- class KakaoPay < Stripe::RequestParams
6523
- end
6432
+ class InteracPresent < Stripe::RequestParams; end
6433
+ class KakaoPay < Stripe::RequestParams; end
6524
6434
 
6525
6435
  class Klarna < Stripe::RequestParams
6526
6436
  class Dob < Stripe::RequestParams
@@ -6545,20 +6455,11 @@ module Stripe
6545
6455
  end
6546
6456
  end
6547
6457
 
6548
- class Konbini < Stripe::RequestParams
6549
- end
6550
-
6551
- class KrCard < Stripe::RequestParams
6552
- end
6553
-
6554
- class Link < Stripe::RequestParams
6555
- end
6556
-
6557
- class Mobilepay < Stripe::RequestParams
6558
- end
6559
-
6560
- class Multibanco < Stripe::RequestParams
6561
- end
6458
+ class Konbini < Stripe::RequestParams; end
6459
+ class KrCard < Stripe::RequestParams; end
6460
+ class Link < Stripe::RequestParams; end
6461
+ class Mobilepay < Stripe::RequestParams; end
6462
+ class Multibanco < Stripe::RequestParams; end
6562
6463
 
6563
6464
  class NaverPay < Stripe::RequestParams
6564
6465
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
@@ -6600,8 +6501,7 @@ module Stripe
6600
6501
  end
6601
6502
  end
6602
6503
 
6603
- class Oxxo < Stripe::RequestParams
6604
- end
6504
+ class Oxxo < Stripe::RequestParams; end
6605
6505
 
6606
6506
  class P24 < Stripe::RequestParams
6607
6507
  # The customer's bank.
@@ -6612,23 +6512,12 @@ module Stripe
6612
6512
  end
6613
6513
  end
6614
6514
 
6615
- class PayByBank < Stripe::RequestParams
6616
- end
6617
-
6618
- class Payco < Stripe::RequestParams
6619
- end
6620
-
6621
- class Paynow < Stripe::RequestParams
6622
- end
6623
-
6624
- class Paypal < Stripe::RequestParams
6625
- end
6626
-
6627
- class Pix < Stripe::RequestParams
6628
- end
6629
-
6630
- class Promptpay < Stripe::RequestParams
6631
- end
6515
+ class PayByBank < Stripe::RequestParams; end
6516
+ class Payco < Stripe::RequestParams; end
6517
+ class Paynow < Stripe::RequestParams; end
6518
+ class Paypal < Stripe::RequestParams; end
6519
+ class Pix < Stripe::RequestParams; end
6520
+ class Promptpay < Stripe::RequestParams; end
6632
6521
 
6633
6522
  class RadarOptions < Stripe::RequestParams
6634
6523
  # 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.
@@ -6639,14 +6528,9 @@ module Stripe
6639
6528
  end
6640
6529
  end
6641
6530
 
6642
- class RevolutPay < Stripe::RequestParams
6643
- end
6644
-
6645
- class SamsungPay < Stripe::RequestParams
6646
- end
6647
-
6648
- class Satispay < Stripe::RequestParams
6649
- end
6531
+ class RevolutPay < Stripe::RequestParams; end
6532
+ class SamsungPay < Stripe::RequestParams; end
6533
+ class Satispay < Stripe::RequestParams; end
6650
6534
 
6651
6535
  class SepaDebit < Stripe::RequestParams
6652
6536
  # IBAN of the bank account.
@@ -6666,11 +6550,8 @@ module Stripe
6666
6550
  end
6667
6551
  end
6668
6552
 
6669
- class Swish < Stripe::RequestParams
6670
- end
6671
-
6672
- class Twint < Stripe::RequestParams
6673
- end
6553
+ class Swish < Stripe::RequestParams; end
6554
+ class Twint < Stripe::RequestParams; end
6674
6555
 
6675
6556
  class UsBankAccount < Stripe::RequestParams
6676
6557
  # Account holder type: individual or company.
@@ -6699,11 +6580,8 @@ module Stripe
6699
6580
  end
6700
6581
  end
6701
6582
 
6702
- class WechatPay < Stripe::RequestParams
6703
- end
6704
-
6705
- class Zip < Stripe::RequestParams
6706
- end
6583
+ class WechatPay < Stripe::RequestParams; end
6584
+ class Zip < Stripe::RequestParams; end
6707
6585
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
6708
6586
  attr_accessor :acss_debit
6709
6587
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -7623,8 +7501,7 @@ module Stripe
7623
7501
  end
7624
7502
  end
7625
7503
 
7626
- class InteracPresent < Stripe::RequestParams
7627
- end
7504
+ class InteracPresent < Stripe::RequestParams; end
7628
7505
 
7629
7506
  class KakaoPay < Stripe::RequestParams
7630
7507
  # Controls when the funds are captured from the customer's account.
@@ -7882,8 +7759,7 @@ module Stripe
7882
7759
  end
7883
7760
  end
7884
7761
 
7885
- class PayByBank < Stripe::RequestParams
7886
- end
7762
+ class PayByBank < Stripe::RequestParams; end
7887
7763
 
7888
7764
  class Payco < Stripe::RequestParams
7889
7765
  # Controls when the funds are captured from the customer's account.
@@ -8025,6 +7901,19 @@ module Stripe
8025
7901
  end
8026
7902
  end
8027
7903
 
7904
+ class Satispay < Stripe::RequestParams
7905
+ # Controls when the funds are captured from the customer's account.
7906
+ #
7907
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
7908
+ #
7909
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
7910
+ attr_accessor :capture_method
7911
+
7912
+ def initialize(capture_method: nil)
7913
+ @capture_method = capture_method
7914
+ end
7915
+ end
7916
+
8028
7917
  class SepaDebit < Stripe::RequestParams
8029
7918
  class MandateOptions < Stripe::RequestParams
8030
7919
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -8320,6 +8209,8 @@ module Stripe
8320
8209
  attr_accessor :revolut_pay
8321
8210
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
8322
8211
  attr_accessor :samsung_pay
8212
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
8213
+ attr_accessor :satispay
8323
8214
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
8324
8215
  attr_accessor :sepa_debit
8325
8216
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
@@ -8377,6 +8268,7 @@ module Stripe
8377
8268
  promptpay: nil,
8378
8269
  revolut_pay: nil,
8379
8270
  samsung_pay: nil,
8271
+ satispay: nil,
8380
8272
  sepa_debit: nil,
8381
8273
  sofort: nil,
8382
8274
  swish: nil,
@@ -8426,6 +8318,7 @@ module Stripe
8426
8318
  @promptpay = promptpay
8427
8319
  @revolut_pay = revolut_pay
8428
8320
  @samsung_pay = samsung_pay
8321
+ @satispay = satispay
8429
8322
  @sepa_debit = sepa_debit
8430
8323
  @sofort = sofort
8431
8324
  @swish = swish
@@ -8512,6 +8405,7 @@ module Stripe
8512
8405
  # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
8513
8406
  attr_accessor :off_session
8514
8407
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
8408
+ # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent.
8515
8409
  attr_accessor :payment_method
8516
8410
  # If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
8517
8411
  # in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
@@ -8758,11 +8652,11 @@ module Stripe
8758
8652
  )
8759
8653
  end
8760
8654
 
8761
- # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
8655
+ # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
8762
8656
  #
8763
8657
  # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
8764
8658
  #
8765
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
8659
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
8766
8660
  def cancel(params = {}, opts = {})
8767
8661
  request_stripe_object(
8768
8662
  method: :post,
@@ -8772,11 +8666,11 @@ module Stripe
8772
8666
  )
8773
8667
  end
8774
8668
 
8775
- # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
8669
+ # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
8776
8670
  #
8777
8671
  # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
8778
8672
  #
8779
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
8673
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
8780
8674
  def self.cancel(intent, params = {}, opts = {})
8781
8675
  request_stripe_object(
8782
8676
  method: :post,
@@ -8790,7 +8684,7 @@ module Stripe
8790
8684
  #
8791
8685
  # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
8792
8686
  #
8793
- # Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
8687
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
8794
8688
  def capture(params = {}, opts = {})
8795
8689
  request_stripe_object(
8796
8690
  method: :post,
@@ -8804,7 +8698,7 @@ module Stripe
8804
8698
  #
8805
8699
  # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
8806
8700
  #
8807
- # Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
8701
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
8808
8702
  def self.capture(intent, params = {}, opts = {})
8809
8703
  request_stripe_object(
8810
8704
  method: :post,
@@ -8825,8 +8719,8 @@ module Stripe
8825
8719
  # payment succeeds, the PaymentIntent will transition to the succeeded
8826
8720
  # status (or requires_capture, if capture_method is set to manual).
8827
8721
  # If the confirmation_method is automatic, payment may be attempted
8828
- # using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
8829
- # and the PaymentIntent's [client_secret](https://stripe.com/docs/api#payment_intent_object-client_secret).
8722
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
8723
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
8830
8724
  # After next_actions are handled by the client, no additional
8831
8725
  # confirmation is required to complete the payment.
8832
8726
  # If the confirmation_method is manual, all payment attempts must be
@@ -8859,8 +8753,8 @@ module Stripe
8859
8753
  # payment succeeds, the PaymentIntent will transition to the succeeded
8860
8754
  # status (or requires_capture, if capture_method is set to manual).
8861
8755
  # If the confirmation_method is automatic, payment may be attempted
8862
- # using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
8863
- # and the PaymentIntent's [client_secret](https://stripe.com/docs/api#payment_intent_object-client_secret).
8756
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
8757
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
8864
8758
  # After next_actions are handled by the client, no additional
8865
8759
  # confirmation is required to complete the payment.
8866
8760
  # If the confirmation_method is manual, all payment attempts must be
@@ -8884,22 +8778,22 @@ module Stripe
8884
8778
 
8885
8779
  # Creates a PaymentIntent object.
8886
8780
  #
8887
- # After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
8781
+ # After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
8888
8782
  # to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
8889
8783
  # with the Payment Intents API.
8890
8784
  #
8891
8785
  # When you use confirm=true during creation, it's equivalent to creating
8892
8786
  # and confirming the PaymentIntent in the same call. You can use any parameters
8893
- # available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
8787
+ # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
8894
8788
  # confirm=true.
8895
8789
  def self.create(params = {}, opts = {})
8896
8790
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
8897
8791
  end
8898
8792
 
8899
8793
  # Perform an incremental authorization on an eligible
8900
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
8794
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
8901
8795
  # PaymentIntent's status must be requires_capture and
8902
- # [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
8796
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
8903
8797
  # must be true.
8904
8798
  #
8905
8799
  # Incremental authorizations attempt to increase the authorized amount on
@@ -8910,16 +8804,16 @@ module Stripe
8910
8804
  #
8911
8805
  # If the incremental authorization succeeds, the PaymentIntent object
8912
8806
  # returns with the updated
8913
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
8807
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
8914
8808
  # If the incremental authorization fails, a
8915
- # [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
8809
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
8916
8810
  # fields on the PaymentIntent or Charge update. The PaymentIntent
8917
8811
  # object remains capturable for the previously authorized amount.
8918
8812
  #
8919
8813
  # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
8920
8814
  # After it's captured, a PaymentIntent can no longer be incremented.
8921
8815
  #
8922
- # Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
8816
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
8923
8817
  def increment_authorization(params = {}, opts = {})
8924
8818
  request_stripe_object(
8925
8819
  method: :post,
@@ -8930,9 +8824,9 @@ module Stripe
8930
8824
  end
8931
8825
 
8932
8826
  # Perform an incremental authorization on an eligible
8933
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
8827
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
8934
8828
  # PaymentIntent's status must be requires_capture and
8935
- # [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
8829
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
8936
8830
  # must be true.
8937
8831
  #
8938
8832
  # Incremental authorizations attempt to increase the authorized amount on
@@ -8943,16 +8837,16 @@ module Stripe
8943
8837
  #
8944
8838
  # If the incremental authorization succeeds, the PaymentIntent object
8945
8839
  # returns with the updated
8946
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
8840
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
8947
8841
  # If the incremental authorization fails, a
8948
- # [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
8842
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
8949
8843
  # fields on the PaymentIntent or Charge update. The PaymentIntent
8950
8844
  # object remains capturable for the previously authorized amount.
8951
8845
  #
8952
8846
  # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
8953
8847
  # After it's captured, a PaymentIntent can no longer be incremented.
8954
8848
  #
8955
- # Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
8849
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
8956
8850
  def self.increment_authorization(intent, params = {}, opts = {})
8957
8851
  request_stripe_object(
8958
8852
  method: :post,
@@ -8986,7 +8880,7 @@ module Stripe
8986
8880
  # PaymentIntent again. For example, updating the payment_method
8987
8881
  # always requires you to confirm the PaymentIntent again. If you prefer to
8988
8882
  # update and confirm at the same time, we recommend updating properties through
8989
- # the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
8883
+ # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
8990
8884
  def self.update(intent, params = {}, opts = {})
8991
8885
  request_stripe_object(
8992
8886
  method: :post,