stripe 15.3.0.pre.beta.1 → 15.3.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 (600) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +683 -1581
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +14 -50
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +0 -28
  8. data/lib/stripe/api_version.rb +2 -1
  9. data/lib/stripe/errors.rb +0 -54
  10. data/lib/stripe/event_types.rb +0 -98
  11. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
  12. data/lib/stripe/object_types.rb +0 -50
  13. data/lib/stripe/resources/account.rb +82 -650
  14. data/lib/stripe/resources/account_session.rb +80 -335
  15. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  16. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
  17. data/lib/stripe/resources/billing/credit_grant.rb +0 -10
  18. data/lib/stripe/resources/billing_portal/session.rb +2 -8
  19. data/lib/stripe/resources/card.rb +0 -2
  20. data/lib/stripe/resources/cash_balance.rb +0 -2
  21. data/lib/stripe/resources/charge.rb +28 -1553
  22. data/lib/stripe/resources/checkout/session.rb +55 -333
  23. data/lib/stripe/resources/confirmation_token.rb +19 -181
  24. data/lib/stripe/resources/coupon.rb +1 -30
  25. data/lib/stripe/resources/credit_note.rb +9 -15
  26. data/lib/stripe/resources/credit_note_line_item.rb +0 -9
  27. data/lib/stripe/resources/customer.rb +0 -2
  28. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  29. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  30. data/lib/stripe/resources/customer_session.rb +3 -8
  31. data/lib/stripe/resources/discount.rb +0 -2
  32. data/lib/stripe/resources/event.rb +1 -32
  33. data/lib/stripe/resources/financial_connections/account.rb +1 -22
  34. data/lib/stripe/resources/financial_connections/session.rb +2 -62
  35. data/lib/stripe/resources/identity/verification_session.rb +34 -10
  36. data/lib/stripe/resources/invoice.rb +33 -1062
  37. data/lib/stripe/resources/invoice_item.rb +3 -82
  38. data/lib/stripe/resources/invoice_line_item.rb +1 -55
  39. data/lib/stripe/resources/invoice_payment.rb +53 -2
  40. data/lib/stripe/resources/issuing/cardholder.rb +1 -2
  41. data/lib/stripe/resources/issuing/transaction.rb +0 -6
  42. data/lib/stripe/resources/line_item.rb +0 -37
  43. data/lib/stripe/resources/mandate.rb +3 -24
  44. data/lib/stripe/resources/payment_intent.rb +875 -5512
  45. data/lib/stripe/resources/payment_method.rb +18 -201
  46. data/lib/stripe/resources/payment_method_configuration.rb +0 -295
  47. data/lib/stripe/resources/payout.rb +0 -6
  48. data/lib/stripe/resources/price.rb +0 -30
  49. data/lib/stripe/resources/promotion_code.rb +0 -10
  50. data/lib/stripe/resources/quote.rb +16 -2033
  51. data/lib/stripe/resources/refund.rb +0 -9
  52. data/lib/stripe/resources/setup_attempt.rb +1 -22
  53. data/lib/stripe/resources/setup_intent.rb +294 -581
  54. data/lib/stripe/resources/source.rb +0 -29
  55. data/lib/stripe/resources/subscription.rb +36 -298
  56. data/lib/stripe/resources/subscription_item.rb +3 -84
  57. data/lib/stripe/resources/subscription_schedule.rb +27 -1008
  58. data/lib/stripe/resources/tax/registration.rb +20 -0
  59. data/lib/stripe/resources/tax_id.rb +2 -12
  60. data/lib/stripe/resources/terminal/configuration.rb +1 -0
  61. data/lib/stripe/resources/terminal/reader.rb +10 -18
  62. data/lib/stripe/resources/token.rb +1 -1
  63. data/lib/stripe/resources/transfer.rb +0 -6
  64. data/lib/stripe/resources/treasury/financial_account.rb +8 -23
  65. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  66. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
  67. data/lib/stripe/resources/treasury/received_credit.rb +1 -38
  68. data/lib/stripe/resources/treasury/received_debit.rb +1 -40
  69. data/lib/stripe/resources.rb +0 -104
  70. data/lib/stripe/services/account_service.rb +76 -559
  71. data/lib/stripe/services/account_session_service.rb +49 -274
  72. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
  73. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
  74. data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
  75. data/lib/stripe/services/billing_portal/session_service.rb +1 -5
  76. data/lib/stripe/services/charge_service.rb +0 -1418
  77. data/lib/stripe/services/checkout/session_service.rb +55 -250
  78. data/lib/stripe/services/coupon_service.rb +1 -17
  79. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  80. data/lib/stripe/services/credit_note_service.rb +6 -10
  81. data/lib/stripe/services/customer_session_service.rb +2 -5
  82. data/lib/stripe/services/financial_connections/account_service.rb +2 -7
  83. data/lib/stripe/services/financial_connections/session_service.rb +2 -34
  84. data/lib/stripe/services/financial_connections_service.rb +1 -2
  85. data/lib/stripe/services/identity/verification_session_service.rb +16 -8
  86. data/lib/stripe/services/invoice_item_service.rb +2 -74
  87. data/lib/stripe/services/invoice_line_item_service.rb +1 -33
  88. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  89. data/lib/stripe/services/invoice_service.rb +33 -1013
  90. data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
  91. data/lib/stripe/services/issuing/transaction_service.rb +0 -4
  92. data/lib/stripe/services/issuing_service.rb +1 -5
  93. data/lib/stripe/services/payment_intent_service.rb +650 -4832
  94. data/lib/stripe/services/payment_method_configuration_service.rb +0 -210
  95. data/lib/stripe/services/payment_method_service.rb +6 -120
  96. data/lib/stripe/services/payout_service.rb +0 -4
  97. data/lib/stripe/services/price_service.rb +0 -19
  98. data/lib/stripe/services/promotion_code_service.rb +0 -8
  99. data/lib/stripe/services/quote_service.rb +13 -1719
  100. data/lib/stripe/services/setup_intent_service.rb +284 -540
  101. data/lib/stripe/services/subscription_item_service.rb +3 -75
  102. data/lib/stripe/services/subscription_schedule_service.rb +19 -911
  103. data/lib/stripe/services/subscription_service.rb +30 -253
  104. data/lib/stripe/services/tax/registration_service.rb +13 -0
  105. data/lib/stripe/services/tax_id_service.rb +2 -8
  106. data/lib/stripe/services/tax_service.rb +1 -3
  107. data/lib/stripe/services/terminal/reader_service.rb +4 -4
  108. data/lib/stripe/services/terminal_service.rb +1 -2
  109. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -98
  110. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
  111. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
  112. data/lib/stripe/services/token_service.rb +1 -1
  113. data/lib/stripe/services/transfer_service.rb +0 -4
  114. data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
  115. data/lib/stripe/services/treasury/financial_account_service.rb +7 -17
  116. data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
  117. data/lib/stripe/services/v1_services.rb +2 -11
  118. data/lib/stripe/services/v2/billing_service.rb +2 -2
  119. data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
  120. data/lib/stripe/services/v2/core_service.rb +1 -4
  121. data/lib/stripe/services/v2_services.rb +2 -5
  122. data/lib/stripe/services.rb +1 -53
  123. data/lib/stripe/stripe_configuration.rb +1 -3
  124. data/lib/stripe/stripe_object.rb +1 -1
  125. data/lib/stripe/util.rb +1 -7
  126. data/lib/stripe/version.rb +1 -1
  127. data/lib/stripe/webhook.rb +1 -1
  128. data/lib/stripe.rb +0 -53
  129. data/rbi/stripe/resources/account.rbi +4995 -0
  130. data/rbi/stripe/resources/account_link.rbi +74 -0
  131. data/rbi/stripe/resources/account_session.rbi +1013 -0
  132. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  133. data/rbi/stripe/resources/application.rbi +20 -0
  134. data/rbi/stripe/resources/application_fee.rbi +118 -0
  135. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  136. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  137. data/rbi/stripe/resources/balance.rbi +235 -0
  138. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  139. data/rbi/stripe/resources/bank_account.rbi +127 -0
  140. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  141. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  142. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  143. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  144. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  145. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  146. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  147. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  148. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  149. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  150. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  151. data/rbi/stripe/resources/capability.rbi +125 -0
  152. data/rbi/stripe/resources/card.rbi +125 -0
  153. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  154. data/rbi/stripe/resources/charge.rbi +2086 -0
  155. data/rbi/stripe/resources/checkout/session.rbi +4060 -0
  156. data/rbi/stripe/resources/climate/order.rbi +245 -0
  157. data/rbi/stripe/resources/climate/product.rbi +75 -0
  158. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  159. data/rbi/stripe/resources/confirmation_token.rbi +1818 -0
  160. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  161. data/rbi/stripe/resources/country_spec.rbi +85 -0
  162. data/rbi/stripe/resources/coupon.rbi +250 -0
  163. data/rbi/stripe/resources/credit_note.rbi +752 -0
  164. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  165. data/rbi/stripe/resources/customer.rbi +1005 -0
  166. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  167. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  168. data/rbi/stripe/resources/customer_session.rbi +200 -0
  169. data/rbi/stripe/resources/discount.rbi +53 -0
  170. data/rbi/stripe/resources/dispute.rbi +761 -0
  171. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  172. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  173. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  174. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  175. data/rbi/stripe/resources/event.rbi +149 -0
  176. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  177. data/rbi/stripe/resources/file.rbi +143 -0
  178. data/rbi/stripe/resources/file_link.rbi +141 -0
  179. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  180. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  181. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  182. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  183. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  184. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  185. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  186. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  187. data/rbi/stripe/resources/identity/verification_session.rbi +564 -0
  188. data/rbi/stripe/resources/invoice.rbi +3842 -0
  189. data/rbi/stripe/resources/invoice_item.rbi +470 -0
  190. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  191. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  192. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  193. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  194. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  195. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  196. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  197. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  198. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  199. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  200. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  201. data/rbi/stripe/resources/line_item.rbi +72 -0
  202. data/rbi/stripe/resources/login_link.rbi +19 -0
  203. data/rbi/stripe/resources/mandate.rbi +191 -0
  204. data/rbi/stripe/resources/payment_intent.rbi +9987 -0
  205. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  206. data/rbi/stripe/resources/payment_method.rbi +1770 -0
  207. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  208. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  209. data/rbi/stripe/resources/payout.rbi +300 -0
  210. data/rbi/stripe/resources/person.rbi +401 -0
  211. data/rbi/stripe/resources/plan.rbi +371 -0
  212. data/rbi/stripe/resources/price.rbi +694 -0
  213. data/rbi/stripe/resources/product.rbi +555 -0
  214. data/rbi/stripe/resources/product_feature.rbi +26 -0
  215. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  216. data/rbi/stripe/resources/quote.rbi +1145 -0
  217. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  218. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  219. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  220. data/rbi/stripe/resources/refund.rbi +523 -0
  221. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  222. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  223. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  224. data/rbi/stripe/resources/reversal.rbi +51 -0
  225. data/rbi/stripe/resources/review.rbi +154 -0
  226. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  227. data/rbi/stripe/resources/setup_intent.rbi +3978 -0
  228. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  229. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  230. data/rbi/stripe/resources/source.rbi +1496 -0
  231. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  232. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  233. data/rbi/stripe/resources/subscription.rbi +2080 -0
  234. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  235. data/rbi/stripe/resources/subscription_schedule.rbi +1645 -0
  236. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  237. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  238. data/rbi/stripe/resources/tax/registration.rbi +2732 -0
  239. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  240. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  241. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  242. data/rbi/stripe/resources/tax_code.rbi +44 -0
  243. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  244. data/rbi/stripe/resources/tax_id.rbi +165 -0
  245. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  246. data/rbi/stripe/resources/terminal/configuration.rbi +1387 -0
  247. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  248. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  249. data/rbi/stripe/resources/terminal/reader.rbi +994 -0
  250. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  251. data/rbi/stripe/resources/token.rbi +1283 -0
  252. data/rbi/stripe/resources/topup.rbi +222 -0
  253. data/rbi/stripe/resources/transfer.rbi +199 -0
  254. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  255. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  256. data/rbi/stripe/resources/treasury/financial_account.rbi +869 -0
  257. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  258. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  259. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  260. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  261. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  262. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  263. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  264. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  265. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  266. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  267. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  268. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  269. data/rbi/stripe/resources/v2/event.rbi +48 -0
  270. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  271. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  272. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  273. data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +122 -135
  274. data/rbi/stripe/services/account_link_service.rbi +58 -0
  275. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  276. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  277. data/rbi/stripe/services/account_service.rbi +4281 -0
  278. data/rbi/stripe/services/account_session_service.rbi +646 -0
  279. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  280. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  281. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  282. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  283. data/rbi/stripe/services/apps_service.rbi +9 -0
  284. data/rbi/stripe/services/balance_service.rbi +21 -0
  285. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  286. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  287. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  288. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  289. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  290. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  291. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  292. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  293. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  294. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  295. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  296. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  297. data/rbi/stripe/services/billing_service.rbi +15 -0
  298. data/rbi/stripe/services/charge_service.rbi +448 -0
  299. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  300. data/rbi/stripe/services/checkout/session_service.rbi +2670 -0
  301. data/rbi/stripe/services/checkout_service.rbi +9 -0
  302. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  303. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  304. data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
  305. data/rbi/stripe/services/climate_service.rbi +11 -0
  306. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  307. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  308. data/rbi/stripe/services/coupon_service.rbi +194 -0
  309. data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
  310. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  311. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  312. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  313. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  314. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  315. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  316. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  317. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  318. data/rbi/stripe/services/customer_service.rbi +647 -0
  319. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  320. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  321. data/rbi/stripe/services/dispute_service.rbi +424 -0
  322. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  323. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  324. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  325. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  326. data/rbi/stripe/services/event_service.rbi +83 -0
  327. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  328. data/rbi/stripe/services/file_link_service.rbi +124 -0
  329. data/rbi/stripe/services/file_service.rbi +116 -0
  330. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  331. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  332. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  333. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  334. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  335. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  336. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  337. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  338. data/rbi/stripe/services/identity/verification_session_service.rbi +339 -0
  339. data/rbi/stripe/services/identity_service.rbi +10 -0
  340. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  341. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  342. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  343. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  344. data/rbi/stripe/services/invoice_service.rbi +3011 -0
  345. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  346. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  347. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  348. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  349. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  350. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  351. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  352. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  353. data/rbi/stripe/services/issuing_service.rbi +16 -0
  354. data/rbi/stripe/services/mandate_service.rbi +20 -0
  355. data/rbi/stripe/services/payment_intent_service.rbi +7989 -0
  356. data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
  357. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  358. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  359. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  360. data/rbi/stripe/services/payment_method_service.rbi +781 -0
  361. data/rbi/stripe/services/payout_service.rbi +205 -0
  362. data/rbi/stripe/services/plan_service.rbi +282 -0
  363. data/rbi/stripe/services/price_service.rbi +546 -0
  364. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  365. data/rbi/stripe/services/product_service.rbi +477 -0
  366. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  367. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  368. data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
  369. data/rbi/stripe/services/quote_service.rbi +699 -0
  370. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  371. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  372. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  373. data/rbi/stripe/services/radar_service.rbi +11 -0
  374. data/rbi/stripe/services/refund_service.rbi +185 -0
  375. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  376. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  377. data/rbi/stripe/services/reporting_service.rbi +10 -0
  378. data/rbi/stripe/services/review_service.rbi +84 -0
  379. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  380. data/rbi/stripe/services/setup_intent_service.rbi +3709 -0
  381. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  382. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  383. data/rbi/stripe/services/sigma_service.rbi +9 -0
  384. data/rbi/stripe/services/source_service.rbi +663 -0
  385. data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
  386. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  387. data/rbi/stripe/services/subscription_schedule_service.rbi +1301 -0
  388. data/rbi/stripe/services/subscription_service.rbi +1684 -0
  389. data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/calculation_line_item_service.rbi} +17 -21
  390. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  391. data/rbi/stripe/services/tax/registration_service.rbi +1858 -0
  392. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  393. data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
  394. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  395. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  396. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  397. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  398. data/rbi/stripe/services/tax_service.rbi +12 -0
  399. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  400. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  401. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  402. data/rbi/stripe/services/terminal/reader_service.rbi +540 -0
  403. data/rbi/stripe/services/terminal_service.rbi +12 -0
  404. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  405. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  406. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  407. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  408. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  409. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  410. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  411. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  412. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  413. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  414. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  415. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  416. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  417. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  418. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  419. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  420. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  421. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  422. data/rbi/stripe/services/token_service.rbi +1257 -0
  423. data/rbi/stripe/services/topup_service.rbi +176 -0
  424. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  425. data/rbi/stripe/services/transfer_service.rbi +152 -0
  426. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  427. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  428. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  429. data/rbi/stripe/services/treasury/financial_account_service.rbi +566 -0
  430. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  431. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  432. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  433. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  434. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  435. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  436. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  437. data/rbi/stripe/services/treasury_service.rbi +18 -0
  438. data/rbi/stripe/services/v1_services.rbi +77 -0
  439. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  440. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  441. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  442. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  443. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  444. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  445. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  446. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  447. data/rbi/stripe/services/v2_services.rbi +10 -0
  448. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  449. data/stripe.gemspec +1 -4
  450. metadata +326 -162
  451. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
  452. data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
  453. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
  454. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
  455. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
  456. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
  457. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
  458. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
  459. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
  460. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
  461. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
  462. data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
  463. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
  464. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
  465. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
  466. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
  467. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
  468. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
  469. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
  470. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
  471. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
  472. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
  473. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
  474. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
  475. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
  476. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
  477. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
  478. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
  479. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
  480. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
  481. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
  482. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
  483. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
  484. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
  485. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
  486. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
  487. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
  488. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
  489. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
  490. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
  491. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
  492. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
  493. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
  494. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
  495. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
  496. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
  497. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
  498. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
  499. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
  500. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
  501. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +0 -21
  502. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
  503. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -21
  504. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
  505. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
  506. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
  507. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
  508. data/lib/stripe/resources/account_notice.rb +0 -123
  509. data/lib/stripe/resources/balance_settings.rb +0 -105
  510. data/lib/stripe/resources/capital/financing_offer.rb +0 -179
  511. data/lib/stripe/resources/capital/financing_summary.rb +0 -55
  512. data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
  513. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  514. data/lib/stripe/resources/financial_connections/institution.rb +0 -92
  515. data/lib/stripe/resources/fx_quote.rb +0 -184
  516. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
  517. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
  518. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
  519. data/lib/stripe/resources/issuing/settlement.rb +0 -53
  520. data/lib/stripe/resources/margin.rb +0 -115
  521. data/lib/stripe/resources/order.rb +0 -2806
  522. data/lib/stripe/resources/payment_attempt_record.rb +0 -1086
  523. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
  524. data/lib/stripe/resources/payment_record.rb +0 -1615
  525. data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
  526. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
  527. data/lib/stripe/resources/quote_line.rb +0 -274
  528. data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
  529. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -364
  530. data/lib/stripe/resources/tax/association.rb +0 -66
  531. data/lib/stripe/resources/tax/form.rb +0 -211
  532. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
  533. data/lib/stripe/resources/v2/core/account.rb +0 -1746
  534. data/lib/stripe/resources/v2/core/account_link.rb +0 -56
  535. data/lib/stripe/resources/v2/core/person.rb +0 -276
  536. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
  537. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
  538. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
  539. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
  540. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
  541. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -58
  542. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
  543. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
  544. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
  545. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
  546. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
  547. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
  548. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -75
  549. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
  550. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -116
  551. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
  552. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -78
  553. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -68
  554. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -74
  555. data/lib/stripe/services/account_notice_service.rb +0 -101
  556. data/lib/stripe/services/balance_settings_service.rb +0 -96
  557. data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
  558. data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
  559. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
  560. data/lib/stripe/services/capital_service.rb +0 -15
  561. data/lib/stripe/services/fx_quote_service.rb +0 -123
  562. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
  563. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
  564. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
  565. data/lib/stripe/services/margin_service.rb +0 -119
  566. data/lib/stripe/services/order_service.rb +0 -2236
  567. data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
  568. data/lib/stripe/services/payment_record_service.rb +0 -542
  569. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
  570. data/lib/stripe/services/privacy_service.rb +0 -13
  571. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
  572. data/lib/stripe/services/tax/association_service.rb +0 -31
  573. data/lib/stripe/services/tax/form_service.rb +0 -100
  574. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
  575. data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
  576. data/lib/stripe/services/v2/core/account_service.rb +0 -4138
  577. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1046
  578. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -131
  579. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
  580. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  581. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
  582. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -43
  583. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
  584. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
  585. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
  586. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -200
  587. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
  588. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
  589. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -91
  590. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
  591. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
  592. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
  593. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
  594. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
  595. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  596. data/lib/stripe/services/v2/payment_service.rb +0 -15
  597. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -138
  598. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  599. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -49
  600. data/rbi/stripe.rbi +0 -191639
