stripe 15.2.0 → 15.3.0.pre.beta.1

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 (587) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1600 -670
  3. data/VERSION +1 -1
  4. data/lib/stripe/api_requestor.rb +28 -0
  5. data/lib/stripe/api_version.rb +1 -1
  6. data/lib/stripe/errors.rb +54 -0
  7. data/lib/stripe/event_types.rb +98 -0
  8. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  9. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_link_completed_event.rb +13 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  24. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  48. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  56. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  57. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  58. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  59. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  60. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  65. data/lib/stripe/object_types.rb +50 -0
  66. data/lib/stripe/resources/account.rb +653 -1
  67. data/lib/stripe/resources/account_notice.rb +123 -0
  68. data/lib/stripe/resources/account_session.rb +256 -1
  69. data/lib/stripe/resources/balance_settings.rb +105 -0
  70. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  71. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  72. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  73. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  74. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  75. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  76. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  77. data/lib/stripe/resources/card.rb +2 -0
  78. data/lib/stripe/resources/cash_balance.rb +2 -0
  79. data/lib/stripe/resources/charge.rb +1538 -0
  80. data/lib/stripe/resources/checkout/session.rb +330 -2
  81. data/lib/stripe/resources/confirmation_token.rb +170 -0
  82. data/lib/stripe/resources/coupon.rb +30 -1
  83. data/lib/stripe/resources/credit_note.rb +6 -0
  84. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  85. data/lib/stripe/resources/customer.rb +2 -0
  86. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  87. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  88. data/lib/stripe/resources/customer_session.rb +6 -1
  89. data/lib/stripe/resources/discount.rb +2 -0
  90. data/lib/stripe/resources/event.rb +31 -0
  91. data/lib/stripe/resources/financial_connections/account.rb +22 -1
  92. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  93. data/lib/stripe/resources/financial_connections/institution.rb +92 -0
  94. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  95. data/lib/stripe/resources/fx_quote.rb +184 -0
  96. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  97. data/lib/stripe/resources/invoice.rb +1070 -16
  98. data/lib/stripe/resources/invoice_item.rb +78 -2
  99. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  100. data/lib/stripe/resources/invoice_payment.rb +2 -53
  101. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  102. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  103. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  104. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  105. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  106. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  107. data/lib/stripe/resources/line_item.rb +37 -0
  108. data/lib/stripe/resources/mandate.rb +24 -0
  109. data/lib/stripe/resources/margin.rb +115 -0
  110. data/lib/stripe/resources/order.rb +2806 -0
  111. data/lib/stripe/resources/payment_attempt_record.rb +1086 -0
  112. data/lib/stripe/resources/payment_intent.rb +7694 -2738
  113. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
  114. data/lib/stripe/resources/payment_method.rb +192 -1
  115. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  116. data/lib/stripe/resources/payment_record.rb +1615 -0
  117. data/lib/stripe/resources/payout.rb +6 -0
  118. data/lib/stripe/resources/price.rb +30 -0
  119. data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
  120. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
  121. data/lib/stripe/resources/promotion_code.rb +10 -0
  122. data/lib/stripe/resources/quote.rb +2046 -6
  123. data/lib/stripe/resources/quote_line.rb +274 -0
  124. data/lib/stripe/resources/quote_preview_invoice.rb +663 -0
  125. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +364 -0
  126. data/lib/stripe/resources/refund.rb +9 -0
  127. data/lib/stripe/resources/setup_attempt.rb +21 -0
  128. data/lib/stripe/resources/setup_intent.rb +578 -9
  129. data/lib/stripe/resources/source.rb +29 -0
  130. data/lib/stripe/resources/subscription.rb +333 -9
  131. data/lib/stripe/resources/subscription_item.rb +84 -3
  132. data/lib/stripe/resources/subscription_schedule.rb +1013 -10
  133. data/lib/stripe/resources/tax/association.rb +66 -0
  134. data/lib/stripe/resources/tax/form.rb +211 -0
  135. data/lib/stripe/resources/tax_id.rb +12 -2
  136. data/lib/stripe/resources/terminal/reader.rb +156 -0
  137. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  138. data/lib/stripe/resources/transfer.rb +6 -0
  139. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  140. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  141. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  142. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  143. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  144. data/lib/stripe/resources/v2/core/account.rb +1746 -0
  145. data/lib/stripe/resources/v2/core/account_link.rb +56 -0
  146. data/lib/stripe/resources/v2/core/person.rb +276 -0
  147. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
  148. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
  149. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
  150. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
  151. data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
  152. data/lib/stripe/resources/v2/money_management/financial_account.rb +58 -0
  153. data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
  154. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
  155. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
  156. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
  157. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
  158. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
  159. data/lib/stripe/resources/v2/money_management/payout_method.rb +75 -0
  160. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
  161. data/lib/stripe/resources/v2/money_management/received_credit.rb +116 -0
  162. data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
  163. data/lib/stripe/resources/v2/money_management/transaction.rb +78 -0
  164. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +68 -0
  165. data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
  166. data/lib/stripe/resources.rb +104 -0
  167. data/lib/stripe/services/account_notice_service.rb +101 -0
  168. data/lib/stripe/services/account_service.rb +562 -1
  169. data/lib/stripe/services/account_session_service.rb +226 -1
  170. data/lib/stripe/services/balance_settings_service.rb +96 -0
  171. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  172. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  173. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  174. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  175. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  176. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  177. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  178. data/lib/stripe/services/capital_service.rb +15 -0
  179. data/lib/stripe/services/charge_service.rb +1418 -0
  180. data/lib/stripe/services/checkout/session_service.rb +247 -2
  181. data/lib/stripe/services/coupon_service.rb +17 -1
  182. data/lib/stripe/services/credit_note_service.rb +4 -0
  183. data/lib/stripe/services/customer_session_service.rb +4 -1
  184. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  185. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  186. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  187. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  188. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  189. data/lib/stripe/services/financial_connections_service.rb +2 -1
  190. data/lib/stripe/services/fx_quote_service.rb +123 -0
  191. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  192. data/lib/stripe/services/invoice_item_service.rb +74 -2
  193. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  194. data/lib/stripe/services/invoice_service.rb +1021 -16
  195. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  196. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  197. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  198. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  199. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  200. data/lib/stripe/services/issuing_service.rb +5 -1
  201. data/lib/stripe/services/margin_service.rb +119 -0
  202. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  203. data/lib/stripe/services/order_service.rb +2236 -0
  204. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  205. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  206. data/lib/stripe/services/payment_intent_service.rb +4733 -245
  207. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  208. data/lib/stripe/services/payment_method_service.rb +120 -1
  209. data/lib/stripe/services/payment_record_service.rb +542 -0
  210. data/lib/stripe/services/payout_service.rb +4 -0
  211. data/lib/stripe/services/price_service.rb +19 -0
  212. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  213. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  214. data/lib/stripe/services/privacy_service.rb +13 -0
  215. data/lib/stripe/services/promotion_code_service.rb +8 -0
  216. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  217. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  219. data/lib/stripe/services/quote_service.rb +1730 -7
  220. data/lib/stripe/services/setup_intent_service.rb +538 -9
  221. data/lib/stripe/services/subscription_item_service.rb +75 -3
  222. data/lib/stripe/services/subscription_schedule_service.rb +915 -10
  223. data/lib/stripe/services/subscription_service.rb +276 -9
  224. data/lib/stripe/services/tax/association_service.rb +31 -0
  225. data/lib/stripe/services/tax/form_service.rb +100 -0
  226. data/lib/stripe/services/tax_id_service.rb +8 -2
  227. data/lib/stripe/services/tax_service.rb +3 -1
  228. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  229. data/lib/stripe/services/terminal/reader_service.rb +90 -0
  230. data/lib/stripe/services/terminal_service.rb +2 -1
  231. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  232. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  233. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  234. data/lib/stripe/services/transfer_service.rb +4 -0
  235. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  236. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  237. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  238. data/lib/stripe/services/v1_services.rb +11 -2
  239. data/lib/stripe/services/v2/core/account_link_service.rb +76 -0
  240. data/lib/stripe/services/v2/core/account_service.rb +4138 -0
  241. data/lib/stripe/services/v2/core/accounts/person_service.rb +1046 -0
  242. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +131 -0
  243. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  244. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  245. data/lib/stripe/services/v2/core_service.rb +4 -1
  246. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  247. data/lib/stripe/services/v2/money_management/financial_account_service.rb +43 -0
  248. data/lib/stripe/services/v2/money_management/financial_address_service.rb +81 -0
  249. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  250. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  251. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +200 -0
  252. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  253. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  254. data/lib/stripe/services/v2/money_management/payout_method_service.rb +91 -0
  255. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  256. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  257. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  258. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  259. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  260. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  261. data/lib/stripe/services/v2/payment_service.rb +15 -0
  262. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
  263. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  264. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +49 -0
  265. data/lib/stripe/services/v2_services.rb +5 -2
  266. data/lib/stripe/services.rb +53 -1
  267. data/lib/stripe/stripe_configuration.rb +3 -1
  268. data/lib/stripe/stripe_object.rb +1 -1
  269. data/lib/stripe/util.rb +7 -1
  270. data/lib/stripe/version.rb +1 -1
  271. data/lib/stripe.rb +53 -0
  272. data/rbi/stripe.rbi +191639 -0
  273. data/stripe.gemspec +4 -1
  274. metadata +161 -324
  275. data/lib/stripe/services/invoice_payment_service.rb +0 -83
  276. data/rbi/stripe/resources/account.rbi +0 -4926
  277. data/rbi/stripe/resources/account_link.rbi +0 -74
  278. data/rbi/stripe/resources/account_session.rbi +0 -1013
  279. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  280. data/rbi/stripe/resources/application.rbi +0 -20
  281. data/rbi/stripe/resources/application_fee.rbi +0 -118
  282. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  283. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  284. data/rbi/stripe/resources/balance.rbi +0 -235
  285. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  286. data/rbi/stripe/resources/bank_account.rbi +0 -127
  287. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  288. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  289. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  290. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  291. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  292. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  293. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  294. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  295. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  296. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -645
  297. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  298. data/rbi/stripe/resources/capability.rbi +0 -125
  299. data/rbi/stripe/resources/card.rbi +0 -125
  300. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  301. data/rbi/stripe/resources/charge.rbi +0 -2069
  302. data/rbi/stripe/resources/checkout/session.rbi +0 -4004
  303. data/rbi/stripe/resources/climate/order.rbi +0 -245
  304. data/rbi/stripe/resources/climate/product.rbi +0 -75
  305. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  306. data/rbi/stripe/resources/confirmation_token.rbi +0 -1807
  307. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  308. data/rbi/stripe/resources/country_spec.rbi +0 -85
  309. data/rbi/stripe/resources/coupon.rbi +0 -250
  310. data/rbi/stripe/resources/credit_note.rbi +0 -752
  311. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  312. data/rbi/stripe/resources/customer.rbi +0 -1005
  313. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  314. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  315. data/rbi/stripe/resources/customer_session.rbi +0 -200
  316. data/rbi/stripe/resources/discount.rbi +0 -53
  317. data/rbi/stripe/resources/dispute.rbi +0 -761
  318. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  319. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  320. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  321. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  322. data/rbi/stripe/resources/event.rbi +0 -149
  323. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  324. data/rbi/stripe/resources/file.rbi +0 -143
  325. data/rbi/stripe/resources/file_link.rbi +0 -141
  326. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  327. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  328. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  329. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  330. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  331. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  332. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  333. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  334. data/rbi/stripe/resources/identity/verification_session.rbi +0 -526
  335. data/rbi/stripe/resources/invoice.rbi +0 -3812
  336. data/rbi/stripe/resources/invoice_item.rbi +0 -473
  337. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  338. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  339. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  340. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  341. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  342. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  343. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  344. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  345. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  346. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  347. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  348. data/rbi/stripe/resources/line_item.rbi +0 -72
  349. data/rbi/stripe/resources/login_link.rbi +0 -19
  350. data/rbi/stripe/resources/mandate.rbi +0 -187
  351. data/rbi/stripe/resources/payment_intent.rbi +0 -9647
  352. data/rbi/stripe/resources/payment_link.rbi +0 -1801
  353. data/rbi/stripe/resources/payment_method.rbi +0 -1761
  354. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  355. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  356. data/rbi/stripe/resources/payout.rbi +0 -300
  357. data/rbi/stripe/resources/person.rbi +0 -401
  358. data/rbi/stripe/resources/plan.rbi +0 -371
  359. data/rbi/stripe/resources/price.rbi +0 -694
  360. data/rbi/stripe/resources/product.rbi +0 -555
  361. data/rbi/stripe/resources/product_feature.rbi +0 -26
  362. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  363. data/rbi/stripe/resources/quote.rbi +0 -1126
  364. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  365. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  366. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  367. data/rbi/stripe/resources/refund.rbi +0 -523
  368. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  369. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  370. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  371. data/rbi/stripe/resources/reversal.rbi +0 -51
  372. data/rbi/stripe/resources/review.rbi +0 -154
  373. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  374. data/rbi/stripe/resources/setup_intent.rbi +0 -3655
  375. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  376. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  377. data/rbi/stripe/resources/source.rbi +0 -1496
  378. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  379. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  380. data/rbi/stripe/resources/subscription.rbi +0 -2027
  381. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  382. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1623
  383. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  384. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  385. data/rbi/stripe/resources/tax/registration.rbi +0 -2713
  386. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  387. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  388. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  389. data/rbi/stripe/resources/tax_code.rbi +0 -44
  390. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  391. data/rbi/stripe/resources/tax_id.rbi +0 -165
  392. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  393. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1386
  394. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  395. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  396. data/rbi/stripe/resources/terminal/reader.rbi +0 -847
  397. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  398. data/rbi/stripe/resources/token.rbi +0 -1283
  399. data/rbi/stripe/resources/topup.rbi +0 -222
  400. data/rbi/stripe/resources/transfer.rbi +0 -199
  401. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  402. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  403. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -865
  404. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  405. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  406. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  407. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  408. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  409. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  410. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  411. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  412. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  413. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  414. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  415. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  416. data/rbi/stripe/resources/v2/event.rbi +0 -48
  417. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  418. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  419. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  420. data/rbi/stripe/services/account_link_service.rbi +0 -58
  421. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  422. data/rbi/stripe/services/account_person_service.rbi +0 -1011
  423. data/rbi/stripe/services/account_service.rbi +0 -4213
  424. data/rbi/stripe/services/account_session_service.rbi +0 -646
  425. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  426. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  427. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  428. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  429. data/rbi/stripe/services/apps_service.rbi +0 -9
  430. data/rbi/stripe/services/balance_service.rbi +0 -21
  431. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  432. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  433. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  434. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  435. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  436. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  437. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  438. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  439. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  440. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -511
  441. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  442. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  443. data/rbi/stripe/services/billing_service.rbi +0 -15
  444. data/rbi/stripe/services/charge_service.rbi +0 -448
  445. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  446. data/rbi/stripe/services/checkout/session_service.rbi +0 -2614
  447. data/rbi/stripe/services/checkout_service.rbi +0 -9
  448. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  449. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  450. data/rbi/stripe/services/climate_service.rbi +0 -11
  451. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  452. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  453. data/rbi/stripe/services/coupon_service.rbi +0 -194
  454. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  455. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  456. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  457. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  458. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  459. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  460. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  461. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  462. data/rbi/stripe/services/customer_service.rbi +0 -647
  463. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  464. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  465. data/rbi/stripe/services/dispute_service.rbi +0 -424
  466. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  467. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  468. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  469. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  470. data/rbi/stripe/services/event_service.rbi +0 -83
  471. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  472. data/rbi/stripe/services/file_link_service.rbi +0 -124
  473. data/rbi/stripe/services/file_service.rbi +0 -116
  474. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  475. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  476. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  477. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  478. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  479. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  480. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  481. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  482. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -323
  483. data/rbi/stripe/services/identity_service.rbi +0 -10
  484. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  485. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  486. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  487. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  488. data/rbi/stripe/services/invoice_service.rbi +0 -2981
  489. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  490. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  491. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  492. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  493. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  494. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  495. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  496. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  497. data/rbi/stripe/services/issuing_service.rbi +0 -16
  498. data/rbi/stripe/services/mandate_service.rbi +0 -20
  499. data/rbi/stripe/services/payment_intent_service.rbi +0 -7659
  500. data/rbi/stripe/services/payment_link_service.rbi +0 -1352
  501. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  502. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  503. data/rbi/stripe/services/payment_method_service.rbi +0 -776
  504. data/rbi/stripe/services/payout_service.rbi +0 -205
  505. data/rbi/stripe/services/plan_service.rbi +0 -282
  506. data/rbi/stripe/services/price_service.rbi +0 -546
  507. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  508. data/rbi/stripe/services/product_service.rbi +0 -477
  509. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  510. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  511. data/rbi/stripe/services/quote_service.rbi +0 -686
  512. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  513. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  514. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  515. data/rbi/stripe/services/radar_service.rbi +0 -11
  516. data/rbi/stripe/services/refund_service.rbi +0 -185
  517. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  518. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  519. data/rbi/stripe/services/reporting_service.rbi +0 -10
  520. data/rbi/stripe/services/review_service.rbi +0 -84
  521. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  522. data/rbi/stripe/services/setup_intent_service.rbi +0 -3391
  523. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  524. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  525. data/rbi/stripe/services/sigma_service.rbi +0 -9
  526. data/rbi/stripe/services/source_service.rbi +0 -663
  527. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  528. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1290
  529. data/rbi/stripe/services/subscription_service.rbi +0 -1648
  530. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  531. data/rbi/stripe/services/tax/registration_service.rbi +0 -1845
  532. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  533. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  534. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  535. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  536. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  537. data/rbi/stripe/services/tax_service.rbi +0 -12
  538. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1118
  539. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  540. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  541. data/rbi/stripe/services/terminal/reader_service.rbi +0 -455
  542. data/rbi/stripe/services/terminal_service.rbi +0 -12
  543. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -739
  544. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  545. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  546. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  547. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  548. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  549. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  550. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  551. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -93
  552. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  553. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  554. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  555. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  556. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  557. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  558. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  559. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  560. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  561. data/rbi/stripe/services/token_service.rbi +0 -1257
  562. data/rbi/stripe/services/topup_service.rbi +0 -176
  563. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  564. data/rbi/stripe/services/transfer_service.rbi +0 -152
  565. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  566. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  567. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  568. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -562
  569. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  570. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  571. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  572. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  573. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  574. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  575. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  576. data/rbi/stripe/services/treasury_service.rbi +0 -18
  577. data/rbi/stripe/services/v1_services.rbi +0 -77
  578. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  579. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  580. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  581. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  582. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  583. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  584. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  585. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  586. data/rbi/stripe/services/v2_services.rbi +0 -10
  587. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -29,6 +29,8 @@ 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