@@ -29,8 +29,6 @@ module Stripe
29
29
  attr_accessor :created
30
30
  # Only return SetupIntents for the customer specified by this customer ID.
31
31
  attr_accessor :customer
32
- # Only return SetupIntents for the account specified by this customer ID.
33
- attr_accessor :customer_account
34
32
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
35
33
  attr_accessor :ending_before
36
34
  # Specifies which fields in the response should be expanded.
@@ -46,7 +44,6 @@ module Stripe
46
44
  attach_to_self: nil,
47
45
  created: nil,
48
46
  customer: nil,
49
- customer_account: nil,
50
47
  ending_before: nil,
51
48
  expand: nil,
52
49
  limit: nil,
@@ -56,7 +53,6 @@ module Stripe
56
53
  @attach_to_self = attach_to_self
57
54
  @created = created
58
55
  @customer = customer
59
- @customer_account = customer_account
60
56
  @ending_before = ending_before
61
57
  @expand = expand
62
58
  @limit = limit
@@ -231,6 +227,7 @@ module Stripe
231
227
  end
232
228
 
233
229
  class Cashapp < Stripe::RequestParams; end
230
+ class Crypto < Stripe::RequestParams; end
234
231
  class CustomerBalance < Stripe::RequestParams; end
235
232
 
236
233
  class Eps < Stripe::RequestParams
@@ -255,18 +252,8 @@ module Stripe
255
252
  end
256
253
 
257
254
  class Giropay < Stripe::RequestParams; end
258
- class Gopay < Stripe::RequestParams; end
259
255
  class Grabpay < Stripe::RequestParams; end
260
256
 
261
- class IdBankTransfer < Stripe::RequestParams
262
- # Bank where the account is held.
263
- attr_accessor :bank
264
-
265
- def initialize(bank: nil)
266
- @bank = bank
267
- end
268
- end
269
-
270
257
  class Ideal < Stripe::RequestParams
271
258
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
272
259
  attr_accessor :bank
@@ -305,7 +292,6 @@ module Stripe
305
292
  class Konbini < Stripe::RequestParams; end
306
293
  class KrCard < Stripe::RequestParams; end
307
294
  class Link < Stripe::RequestParams; end
308
- class MbWay < Stripe::RequestParams; end
309
295
  class Mobilepay < Stripe::RequestParams; end
310
296
  class Multibanco < Stripe::RequestParams; end
311
297
 
@@ -364,25 +350,8 @@ module Stripe
364
350
  class Payco < Stripe::RequestParams; end
365
351
  class Paynow < Stripe::RequestParams; end
366
352
  class Paypal < Stripe::RequestParams; end
367
-
368
- class Payto < Stripe::RequestParams
369
- # The account number for the bank account.
370
- attr_accessor :account_number
371
- # Bank-State-Branch number of the bank account.
372
- attr_accessor :bsb_number
373
- # The PayID alias for the bank account.
374
- attr_accessor :pay_id
375
-
376
- def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
377
- @account_number = account_number
378
- @bsb_number = bsb_number
379
- @pay_id = pay_id
380
- end
381
- end
382
-
383
353
  class Pix < Stripe::RequestParams; end
384
354
  class Promptpay < Stripe::RequestParams; end
385
- class Qris < Stripe::RequestParams; end
386
355
 
387
356
  class RadarOptions < Stripe::RequestParams
388
357
  # 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.
@@ -393,29 +362,6 @@ module Stripe
393
362
  end
394
363
  end
395
364
 
396
- class Rechnung < Stripe::RequestParams
397
- class Dob < Stripe::RequestParams
398
- # The day of birth, between 1 and 31.
399
- attr_accessor :day
400
- # The month of birth, between 1 and 12.
401
- attr_accessor :month
402
- # The four-digit year of birth.
403
- attr_accessor :year
404
-
405
- def initialize(day: nil, month: nil, year: nil)
406
- @day = day
407
- @month = month
408
- @year = year
409
- end
410
- end
411
- # Customer's date of birth
412
- attr_accessor :dob
413
-
414
- def initialize(dob: nil)
415
- @dob = dob
416
- end
417
- end
418
-
419
365
  class RevolutPay < Stripe::RequestParams; end
420
366
  class SamsungPay < Stripe::RequestParams; end
421
367
  class Satispay < Stripe::RequestParams; end
@@ -429,8 +375,6 @@ module Stripe
429
375
  end
430
376
  end
431
377
 
432
- class Shopeepay < Stripe::RequestParams; end
433
-
434
378
  class Sofort < Stripe::RequestParams
435
379
  # Two-letter ISO code representing the country the bank account is located in.
436
380
  attr_accessor :country
@@ -440,18 +384,6 @@ module Stripe
440
384
  end
441
385
  end
442
386
 
443
- class StripeBalance < Stripe::RequestParams
444
- # The connected account ID whose Stripe balance to use as the source of payment
445
- attr_accessor :account
446
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
447
- attr_accessor :source_type
448
-
449
- def initialize(account: nil, source_type: nil)
450
- @account = account
451
- @source_type = source_type
452
- end
453
- end
454
-
455
387
  class Swish < Stripe::RequestParams; end
456
388
  class Twint < Stripe::RequestParams; end
457
389
 
@@ -514,6 +446,8 @@ module Stripe
514
446
  attr_accessor :boleto
515
447
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
516
448
  attr_accessor :cashapp
449
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
450
+ attr_accessor :crypto
517
451
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
518
452
  attr_accessor :customer_balance
519
453
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
@@ -522,12 +456,8 @@ module Stripe
522
456
  attr_accessor :fpx
523
457
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
524
458
  attr_accessor :giropay
525
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
526
- attr_accessor :gopay
527
459
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
528
460
  attr_accessor :grabpay
529
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
530
- attr_accessor :id_bank_transfer
531
461
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
532
462
  attr_accessor :ideal
533
463
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -542,8 +472,6 @@ module Stripe
542
472
  attr_accessor :kr_card
543
473
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
544
474
  attr_accessor :link
545
- # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
546
- attr_accessor :mb_way
547
475
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
548
476
  attr_accessor :metadata
549
477
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -566,18 +494,12 @@ module Stripe
566
494
  attr_accessor :paynow
567
495
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
568
496
  attr_accessor :paypal
569
- # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
570
- attr_accessor :payto
571
497
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
572
498
  attr_accessor :pix
573
499
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
574
500
  attr_accessor :promptpay
575
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
576
- attr_accessor :qris
577
501
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
578
502
  attr_accessor :radar_options
579
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
580
- attr_accessor :rechnung
581
503
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
582
504
  attr_accessor :revolut_pay
583
505
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -586,12 +508,8 @@ module Stripe
586
508
  attr_accessor :satispay
587
509
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
588
510
  attr_accessor :sepa_debit
589
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
590
- attr_accessor :shopeepay
591
511
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
592
512
  attr_accessor :sofort
593
- # This hash contains details about the Stripe balance payment method.
594
- attr_accessor :stripe_balance
595
513
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
596
514
  attr_accessor :swish
597
515
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -621,13 +539,12 @@ module Stripe
621
539
  blik: nil,
622
540
  boleto: nil,
623
541
  cashapp: nil,
542
+ crypto: nil,
624
543
  customer_balance: nil,
625
544
  eps: nil,
626
545
  fpx: nil,
627
546
  giropay: nil,
628
- gopay: nil,
629
547
  grabpay: nil,
630
- id_bank_transfer: nil,
631
548
  ideal: nil,
632
549
  interac_present: nil,
633
550
  kakao_pay: nil,
@@ -635,7 +552,6 @@ module Stripe
635
552
  konbini: nil,
636
553
  kr_card: nil,
637
554
  link: nil,
638
- mb_way: nil,
639
555
  metadata: nil,
640
556
  mobilepay: nil,
641
557
  multibanco: nil,
@@ -647,19 +563,14 @@ module Stripe
647
563
  payco: nil,
648
564
  paynow: nil,
649
565
  paypal: nil,
650
- payto: nil,
651
566
  pix: nil,
652
567
  promptpay: nil,
653
- qris: nil,
654
568
  radar_options: nil,
655
- rechnung: nil,
656
569
  revolut_pay: nil,
657
570
  samsung_pay: nil,
658
571
  satispay: nil,
659
572
  sepa_debit: nil,
660
- shopeepay: nil,
661
573
  sofort: nil,