32
34
  # 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.
33
35
  attr_accessor :ending_before
34
36
  # Specifies which fields in the response should be expanded.
@@ -44,6 +46,7 @@ module Stripe
44
46
  attach_to_self: nil,
45
47
  created: nil,
46
48
  customer: nil,
49
+ customer_account: nil,
47
50
  ending_before: nil,
48
51
  expand: nil,
49
52
  limit: nil,
@@ -53,6 +56,7 @@ module Stripe
53
56
  @attach_to_self = attach_to_self
54
57
  @created = created
55
58
  @customer = customer
59
+ @customer_account = customer_account
56
60
  @ending_before = ending_before
57
61
  @expand = expand
58
62
  @limit = limit
@@ -251,8 +255,18 @@ module Stripe
251
255
  end
252
256
 
253
257
  class Giropay < Stripe::RequestParams; end
258
+ class Gopay < Stripe::RequestParams; end
254
259
  class Grabpay < Stripe::RequestParams; end
255
260
 
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
+
256
270
  class Ideal < Stripe::RequestParams
257
271
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
258
272
  attr_accessor :bank
@@ -291,6 +305,7 @@ module Stripe
291
305
  class Konbini < Stripe::RequestParams; end
292
306
  class KrCard < Stripe::RequestParams; end
293
307
  class Link < Stripe::RequestParams; end