662
- stripe_balance: nil,
663
574
  swish: nil,
664
575
  twint: nil,
665
576
  type: nil,
@@ -682,13 +593,12 @@ module Stripe
682
593
  @blik = blik
683
594
  @boleto = boleto
684
595
  @cashapp = cashapp
596
+ @crypto = crypto
685
597
  @customer_balance = customer_balance
686
598
  @eps = eps
687
599
  @fpx = fpx
688
600
  @giropay = giropay
689
- @gopay = gopay
690
601
  @grabpay = grabpay
691
- @id_bank_transfer = id_bank_transfer
692
602
  @ideal = ideal
693
603
  @interac_present = interac_present
694
604
  @kakao_pay = kakao_pay
@@ -696,7 +606,6 @@ module Stripe
696
606
  @konbini = konbini
697
607
  @kr_card = kr_card
698
608
  @link = link
699
- @mb_way = mb_way
700
609
  @metadata = metadata
701
610
  @mobilepay = mobilepay
702
611
  @multibanco = multibanco
@@ -708,19 +617,14 @@ module Stripe
708
617
  @payco = payco
709
618
  @paynow = paynow
710
619
  @paypal = paypal
711
- @payto = payto
712
620
  @pix = pix
713
621
  @promptpay = promptpay
714
- @qris = qris
715
622
  @radar_options = radar_options
716
- @rechnung = rechnung
717
623
  @revolut_pay = revolut_pay
718
624
  @samsung_pay = samsung_pay
719
625
  @satispay = satispay
720
626
  @sepa_debit = sepa_debit
721
- @shopeepay = shopeepay
722
627
  @sofort = sofort
723
- @stripe_balance = stripe_balance
724
628
  @swish = swish
725
629
  @twint = twint
726
630
  @type = type
@@ -942,6 +846,88 @@ module Stripe
942
846
 
943
847
  class CardPresent < Stripe::RequestParams; end
944
848
 
849
+ class Klarna < Stripe::RequestParams
850
+ class OnDemand < Stripe::RequestParams
851
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
852
+ attr_accessor :average_amount
853
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
854
+ attr_accessor :maximum_amount
855
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
856
+ attr_accessor :minimum_amount
857
+ # Interval at which the customer is making purchases
858
+ attr_accessor :purchase_interval
859
+ # The number of `purchase_interval` between charges
860
+ attr_accessor :purchase_interval_count
861
+
862
+ def initialize(
863
+ average_amount: nil,
864
+ maximum_amount: nil,
865
+ minimum_amount: nil,
866
+ purchase_interval: nil,
867
+ purchase_interval_count: nil
868
+ )
869
+ @average_amount = average_amount
870
+ @maximum_amount = maximum_amount
871
+ @minimum_amount = minimum_amount
872
+ @purchase_interval = purchase_interval
873
+ @purchase_interval_count = purchase_interval_count
874
+ end
875
+ end
876
+
877
+ class Subscription < Stripe::RequestParams
878
+ class NextBilling < Stripe::RequestParams
879
+ # The amount of the next charge for the subscription.
880
+ attr_accessor :amount
881
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
882
+ attr_accessor :date
883
+
884
+ def initialize(amount: nil, date: nil)
885
+ @amount = amount
886
+ @date = date
887
+ end
888
+ end
889
+ # Unit of time between subscription charges.
890
+ attr_accessor :interval
891
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
892
+ attr_accessor :interval_count
893
+ # Name for subscription.
894
+ attr_accessor :name
895
+ # Describes the upcoming charge for this subscription.
896
+ attr_accessor :next_billing
897
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
898
+ attr_accessor :reference
899
+
900
+ def initialize(
901
+ interval: nil,
902
+ interval_count: nil,
903
+ name: nil,
904
+ next_billing: nil,
905
+ reference: nil
906
+ )
907
+ @interval = interval
908
+ @interval_count = interval_count
909
+ @name = name
910
+ @next_billing = next_billing
911
+ @reference = reference
912
+ end
913
+ end
914
+ # The currency of the SetupIntent. Three letter ISO currency code.
915
+ attr_accessor :currency
916
+ # On-demand details if setting up a payment method for on-demand payments.
917
+ attr_accessor :on_demand
918
+ # Preferred language of the Klarna authorization page that the customer is redirected to
919
+ attr_accessor :preferred_locale
920
+ # Subscription details if setting up or charging a subscription
921
+ attr_accessor :subscriptions
922
+
923
+ def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
924
+ @currency = currency
925
+ @on_demand = on_demand
926
+ @preferred_locale = preferred_locale
927
+ @subscriptions = subscriptions
928
+ end
929
+ end
930
+
945
931
  class Link < Stripe::RequestParams
946
932
  # [Deprecated] This is a legacy parameter that no longer has any function.
947
933
  attr_accessor :persistent_token
@@ -954,58 +940,9 @@ module Stripe
954
940
  class Paypal < Stripe::RequestParams
955
941
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
956
942
  attr_accessor :billing_agreement_id
957
- # Attribute for param field currency
958
- attr_accessor :currency
959
- # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
960
- attr_accessor :subsellers
961
943
 
962
- def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
944
+ def initialize(billing_agreement_id: nil)
963
945
  @billing_agreement_id = billing_agreement_id
964
- @currency = currency
965
- @subsellers = subsellers
966
- end
967
- end
968
-
969
- class Payto < Stripe::RequestParams
970
- class MandateOptions < Stripe::RequestParams
971
- # Amount that will be collected. It is required when `amount_type` is `fixed`.
972
- attr_accessor :amount
973
- # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
974
- attr_accessor :amount_type
975
- # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
976
- attr_accessor :end_date
977
- # The periodicity at which payments will be collected.
978
- attr_accessor :payment_schedule
979
- # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
980
- attr_accessor :payments_per_period
981
- # The purpose for which payments are made. Defaults to retail.
982
- attr_accessor :purpose
983
- # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
984
- attr_accessor :start_date
985
-
986
- def initialize(
987
- amount: nil,
988
- amount_type: nil,
989
- end_date: nil,
990
- payment_schedule: nil,
991
- payments_per_period: nil,
992
- purpose: nil,
993
- start_date: nil
994
- )
995
- @amount = amount
996
- @amount_type = amount_type
997
- @end_date = end_date
998
- @payment_schedule = payment_schedule
999
- @payments_per_period = payments_per_period
1000
- @purpose = purpose
1001
- @start_date = start_date
1002
- end
1003
- end
1004
- # Additional fields for Mandate creation.
1005
- attr_accessor :mandate_options
1006
-
1007
- def initialize(mandate_options: nil)
1008
- @mandate_options = mandate_options
1009
946
  end
1010
947
  end
1011
948
 
@@ -1031,27 +968,13 @@ module Stripe
1031
968
  class Filters < Stripe::RequestParams
1032
969
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1033
970
  attr_accessor :account_subcategories
1034
- # ID of the institution to use to filter for selectable accounts.
1035
- attr_accessor :institution
1036
971
 
1037
- def initialize(account_subcategories: nil, institution: nil)
972
+ def initialize(account_subcategories: nil)
1038
973
  @account_subcategories = account_subcategories
1039
- @institution = institution
1040
- end
1041
- end
1042
-
1043
- class ManualEntry < Stripe::RequestParams
1044
- # Settings for configuring manual entry of account details.
1045
- attr_accessor :mode
1046
-
1047
- def initialize(mode: nil)
1048
- @mode = mode
1049
974
  end
1050
975
  end
1051
976
  # Provide filters for the linked accounts that the customer can select for the payment method.
1052
977
  attr_accessor :filters
1053
- # Customize manual entry behavior
1054
- attr_accessor :manual_entry
1055
978
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1056
979
  attr_accessor :permissions
1057
980
  # List of data features that you would like to retrieve upon account creation.
@@ -1059,15 +982,8 @@ module Stripe
1059
982
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
1060
983
  attr_accessor :return_url
1061
984
 
1062
- def initialize(
1063
- filters: nil,
1064
- manual_entry: nil,
1065
- permissions: nil,
1066
- prefetch: nil,
1067
- return_url: nil
1068
- )
985
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
1069
986
  @filters = filters
1070
- @manual_entry = manual_entry
1071
987
  @permissions = permissions
1072
988
  @prefetch = prefetch
1073
989
  @return_url = return_url
@@ -1122,12 +1038,12 @@ module Stripe
1122
1038
  attr_accessor :card
1123
1039
  # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
1124
1040
  attr_accessor :card_present
1041
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
1042
+ attr_accessor :klarna
1125
1043
  # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1126
1044
  attr_accessor :link
1127
1045
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1128
1046
  attr_accessor :paypal
1129
- # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1130
- attr_accessor :payto
1131
1047
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1132
1048
  attr_accessor :sepa_debit
1133
1049
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -1139,9 +1055,9 @@ module Stripe
1139
1055
  bacs_debit: nil,
1140
1056
  card: nil,
1141
1057
  card_present: nil,
1058
+ klarna: nil,
1142
1059
  link: nil,
1143
1060
  paypal: nil,
1144
- payto: nil,
1145
1061
  sepa_debit: nil,
1146
1062
  us_bank_account: nil
1147
1063
  )
@@ -1150,9 +1066,9 @@ module Stripe
1150
1066
  @bacs_debit = bacs_debit
1151
1067
  @card = card
1152
1068
  @card_present = card_present
1069
+ @klarna = klarna
1153
1070
  @link = link
1154
1071
  @paypal = paypal
1155
- @payto = payto
1156
1072
  @sepa_debit = sepa_debit
1157
1073
  @us_bank_account = us_bank_account
1158
1074
  end
@@ -1185,10 +1101,6 @@ module Stripe
1185
1101
  #
1186
1102
  # If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
1187
1103
  attr_accessor :customer