308
+ class MbWay < Stripe::RequestParams; end
294
309
  class Mobilepay < Stripe::RequestParams; end
295
310
  class Multibanco < Stripe::RequestParams; end
296
311
 
@@ -349,8 +364,25 @@ module Stripe
349
364
  class Payco < Stripe::RequestParams; end
350
365
  class Paynow < Stripe::RequestParams; end
351
366
  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
+
352
383
  class Pix < Stripe::RequestParams; end
353
384
  class Promptpay < Stripe::RequestParams; end
385
+ class Qris < Stripe::RequestParams; end
354
386
 
355
387
  class RadarOptions < Stripe::RequestParams
356
388
  # 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.
@@ -361,6 +393,29 @@ module Stripe
361
393
  end
362
394
  end
363
395
 
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
+
364
419
  class RevolutPay < Stripe::RequestParams; end
365
420
  class SamsungPay < Stripe::RequestParams; end
366
421
  class Satispay < Stripe::RequestParams; end
@@ -374,6 +429,8 @@ module Stripe
374
429
  end
375
430
  end
376
431
 
432
+ class Shopeepay < Stripe::RequestParams; end
433
+
377
434
  class Sofort < Stripe::RequestParams
378
435
  # Two-letter ISO code representing the country the bank account is located in.
379
436
  attr_accessor :country
@@ -383,6 +440,18 @@ module Stripe
383
440
  end
384
441
  end
385
442
 
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
+
386
455
  class Swish < Stripe::RequestParams; end
387
456
  class Twint < Stripe::RequestParams; end
388
457
 
@@ -453,8 +522,12 @@ module Stripe
453
522
  attr_accessor :fpx
454
523
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
455
524
  attr_accessor :giropay
525
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
526
+ attr_accessor :gopay
456
527
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
457
528
  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
458
531
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
459
532
  attr_accessor :ideal
460
533
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -469,6 +542,8 @@ module Stripe
469
542
  attr_accessor :kr_card
470
543
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
471
544
  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
472
547
  # 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`.
473
548
  attr_accessor :metadata
474
549
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -491,12 +566,18 @@ module Stripe
491
566
  attr_accessor :paynow
492
567
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
493
568
  attr_accessor :paypal
569
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
570
+ attr_accessor :payto
494
571
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
495
572
  attr_accessor :pix
496
573
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
497
574
  attr_accessor :promptpay
575
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
576
+ attr_accessor :qris
498
577
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
499
578
  attr_accessor :radar_options
579
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
580
+ attr_accessor :rechnung
500
581
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
501
582
  attr_accessor :revolut_pay
502
583
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -505,8 +586,12 @@ module Stripe
505
586
  attr_accessor :satispay
506
587
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
507
588
  attr_accessor :sepa_debit
589
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
590
+ attr_accessor :shopeepay
508
591
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
509
592
  attr_accessor :sofort
593
+ # This hash contains details about the Stripe balance payment method.
594
+ attr_accessor :stripe_balance
510
595
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
511
596
  attr_accessor :swish
512
597
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -540,7 +625,9 @@ module Stripe
540
625
  eps: nil,
541
626
  fpx: nil,
542
627
  giropay: nil,
628
+ gopay: nil,
543
629
  grabpay: nil,
630
+ id_bank_transfer: nil,
544
631
  ideal: nil,
545
632
  interac_present: nil,
546
633
  kakao_pay: nil,
@@ -548,6 +635,7 @@ module Stripe
548
635
  konbini: nil,
549
636
  kr_card: nil,
550
637
  link: nil,
638
+ mb_way: nil,
551
639
  metadata: nil,
552
640
  mobilepay: nil,
553
641
  multibanco: nil,
@@ -559,14 +647,19 @@ module Stripe
559
647
  payco: nil,
560
648
  paynow: nil,
561
649
  paypal: nil,
650
+ payto: nil,
562
651
  pix: nil,
563
652
  promptpay: nil,
653
+ qris: nil,
564
654
  radar_options: nil,
655
+ rechnung: nil,
565
656
  revolut_pay: nil,
566
657
  samsung_pay: nil,
567
658
  satispay: nil,
568
659
  sepa_debit: nil,
660
+ shopeepay: nil,
569
661
  sofort: nil,
662
+ stripe_balance: nil,
570
663
  swish: nil,
571
664
  twint: nil,
572
665
  type: nil,
@@ -593,7 +686,9 @@ module Stripe
593
686
  @eps = eps
594
687
  @fpx = fpx
595
688
  @giropay = giropay
689
+ @gopay = gopay
596
690
  @grabpay = grabpay
691
+ @id_bank_transfer = id_bank_transfer
597
692
  @ideal = ideal
598
693
  @interac_present = interac_present