1188
- # ID of the Account this SetupIntent belongs to, if one exists.
1189
- #
1190
- # If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
1191
- attr_accessor :customer_account
1192
1104
  # An arbitrary string attached to the object. Often useful for displaying to users.
1193
1105
  attr_accessor :description
1194
1106
  # Specifies which fields in the response should be expanded.
@@ -1212,7 +1124,7 @@ module Stripe
1212
1124
  attr_accessor :payment_method_data
1213
1125
  # Payment method-specific configuration for this SetupIntent.
1214
1126
  attr_accessor :payment_method_options
1215
- # The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
1127
+ # The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
1216
1128
  attr_accessor :payment_method_types
1217
1129
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
1218
1130
  attr_accessor :return_url
@@ -1231,7 +1143,6 @@ module Stripe
1231
1143
  confirm: nil,
1232
1144
  confirmation_token: nil,
1233
1145
  customer: nil,
1234
- customer_account: nil,
1235
1146
  description: nil,
1236
1147
  expand: nil,
1237
1148
  flow_directions: nil,
@@ -1253,7 +1164,6 @@ module Stripe
1253
1164
  @confirm = confirm
1254
1165
  @confirmation_token = confirmation_token
1255
1166
  @customer = customer
1256
- @customer_account = customer_account
1257
1167
  @description = description
1258
1168
  @expand = expand
1259
1169
  @flow_directions = flow_directions
@@ -1397,6 +1307,7 @@ module Stripe
1397
1307
  end
1398
1308
 
1399
1309
  class Cashapp < Stripe::RequestParams; end
1310
+ class Crypto < Stripe::RequestParams; end
1400
1311
  class CustomerBalance < Stripe::RequestParams; end
1401
1312
 
1402
1313
  class Eps < Stripe::RequestParams
@@ -1421,18 +1332,8 @@ module Stripe
1421
1332
  end
1422
1333
 
1423
1334
  class Giropay < Stripe::RequestParams; end
1424
- class Gopay < Stripe::RequestParams; end
1425
1335
  class Grabpay < Stripe::RequestParams; end
1426
1336
 
1427
- class IdBankTransfer < Stripe::RequestParams
1428
- # Bank where the account is held.
1429
- attr_accessor :bank
1430
-
1431
- def initialize(bank: nil)
1432
- @bank = bank
1433
- end
1434
- end
1435
-
1436
1337
  class Ideal < Stripe::RequestParams
1437
1338
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1438
1339
  attr_accessor :bank
@@ -1471,7 +1372,6 @@ module Stripe
1471
1372
  class Konbini < Stripe::RequestParams; end
1472
1373
  class KrCard < Stripe::RequestParams; end
1473
1374
  class Link < Stripe::RequestParams; end
1474
- class MbWay < Stripe::RequestParams; end
1475
1375
  class Mobilepay < Stripe::RequestParams; end
1476
1376
  class Multibanco < Stripe::RequestParams; end
1477
1377
 
@@ -1530,25 +1430,8 @@ module Stripe
1530
1430
  class Payco < Stripe::RequestParams; end
1531
1431
  class Paynow < Stripe::RequestParams; end
1532
1432
  class Paypal < Stripe::RequestParams; end
1533
-
1534
- class Payto < Stripe::RequestParams
1535
- # The account number for the bank account.
1536
- attr_accessor :account_number
1537
- # Bank-State-Branch number of the bank account.
1538
- attr_accessor :bsb_number
1539
- # The PayID alias for the bank account.
1540
- attr_accessor :pay_id
1541
-
1542
- def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1543
- @account_number = account_number
1544
- @bsb_number = bsb_number
1545
- @pay_id = pay_id
1546
- end
1547
- end
1548
-
1549
1433
  class Pix < Stripe::RequestParams; end
1550
1434
  class Promptpay < Stripe::RequestParams; end
1551
- class Qris < Stripe::RequestParams; end
1552
1435
 
1553
1436
  class RadarOptions < Stripe::RequestParams
1554
1437
  # 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.
@@ -1559,29 +1442,6 @@ module Stripe
1559
1442
  end
1560
1443
  end
1561
1444
 
1562
- class Rechnung < Stripe::RequestParams
1563
- class Dob < Stripe::RequestParams
1564
- # The day of birth, between 1 and 31.
1565
- attr_accessor :day
1566
- # The month of birth, between 1 and 12.
1567
- attr_accessor :month
1568
- # The four-digit year of birth.
1569
- attr_accessor :year
1570
-
1571
- def initialize(day: nil, month: nil, year: nil)
1572
- @day = day
1573
- @month = month
1574
- @year = year
1575
- end
1576
- end
1577
- # Customer's date of birth
1578
- attr_accessor :dob
1579
-
1580
- def initialize(dob: nil)
1581
- @dob = dob
1582
- end
1583
- end
1584
-
1585
1445
  class RevolutPay < Stripe::RequestParams; end
1586
1446
  class SamsungPay < Stripe::RequestParams; end
1587
1447
  class Satispay < Stripe::RequestParams; end
@@ -1595,8 +1455,6 @@ module Stripe
1595
1455
  end
1596
1456
  end
1597
1457
 
1598
- class Shopeepay < Stripe::RequestParams; end
1599
-
1600
1458
  class Sofort < Stripe::RequestParams
1601
1459
  # Two-letter ISO code representing the country the bank account is located in.
1602
1460
  attr_accessor :country
@@ -1606,18 +1464,6 @@ module Stripe
1606
1464
  end
1607
1465
  end
1608
1466
 
1609
- class StripeBalance < Stripe::RequestParams
1610
- # The connected account ID whose Stripe balance to use as the source of payment
1611
- attr_accessor :account
1612
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1613
- attr_accessor :source_type
1614
-
1615
- def initialize(account: nil, source_type: nil)
1616
- @account = account
1617
- @source_type = source_type
1618
- end
1619
- end
1620
-
1621
1467
  class Swish < Stripe::RequestParams; end
1622
1468
  class Twint < Stripe::RequestParams; end
1623
1469
 
@@ -1680,6 +1526,8 @@ module Stripe
1680
1526
  attr_accessor :boleto
1681
1527
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1682
1528
  attr_accessor :cashapp
1529
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
1530
+ attr_accessor :crypto
1683
1531
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1684
1532
  attr_accessor :customer_balance
1685
1533
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
@@ -1688,12 +1536,8 @@ module Stripe
1688
1536
  attr_accessor :fpx
1689
1537
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1690
1538
  attr_accessor :giropay
1691
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1692
- attr_accessor :gopay
1693
1539
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1694
1540
  attr_accessor :grabpay
1695
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1696
- attr_accessor :id_bank_transfer
1697
1541
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1698
1542
  attr_accessor :ideal
1699
1543
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1708,8 +1552,6 @@ module Stripe
1708
1552
  attr_accessor :kr_card
1709
1553
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1710
1554
  attr_accessor :link
1711
- # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1712
- attr_accessor :mb_way
1713
1555
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1714
1556
  attr_accessor :metadata
1715
1557
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -1732,18 +1574,12 @@ module Stripe
1732
1574
  attr_accessor :paynow
1733
1575
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1734
1576
  attr_accessor :paypal
1735
- # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1736
- attr_accessor :payto
1737
1577
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1738
1578
  attr_accessor :pix
1739
1579
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1740
1580
  attr_accessor :promptpay
1741
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1742
- attr_accessor :qris
1743
1581
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1744
1582
  attr_accessor :radar_options
1745
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1746
- attr_accessor :rechnung
1747
1583
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1748
1584
  attr_accessor :revolut_pay
1749
1585
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1752,12 +1588,8 @@ module Stripe
1752
1588
  attr_accessor :satispay
1753
1589
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1754
1590
  attr_accessor :sepa_debit
1755
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1756
- attr_accessor :shopeepay
1757
1591
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1758
1592
  attr_accessor :sofort
1759
- # This hash contains details about the Stripe balance payment method.
1760
- attr_accessor :stripe_balance
1761
1593
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1762
1594
  attr_accessor :swish
1763
1595
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -1787,13 +1619,12 @@ module Stripe
1787
1619
  blik: nil,
1788
1620
  boleto: nil,
1789
1621
  cashapp: nil,
1622
+ crypto: nil,
1790
1623
  customer_balance: nil,
1791
1624
  eps: nil,
1792
1625
  fpx: nil,
1793
1626
  giropay: nil,
1794
- gopay: nil,
1795
1627
  grabpay: nil,
1796
- id_bank_transfer: nil,
1797
1628
  ideal: nil,
1798
1629
  interac_present: nil,
1799
1630
  kakao_pay: nil,
@@ -1801,7 +1632,6 @@ module Stripe
1801
1632
  konbini: nil,
1802
1633
  kr_card: nil,
1803
1634
  link: nil,
1804
- mb_way: nil,
1805
1635
  metadata: nil,
1806
1636
  mobilepay: nil,
1807
1637
  multibanco: nil,
@@ -1813,19 +1643,14 @@ module Stripe
1813
1643
  payco: nil,
1814
1644
  paynow: nil,
1815
1645
  paypal: nil,
1816
- payto: nil,
1817
1646
  pix: nil,
1818
1647
  promptpay: nil,
1819
- qris: nil,
1820
1648
  radar_options: nil,
1821
- rechnung: nil,
1822
1649
  revolut_pay: nil,
1823
1650
  samsung_pay: nil,
1824
1651
  satispay: nil,
1825
1652
  sepa_debit: nil,
1826
- shopeepay: nil,
1827
1653
  sofort: nil,
1828
- stripe_balance: nil,
1829
1654
  swish: nil,
1830
1655
  twint: nil,
1831
1656
  type: nil,
@@ -1848,13 +1673,12 @@ module Stripe
1848
1673
  @blik = blik
1849
1674
  @boleto = boleto
1850
1675
  @cashapp = cashapp
1676
+ @crypto = crypto
1851
1677
  @customer_balance = customer_balance
1852
1678
  @eps = eps