599
694
  @kakao_pay = kakao_pay
@@ -601,6 +696,7 @@ module Stripe
601
696
  @konbini = konbini
602
697
  @kr_card = kr_card
603
698
  @link = link
699
+ @mb_way = mb_way
604
700
  @metadata = metadata
605
701
  @mobilepay = mobilepay
606
702
  @multibanco = multibanco
@@ -612,14 +708,19 @@ module Stripe
612
708
  @payco = payco
613
709
  @paynow = paynow
614
710
  @paypal = paypal
711
+ @payto = payto
615
712
  @pix = pix
616
713
  @promptpay = promptpay
714
+ @qris = qris
617
715
  @radar_options = radar_options
716
+ @rechnung = rechnung
618
717
  @revolut_pay = revolut_pay
619
718
  @samsung_pay = samsung_pay
620
719
  @satispay = satispay
621
720
  @sepa_debit = sepa_debit
721
+ @shopeepay = shopeepay
622
722
  @sofort = sofort
723
+ @stripe_balance = stripe_balance
623
724
  @swish = swish
624
725
  @twint = twint
625
726
  @type = type
@@ -853,9 +954,58 @@ module Stripe
853
954
  class Paypal < Stripe::RequestParams
854
955
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
855
956
  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
856
961
 
857
- def initialize(billing_agreement_id: nil)
962
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
858
963
  @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
859
1009
  end
860
1010
  end
861
1011
 
@@ -881,13 +1031,27 @@ module Stripe
881
1031
  class Filters < Stripe::RequestParams
882
1032
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
883
1033
  attr_accessor :account_subcategories
1034
+ # ID of the institution to use to filter for selectable accounts.
1035
+ attr_accessor :institution
884
1036
 
885
- def initialize(account_subcategories: nil)
1037
+ def initialize(account_subcategories: nil, institution: nil)
886
1038
  @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
887
1049
  end
888
1050
  end
889
1051
  # Provide filters for the linked accounts that the customer can select for the payment method.
890
1052
  attr_accessor :filters
1053
+ # Customize manual entry behavior
1054
+ attr_accessor :manual_entry
891
1055
  # 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`.
892
1056
  attr_accessor :permissions
893
1057
  # List of data features that you would like to retrieve upon account creation.
@@ -895,8 +1059,15 @@ module Stripe
895
1059
  # 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.
896
1060
  attr_accessor :return_url
897
1061
 
898
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
1062
+ def initialize(
1063
+ filters: nil,
1064
+ manual_entry: nil,
1065
+ permissions: nil,
1066
+ prefetch: nil,
1067
+ return_url: nil
1068
+ )
899
1069
  @filters = filters
1070
+ @manual_entry = manual_entry
900
1071
  @permissions = permissions
901
1072
  @prefetch = prefetch
902
1073
  @return_url = return_url
@@ -955,6 +1126,8 @@ module Stripe
955
1126
  attr_accessor :link
956
1127
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
957
1128
  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
958
1131
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
959
1132
  attr_accessor :sepa_debit
960
1133
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -968,6 +1141,7 @@ module Stripe
968
1141
  card_present: nil,
969
1142
  link: nil,
970
1143
  paypal: nil,
1144
+ payto: nil,
971
1145
  sepa_debit: nil,
972
1146
  us_bank_account: nil
973
1147
  )
@@ -978,6 +1152,7 @@ module Stripe
978
1152
  @card_present = card_present
979
1153
  @link = link
980
1154
  @paypal = paypal
1155
+ @payto = payto
981
1156
  @sepa_debit = sepa_debit
982
1157
  @us_bank_account = us_bank_account
983
1158
  end
@@ -1010,6 +1185,10 @@ module Stripe
1010
1185
  #
1011
1186
  # 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.
1012
1187
  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
1013
1192
  # An arbitrary string attached to the object. Often useful for displaying to users.
1014
1193
  attr_accessor :description
1015
1194
  # Specifies which fields in the response should be expanded.
@@ -1052,6 +1231,7 @@ module Stripe
1052
1231
  confirm: nil,
1053
1232
  confirmation_token: nil,
1054
1233
  customer: nil,
1234
+ customer_account: nil,
1055
1235
  description: nil,
1056
1236
  expand: nil,
1057
1237
  flow_directions: nil,
@@ -1073,6 +1253,7 @@ module Stripe
1073
1253
  @confirm = confirm
1074
1254
  @confirmation_token = confirmation_token
1075
1255
  @customer = customer
1256
+ @customer_account = customer_account
1076
1257
  @description = description
1077
1258
  @expand = expand
1078
1259
  @flow_directions = flow_directions
@@ -1240,8 +1421,18 @@ module Stripe
1240
1421
  end
1241
1422
 
1242
1423
  class Giropay < Stripe::RequestParams; end
1424
+ class Gopay < Stripe::RequestParams; end
1243
1425
  class Grabpay < Stripe::RequestParams; end
1244
1426
 
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
+
1245
1436
  class Ideal < Stripe::RequestParams
1246
1437
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1247
1438
  attr_accessor :bank
@@ -1280,6 +1471,7 @@ module Stripe
1280
1471
  class Konbini < Stripe::RequestParams; end
1281
1472
  class KrCard < Stripe::RequestParams; end
1282
1473
  class Link < Stripe::RequestParams; end
1474
+ class MbWay < Stripe::RequestParams; end
1283
1475
  class Mobilepay < Stripe::RequestParams; end
1284
1476
  class Multibanco < Stripe::RequestParams; end
1285
1477
 
@@ -1338,8 +1530,25 @@ module Stripe
1338
1530
  class Payco < Stripe::RequestParams; end
1339
1531
  class Paynow < Stripe::RequestParams; end
1340
1532
  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
+
1341
1549
  class Pix < Stripe::RequestParams; end
1342
1550
  class Promptpay < Stripe::RequestParams; end
1551
+ class Qris < Stripe::RequestParams; end
1343
1552
 
1344
1553
  class RadarOptions < Stripe::RequestParams
1345
1554
  # 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.
@@ -1350,6 +1559,29 @@ module Stripe
1350
1559
  end
1351
1560
  end
1352
1561
 
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
+
1353
1585
  class RevolutPay < Stripe::RequestParams; end
1354
1586
  class SamsungPay < Stripe::RequestParams; end
1355
1587
  class Satispay < Stripe::RequestParams; end
@@ -1363,6 +1595,8 @@ module Stripe
1363
1595
  end
1364
1596
  end
1365
1597
 
1598
+ class Shopeepay < Stripe::RequestParams; end
1599
+
1366
1600
  class Sofort < Stripe::RequestParams
1367
1601
  # Two-letter ISO code representing the country the bank account is located in.
1368
1602
  attr_accessor :country
@@ -1372,6 +1606,18 @@ module Stripe
1372
1606
  end
1373
1607
  end
1374
1608
 
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
+
1375
1621
  class Swish < Stripe::RequestParams; end
1376
1622
  class Twint < Stripe::RequestParams; end
1377
1623
 
@@ -1442,8 +1688,12 @@ module Stripe
1442
1688
  attr_accessor :fpx
1443
1689
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1444
1690
  attr_accessor :giropay
1691
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1692
+ attr_accessor :gopay
1445
1693
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1446
1694
  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
1447
1697
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1448
1698
  attr_accessor :ideal
1449
1699
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1458,6 +1708,8 @@ module Stripe
1458
1708
  attr_accessor :kr_card
1459
1709
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1460
1710
  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
1461
1713
  # 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`.
1462
1714
  attr_accessor :metadata
1463
1715
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -1480,12 +1732,18 @@ module Stripe
1480
1732
  attr_accessor :paynow
1481
1733
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1482
1734
  attr_accessor :paypal
1735
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1736
+ attr_accessor :payto
1483
1737
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1484
1738
  attr_accessor :pix
1485
1739
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1486
1740
  attr_accessor :promptpay
1741
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1742
+ attr_accessor :qris
1487
1743
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1488
1744
  attr_accessor :radar_options
1745
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1746
+ attr_accessor :rechnung
1489
1747
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1490
1748
  attr_accessor :revolut_pay
1491
1749
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1494,8 +1752,12 @@ module Stripe
1494
1752
  attr_accessor :satispay
1495
1753
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1496
1754
  attr_accessor :sepa_debit
1755
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1756
+ attr_accessor :shopeepay
1497
1757
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1498
1758
  attr_accessor :sofort
1759
+ # This hash contains details about the Stripe balance payment method.
1760
+ attr_accessor :stripe_balance
1499
1761
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1500
1762
  attr_accessor :swish
1501
1763
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -1529,7 +1791,9 @@ module Stripe
1529
1791
  eps: nil,
1530
1792
  fpx: nil,
1531
1793
  giropay: nil,
1794
+ gopay: nil,
1532
1795
  grabpay: nil,
1796
+ id_bank_transfer: nil,
1533
1797
  ideal: nil,
1534
1798
  interac_present: nil,
1535
1799
  kakao_pay: nil,
@@ -1537,6 +1801,7 @@ module Stripe
1537
1801
  konbini: nil,
1538
1802
  kr_card: nil,
1539
1803
  link: nil,
1804
+ mb_way: nil,
1540
1805
  metadata: nil,
1541
1806
  mobilepay: nil,
1542
1807
  multibanco: nil,
@@ -1548,14 +1813,19 @@ module Stripe
1548
1813
  payco: nil,
1549
1814
  paynow: nil,
1550
1815
  paypal: nil,
1816
+ payto: nil,
1551
1817
  pix: nil,
1552
1818
  promptpay: nil,
1819
+ qris: nil,
1553
1820
  radar_options: nil,
1821
+ rechnung: nil,
1554
1822
  revolut_pay: nil,
1555
1823
  samsung_pay: nil,
1556
1824
  satispay: nil,
1557
1825
  sepa_debit: nil,
1826
+ shopeepay: nil,
1558
1827
  sofort: nil,
1828
+ stripe_balance: nil,
1559
1829
  swish: nil,
1560
1830
  twint: nil,
1561
1831
  type: nil,
@@ -1582,7 +1852,9 @@ module Stripe
1582
1852
  @eps = eps
1583
1853
  @fpx = fpx
1584
1854
  @giropay = giropay
1855
+ @gopay = gopay
1585
1856
  @grabpay = grabpay
1857
+ @id_bank_transfer = id_bank_transfer
1586
1858
  @ideal = ideal
1587
1859
  @interac_present = interac_present
1588
1860
  @kakao_pay = kakao_pay
@@ -1590,6 +1862,7 @@ module Stripe
1590
1862
  @konbini = konbini
1591
1863
  @kr_card = kr_card
1592
1864
  @link = link
1865
+ @mb_way = mb_way
1593
1866
  @metadata = metadata
1594
1867
  @mobilepay = mobilepay
1595
1868
  @multibanco = multibanco
@@ -1601,14 +1874,19 @@ module Stripe
1601
1874
  @payco = payco
1602
1875
  @paynow = paynow
1603
1876
  @paypal = paypal
1877
+ @payto = payto
1604
1878
  @pix = pix
1605
1879
  @promptpay = promptpay
1880
+ @qris = qris
1606
1881
  @radar_options = radar_options
1882
+ @rechnung = rechnung
1607
1883
  @revolut_pay = revolut_pay
1608
1884
  @samsung_pay = samsung_pay
1609
1885
  @satispay = satispay
1610
1886
  @sepa_debit = sepa_debit
1887
+ @shopeepay = shopeepay
1611
1888
  @sofort = sofort
1889
+ @stripe_balance = stripe_balance
1612
1890
  @swish = swish
1613
1891
  @twint = twint
1614
1892
  @type = type
@@ -1842,9 +2120,58 @@ module Stripe
1842
2120
  class Paypal < Stripe::RequestParams
1843
2121
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1844
2122
  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
1845
2127
 
1846
- def initialize(billing_agreement_id: nil)
2128
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
1847
2129
  @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
1848
2175
  end
1849
2176
  end
1850
2177
 
@@ -1870,13 +2197,27 @@ module Stripe
1870
2197
  class Filters < Stripe::RequestParams
1871
2198
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1872
2199
  attr_accessor :account_subcategories
2200
+ # ID of the institution to use to filter for selectable accounts.
2201
+ attr_accessor :institution
1873
2202
 
1874
- def initialize(account_subcategories: nil)
2203
+ def initialize(account_subcategories: nil, institution: nil)
1875
2204
  @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
1876
2215
  end
1877
2216
  end