1853
1679
  @fpx = fpx
1854
1680
  @giropay = giropay
1855
- @gopay = gopay
1856
1681
  @grabpay = grabpay
1857
- @id_bank_transfer = id_bank_transfer
1858
1682
  @ideal = ideal
1859
1683
  @interac_present = interac_present
1860
1684
  @kakao_pay = kakao_pay
@@ -1862,7 +1686,6 @@ module Stripe
1862
1686
  @konbini = konbini
1863
1687
  @kr_card = kr_card
1864
1688
  @link = link
1865
- @mb_way = mb_way
1866
1689
  @metadata = metadata
1867
1690
  @mobilepay = mobilepay
1868
1691
  @multibanco = multibanco
@@ -1874,19 +1697,14 @@ module Stripe
1874
1697
  @payco = payco
1875
1698
  @paynow = paynow
1876
1699
  @paypal = paypal
1877
- @payto = payto
1878
1700
  @pix = pix
1879
1701
  @promptpay = promptpay
1880
- @qris = qris
1881
1702
  @radar_options = radar_options
1882
- @rechnung = rechnung
1883
1703
  @revolut_pay = revolut_pay
1884
1704
  @samsung_pay = samsung_pay
1885
1705
  @satispay = satispay
1886
1706
  @sepa_debit = sepa_debit
1887
- @shopeepay = shopeepay
1888
1707
  @sofort = sofort
1889
- @stripe_balance = stripe_balance
1890
1708
  @swish = swish
1891
1709
  @twint = twint
1892
1710
  @type = type
@@ -2108,6 +1926,88 @@ module Stripe
2108
1926
 
2109
1927
  class CardPresent < Stripe::RequestParams; end
2110
1928
 
1929
+ class Klarna < Stripe::RequestParams
1930
+ class OnDemand < Stripe::RequestParams
1931
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1932
+ attr_accessor :average_amount
1933
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1934
+ attr_accessor :maximum_amount
1935
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1936
+ attr_accessor :minimum_amount
1937
+ # Interval at which the customer is making purchases
1938
+ attr_accessor :purchase_interval
1939
+ # The number of `purchase_interval` between charges
1940
+ attr_accessor :purchase_interval_count
1941
+
1942
+ def initialize(
1943
+ average_amount: nil,
1944
+ maximum_amount: nil,
1945
+ minimum_amount: nil,
1946
+ purchase_interval: nil,
1947
+ purchase_interval_count: nil
1948
+ )
1949
+ @average_amount = average_amount
1950
+ @maximum_amount = maximum_amount
1951
+ @minimum_amount = minimum_amount
1952
+ @purchase_interval = purchase_interval
1953
+ @purchase_interval_count = purchase_interval_count
1954
+ end
1955
+ end
1956
+
1957
+ class Subscription < Stripe::RequestParams
1958
+ class NextBilling < Stripe::RequestParams
1959
+ # The amount of the next charge for the subscription.
1960
+ attr_accessor :amount
1961
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
1962
+ attr_accessor :date
1963
+
1964
+ def initialize(amount: nil, date: nil)
1965
+ @amount = amount
1966
+ @date = date
1967
+ end
1968
+ end
1969
+ # Unit of time between subscription charges.
1970
+ attr_accessor :interval
1971
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1972
+ attr_accessor :interval_count
1973
+ # Name for subscription.
1974
+ attr_accessor :name
1975
+ # Describes the upcoming charge for this subscription.
1976
+ attr_accessor :next_billing
1977
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1978
+ attr_accessor :reference
1979
+
1980
+ def initialize(
1981
+ interval: nil,
1982
+ interval_count: nil,
1983
+ name: nil,
1984
+ next_billing: nil,
1985
+ reference: nil
1986
+ )
1987
+ @interval = interval
1988
+ @interval_count = interval_count
1989
+ @name = name
1990
+ @next_billing = next_billing
1991
+ @reference = reference
1992
+ end
1993
+ end
1994
+ # The currency of the SetupIntent. Three letter ISO currency code.
1995
+ attr_accessor :currency
1996
+ # On-demand details if setting up a payment method for on-demand payments.
1997
+ attr_accessor :on_demand
1998
+ # Preferred language of the Klarna authorization page that the customer is redirected to
1999
+ attr_accessor :preferred_locale
2000
+ # Subscription details if setting up or charging a subscription
2001
+ attr_accessor :subscriptions
2002
+
2003
+ def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
2004
+ @currency = currency
2005
+ @on_demand = on_demand
2006
+ @preferred_locale = preferred_locale
2007
+ @subscriptions = subscriptions
2008
+ end
2009
+ end
2010
+
2111
2011
  class Link < Stripe::RequestParams
2112
2012
  # [Deprecated] This is a legacy parameter that no longer has any function.
2113
2013
  attr_accessor :persistent_token
@@ -2120,58 +2020,9 @@ module Stripe
2120
2020
  class Paypal < Stripe::RequestParams
2121
2021
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2122
2022
  attr_accessor :billing_agreement_id
2123
- # Attribute for param field currency
2124
- attr_accessor :currency
2125
- # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2126
- attr_accessor :subsellers
2127
2023
 
2128
- def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
2024
+ def initialize(billing_agreement_id: nil)
2129
2025
  @billing_agreement_id = billing_agreement_id
2130
- @currency = currency
2131
- @subsellers = subsellers
2132
- end
2133
- end
2134
-
2135
- class Payto < Stripe::RequestParams
2136
- class MandateOptions < Stripe::RequestParams
2137
- # Amount that will be collected. It is required when `amount_type` is `fixed`.
2138
- attr_accessor :amount
2139
- # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2140
- attr_accessor :amount_type
2141
- # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2142
- attr_accessor :end_date
2143
- # The periodicity at which payments will be collected.
2144
- attr_accessor :payment_schedule
2145
- # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2146
- attr_accessor :payments_per_period
2147
- # The purpose for which payments are made. Defaults to retail.
2148
- attr_accessor :purpose
2149
- # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2150
- attr_accessor :start_date
2151
-
2152
- def initialize(
2153
- amount: nil,
2154
- amount_type: nil,
2155
- end_date: nil,
2156
- payment_schedule: nil,
2157
- payments_per_period: nil,
2158
- purpose: nil,
2159
- start_date: nil
2160
- )
2161
- @amount = amount
2162
- @amount_type = amount_type
2163
- @end_date = end_date
2164
- @payment_schedule = payment_schedule
2165
- @payments_per_period = payments_per_period
2166
- @purpose = purpose
2167
- @start_date = start_date
2168
- end
2169
- end
2170
- # Additional fields for Mandate creation.
2171
- attr_accessor :mandate_options
2172
-
2173
- def initialize(mandate_options: nil)
2174
- @mandate_options = mandate_options
2175
2026
  end
2176
2027
  end
2177
2028
 
@@ -2197,27 +2048,13 @@ module Stripe
2197
2048
  class Filters < Stripe::RequestParams
2198
2049
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2199
2050
  attr_accessor :account_subcategories
2200
- # ID of the institution to use to filter for selectable accounts.
2201
- attr_accessor :institution
2202
2051
 
2203
- def initialize(account_subcategories: nil, institution: nil)
2052
+ def initialize(account_subcategories: nil)
2204
2053
  @account_subcategories = account_subcategories
2205
- @institution = institution
2206
- end
2207
- end
2208
-
2209
- class ManualEntry < Stripe::RequestParams
2210
- # Settings for configuring manual entry of account details.
2211
- attr_accessor :mode
2212
-
2213
- def initialize(mode: nil)
2214
- @mode = mode
2215
2054
  end
2216
2055
  end
2217
2056
  # Provide filters for the linked accounts that the customer can select for the payment method.
2218
2057
  attr_accessor :filters
2219
- # Customize manual entry behavior
2220
- attr_accessor :manual_entry
2221
2058
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2222
2059
  attr_accessor :permissions
2223
2060
  # List of data features that you would like to retrieve upon account creation.
@@ -2225,15 +2062,8 @@ module Stripe
2225
2062
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
2226
2063
  attr_accessor :return_url
2227
2064
 
2228
- def initialize(
2229
- filters: nil,
2230
- manual_entry: nil,
2231
- permissions: nil,
2232
- prefetch: nil,
2233
- return_url: nil
2234
- )
2065
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
2235
2066
  @filters = filters
2236
- @manual_entry = manual_entry
2237
2067
  @permissions = permissions
2238
2068
  @prefetch = prefetch
2239
2069
  @return_url = return_url
@@ -2288,12 +2118,12 @@ module Stripe
2288
2118
  attr_accessor :card
2289
2119
  # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
2290
2120
  attr_accessor :card_present
2121
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
2122
+ attr_accessor :klarna
2291
2123
  # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2292
2124
  attr_accessor :link
2293
2125
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2294
2126
  attr_accessor :paypal
2295
- # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2296
- attr_accessor :payto
2297
2127
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2298
2128
  attr_accessor :sepa_debit
2299
2129
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -2305,9 +2135,9 @@ module Stripe
2305
2135
  bacs_debit: nil,
2306
2136
  card: nil,
2307
2137
  card_present: nil,
2138
+ klarna: nil,
2308
2139
  link: nil,
2309
2140
  paypal: nil,
2310
- payto: nil,
2311
2141
  sepa_debit: nil,
2312
2142
  us_bank_account: nil
2313
2143
  )
@@ -2316,9 +2146,9 @@ module Stripe
2316
2146
  @bacs_debit = bacs_debit
2317
2147
  @card = card
2318
2148
  @card_present = card_present
2149
+ @klarna = klarna
2319
2150
  @link = link
2320
2151
  @paypal = paypal
2321
- @payto = payto
2322
2152
  @sepa_debit = sepa_debit
2323
2153
  @us_bank_account = us_bank_account
2324
2154
  end
@@ -2331,10 +2161,6 @@ module Stripe
2331
2161
  #