1878
2217
  # Provide filters for the linked accounts that the customer can select for the payment method.
1879
2218
  attr_accessor :filters
2219
+ # Customize manual entry behavior
2220
+ attr_accessor :manual_entry
1880
2221
  # 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`.
1881
2222
  attr_accessor :permissions
1882
2223
  # List of data features that you would like to retrieve upon account creation.
@@ -1884,8 +2225,15 @@ module Stripe
1884
2225
  # 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.
1885
2226
  attr_accessor :return_url
1886
2227
 
1887
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
2228
+ def initialize(
2229
+ filters: nil,
2230
+ manual_entry: nil,
2231
+ permissions: nil,
2232
+ prefetch: nil,
2233
+ return_url: nil
2234
+ )
1888
2235
  @filters = filters
2236
+ @manual_entry = manual_entry
1889
2237
  @permissions = permissions
1890
2238
  @prefetch = prefetch
1891
2239
  @return_url = return_url
@@ -1944,6 +2292,8 @@ module Stripe
1944
2292
  attr_accessor :link
1945
2293
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1946
2294
  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
1947
2297
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1948
2298
  attr_accessor :sepa_debit
1949
2299
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -1957,6 +2307,7 @@ module Stripe
1957
2307
  card_present: nil,
1958
2308
  link: nil,
1959
2309
  paypal: nil,
2310
+ payto: nil,
1960
2311
  sepa_debit: nil,
1961
2312
  us_bank_account: nil
1962
2313
  )
@@ -1967,6 +2318,7 @@ module Stripe
1967
2318
  @card_present = card_present
1968
2319
  @link = link
1969
2320
  @paypal = paypal
2321
+ @payto = payto
1970
2322
  @sepa_debit = sepa_debit
1971
2323
  @us_bank_account = us_bank_account
1972
2324
  end
@@ -1979,6 +2331,10 @@ module Stripe
1979
2331
  #
1980
2332
  # 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.
1981
2333
  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
1982
2338
  # An arbitrary string attached to the object. Often useful for displaying to users.
1983
2339
  attr_accessor :description
1984
2340
  # Specifies which fields in the response should be expanded.
@@ -2004,6 +2360,7 @@ module Stripe
2004
2360
  def initialize(
2005
2361
  attach_to_self: nil,
2006
2362
  customer: nil,
2363
+ customer_account: nil,
2007
2364
  description: nil,
2008
2365
  expand: nil,
2009
2366
  flow_directions: nil,
@@ -2016,6 +2373,7 @@ module Stripe
2016
2373
  )
2017
2374
  @attach_to_self = attach_to_self
2018
2375
  @customer = customer
2376
+ @customer_account = customer_account
2019
2377
  @description = description
2020
2378
  @expand = expand
2021
2379
  @flow_directions = flow_directions
@@ -2216,8 +2574,18 @@ module Stripe
2216
2574
  end
2217
2575
 
2218
2576
  class Giropay < Stripe::RequestParams; end
2577
+ class Gopay < Stripe::RequestParams; end
2219
2578
  class Grabpay < Stripe::RequestParams; end
2220
2579
 
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
+
2221
2589
  class Ideal < Stripe::RequestParams
2222
2590
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2223
2591
  attr_accessor :bank
@@ -2256,6 +2624,7 @@ module Stripe
2256
2624
  class Konbini < Stripe::RequestParams; end
2257
2625
  class KrCard < Stripe::RequestParams; end
2258
2626
  class Link < Stripe::RequestParams; end
2627
+ class MbWay < Stripe::RequestParams; end
2259
2628
  class Mobilepay < Stripe::RequestParams; end
2260
2629
  class Multibanco < Stripe::RequestParams; end
2261
2630
 
@@ -2314,8 +2683,25 @@ module Stripe
2314
2683
  class Payco < Stripe::RequestParams; end
2315
2684
  class Paynow < Stripe::RequestParams; end
2316
2685
  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
+
2317
2702
  class Pix < Stripe::RequestParams; end
2318
2703
  class Promptpay < Stripe::RequestParams; end
2704
+ class Qris < Stripe::RequestParams; end
2319
2705
 
2320
2706
  class RadarOptions < Stripe::RequestParams
2321
2707
  # 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.
@@ -2326,6 +2712,29 @@ module Stripe
2326
2712
  end
2327
2713
  end
2328
2714
 
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
+
2329
2738
  class RevolutPay < Stripe::RequestParams; end
2330
2739
  class SamsungPay < Stripe::RequestParams; end
2331
2740
  class Satispay < Stripe::RequestParams; end
@@ -2339,6 +2748,8 @@ module Stripe
2339
2748
  end
2340
2749
  end
2341
2750
 
2751
+ class Shopeepay < Stripe::RequestParams; end
2752
+
2342
2753
  class Sofort < Stripe::RequestParams
2343
2754
  # Two-letter ISO code representing the country the bank account is located in.
2344
2755
  attr_accessor :country
@@ -2348,6 +2759,18 @@ module Stripe
2348
2759
  end
2349
2760
  end
2350
2761
 
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
+
2351
2774
  class Swish < Stripe::RequestParams; end
2352
2775
  class Twint < Stripe::RequestParams; end
2353
2776
 
@@ -2418,8 +2841,12 @@ module Stripe
2418
2841
  attr_accessor :fpx
2419
2842
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2420
2843
  attr_accessor :giropay
2844
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2845
+ attr_accessor :gopay
2421
2846
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2422
2847
  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
2423
2850
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2424
2851
  attr_accessor :ideal
2425
2852
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2434,6 +2861,8 @@ module Stripe
2434
2861
  attr_accessor :kr_card
2435
2862
  # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2436
2863
  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
2437
2866
  # 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`.
2438
2867
  attr_accessor :metadata
2439
2868
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -2456,12 +2885,18 @@ module Stripe
2456
2885
  attr_accessor :paynow
2457
2886
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2458
2887
  attr_accessor :paypal
2888
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2889
+ attr_accessor :payto
2459
2890
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2460
2891
  attr_accessor :pix
2461
2892
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2462
2893
  attr_accessor :promptpay
2894
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2895
+ attr_accessor :qris
2463
2896
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
2464
2897
  attr_accessor :radar_options
2898
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2899
+ attr_accessor :rechnung
2465
2900
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2466
2901
  attr_accessor :revolut_pay