2332
2162
  # If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
2333
2163
  attr_accessor :customer
2334
- # ID of the Account this SetupIntent belongs to, if one exists.
2335
- #
2336
- # If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
2337
- attr_accessor :customer_account
2338
2164
  # An arbitrary string attached to the object. Often useful for displaying to users.
2339
2165
  attr_accessor :description
2340
2166
  # Specifies which fields in the response should be expanded.
@@ -2354,13 +2180,12 @@ module Stripe
2354
2180
  attr_accessor :payment_method_data
2355
2181
  # Payment method-specific configuration for this SetupIntent.
2356
2182
  attr_accessor :payment_method_options
2357
- # The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
2183
+ # The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
2358
2184
  attr_accessor :payment_method_types
2359
2185
 
2360
2186
  def initialize(
2361
2187
  attach_to_self: nil,
2362
2188
  customer: nil,
2363
- customer_account: nil,
2364
2189
  description: nil,
2365
2190
  expand: nil,
2366
2191
  flow_directions: nil,
@@ -2373,7 +2198,6 @@ module Stripe
2373
2198
  )
2374
2199
  @attach_to_self = attach_to_self
2375
2200
  @customer = customer
2376
- @customer_account = customer_account
2377
2201
  @description = description
2378
2202
  @expand = expand
2379
2203
  @flow_directions = flow_directions
@@ -2550,6 +2374,7 @@ module Stripe
2550
2374
  end
2551
2375
 
2552
2376
  class Cashapp < Stripe::RequestParams; end
2377
+ class Crypto < Stripe::RequestParams; end
2553
2378
  class CustomerBalance < Stripe::RequestParams; end
2554
2379
 
2555
2380
  class Eps < Stripe::RequestParams
@@ -2574,18 +2399,8 @@ module Stripe
2574
2399
  end
2575
2400
 
2576
2401
  class Giropay < Stripe::RequestParams; end
2577
- class Gopay < Stripe::RequestParams; end
2578
2402
  class Grabpay < Stripe::RequestParams; end
2579
2403
 
2580
- class IdBankTransfer < Stripe::RequestParams
2581
- # Bank where the account is held.
2582
- attr_accessor :bank
2583
-
2584
- def initialize(bank: nil)
2585
- @bank = bank
2586
- end
2587
- end
2588
-
2589
2404
  class Ideal < Stripe::RequestParams
2590
2405
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2591
2406
  attr_accessor :bank
@@ -2624,7 +2439,6 @@ module Stripe
2624
2439
  class Konbini < Stripe::RequestParams; end
2625
2440
  class KrCard < Stripe::RequestParams; end
2626
2441
  class Link < Stripe::RequestParams; end
2627
- class MbWay < Stripe::RequestParams; end
2628
2442
  class Mobilepay < Stripe::RequestParams; end
2629
2443
  class Multibanco < Stripe::RequestParams; end
2630
2444
 
@@ -2683,25 +2497,8 @@ module Stripe
2683
2497
  class Payco < Stripe::RequestParams; end
2684
2498
  class Paynow < Stripe::RequestParams; end
2685
2499
  class Paypal < Stripe::RequestParams; end
2686
-
2687
- class Payto < Stripe::RequestParams
2688
- # The account number for the bank account.
2689
- attr_accessor :account_number
2690
- # Bank-State-Branch number of the bank account.
2691
- attr_accessor :bsb_number
2692
- # The PayID alias for the bank account.
2693
- attr_accessor :pay_id
2694
-
2695
- def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
2696
- @account_number = account_number
2697
- @bsb_number = bsb_number
2698
- @pay_id = pay_id
2699
- end
2700
- end
2701
-
2702
2500
  class Pix < Stripe::RequestParams; end
2703
2501
  class Promptpay < Stripe::RequestParams; end
2704
- class Qris < Stripe::RequestParams; end
2705
2502
 
2706
2503
  class RadarOptions < Stripe::RequestParams
2707
2504
  # 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.
@@ -2712,29 +2509,6 @@ module Stripe
2712
2509
  end
2713
2510
  end
2714
2511
 
2715
- class Rechnung < Stripe::RequestParams
2716
- class Dob < Stripe::RequestParams
2717
- # The day of birth, between 1 and 31.
2718
- attr_accessor :day
2719
- # The month of birth, between 1 and 12.
2720
- attr_accessor :month
2721
- # The four-digit year of birth.
2722
- attr_accessor :year
2723
-
2724
- def initialize(day: nil, month: nil, year: nil)
2725
- @day = day
2726
- @month = month
2727
- @year = year
2728
- end
2729
- end
2730
- # Customer's date of birth
2731
- attr_accessor :dob
2732
-
2733
- def initialize(dob: nil)
2734
- @dob = dob
2735
- end
2736
- end
2737
-
2738
2512
  class RevolutPay < Stripe::RequestParams; end
2739
2513
  class SamsungPay < Stripe::RequestParams; end
2740
2514
  class Satispay < Stripe::RequestParams; end
@@ -2748,8 +2522,6 @@ module Stripe
2748
2522
  end
2749
2523
  end
2750
2524
 
2751
- class Shopeepay < Stripe::RequestParams; end
2752
-
2753
2525
  class Sofort < Stripe::RequestParams
2754
2526
  # Two-letter ISO code representing the country the bank account is located in.
2755
2527
  attr_accessor :country
@@ -2759,18 +2531,6 @@ module Stripe
2759
2531
  end
2760
2532
  end
2761
2533
 
2762
- class StripeBalance < Stripe::RequestParams
2763
- # The connected account ID whose Stripe balance to use as the source of payment
2764
- attr_accessor :account
2765
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2766
- attr_accessor :source_type
2767
-
2768
- def initialize(account: nil, source_type: nil)
2769
- @account = account
2770
- @source_type = source_type
2771
- end
2772
- end
2773
-
2774
2534
  class Swish < Stripe::RequestParams; end
2775
2535
  class Twint < Stripe::RequestParams; end
2776
2536
 
@@ -2833,6 +2593,8 @@ module Stripe
2833
2593
  attr_accessor :boleto
2834
2594
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
2835
2595
  attr_accessor :cashapp
2596
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
2597
+ attr_accessor :crypto
2836
2598
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
2837
2599
  attr_accessor :customer_balance
2838
2600
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
@@ -2841,12 +2603,8 @@ module Stripe
2841
2603
  attr_accessor :fpx
2842
2604
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2843
2605
  attr_accessor :giropay
2844
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2845
- attr_accessor :gopay
2846
2606
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2847
2607
  attr_accessor :grabpay
2848
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2849
- attr_accessor :id_bank_transfer
2850
2608
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2851
2609
  attr_accessor :ideal
2852
2610
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2861,8 +2619,6 @@ module Stripe
2861
2619
  attr_accessor :kr_card
2862
2620
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2863
2621
  attr_accessor :link
2864
- # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2865
- attr_accessor :mb_way
2866
2622
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2867
2623
  attr_accessor :metadata
2868
2624
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -2885,18 +2641,12 @@ module Stripe
2885
2641
  attr_accessor :paynow
2886
2642
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2887
2643
  attr_accessor :paypal
2888
- # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2889
- attr_accessor :payto
2890
2644
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2891
2645
  attr_accessor :pix
2892
2646
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2893
2647
  attr_accessor :promptpay
2894
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2895
- attr_accessor :qris
2896
2648
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
2897
2649
  attr_accessor :radar_options
2898
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2899
- attr_accessor :rechnung
2900
2650
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2901
2651
  attr_accessor :revolut_pay
2902
2652
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -2905,12 +2655,8 @@ module Stripe
2905
2655
  attr_accessor :satispay
2906
2656
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2907
2657
  attr_accessor :sepa_debit
2908
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2909
- attr_accessor :shopeepay
2910
2658
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2911
2659
  attr_accessor :sofort
2912
- # This hash contains details about the Stripe balance payment method.
2913
- attr_accessor :stripe_balance
2914
2660
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
2915
2661
  attr_accessor :swish
2916
2662
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -2940,13 +2686,12 @@ module Stripe
2940
2686
  blik: nil,
2941
2687
  boleto: nil,
2942
2688
  cashapp: nil,
2689
+ crypto: nil,
2943
2690
  customer_balance: nil,
2944
2691
  eps: nil,
2945
2692
  fpx: nil,
2946
2693
  giropay: nil,
2947
- gopay: nil,
2948
2694
  grabpay: nil,
2949
- id_bank_transfer: nil,
2950
2695
  ideal: nil,
2951
2696
  interac_present: nil,
2952
2697
  kakao_pay: nil,
@@ -2954,7 +2699,6 @@ module Stripe
2954
2699
  konbini: nil,
2955
2700
  kr_card: nil,
2956
2701
  link: nil,
2957
- mb_way: nil,
2958
2702
  metadata: nil,
2959
2703
  mobilepay: nil,
2960
2704
  multibanco: nil,
@@ -2966,19 +2710,14 @@ module Stripe
2966
2710
  payco: nil,
2967
2711
  paynow: nil,
2968
2712
  paypal: nil,
2969
- payto: nil,
2970
2713
  pix: nil,
2971
2714
  promptpay: nil,
2972
- qris: nil,
2973
2715
  radar_options: nil,
2974
- rechnung: nil,
2975
2716
  revolut_pay: nil,
2976
2717
  samsung_pay: nil,
2977
2718
  satispay: nil,
2978
2719
  sepa_debit: nil,
2979
- shopeepay: nil,
2980
2720
  sofort: nil,
2981
- stripe_balance: nil,
2982
2721
  swish: nil,
2983
2722
  twint: nil,
2984
2723
  type: nil,
@@ -3001,13 +2740,12 @@ module Stripe
3001
2740
  @blik = blik
3002
2741
  @boleto = boleto
3003
2742
  @cashapp = cashapp
2743
+ @crypto = crypto
3004
2744
  @customer_balance = customer_balance
3005
2745
  @eps = eps
3006
2746
  @fpx = fpx
3007
2747
  @giropay = giropay
3008
- @gopay = gopay
3009
2748
  @grabpay = grabpay
3010
- @id_bank_transfer = id_bank_transfer
3011
2749
  @ideal = ideal
3012
2750
  @interac_present = interac_present
3013
2751
  @kakao_pay = kakao_pay
@@ -3015,7 +2753,6 @@ module Stripe
3015
2753
  @konbini = konbini
3016
2754
  @kr_card = kr_card
3017
2755
  @link = link
3018
- @mb_way = mb_way
3019
2756
  @metadata = metadata
3020
2757
  @mobilepay = mobilepay
3021
2758
  @multibanco = multibanco
@@ -3027,19 +2764,14 @@ module Stripe
3027
2764
  @payco = payco
3028
2765
  @paynow = paynow
3029
2766
  @paypal = paypal
3030
- @payto = payto
3031
2767
  @pix = pix
3032
2768
  @promptpay = promptpay
3033
- @qris = qris
3034
2769
  @radar_options = radar_options
3035
- @rechnung = rechnung
3036
2770
  @revolut_pay = revolut_pay
3037
2771
  @samsung_pay = samsung_pay
3038
2772
  @satispay = satispay
3039
2773
  @sepa_debit = sepa_debit
3040
- @shopeepay = shopeepay
3041
2774
  @sofort = sofort
3042
- @stripe_balance = stripe_balance
3043
2775
  @swish = swish
3044
2776
  @twint = twint
3045
2777
  @type = type
@@ -3261,6 +2993,88 @@ module Stripe
3261
2993
 
3262
2994
  class CardPresent < Stripe::RequestParams; end
3263
2995
 
2996
+ class Klarna < Stripe::RequestParams
2997
+ class OnDemand < Stripe::RequestParams
2998
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
2999
+ attr_accessor :average_amount
3000
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
3001
+ attr_accessor :maximum_amount
3002
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
3003
+ attr_accessor :minimum_amount
3004
+ # Interval at which the customer is making purchases
3005
+ attr_accessor :purchase_interval
3006
+ # The number of `purchase_interval` between charges
3007
+ attr_accessor :purchase_interval_count
3008
+
3009
+ def initialize(
3010
+ average_amount: nil,
3011
+ maximum_amount: nil,
3012
+ minimum_amount: nil,
3013
+ purchase_interval: nil,
3014
+ purchase_interval_count: nil
3015
+ )
3016
+ @average_amount = average_amount
3017
+ @maximum_amount = maximum_amount
3018
+ @minimum_amount = minimum_amount
3019
+ @purchase_interval = purchase_interval
3020
+ @purchase_interval_count = purchase_interval_count
3021
+ end
3022
+ end
3023
+
3024
+ class Subscription < Stripe::RequestParams
3025
+ class NextBilling < Stripe::RequestParams
3026
+ # The amount of the next charge for the subscription.
3027
+ attr_accessor :amount
3028
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
3029
+ attr_accessor :date
3030
+
3031
+ def initialize(amount: nil, date: nil)
3032
+ @amount = amount
3033
+ @date = date
3034
+ end
3035
+ end
3036
+ # Unit of time between subscription charges.
3037
+ attr_accessor :interval
3038
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
3039
+ attr_accessor :interval_count
3040
+ # Name for subscription.
3041
+ attr_accessor :name
3042
+ # Describes the upcoming charge for this subscription.
3043
+ attr_accessor :next_billing
3044
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
3045
+ attr_accessor :reference
3046
+
3047
+ def initialize(
3048
+ interval: nil,
3049
+ interval_count: nil,
3050
+ name: nil,
3051
+ next_billing: nil,
3052
+ reference: nil
3053
+ )
3054
+ @interval = interval
3055
+ @interval_count = interval_count
3056
+ @name = name
3057
+ @next_billing = next_billing
3058
+ @reference = reference
3059
+ end
3060
+ end
3061
+ # The currency of the SetupIntent. Three letter ISO currency code.
3062
+ attr_accessor :currency
3063
+ # On-demand details if setting up a payment method for on-demand payments.
3064
+ attr_accessor :on_demand
3065
+ # Preferred language of the Klarna authorization page that the customer is redirected to
3066
+ attr_accessor :preferred_locale
3067
+ # Subscription details if setting up or charging a subscription
3068
+ attr_accessor :subscriptions
3069
+
3070
+ def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
3071
+ @currency = currency
3072
+ @on_demand = on_demand
3073
+ @preferred_locale = preferred_locale
3074
+ @subscriptions = subscriptions
3075
+ end
3076
+ end
3077
+
3264
3078
  class Link < Stripe::RequestParams
3265
3079
  # [Deprecated] This is a legacy parameter that no longer has any function.
3266
3080
  attr_accessor :persistent_token
@@ -3273,58 +3087,9 @@ module Stripe
3273
3087
  class Paypal < Stripe::RequestParams
3274
3088
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3275
3089
  attr_accessor :billing_agreement_id
3276
- # Attribute for param field currency
3277
- attr_accessor :currency
3278
- # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
3279
- attr_accessor :subsellers
3280
3090
 
3281
- def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
3091
+ def initialize(billing_agreement_id: nil)
3282
3092
  @billing_agreement_id = billing_agreement_id
3283
- @currency = currency
3284
- @subsellers = subsellers
3285
- end
3286
- end
3287
-
3288
- class Payto < Stripe::RequestParams
3289
- class MandateOptions < Stripe::RequestParams
3290
- # Amount that will be collected. It is required when `amount_type` is `fixed`.
3291
- attr_accessor :amount
3292
- # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
3293
- attr_accessor :amount_type
3294
- # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3295
- attr_accessor :end_date
3296
- # The periodicity at which payments will be collected.
3297
- attr_accessor :payment_schedule
3298
- # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
3299
- attr_accessor :payments_per_period
3300
- # The purpose for which payments are made. Defaults to retail.
3301
- attr_accessor :purpose
3302
- # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3303
- attr_accessor :start_date
3304
-
3305
- def initialize(
3306
- amount: nil,
3307
- amount_type: nil,
3308
- end_date: nil,
3309
- payment_schedule: nil,
3310
- payments_per_period: nil,
3311
- purpose: nil,
3312
- start_date: nil
3313
- )
3314
- @amount = amount
3315
- @amount_type = amount_type
3316
- @end_date = end_date
3317
- @payment_schedule = payment_schedule
3318
- @payments_per_period = payments_per_period
3319
- @purpose = purpose
3320
- @start_date = start_date
3321
- end
3322
- end
3323
- # Additional fields for Mandate creation.
3324
- attr_accessor :mandate_options
3325
-
3326
- def initialize(mandate_options: nil)
3327
- @mandate_options = mandate_options
3328
3093
  end
3329
3094
  end
3330
3095
 
@@ -3350,27 +3115,13 @@ module Stripe
3350
3115
  class Filters < Stripe::RequestParams
3351
3116
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3352
3117
  attr_accessor :account_subcategories
3353
- # ID of the institution to use to filter for selectable accounts.
3354
- attr_accessor :institution
3355
3118
 
3356
- def initialize(account_subcategories: nil, institution: nil)
3119
+ def initialize(account_subcategories: nil)
3357
3120
  @account_subcategories = account_subcategories
3358
- @institution = institution
3359
- end
3360
- end
3361
-
3362
- class ManualEntry < Stripe::RequestParams
3363
- # Settings for configuring manual entry of account details.
3364
- attr_accessor :mode
3365
-
3366
- def initialize(mode: nil)
3367
- @mode = mode
3368
3121
  end
3369
3122
  end
3370
3123
  # Provide filters for the linked accounts that the customer can select for the payment method.
3371
3124
  attr_accessor :filters
3372
- # Customize manual entry behavior
3373
- attr_accessor :manual_entry
3374
3125
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
3375
3126
  attr_accessor :permissions
3376
3127
  # List of data features that you would like to retrieve upon account creation.
@@ -3378,15 +3129,8 @@ module Stripe
3378
3129
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
3379
3130
  attr_accessor :return_url
3380
3131
 
3381
- def initialize(
3382
- filters: nil,
3383
- manual_entry: nil,
3384
- permissions: nil,
3385
- prefetch: nil,
3386
- return_url: nil
3387
- )
3132
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3388
3133
  @filters = filters
3389
- @manual_entry = manual_entry
3390
3134
  @permissions = permissions
3391
3135
  @prefetch = prefetch
3392
3136
  @return_url = return_url
@@ -3441,12 +3185,12 @@ module Stripe
3441
3185
  attr_accessor :card
3442
3186
  # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
3443
3187
  attr_accessor :card_present
3188
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
3189
+ attr_accessor :klarna
3444
3190
  # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
3445
3191
  attr_accessor :link
3446
3192
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
3447
3193
  attr_accessor :paypal
3448
- # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3449
- attr_accessor :payto
3450
3194
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3451
3195
  attr_accessor :sepa_debit
3452
3196
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -3458,9 +3202,9 @@ module Stripe
3458
3202
  bacs_debit: nil,
3459
3203
  card: nil,
3460
3204
  card_present: nil,
3205
+ klarna: nil,
3461
3206
  link: nil,
3462
3207
  paypal: nil,
3463
- payto: nil,
3464
3208
  sepa_debit: nil,
3465
3209
  us_bank_account: nil
3466
3210
  )
@@ -3469,9 +3213,9 @@ module Stripe
3469
3213
  @bacs_debit = bacs_debit
3470
3214
  @card = card
3471
3215
  @card_present = card_present
3216
+ @klarna = klarna
3472
3217
  @link = link
3473
3218
  @paypal = paypal
3474
- @payto = payto
3475
3219
  @sepa_debit = sepa_debit
3476
3220
  @us_bank_account = us_bank_account
3477
3221
  end