2467
2902
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -2470,8 +2905,12 @@ module Stripe
2470
2905
  attr_accessor :satispay
2471
2906
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2472
2907
  attr_accessor :sepa_debit
2908
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2909
+ attr_accessor :shopeepay
2473
2910
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2474
2911
  attr_accessor :sofort
2912
+ # This hash contains details about the Stripe balance payment method.
2913
+ attr_accessor :stripe_balance
2475
2914
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
2476
2915
  attr_accessor :swish
2477
2916
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -2505,7 +2944,9 @@ module Stripe
2505
2944
  eps: nil,
2506
2945
  fpx: nil,
2507
2946
  giropay: nil,
2947
+ gopay: nil,
2508
2948
  grabpay: nil,
2949
+ id_bank_transfer: nil,
2509
2950
  ideal: nil,
2510
2951
  interac_present: nil,
2511
2952
  kakao_pay: nil,
@@ -2513,6 +2954,7 @@ module Stripe
2513
2954
  konbini: nil,
2514
2955
  kr_card: nil,
2515
2956
  link: nil,
2957
+ mb_way: nil,
2516
2958
  metadata: nil,
2517
2959
  mobilepay: nil,
2518
2960
  multibanco: nil,
@@ -2524,14 +2966,19 @@ module Stripe
2524
2966
  payco: nil,
2525
2967
  paynow: nil,
2526
2968
  paypal: nil,
2969
+ payto: nil,
2527
2970
  pix: nil,
2528
2971
  promptpay: nil,
2972
+ qris: nil,
2529
2973
  radar_options: nil,
2974
+ rechnung: nil,
2530
2975
  revolut_pay: nil,
2531
2976
  samsung_pay: nil,
2532
2977
  satispay: nil,
2533
2978
  sepa_debit: nil,
2979
+ shopeepay: nil,
2534
2980
  sofort: nil,
2981
+ stripe_balance: nil,
2535
2982
  swish: nil,
2536
2983
  twint: nil,
2537
2984
  type: nil,
@@ -2558,7 +3005,9 @@ module Stripe
2558
3005
  @eps = eps
2559
3006
  @fpx = fpx
2560
3007
  @giropay = giropay
3008
+ @gopay = gopay
2561
3009
  @grabpay = grabpay
3010
+ @id_bank_transfer = id_bank_transfer
2562
3011
  @ideal = ideal
2563
3012
  @interac_present = interac_present
2564
3013
  @kakao_pay = kakao_pay
@@ -2566,6 +3015,7 @@ module Stripe
2566
3015
  @konbini = konbini
2567
3016
  @kr_card = kr_card
2568
3017
  @link = link
3018
+ @mb_way = mb_way
2569
3019
  @metadata = metadata
2570
3020
  @mobilepay = mobilepay
2571
3021
  @multibanco = multibanco
@@ -2577,14 +3027,19 @@ module Stripe
2577
3027
  @payco = payco
2578
3028
  @paynow = paynow
2579
3029
  @paypal = paypal
3030
+ @payto = payto
2580
3031
  @pix = pix
2581
3032
  @promptpay = promptpay
3033
+ @qris = qris
2582
3034
  @radar_options = radar_options
3035
+ @rechnung = rechnung
2583
3036
  @revolut_pay = revolut_pay
2584
3037
  @samsung_pay = samsung_pay
2585
3038
  @satispay = satispay
2586
3039
  @sepa_debit = sepa_debit
3040
+ @shopeepay = shopeepay
2587
3041
  @sofort = sofort
3042
+ @stripe_balance = stripe_balance
2588
3043
  @swish = swish
2589
3044
  @twint = twint
2590
3045
  @type = type
@@ -2818,9 +3273,58 @@ module Stripe
2818
3273
  class Paypal < Stripe::RequestParams
2819
3274
  # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2820
3275
  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
2821
3280
 
2822
- def initialize(billing_agreement_id: nil)
3281
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
2823
3282
  @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
2824
3328
  end
2825
3329
  end
2826
3330
 
@@ -2846,13 +3350,27 @@ module Stripe
2846
3350
  class Filters < Stripe::RequestParams
2847
3351
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2848
3352
  attr_accessor :account_subcategories
3353
+ # ID of the institution to use to filter for selectable accounts.
3354
+ attr_accessor :institution
2849
3355
 
2850
- def initialize(account_subcategories: nil)
3356
+ def initialize(account_subcategories: nil, institution: nil)
2851
3357
  @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
2852
3368
  end
2853
3369
  end
2854
3370
  # Provide filters for the linked accounts that the customer can select for the payment method.
2855
3371
  attr_accessor :filters
3372
+ # Customize manual entry behavior
3373
+ attr_accessor :manual_entry
2856
3374
  # 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`.
2857
3375
  attr_accessor :permissions
2858
3376
  # List of data features that you would like to retrieve upon account creation.
@@ -2860,8 +3378,15 @@ module Stripe
2860
3378
  # 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.
2861
3379
  attr_accessor :return_url
2862
3380
 
2863
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3381
+ def initialize(
3382
+ filters: nil,
3383
+ manual_entry: nil,
3384
+ permissions: nil,
3385
+ prefetch: nil,
3386
+ return_url: nil
3387
+ )
2864
3388
  @filters = filters
3389
+ @manual_entry = manual_entry
2865
3390
  @permissions = permissions
2866
3391
  @prefetch = prefetch
2867
3392
  @return_url = return_url
@@ -2920,6 +3445,8 @@ module Stripe
2920
3445
  attr_accessor :link
2921
3446
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2922
3447
  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
2923
3450
  # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2924
3451
  attr_accessor :sepa_debit
2925
3452
  # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
@@ -2933,6 +3460,7 @@ module Stripe
2933
3460
  card_present: nil,
2934
3461
  link: nil,
2935
3462
  paypal: nil,
3463
+ payto: nil,
2936
3464
  sepa_debit: nil,
2937
3465
  us_bank_account: nil
2938
3466
  )
@@ -2943,6 +3471,7 @@ module Stripe
2943
3471
  @card_present = card_present
2944
3472
  @link = link
2945
3473
  @paypal = paypal
3474
+ @payto = payto
2946
3475
  @sepa_debit = sepa_debit
2947
3476
  @us_bank_account = us_bank_account
2948
3477
  end