stripe 13.3.0 → 13.4.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (743) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1416 -645
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_operations/request.rb +1 -0
  6. data/lib/stripe/api_requestor.rb +1 -0
  7. data/lib/stripe/object_types.rb +32 -0
  8. data/lib/stripe/request_params.rb +24 -0
  9. data/lib/stripe/request_signing_authenticator.rb +79 -0
  10. data/lib/stripe/resources/account.rb +5071 -0
  11. data/lib/stripe/resources/account_link.rb +54 -0
  12. data/lib/stripe/resources/account_notice.rb +132 -0
  13. data/lib/stripe/resources/account_session.rb +877 -0
  14. data/lib/stripe/resources/apple_pay_domain.rb +63 -0
  15. data/lib/stripe/resources/application.rb +20 -0
  16. data/lib/stripe/resources/application_fee.rb +96 -0
  17. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  18. data/lib/stripe/resources/apps/secret.rb +141 -0
  19. data/lib/stripe/resources/balance.rb +131 -0
  20. data/lib/stripe/resources/balance_transaction.rb +112 -0
  21. data/lib/stripe/resources/bank_account.rb +84 -2
  22. data/lib/stripe/resources/billing/alert.rb +144 -0
  23. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  24. data/lib/stripe/resources/billing/credit_balance_summary.rb +77 -0
  25. data/lib/stripe/resources/billing/credit_balance_transaction.rb +116 -0
  26. data/lib/stripe/resources/billing/credit_grant.rb +203 -0
  27. data/lib/stripe/resources/billing/meter.rb +178 -0
  28. data/lib/stripe/resources/billing/meter_error_report.rb +59 -0
  29. data/lib/stripe/resources/billing/meter_event.rb +35 -0
  30. data/lib/stripe/resources/billing/meter_event_adjustment.rb +43 -0
  31. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  32. data/lib/stripe/resources/billing_portal/configuration.rb +562 -0
  33. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  34. data/lib/stripe/resources/capability.rb +84 -0
  35. data/lib/stripe/resources/capital/financing_offer.rb +188 -0
  36. data/lib/stripe/resources/capital/financing_summary.rb +64 -0
  37. data/lib/stripe/resources/capital/financing_transaction.rb +123 -0
  38. data/lib/stripe/resources/card.rb +79 -0
  39. data/lib/stripe/resources/cash_balance.rb +17 -0
  40. data/lib/stripe/resources/charge.rb +3026 -0
  41. data/lib/stripe/resources/checkout/session.rb +3654 -0
  42. data/lib/stripe/resources/climate/order.rb +176 -0
  43. data/lib/stripe/resources/climate/product.rb +56 -0
  44. data/lib/stripe/resources/climate/supplier.rb +54 -0
  45. data/lib/stripe/resources/confirmation_token.rb +1520 -0
  46. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  47. data/lib/stripe/resources/country_spec.rb +63 -0
  48. data/lib/stripe/resources/coupon.rb +198 -0
  49. data/lib/stripe/resources/credit_note.rb +660 -0
  50. data/lib/stripe/resources/credit_note_line_item.rb +65 -0
  51. data/lib/stripe/resources/customer.rb +840 -0
  52. data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
  53. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  54. data/lib/stripe/resources/customer_session.rb +159 -0
  55. data/lib/stripe/resources/discount.rb +29 -0
  56. data/lib/stripe/resources/dispute.rb +619 -0
  57. data/lib/stripe/resources/entitlements/active_entitlement.rb +46 -0
  58. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  59. data/lib/stripe/resources/entitlements/feature.rb +90 -0
  60. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  61. data/lib/stripe/resources/event.rb +130 -0
  62. data/lib/stripe/resources/exchange_rate.rb +33 -0
  63. data/lib/stripe/resources/file.rb +111 -0
  64. data/lib/stripe/resources/file_link.rb +112 -0
  65. data/lib/stripe/resources/financial_connections/account.rb +260 -0
  66. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  67. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  68. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  69. data/lib/stripe/resources/financial_connections/institution.rb +99 -0
  70. data/lib/stripe/resources/financial_connections/session.rb +159 -0
  71. data/lib/stripe/resources/financial_connections/transaction.rb +101 -0
  72. data/lib/stripe/resources/forwarding/request.rb +165 -0
  73. data/lib/stripe/resources/funding_instructions.rb +308 -0
  74. data/lib/stripe/resources/gift_cards/card.rb +217 -0
  75. data/lib/stripe/resources/gift_cards/transaction.rb +281 -0
  76. data/lib/stripe/resources/identity/verification_report.rb +266 -0
  77. data/lib/stripe/resources/identity/verification_session.rb +361 -0
  78. data/lib/stripe/resources/invoice.rb +8078 -0
  79. data/lib/stripe/resources/invoice_item.rb +445 -0
  80. data/lib/stripe/resources/invoice_line_item.rb +333 -0
  81. data/lib/stripe/resources/invoice_payment.rb +56 -0
  82. data/lib/stripe/resources/invoice_rendering_template.rb +67 -0
  83. data/lib/stripe/resources/issuing/authorization.rb +1117 -2
  84. data/lib/stripe/resources/issuing/card.rb +666 -0
  85. data/lib/stripe/resources/issuing/cardholder.rb +658 -0
  86. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +611 -0
  87. data/lib/stripe/resources/issuing/dispute.rb +790 -0
  88. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +84 -0
  89. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +95 -0
  90. data/lib/stripe/resources/issuing/personalization_design.rb +285 -0
  91. data/lib/stripe/resources/issuing/physical_bundle.rb +63 -0
  92. data/lib/stripe/resources/issuing/settlement.rb +49 -0
  93. data/lib/stripe/resources/issuing/token.rb +175 -0
  94. data/lib/stripe/resources/issuing/transaction.rb +927 -0
  95. data/lib/stripe/resources/line_item.rb +75 -0
  96. data/lib/stripe/resources/login_link.rb +7 -0
  97. data/lib/stripe/resources/mandate.rb +169 -0
  98. data/lib/stripe/resources/margin.rb +124 -0
  99. data/lib/stripe/resources/order.rb +2850 -0
  100. data/lib/stripe/resources/payment_attempt_record.rb +184 -0
  101. data/lib/stripe/resources/payment_intent.rb +12864 -0
  102. data/lib/stripe/resources/payment_link.rb +1563 -0
  103. data/lib/stripe/resources/payment_method.rb +1638 -0
  104. data/lib/stripe/resources/payment_method_configuration.rb +2844 -0
  105. data/lib/stripe/resources/payment_method_domain.rb +153 -0
  106. data/lib/stripe/resources/payment_record.rb +715 -0
  107. data/lib/stripe/resources/payout.rb +218 -0
  108. data/lib/stripe/resources/person.rb +263 -0
  109. data/lib/stripe/resources/plan.rb +317 -0
  110. data/lib/stripe/resources/price.rb +649 -0
  111. data/lib/stripe/resources/product.rb +536 -0
  112. data/lib/stripe/resources/product_feature.rb +12 -0
  113. data/lib/stripe/resources/promotion_code.rb +221 -0
  114. data/lib/stripe/resources/quote.rb +2946 -0
  115. data/lib/stripe/resources/quote_line.rb +274 -0
  116. data/lib/stripe/resources/quote_preview_invoice.rb +652 -0
  117. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +362 -0
  118. data/lib/stripe/resources/radar/early_fraud_warning.rb +77 -0
  119. data/lib/stripe/resources/radar/value_list.rb +125 -0
  120. data/lib/stripe/resources/radar/value_list_item.rb +95 -0
  121. data/lib/stripe/resources/refund.rb +397 -0
  122. data/lib/stripe/resources/reporting/report_run.rb +150 -0
  123. data/lib/stripe/resources/reporting/report_type.rb +36 -0
  124. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  125. data/lib/stripe/resources/reversal.rb +21 -0
  126. data/lib/stripe/resources/review.rb +108 -0
  127. data/lib/stripe/resources/setup_attempt.rb +373 -0
  128. data/lib/stripe/resources/setup_intent.rb +3834 -0
  129. data/lib/stripe/resources/shipping_rate.rb +259 -0
  130. data/lib/stripe/resources/sigma/scheduled_query_run.rb +54 -0
  131. data/lib/stripe/resources/source.rb +1239 -0
  132. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  133. data/lib/stripe/resources/source_transaction.rb +85 -0
  134. data/lib/stripe/resources/subscription.rb +2057 -0
  135. data/lib/stripe/resources/subscription_item.rb +433 -0
  136. data/lib/stripe/resources/subscription_schedule.rb +2402 -0
  137. data/lib/stripe/resources/tax/association.rb +89 -0
  138. data/lib/stripe/resources/tax/calculation.rb +387 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  140. data/lib/stripe/resources/tax/form.rb +220 -0
  141. data/lib/stripe/resources/tax/registration.rb +2382 -0
  142. data/lib/stripe/resources/tax/settings.rb +126 -0
  143. data/lib/stripe/resources/tax/transaction.rb +267 -0
  144. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  145. data/lib/stripe/resources/tax_code.rb +35 -0
  146. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  147. data/lib/stripe/resources/tax_id.rb +121 -0
  148. data/lib/stripe/resources/tax_rate.rb +200 -0
  149. data/lib/stripe/resources/terminal/configuration.rb +1011 -0
  150. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  151. data/lib/stripe/resources/terminal/location.rb +175 -0
  152. data/lib/stripe/resources/terminal/reader.rb +782 -0
  153. data/lib/stripe/resources/terminal/reader_collected_data.rb +40 -0
  154. data/lib/stripe/resources/test_helpers/test_clock.rb +86 -0
  155. data/lib/stripe/resources/token.rb +1149 -0
  156. data/lib/stripe/resources/topup.rb +174 -0
  157. data/lib/stripe/resources/transfer.rb +153 -0
  158. data/lib/stripe/resources/treasury/credit_reversal.rb +92 -0
  159. data/lib/stripe/resources/treasury/debit_reversal.rb +103 -0
  160. data/lib/stripe/resources/treasury/financial_account.rb +772 -0
  161. data/lib/stripe/resources/treasury/financial_account_features.rb +191 -0
  162. data/lib/stripe/resources/treasury/inbound_transfer.rb +235 -0
  163. data/lib/stripe/resources/treasury/outbound_payment.rb +495 -0
  164. data/lib/stripe/resources/treasury/outbound_transfer.rb +387 -0
  165. data/lib/stripe/resources/treasury/received_credit.rb +283 -0
  166. data/lib/stripe/resources/treasury/received_debit.rb +244 -0
  167. data/lib/stripe/resources/treasury/transaction.rb +176 -0
  168. data/lib/stripe/resources/treasury/transaction_entry.rb +157 -0
  169. data/lib/stripe/resources/usage_record.rb +13 -0
  170. data/lib/stripe/resources/usage_record_summary.rb +21 -0
  171. data/lib/stripe/resources/v2/amount.rb +9 -0
  172. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  173. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +21 -0
  174. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  175. data/lib/stripe/resources/v2/event.rb +27 -0
  176. data/lib/stripe/resources/v2/event_destination.rb +59 -0
  177. data/lib/stripe/resources/webhook_endpoint.rb +122 -0
  178. data/lib/stripe/resources.rb +31 -0
  179. data/lib/stripe/services/account_capability_service.rb +32 -0
  180. data/lib/stripe/services/account_external_account_service.rb +250 -0
  181. data/lib/stripe/services/account_link_service.rb +46 -0
  182. data/lib/stripe/services/account_login_link_service.rb +9 -0
  183. data/lib/stripe/services/account_notice_service.rb +101 -0
  184. data/lib/stripe/services/account_person_service.rb +875 -0
  185. data/lib/stripe/services/account_service.rb +4351 -0
  186. data/lib/stripe/services/account_session_service.rb +664 -0
  187. data/lib/stripe/services/apple_pay_domain_service.rb +51 -0
  188. data/lib/stripe/services/application_fee_refund_service.rb +54 -0
  189. data/lib/stripe/services/application_fee_service.rb +57 -0
  190. data/lib/stripe/services/apps/secret_service.rb +116 -0
  191. data/lib/stripe/services/balance_service.rb +9 -0
  192. data/lib/stripe/services/balance_transaction_service.rb +69 -0
  193. data/lib/stripe/services/billing/alert_service.rb +113 -0
  194. data/lib/stripe/services/billing/credit_balance_summary_service.rb +37 -0
  195. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +40 -0
  196. data/lib/stripe/services/billing/credit_grant_service.rb +151 -0
  197. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +26 -0
  198. data/lib/stripe/services/billing/meter_event_service.rb +21 -0
  199. data/lib/stripe/services/billing/meter_event_summary_service.rb +39 -0
  200. data/lib/stripe/services/billing/meter_service.rb +130 -0
  201. data/lib/stripe/services/billing_portal/configuration_service.rb +444 -0
  202. data/lib/stripe/services/billing_portal/session_service.rb +173 -0
  203. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  204. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  205. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  206. data/lib/stripe/services/capital_service.rb +15 -0
  207. data/lib/stripe/services/charge_service.rb +1736 -0
  208. data/lib/stripe/services/checkout/session_line_item_service.rb +18 -0
  209. data/lib/stripe/services/checkout/session_service.rb +2465 -0
  210. data/lib/stripe/services/climate/order_service.rb +102 -0
  211. data/lib/stripe/services/climate/product_service.rb +27 -0
  212. data/lib/stripe/services/climate/supplier_service.rb +27 -0
  213. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  214. data/lib/stripe/services/country_spec_service.rb +27 -0
  215. data/lib/stripe/services/coupon_service.rb +152 -0
  216. data/lib/stripe/services/credit_note_line_item_service.rb +18 -0
  217. data/lib/stripe/services/credit_note_preview_lines_service.rb +156 -0
  218. data/lib/stripe/services/credit_note_service.rb +373 -0
  219. data/lib/stripe/services/customer_balance_transaction_service.rb +63 -0
  220. data/lib/stripe/services/customer_cash_balance_service.rb +29 -0
  221. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +27 -0
  222. data/lib/stripe/services/customer_funding_instructions_service.rb +42 -0
  223. data/lib/stripe/services/customer_payment_method_service.rb +40 -0
  224. data/lib/stripe/services/customer_payment_source_service.rb +179 -0
  225. data/lib/stripe/services/customer_service.rb +593 -0
  226. data/lib/stripe/services/customer_session_service.rb +96 -0
  227. data/lib/stripe/services/customer_tax_id_service.rb +45 -0
  228. data/lib/stripe/services/dispute_service.rb +374 -0
  229. data/lib/stripe/services/entitlements/active_entitlement_service.rb +36 -0
  230. data/lib/stripe/services/entitlements/feature_service.rb +76 -0
  231. data/lib/stripe/services/ephemeral_key_service.rb +36 -0
  232. data/lib/stripe/services/event_service.rb +65 -0
  233. data/lib/stripe/services/exchange_rate_service.rb +27 -0
  234. data/lib/stripe/services/file_link_service.rb +94 -0
  235. data/lib/stripe/services/file_service.rb +89 -0
  236. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +37 -0
  237. data/lib/stripe/services/financial_connections/account_owner_service.rb +27 -0
  238. data/lib/stripe/services/financial_connections/account_service.rb +99 -1
  239. data/lib/stripe/services/financial_connections/institution_service.rb +57 -0
  240. data/lib/stripe/services/financial_connections/session_service.rb +97 -0
  241. data/lib/stripe/services/financial_connections/transaction_service.rb +70 -0
  242. data/lib/stripe/services/financial_connections_service.rb +2 -1
  243. data/lib/stripe/services/forwarding/request_service.rb +106 -0
  244. data/lib/stripe/services/gift_cards/card_service.rb +170 -0
  245. data/lib/stripe/services/gift_cards/transaction_service.rb +209 -0
  246. data/lib/stripe/services/gift_cards_service.rb +14 -0
  247. data/lib/stripe/services/identity/verification_report_service.rb +65 -0
  248. data/lib/stripe/services/identity/verification_session_service.rb +231 -0
  249. data/lib/stripe/services/invoice_item_service.rb +388 -0
  250. data/lib/stripe/services/invoice_line_item_service.rb +237 -0
  251. data/lib/stripe/services/invoice_payment_service.rb +55 -0
  252. data/lib/stripe/services/invoice_rendering_template_service.rb +51 -0
  253. data/lib/stripe/services/invoice_service.rb +5567 -1
  254. data/lib/stripe/services/invoice_upcoming_lines_service.rb +1864 -0
  255. data/lib/stripe/services/issuing/authorization_service.rb +104 -0
  256. data/lib/stripe/services/issuing/card_service.rb +455 -0
  257. data/lib/stripe/services/issuing/cardholder_service.rb +526 -0
  258. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  259. data/lib/stripe/services/issuing/dispute_service.rb +633 -0
  260. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  261. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  262. data/lib/stripe/services/issuing/personalization_design_service.rb +193 -0
  263. data/lib/stripe/services/issuing/physical_bundle_service.rb +40 -0
  264. data/lib/stripe/services/issuing/token_service.rb +73 -0
  265. data/lib/stripe/services/issuing/transaction_service.rb +81 -0
  266. data/lib/stripe/services/issuing_service.rb +5 -1
  267. data/lib/stripe/services/mandate_service.rb +9 -0
  268. data/lib/stripe/services/margin_service.rb +119 -0
  269. data/lib/stripe/services/order_line_item_service.rb +35 -0
  270. data/lib/stripe/services/order_service.rb +2254 -0
  271. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  272. data/lib/stripe/services/payment_intent_service.rb +10894 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +18 -0
  274. data/lib/stripe/services/payment_link_service.rb +1223 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2046 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +76 -0
  277. data/lib/stripe/services/payment_method_service.rb +864 -0
  278. data/lib/stripe/services/payment_record_service.rb +542 -0
  279. data/lib/stripe/services/payout_service.rb +159 -0
  280. data/lib/stripe/services/plan_service.rb +253 -0
  281. data/lib/stripe/services/price_service.rb +516 -0
  282. data/lib/stripe/services/product_feature_service.rb +42 -0
  283. data/lib/stripe/services/product_service.rb +459 -0
  284. data/lib/stripe/services/promotion_code_service.rb +178 -0
  285. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +18 -0
  286. data/lib/stripe/services/quote_line_item_service.rb +18 -0
  287. data/lib/stripe/services/quote_line_service.rb +35 -0
  288. data/lib/stripe/services/quote_preview_invoice_service.rb +35 -0
  289. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  290. data/lib/stripe/services/quote_service.rb +2319 -1
  291. data/lib/stripe/services/radar/early_fraud_warning_service.rb +61 -0
  292. data/lib/stripe/services/radar/value_list_item_service.rb +79 -0
  293. data/lib/stripe/services/radar/value_list_service.rb +103 -0
  294. data/lib/stripe/services/refund_service.rb +137 -0
  295. data/lib/stripe/services/reporting/report_run_service.rb +106 -0
  296. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  297. data/lib/stripe/services/review_service.rb +56 -0
  298. data/lib/stripe/services/setup_attempt_service.rb +51 -0
  299. data/lib/stripe/services/setup_intent_service.rb +3476 -0
  300. data/lib/stripe/services/shipping_rate_service.rb +200 -0
  301. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +27 -0
  302. data/lib/stripe/services/source_service.rb +601 -0
  303. data/lib/stripe/services/source_transaction_service.rb +18 -0
  304. data/lib/stripe/services/subscription_item_service.rb +383 -0
  305. data/lib/stripe/services/subscription_item_usage_record_service.rb +18 -0
  306. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +18 -0
  307. data/lib/stripe/services/subscription_schedule_service.rb +2053 -0
  308. data/lib/stripe/services/subscription_service.rb +1722 -0
  309. data/lib/stripe/services/tax/association_service.rb +31 -0
  310. data/lib/stripe/services/tax/calculation_line_item_service.rb +18 -0
  311. data/lib/stripe/services/tax/calculation_service.rb +205 -0
  312. data/lib/stripe/services/tax/form_service.rb +100 -0
  313. data/lib/stripe/services/tax/registration_service.rb +1564 -0
  314. data/lib/stripe/services/tax/settings_service.rb +74 -0
  315. data/lib/stripe/services/tax/transaction_line_item_service.rb +18 -0
  316. data/lib/stripe/services/tax/transaction_service.rb +111 -0
  317. data/lib/stripe/services/tax_code_service.rb +27 -0
  318. data/lib/stripe/services/tax_id_service.rb +79 -0
  319. data/lib/stripe/services/tax_rate_service.rb +155 -0
  320. data/lib/stripe/services/tax_service.rb +3 -1
  321. data/lib/stripe/services/terminal/configuration_service.rb +793 -0
  322. data/lib/stripe/services/terminal/connection_token_service.rb +12 -0
  323. data/lib/stripe/services/terminal/location_service.rb +144 -0
  324. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  325. data/lib/stripe/services/terminal/reader_service.rb +443 -0
  326. data/lib/stripe/services/terminal_service.rb +2 -1
  327. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +673 -0
  328. data/lib/stripe/services/test_helpers/customer_service.rb +18 -0
  329. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +745 -0
  330. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  331. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +41 -0
  332. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +632 -0
  333. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  334. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +44 -0
  335. data/lib/stripe/services/test_helpers/test_clock_service.rb +57 -0
  336. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +38 -0
  337. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +87 -0
  338. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +87 -0
  339. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +84 -0
  340. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +84 -0
  341. data/lib/stripe/services/token_service.rb +1121 -0
  342. data/lib/stripe/services/topup_service.rb +142 -0
  343. data/lib/stripe/services/transfer_reversal_service.rb +66 -0
  344. data/lib/stripe/services/transfer_service.rb +119 -0
  345. data/lib/stripe/services/treasury/credit_reversal_service.rb +59 -0
  346. data/lib/stripe/services/treasury/debit_reversal_service.rb +63 -0
  347. data/lib/stripe/services/treasury/financial_account_features_service.rb +169 -0
  348. data/lib/stripe/services/treasury/financial_account_service.rb +509 -0
  349. data/lib/stripe/services/treasury/inbound_transfer_service.rb +88 -0
  350. data/lib/stripe/services/treasury/outbound_payment_service.rb +258 -0
  351. data/lib/stripe/services/treasury/outbound_transfer_service.rb +148 -0
  352. data/lib/stripe/services/treasury/received_credit_service.rb +52 -0
  353. data/lib/stripe/services/treasury/received_debit_service.rb +40 -0
  354. data/lib/stripe/services/treasury/transaction_entry_service.rb +87 -0
  355. data/lib/stripe/services/treasury/transaction_service.rb +95 -0
  356. data/lib/stripe/services/v1_services.rb +8 -1
  357. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +23 -0
  358. data/lib/stripe/services/v2/billing/meter_event_service.rb +25 -0
  359. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  360. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +33 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +146 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +18 -0
  363. data/lib/stripe/services/webhook_endpoint_service.rb +96 -0
  364. data/lib/stripe/services.rb +25 -0
  365. data/lib/stripe/stripe_client.rb +1 -1
  366. data/lib/stripe/stripe_configuration.rb +3 -1
  367. data/lib/stripe/stripe_object.rb +5 -0
  368. data/lib/stripe/util.rb +7 -1
  369. data/lib/stripe/version.rb +1 -1
  370. data/lib/stripe.rb +46 -0
  371. data/rbi/stripe/resources/account.rbi +5100 -0
  372. data/rbi/stripe/resources/account_link.rbi +74 -0
  373. data/rbi/stripe/resources/account_notice.rbi +139 -0
  374. data/rbi/stripe/resources/account_session.rbi +1007 -0
  375. data/rbi/stripe/resources/apple_pay_domain.rbi +97 -0
  376. data/rbi/stripe/resources/application.rbi +20 -0
  377. data/rbi/stripe/resources/application_fee.rbi +123 -0
  378. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  379. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  380. data/rbi/stripe/resources/balance.rbi +187 -0
  381. data/rbi/stripe/resources/balance_transaction.rbi +149 -0
  382. data/rbi/stripe/resources/bank_account.rbi +127 -0
  383. data/rbi/stripe/resources/billing/alert.rbi +206 -0
  384. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  385. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +102 -0
  386. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +154 -0
  387. data/rbi/stripe/resources/billing/credit_grant.rbi +269 -0
  388. data/rbi/stripe/resources/billing/meter.rbi +233 -0
  389. data/rbi/stripe/resources/billing/meter_error_report.rbi +71 -0
  390. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  391. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  392. data/rbi/stripe/resources/billing/meter_event_summary.rbi +33 -0
  393. data/rbi/stripe/resources/billing_portal/configuration.rbi +640 -0
  394. data/rbi/stripe/resources/billing_portal/session.rbi +341 -0
  395. data/rbi/stripe/resources/capability.rbi +125 -0
  396. data/rbi/stripe/resources/capital/financing_offer.rbi +190 -0
  397. data/rbi/stripe/resources/capital/financing_summary.rbi +74 -0
  398. data/rbi/stripe/resources/capital/financing_transaction.rbi +130 -0
  399. data/rbi/stripe/resources/card.rbi +128 -0
  400. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  401. data/rbi/stripe/resources/charge.rbi +3484 -0
  402. data/rbi/stripe/resources/checkout/session.rbi +3995 -0
  403. data/rbi/stripe/resources/climate/order.rbi +250 -0
  404. data/rbi/stripe/resources/climate/product.rbi +82 -0
  405. data/rbi/stripe/resources/climate/supplier.rbi +79 -0
  406. data/rbi/stripe/resources/confirmation_token.rbi +1776 -0
  407. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  408. data/rbi/stripe/resources/country_spec.rbi +92 -0
  409. data/rbi/stripe/resources/coupon.rbi +257 -0
  410. data/rbi/stripe/resources/credit_note.rbi +759 -0
  411. data/rbi/stripe/resources/credit_note_line_item.rbi +99 -0
  412. data/rbi/stripe/resources/customer.rbi +1001 -0
  413. data/rbi/stripe/resources/customer_balance_transaction.rbi +53 -0
  414. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  415. data/rbi/stripe/resources/customer_session.rbi +196 -0
  416. data/rbi/stripe/resources/discount.rbi +53 -0
  417. data/rbi/stripe/resources/dispute.rbi +764 -0
  418. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +65 -0
  419. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  420. data/rbi/stripe/resources/entitlements/feature.rbi +124 -0
  421. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  422. data/rbi/stripe/resources/event.rbi +190 -0
  423. data/rbi/stripe/resources/exchange_rate.rbi +73 -0
  424. data/rbi/stripe/resources/file.rbi +148 -0
  425. data/rbi/stripe/resources/file_link.rbi +146 -0
  426. data/rbi/stripe/resources/financial_connections/account.rbi +358 -0
  427. data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +27 -0
  428. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  429. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  430. data/rbi/stripe/resources/financial_connections/institution.rbi +99 -0
  431. data/rbi/stripe/resources/financial_connections/session.rbi +186 -0
  432. data/rbi/stripe/resources/financial_connections/transaction.rbi +127 -0
  433. data/rbi/stripe/resources/forwarding/request.rbi +219 -0
  434. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  435. data/rbi/stripe/resources/gift_cards/card.rbi +206 -0
  436. data/rbi/stripe/resources/gift_cards/transaction.rbi +257 -0
  437. data/rbi/stripe/resources/identity/verification_report.rbi +354 -0
  438. data/rbi/stripe/resources/identity/verification_session.rbi +518 -0
  439. data/rbi/stripe/resources/invoice.rbi +8928 -0
  440. data/rbi/stripe/resources/invoice_item.rbi +514 -0
  441. data/rbi/stripe/resources/invoice_line_item.rbi +400 -0
  442. data/rbi/stripe/resources/invoice_payment.rbi +70 -0
  443. data/rbi/stripe/resources/invoice_rendering_template.rbi +114 -0
  444. data/rbi/stripe/resources/issuing/authorization.rbi +1266 -0
  445. data/rbi/stripe/resources/issuing/card.rbi +738 -0
  446. data/rbi/stripe/resources/issuing/cardholder.rbi +732 -0
  447. data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +622 -0
  448. data/rbi/stripe/resources/issuing/dispute.rbi +900 -0
  449. data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +83 -0
  450. data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +90 -0
  451. data/rbi/stripe/resources/issuing/personalization_design.rbi +333 -0
  452. data/rbi/stripe/resources/issuing/physical_bundle.rbi +86 -0
  453. data/rbi/stripe/resources/issuing/settlement.rbi +62 -0
  454. data/rbi/stripe/resources/issuing/token.rbi +231 -0
  455. data/rbi/stripe/resources/issuing/transaction.rbi +1057 -0
  456. data/rbi/stripe/resources/line_item.rbi +108 -0
  457. data/rbi/stripe/resources/login_link.rbi +18 -0
  458. data/rbi/stripe/resources/mandate.rbi +219 -0
  459. data/rbi/stripe/resources/margin.rbi +127 -0
  460. data/rbi/stripe/resources/order.rbi +3016 -0
  461. data/rbi/stripe/resources/payment_attempt_record.rbi +215 -0
  462. data/rbi/stripe/resources/payment_intent.rbi +13843 -0
  463. data/rbi/stripe/resources/payment_link.rbi +1666 -0
  464. data/rbi/stripe/resources/payment_method.rbi +1908 -0
  465. data/rbi/stripe/resources/payment_method_configuration.rbi +3171 -0
  466. data/rbi/stripe/resources/payment_method_domain.rbi +217 -0
  467. data/rbi/stripe/resources/payment_record.rbi +722 -0
  468. data/rbi/stripe/resources/payout.rbi +299 -0
  469. data/rbi/stripe/resources/person.rbi +371 -0
  470. data/rbi/stripe/resources/plan.rbi +385 -0
  471. data/rbi/stripe/resources/price.rbi +731 -0
  472. data/rbi/stripe/resources/product.rbi +615 -0
  473. data/rbi/stripe/resources/product_feature.rbi +26 -0
  474. data/rbi/stripe/resources/promotion_code.rbi +266 -0
  475. data/rbi/stripe/resources/quote.rbi +3186 -0
  476. data/rbi/stripe/resources/quote_line.rbi +350 -0
  477. data/rbi/stripe/resources/quote_preview_invoice.rbi +850 -0
  478. data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +474 -0
  479. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +101 -0
  480. data/rbi/stripe/resources/radar/value_list.rbi +175 -0
  481. data/rbi/stripe/resources/radar/value_list_item.rbi +134 -0
  482. data/rbi/stripe/resources/refund.rbi +515 -0
  483. data/rbi/stripe/resources/reporting/report_run.rbi +194 -0
  484. data/rbi/stripe/resources/reporting/report_type.rbi +64 -0
  485. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  486. data/rbi/stripe/resources/reversal.rbi +51 -0
  487. data/rbi/stripe/resources/review.rbi +159 -0
  488. data/rbi/stripe/resources/setup_attempt.rbi +484 -0
  489. data/rbi/stripe/resources/setup_intent.rbi +4041 -0
  490. data/rbi/stripe/resources/shipping_rate.rbi +310 -0
  491. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +82 -0
  492. data/rbi/stripe/resources/source.rbi +1543 -0
  493. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  494. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  495. data/rbi/stripe/resources/subscription.rbi +2308 -0
  496. data/rbi/stripe/resources/subscription_item.rbi +478 -0
  497. data/rbi/stripe/resources/subscription_schedule.rbi +2653 -0
  498. data/rbi/stripe/resources/tax/association.rbi +94 -0
  499. data/rbi/stripe/resources/tax/calculation.rbi +479 -0
  500. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  501. data/rbi/stripe/resources/tax/form.rbi +224 -0
  502. data/rbi/stripe/resources/tax/registration.rbi +2438 -0
  503. data/rbi/stripe/resources/tax/settings.rbi +148 -0
  504. data/rbi/stripe/resources/tax/transaction.rbi +356 -0
  505. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  506. data/rbi/stripe/resources/tax_code.rbi +51 -0
  507. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  508. data/rbi/stripe/resources/tax_id.rbi +174 -0
  509. data/rbi/stripe/resources/tax_rate.rbi +244 -0
  510. data/rbi/stripe/resources/terminal/configuration.rbi +1091 -0
  511. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  512. data/rbi/stripe/resources/terminal/location.rbi +231 -0
  513. data/rbi/stripe/resources/terminal/reader.rbi +952 -0
  514. data/rbi/stripe/resources/terminal/reader_collected_data.rbi +41 -0
  515. data/rbi/stripe/resources/test_helpers/test_clock.rbi +139 -0
  516. data/rbi/stripe/resources/token.rbi +1175 -0
  517. data/rbi/stripe/resources/topup.rbi +225 -0
  518. data/rbi/stripe/resources/transfer.rbi +204 -0
  519. data/rbi/stripe/resources/treasury/credit_reversal.rbi +126 -0
  520. data/rbi/stripe/resources/treasury/debit_reversal.rbi +138 -0
  521. data/rbi/stripe/resources/treasury/financial_account.rbi +870 -0
  522. data/rbi/stripe/resources/treasury/financial_account_features.rbi +263 -0
  523. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +302 -0
  524. data/rbi/stripe/resources/treasury/outbound_payment.rbi +589 -0
  525. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +473 -0
  526. data/rbi/stripe/resources/treasury/received_credit.rbi +348 -0
  527. data/rbi/stripe/resources/treasury/received_debit.rbi +305 -0
  528. data/rbi/stripe/resources/treasury/transaction.rbi +216 -0
  529. data/rbi/stripe/resources/treasury/transaction_entry.rbi +193 -0
  530. data/rbi/stripe/resources/usage_record.rbi +32 -0
  531. data/rbi/stripe/resources/usage_record_summary.rbi +38 -0
  532. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  533. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  534. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  535. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  536. data/rbi/stripe/resources/v2/event.rbi +47 -0
  537. data/rbi/stripe/resources/v2/event_destination.rbi +90 -0
  538. data/rbi/stripe/resources/webhook_endpoint.rbi +177 -0
  539. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  540. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  541. data/rbi/stripe/services/account_link_service.rbi +58 -0
  542. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  543. data/rbi/stripe/services/account_notice_service.rbi +90 -0
  544. data/rbi/stripe/services/account_person_service.rbi +903 -0
  545. data/rbi/stripe/services/account_service.rbi +4185 -0
  546. data/rbi/stripe/services/account_session_service.rbi +757 -0
  547. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  548. data/rbi/stripe/services/application_fee_refund_service.rbi +91 -0
  549. data/rbi/stripe/services/application_fee_service.rbi +74 -0
  550. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  551. data/rbi/stripe/services/apps_service.rbi +9 -0
  552. data/rbi/stripe/services/balance_service.rbi +21 -0
  553. data/rbi/stripe/services/balance_transaction_service.rbi +89 -0
  554. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  555. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +54 -0
  556. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  557. data/rbi/stripe/services/billing/credit_grant_service.rbi +191 -0
  558. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +40 -0
  559. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  560. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  561. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  562. data/rbi/stripe/services/billing_portal/configuration_service.rbi +497 -0
  563. data/rbi/stripe/services/billing_portal/session_service.rbi +202 -0
  564. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  565. data/rbi/stripe/services/billing_service.rbi +15 -0
  566. data/rbi/stripe/services/capital/financing_offer_service.rbi +95 -0
  567. data/rbi/stripe/services/capital/financing_summary_service.rbi +22 -0
  568. data/rbi/stripe/services/capital/financing_transaction_service.rbi +68 -0
  569. data/rbi/stripe/services/capital_service.rbi +11 -0
  570. data/rbi/stripe/services/charge_service.rbi +1816 -0
  571. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  572. data/rbi/stripe/services/checkout/session_service.rbi +2582 -0
  573. data/rbi/stripe/services/checkout_service.rbi +9 -0
  574. data/rbi/stripe/services/climate/order_service.rbi +140 -0
  575. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  576. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  577. data/rbi/stripe/services/climate_service.rbi +11 -0
  578. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  579. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  580. data/rbi/stripe/services/coupon_service.rbi +190 -0
  581. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  582. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  583. data/rbi/stripe/services/credit_note_service.rbi +420 -0
  584. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  585. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  586. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  587. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  588. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  589. data/rbi/stripe/services/customer_payment_source_service.rbi +228 -0
  590. data/rbi/stripe/services/customer_service.rbi +647 -0
  591. data/rbi/stripe/services/customer_session_service.rbi +110 -0
  592. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  593. data/rbi/stripe/services/dispute_service.rbi +422 -0
  594. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  595. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  596. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  597. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  598. data/rbi/stripe/services/event_service.rbi +81 -0
  599. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  600. data/rbi/stripe/services/file_link_service.rbi +122 -0
  601. data/rbi/stripe/services/file_service.rbi +114 -0
  602. data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +33 -0
  603. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  604. data/rbi/stripe/services/financial_connections/account_service.rbi +132 -0
  605. data/rbi/stripe/services/financial_connections/institution_service.rbi +46 -0
  606. data/rbi/stripe/services/financial_connections/session_service.rbi +111 -0
  607. data/rbi/stripe/services/financial_connections/transaction_service.rbi +90 -0
  608. data/rbi/stripe/services/financial_connections_service.rbi +12 -0
  609. data/rbi/stripe/services/forwarding/request_service.rbi +132 -0
  610. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  611. data/rbi/stripe/services/gift_cards/card_service.rbi +142 -0
  612. data/rbi/stripe/services/gift_cards/transaction_service.rbi +174 -0
  613. data/rbi/stripe/services/gift_cards_service.rbi +10 -0
  614. data/rbi/stripe/services/identity/verification_report_service.rbi +85 -0
  615. data/rbi/stripe/services/identity/verification_session_service.rbi +317 -0
  616. data/rbi/stripe/services/identity_service.rbi +10 -0
  617. data/rbi/stripe/services/invoice_item_service.rbi +424 -0
  618. data/rbi/stripe/services/invoice_line_item_service.rbi +270 -0
  619. data/rbi/stripe/services/invoice_payment_service.rbi +44 -0
  620. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  621. data/rbi/stripe/services/invoice_service.rbi +6040 -0
  622. data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2023 -0
  623. data/rbi/stripe/services/issuing/authorization_service.rbi +140 -0
  624. data/rbi/stripe/services/issuing/card_service.rbi +479 -0
  625. data/rbi/stripe/services/issuing/cardholder_service.rbi +568 -0
  626. data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +498 -0
  627. data/rbi/stripe/services/issuing/dispute_service.rbi +701 -0
  628. data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +55 -0
  629. data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +73 -0
  630. data/rbi/stripe/services/issuing/personalization_design_service.rbi +233 -0
  631. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  632. data/rbi/stripe/services/issuing/token_service.rbi +95 -0
  633. data/rbi/stripe/services/issuing/transaction_service.rbi +103 -0
  634. data/rbi/stripe/services/issuing_service.rbi +19 -0
  635. data/rbi/stripe/services/mandate_service.rbi +20 -0
  636. data/rbi/stripe/services/margin_service.rbi +104 -0
  637. data/rbi/stripe/services/order_line_item_service.rbi +31 -0
  638. data/rbi/stripe/services/order_service.rbi +2306 -0
  639. data/rbi/stripe/services/payment_attempt_record_service.rbi +36 -0
  640. data/rbi/stripe/services/payment_intent_service.rbi +11429 -0
  641. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  642. data/rbi/stripe/services/payment_link_service.rbi +1250 -0
  643. data/rbi/stripe/services/payment_method_configuration_service.rbi +2171 -0
  644. data/rbi/stripe/services/payment_method_domain_service.rbi +110 -0
  645. data/rbi/stripe/services/payment_method_service.rbi +883 -0
  646. data/rbi/stripe/services/payment_record_service.rbi +521 -0
  647. data/rbi/stripe/services/payout_service.rbi +197 -0
  648. data/rbi/stripe/services/plan_service.rbi +286 -0
  649. data/rbi/stripe/services/price_service.rbi +551 -0
  650. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  651. data/rbi/stripe/services/product_service.rbi +503 -0
  652. data/rbi/stripe/services/promotion_code_service.rbi +210 -0
  653. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  654. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  655. data/rbi/stripe/services/quote_line_service.rbi +31 -0
  656. data/rbi/stripe/services/quote_preview_invoice_service.rbi +31 -0
  657. data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +31 -0
  658. data/rbi/stripe/services/quote_service.rbi +2390 -0
  659. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +83 -0
  660. data/rbi/stripe/services/radar/value_list_item_service.rbi +107 -0
  661. data/rbi/stripe/services/radar/value_list_service.rbi +139 -0
  662. data/rbi/stripe/services/radar_service.rbi +11 -0
  663. data/rbi/stripe/services/refund_service.rbi +181 -0
  664. data/rbi/stripe/services/reporting/report_run_service.rbi +131 -0
  665. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  666. data/rbi/stripe/services/reporting_service.rbi +10 -0
  667. data/rbi/stripe/services/review_service.rbi +82 -0
  668. data/rbi/stripe/services/setup_attempt_service.rbi +63 -0
  669. data/rbi/stripe/services/setup_intent_service.rbi +3609 -0
  670. data/rbi/stripe/services/shipping_rate_service.rbi +235 -0
  671. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  672. data/rbi/stripe/services/sigma_service.rbi +9 -0
  673. data/rbi/stripe/services/source_service.rbi +647 -0
  674. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  675. data/rbi/stripe/services/subscription_item_service.rbi +422 -0
  676. data/rbi/stripe/services/subscription_item_usage_record_service.rbi +37 -0
  677. data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +33 -0
  678. data/rbi/stripe/services/subscription_schedule_service.rbi +2208 -0
  679. data/rbi/stripe/services/subscription_service.rbi +1870 -0
  680. data/rbi/stripe/services/tax/association_service.rbi +25 -0
  681. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  682. data/rbi/stripe/services/tax/calculation_service.rbi +228 -0
  683. data/rbi/stripe/services/tax/form_service.rbi +85 -0
  684. data/rbi/stripe/services/tax/registration_service.rbi +1517 -0
  685. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  686. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  687. data/rbi/stripe/services/tax/transaction_service.rbi +142 -0
  688. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  689. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  690. data/rbi/stripe/services/tax_rate_service.rbi +183 -0
  691. data/rbi/stripe/services/tax_service.rbi +14 -0
  692. data/rbi/stripe/services/terminal/configuration_service.rbi +822 -0
  693. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  694. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  695. data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +22 -0
  696. data/rbi/stripe/services/terminal/reader_service.rbi +513 -0
  697. data/rbi/stripe/services/terminal_service.rbi +13 -0
  698. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +778 -0
  699. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  700. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +836 -0
  701. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  702. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +67 -0
  703. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +705 -0
  704. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  705. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  706. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  707. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  708. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  709. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  710. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +123 -0
  711. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +123 -0
  712. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +114 -0
  713. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +114 -0
  714. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  715. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  716. data/rbi/stripe/services/token_service.rbi +1136 -0
  717. data/rbi/stripe/services/topup_service.rbi +172 -0
  718. data/rbi/stripe/services/transfer_reversal_service.rbi +99 -0
  719. data/rbi/stripe/services/transfer_service.rbi +150 -0
  720. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  721. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  722. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +201 -0
  723. data/rbi/stripe/services/treasury/financial_account_service.rbi +566 -0
  724. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  725. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +300 -0
  726. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +182 -0
  727. data/rbi/stripe/services/treasury/received_credit_service.rbi +70 -0
  728. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  729. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +107 -0
  730. data/rbi/stripe/services/treasury/transaction_service.rbi +114 -0
  731. data/rbi/stripe/services/treasury_service.rbi +18 -0
  732. data/rbi/stripe/services/v1_services.rbi +83 -0
  733. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  734. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  735. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  736. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  737. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  738. data/rbi/stripe/services/v2/core/event_destination_service.rbi +203 -0
  739. data/rbi/stripe/services/v2/core/event_service.rbi +39 -0
  740. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  741. data/rbi/stripe/services/v2_services.rbi +10 -0
  742. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  743. metadata +435 -4
@@ -0,0 +1,3609 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ class SetupIntentService < StripeService
7
+ class ListParams < Stripe::RequestParams
8
+ class Created < Stripe::RequestParams
9
+ # Minimum value to filter by (exclusive)
10
+ sig { returns(Integer) }
11
+ attr_accessor :gt
12
+ # Minimum value to filter by (inclusive)
13
+ sig { returns(Integer) }
14
+ attr_accessor :gte
15
+ # Maximum value to filter by (exclusive)
16
+ sig { returns(Integer) }
17
+ attr_accessor :lt
18
+ # Maximum value to filter by (inclusive)
19
+ sig { returns(Integer) }
20
+ attr_accessor :lte
21
+ sig { params(gt: Integer, gte: Integer, lt: Integer, lte: Integer).void }
22
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
23
+ end
24
+ # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
25
+ #
26
+ # It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
27
+ sig { returns(T::Boolean) }
28
+ attr_accessor :attach_to_self
29
+ # A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
30
+ sig { returns(T.any(::Stripe::SetupIntentService::ListParams::Created, Integer)) }
31
+ attr_accessor :created
32
+ # Only return SetupIntents for the customer specified by this customer ID.
33
+ sig { returns(String) }
34
+ attr_accessor :customer
35
+ # 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.
36
+ sig { returns(String) }
37
+ attr_accessor :ending_before
38
+ # Specifies which fields in the response should be expanded.
39
+ sig { returns(T::Array[String]) }
40
+ attr_accessor :expand
41
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
42
+ sig { returns(Integer) }
43
+ attr_accessor :limit
44
+ # Only return SetupIntents that associate with the specified payment method.
45
+ sig { returns(String) }
46
+ attr_accessor :payment_method
47
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
48
+ sig { returns(String) }
49
+ attr_accessor :starting_after
50
+ sig {
51
+ params(attach_to_self: T::Boolean, created: T.any(::Stripe::SetupIntentService::ListParams::Created, Integer), customer: String, ending_before: String, expand: T::Array[String], limit: Integer, payment_method: String, starting_after: String).void
52
+ }
53
+ def initialize(
54
+ attach_to_self: nil,
55
+ created: nil,
56
+ customer: nil,
57
+ ending_before: nil,
58
+ expand: nil,
59
+ limit: nil,
60
+ payment_method: nil,
61
+ starting_after: nil
62
+ ); end
63
+ end
64
+ class CreateParams < Stripe::RequestParams
65
+ class AutomaticPaymentMethods < Stripe::RequestParams
66
+ # Controls whether this SetupIntent will accept redirect-based payment methods.
67
+ #
68
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup.
69
+ sig { returns(String) }
70
+ attr_accessor :allow_redirects
71
+ # Whether this feature is enabled.
72
+ sig { returns(T::Boolean) }
73
+ attr_accessor :enabled
74
+ sig { params(allow_redirects: String, enabled: T::Boolean).void }
75
+ def initialize(allow_redirects: nil, enabled: nil); end
76
+ end
77
+ class MandateData < Stripe::RequestParams
78
+ class CustomerAcceptance < Stripe::RequestParams
79
+ class Offline < Stripe::RequestParams
80
+
81
+ end
82
+ class Online < Stripe::RequestParams
83
+ # The IP address from which the Mandate was accepted by the customer.
84
+ sig { returns(String) }
85
+ attr_accessor :ip_address
86
+ # The user agent of the browser from which the Mandate was accepted by the customer.
87
+ sig { returns(String) }
88
+ attr_accessor :user_agent
89
+ sig { params(ip_address: String, user_agent: String).void }
90
+ def initialize(ip_address: nil, user_agent: nil); end
91
+ end
92
+ # The time at which the customer accepted the Mandate.
93
+ sig { returns(Integer) }
94
+ attr_accessor :accepted_at
95
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
96
+ sig {
97
+ returns(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline)
98
+ }
99
+ attr_accessor :offline
100
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
101
+ sig {
102
+ returns(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online)
103
+ }
104
+ attr_accessor :online
105
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
106
+ sig { returns(String) }
107
+ attr_accessor :type
108
+ sig {
109
+ params(accepted_at: Integer, offline: ::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online, type: String).void
110
+ }
111
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
112
+ end
113
+ # This hash contains details about the customer acceptance of the Mandate.
114
+ sig { returns(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance) }
115
+ attr_accessor :customer_acceptance
116
+ sig {
117
+ params(customer_acceptance: ::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance).void
118
+ }
119
+ def initialize(customer_acceptance: nil); end
120
+ end
121
+ class PaymentMethodData < Stripe::RequestParams
122
+ class AcssDebit < Stripe::RequestParams
123
+ # Customer's bank account number.
124
+ sig { returns(String) }
125
+ attr_accessor :account_number
126
+ # Institution number of the customer's bank.
127
+ sig { returns(String) }
128
+ attr_accessor :institution_number
129
+ # Transit number of the customer's bank.
130
+ sig { returns(String) }
131
+ attr_accessor :transit_number
132
+ sig {
133
+ params(account_number: String, institution_number: String, transit_number: String).void
134
+ }
135
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
136
+ end
137
+ class Affirm < Stripe::RequestParams
138
+
139
+ end
140
+ class AfterpayClearpay < Stripe::RequestParams
141
+
142
+ end
143
+ class Alipay < Stripe::RequestParams
144
+
145
+ end
146
+ class Alma < Stripe::RequestParams
147
+
148
+ end
149
+ class AmazonPay < Stripe::RequestParams
150
+
151
+ end
152
+ class AuBecsDebit < Stripe::RequestParams
153
+ # The account number for the bank account.
154
+ sig { returns(String) }
155
+ attr_accessor :account_number
156
+ # Bank-State-Branch number of the bank account.
157
+ sig { returns(String) }
158
+ attr_accessor :bsb_number
159
+ sig { params(account_number: String, bsb_number: String).void }
160
+ def initialize(account_number: nil, bsb_number: nil); end
161
+ end
162
+ class BacsDebit < Stripe::RequestParams
163
+ # Account number of the bank account that the funds will be debited from.
164
+ sig { returns(String) }
165
+ attr_accessor :account_number
166
+ # Sort code of the bank account. (e.g., `10-20-30`)
167
+ sig { returns(String) }
168
+ attr_accessor :sort_code
169
+ sig { params(account_number: String, sort_code: String).void }
170
+ def initialize(account_number: nil, sort_code: nil); end
171
+ end
172
+ class Bancontact < Stripe::RequestParams
173
+
174
+ end
175
+ class BillingDetails < Stripe::RequestParams
176
+ class Address < Stripe::RequestParams
177
+ # City, district, suburb, town, or village.
178
+ sig { returns(String) }
179
+ attr_accessor :city
180
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
181
+ sig { returns(String) }
182
+ attr_accessor :country
183
+ # Address line 1 (e.g., street, PO Box, or company name).
184
+ sig { returns(String) }
185
+ attr_accessor :line1
186
+ # Address line 2 (e.g., apartment, suite, unit, or building).
187
+ sig { returns(String) }
188
+ attr_accessor :line2
189
+ # ZIP or postal code.
190
+ sig { returns(String) }
191
+ attr_accessor :postal_code
192
+ # State, county, province, or region.
193
+ sig { returns(String) }
194
+ attr_accessor :state
195
+ sig {
196
+ params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
197
+ }
198
+ def initialize(
199
+ city: nil,
200
+ country: nil,
201
+ line1: nil,
202
+ line2: nil,
203
+ postal_code: nil,
204
+ state: nil
205
+ ); end
206
+ end
207
+ # Billing address.
208
+ sig {
209
+ returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))
210
+ }
211
+ attr_accessor :address
212
+ # Email address.
213
+ sig { returns(T.nilable(String)) }
214
+ attr_accessor :email
215
+ # Full name.
216
+ sig { returns(T.nilable(String)) }
217
+ attr_accessor :name
218
+ # Billing phone number (including extension).
219
+ sig { returns(T.nilable(String)) }
220
+ attr_accessor :phone
221
+ sig {
222
+ params(address: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
223
+ }
224
+ def initialize(address: nil, email: nil, name: nil, phone: nil); end
225
+ end
226
+ class Blik < Stripe::RequestParams
227
+
228
+ end
229
+ class Boleto < Stripe::RequestParams
230
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
231
+ sig { returns(String) }
232
+ attr_accessor :tax_id
233
+ sig { params(tax_id: String).void }
234
+ def initialize(tax_id: nil); end
235
+ end
236
+ class Cashapp < Stripe::RequestParams
237
+
238
+ end
239
+ class CustomerBalance < Stripe::RequestParams
240
+
241
+ end
242
+ class Eps < Stripe::RequestParams
243
+ # The customer's bank.
244
+ sig { returns(String) }
245
+ attr_accessor :bank
246
+ sig { params(bank: String).void }
247
+ def initialize(bank: nil); end
248
+ end
249
+ class Fpx < Stripe::RequestParams
250
+ # Account holder type for FPX transaction
251
+ sig { returns(String) }
252
+ attr_accessor :account_holder_type
253
+ # The customer's bank.
254
+ sig { returns(String) }
255
+ attr_accessor :bank
256
+ sig { params(account_holder_type: String, bank: String).void }
257
+ def initialize(account_holder_type: nil, bank: nil); end
258
+ end
259
+ class Giropay < Stripe::RequestParams
260
+
261
+ end
262
+ class Gopay < Stripe::RequestParams
263
+
264
+ end
265
+ class Grabpay < Stripe::RequestParams
266
+
267
+ end
268
+ class IdBankTransfer < Stripe::RequestParams
269
+ # Bank where the account is held.
270
+ sig { returns(String) }
271
+ attr_accessor :bank
272
+ sig { params(bank: String).void }
273
+ def initialize(bank: nil); end
274
+ end
275
+ class Ideal < Stripe::RequestParams
276
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
277
+ sig { returns(String) }
278
+ attr_accessor :bank
279
+ sig { params(bank: String).void }
280
+ def initialize(bank: nil); end
281
+ end
282
+ class InteracPresent < Stripe::RequestParams
283
+
284
+ end
285
+ class KakaoPay < Stripe::RequestParams
286
+
287
+ end
288
+ class Klarna < Stripe::RequestParams
289
+ class Dob < Stripe::RequestParams
290
+ # The day of birth, between 1 and 31.
291
+ sig { returns(Integer) }
292
+ attr_accessor :day
293
+ # The month of birth, between 1 and 12.
294
+ sig { returns(Integer) }
295
+ attr_accessor :month
296
+ # The four-digit year of birth.
297
+ sig { returns(Integer) }
298
+ attr_accessor :year
299
+ sig { params(day: Integer, month: Integer, year: Integer).void }
300
+ def initialize(day: nil, month: nil, year: nil); end
301
+ end
302
+ # Customer's date of birth
303
+ sig {
304
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob)
305
+ }
306
+ attr_accessor :dob
307
+ sig {
308
+ params(dob: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob).void
309
+ }
310
+ def initialize(dob: nil); end
311
+ end
312
+ class Konbini < Stripe::RequestParams
313
+
314
+ end
315
+ class KrCard < Stripe::RequestParams
316
+
317
+ end
318
+ class Link < Stripe::RequestParams
319
+
320
+ end
321
+ class MbWay < Stripe::RequestParams
322
+
323
+ end
324
+ class Mobilepay < Stripe::RequestParams
325
+
326
+ end
327
+ class Multibanco < Stripe::RequestParams
328
+
329
+ end
330
+ class NaverPay < Stripe::RequestParams
331
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
332
+ sig { returns(String) }
333
+ attr_accessor :funding
334
+ sig { params(funding: String).void }
335
+ def initialize(funding: nil); end
336
+ end
337
+ class Oxxo < Stripe::RequestParams
338
+
339
+ end
340
+ class P24 < Stripe::RequestParams
341
+ # The customer's bank.
342
+ sig { returns(String) }
343
+ attr_accessor :bank
344
+ sig { params(bank: String).void }
345
+ def initialize(bank: nil); end
346
+ end
347
+ class Payco < Stripe::RequestParams
348
+
349
+ end
350
+ class Paynow < Stripe::RequestParams
351
+
352
+ end
353
+ class Paypal < Stripe::RequestParams
354
+
355
+ end
356
+ class Payto < Stripe::RequestParams
357
+ # The account number for the bank account.
358
+ sig { returns(String) }
359
+ attr_accessor :account_number
360
+ # Bank-State-Branch number of the bank account.
361
+ sig { returns(String) }
362
+ attr_accessor :bsb_number
363
+ # The PayID alias for the bank account.
364
+ sig { returns(String) }
365
+ attr_accessor :pay_id
366
+ sig { params(account_number: String, bsb_number: String, pay_id: String).void }
367
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
368
+ end
369
+ class Pix < Stripe::RequestParams
370
+
371
+ end
372
+ class Promptpay < Stripe::RequestParams
373
+
374
+ end
375
+ class Qris < Stripe::RequestParams
376
+
377
+ end
378
+ class RadarOptions < Stripe::RequestParams
379
+ # 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.
380
+ sig { returns(String) }
381
+ attr_accessor :session
382
+ sig { params(session: String).void }
383
+ def initialize(session: nil); end
384
+ end
385
+ class Rechnung < Stripe::RequestParams
386
+ class Dob < Stripe::RequestParams
387
+ # The day of birth, between 1 and 31.
388
+ sig { returns(Integer) }
389
+ attr_accessor :day
390
+ # The month of birth, between 1 and 12.
391
+ sig { returns(Integer) }
392
+ attr_accessor :month
393
+ # The four-digit year of birth.
394
+ sig { returns(Integer) }
395
+ attr_accessor :year
396
+ sig { params(day: Integer, month: Integer, year: Integer).void }
397
+ def initialize(day: nil, month: nil, year: nil); end
398
+ end
399
+ # Customer's date of birth
400
+ sig {
401
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung::Dob)
402
+ }
403
+ attr_accessor :dob
404
+ sig {
405
+ params(dob: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung::Dob).void
406
+ }
407
+ def initialize(dob: nil); end
408
+ end
409
+ class RevolutPay < Stripe::RequestParams
410
+
411
+ end
412
+ class SamsungPay < Stripe::RequestParams
413
+
414
+ end
415
+ class SepaDebit < Stripe::RequestParams
416
+ # IBAN of the bank account.
417
+ sig { returns(String) }
418
+ attr_accessor :iban
419
+ sig { params(iban: String).void }
420
+ def initialize(iban: nil); end
421
+ end
422
+ class Shopeepay < Stripe::RequestParams
423
+
424
+ end
425
+ class Sofort < Stripe::RequestParams
426
+ # Two-letter ISO code representing the country the bank account is located in.
427
+ sig { returns(String) }
428
+ attr_accessor :country
429
+ sig { params(country: String).void }
430
+ def initialize(country: nil); end
431
+ end
432
+ class Swish < Stripe::RequestParams
433
+
434
+ end
435
+ class Twint < Stripe::RequestParams
436
+
437
+ end
438
+ class UsBankAccount < Stripe::RequestParams
439
+ # Account holder type: individual or company.
440
+ sig { returns(String) }
441
+ attr_accessor :account_holder_type
442
+ # Account number of the bank account.
443
+ sig { returns(String) }
444
+ attr_accessor :account_number
445
+ # Account type: checkings or savings. Defaults to checking if omitted.
446
+ sig { returns(String) }
447
+ attr_accessor :account_type
448
+ # The ID of a Financial Connections Account to use as a payment method.
449
+ sig { returns(String) }
450
+ attr_accessor :financial_connections_account
451
+ # Routing number of the bank account.
452
+ sig { returns(String) }
453
+ attr_accessor :routing_number
454
+ sig {
455
+ params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
456
+ }
457
+ def initialize(
458
+ account_holder_type: nil,
459
+ account_number: nil,
460
+ account_type: nil,
461
+ financial_connections_account: nil,
462
+ routing_number: nil
463
+ ); end
464
+ end
465
+ class WechatPay < Stripe::RequestParams
466
+
467
+ end
468
+ class Zip < Stripe::RequestParams
469
+
470
+ end
471
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
472
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit) }
473
+ attr_accessor :acss_debit
474
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
475
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm) }
476
+ attr_accessor :affirm
477
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
478
+ sig {
479
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay)
480
+ }
481
+ attr_accessor :afterpay_clearpay
482
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
483
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay) }
484
+ attr_accessor :alipay
485
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
486
+ sig { returns(String) }
487
+ attr_accessor :allow_redisplay
488
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
489
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma) }
490
+ attr_accessor :alma
491
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
492
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay) }
493
+ attr_accessor :amazon_pay
494
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
495
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit) }
496
+ attr_accessor :au_becs_debit
497
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
498
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit) }
499
+ attr_accessor :bacs_debit
500
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
501
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact) }
502
+ attr_accessor :bancontact
503
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
504
+ sig {
505
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails)
506
+ }
507
+ attr_accessor :billing_details
508
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
509
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik) }
510
+ attr_accessor :blik
511
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
512
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto) }
513
+ attr_accessor :boleto
514
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
515
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp) }
516
+ attr_accessor :cashapp
517
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
518
+ sig {
519
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance)
520
+ }
521
+ attr_accessor :customer_balance
522
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
523
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps) }
524
+ attr_accessor :eps
525
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
526
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx) }
527
+ attr_accessor :fpx
528
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
529
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay) }
530
+ attr_accessor :giropay
531
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
532
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Gopay) }
533
+ attr_accessor :gopay
534
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
535
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay) }
536
+ attr_accessor :grabpay
537
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
538
+ sig {
539
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::IdBankTransfer)
540
+ }
541
+ attr_accessor :id_bank_transfer
542
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
543
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal) }
544
+ attr_accessor :ideal
545
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
546
+ sig {
547
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent)
548
+ }
549
+ attr_accessor :interac_present
550
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
551
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay) }
552
+ attr_accessor :kakao_pay
553
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
554
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna) }
555
+ attr_accessor :klarna
556
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
557
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini) }
558
+ attr_accessor :konbini
559
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
560
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard) }
561
+ attr_accessor :kr_card
562
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
563
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link) }
564
+ attr_accessor :link
565
+ # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
566
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::MbWay) }
567
+ attr_accessor :mb_way
568
+ # 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`.
569
+ sig { returns(T::Hash[String, String]) }
570
+ attr_accessor :metadata
571
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
572
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay) }
573
+ attr_accessor :mobilepay
574
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
575
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco) }
576
+ attr_accessor :multibanco
577
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
578
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay) }
579
+ attr_accessor :naver_pay
580
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
581
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo) }
582
+ attr_accessor :oxxo
583
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
584
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24) }
585
+ attr_accessor :p24
586
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
587
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco) }
588
+ attr_accessor :payco
589
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
590
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow) }
591
+ attr_accessor :paynow
592
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
593
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal) }
594
+ attr_accessor :paypal
595
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
596
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payto) }
597
+ attr_accessor :payto
598
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
599
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix) }
600
+ attr_accessor :pix
601
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
602
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay) }
603
+ attr_accessor :promptpay
604
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
605
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Qris) }
606
+ attr_accessor :qris
607
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
608
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions) }
609
+ attr_accessor :radar_options
610
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
611
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung) }
612
+ attr_accessor :rechnung
613
+ # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
614
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay) }
615
+ attr_accessor :revolut_pay
616
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
617
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay) }
618
+ attr_accessor :samsung_pay
619
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
620
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit) }
621
+ attr_accessor :sepa_debit
622
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
623
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Shopeepay) }
624
+ attr_accessor :shopeepay
625
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
626
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort) }
627
+ attr_accessor :sofort
628
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
629
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish) }
630
+ attr_accessor :swish
631
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
632
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint) }
633
+ attr_accessor :twint
634
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
635
+ sig { returns(String) }
636
+ attr_accessor :type
637
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
638
+ sig {
639
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount)
640
+ }
641
+ attr_accessor :us_bank_account
642
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
643
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay) }
644
+ attr_accessor :wechat_pay
645
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
646
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip) }
647
+ attr_accessor :zip
648
+ sig {
649
+ params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip).void
650
+ }
651
+ def initialize(
652
+ acss_debit: nil,
653
+ affirm: nil,
654
+ afterpay_clearpay: nil,
655
+ alipay: nil,
656
+ allow_redisplay: nil,
657
+ alma: nil,
658
+ amazon_pay: nil,
659
+ au_becs_debit: nil,
660
+ bacs_debit: nil,
661
+ bancontact: nil,
662
+ billing_details: nil,
663
+ blik: nil,
664
+ boleto: nil,
665
+ cashapp: nil,
666
+ customer_balance: nil,
667
+ eps: nil,
668
+ fpx: nil,
669
+ giropay: nil,
670
+ gopay: nil,
671
+ grabpay: nil,
672
+ id_bank_transfer: nil,
673
+ ideal: nil,
674
+ interac_present: nil,
675
+ kakao_pay: nil,
676
+ klarna: nil,
677
+ konbini: nil,
678
+ kr_card: nil,
679
+ link: nil,
680
+ mb_way: nil,
681
+ metadata: nil,
682
+ mobilepay: nil,
683
+ multibanco: nil,
684
+ naver_pay: nil,
685
+ oxxo: nil,
686
+ p24: nil,
687
+ payco: nil,
688
+ paynow: nil,
689
+ paypal: nil,
690
+ payto: nil,
691
+ pix: nil,
692
+ promptpay: nil,
693
+ qris: nil,
694
+ radar_options: nil,
695
+ rechnung: nil,
696
+ revolut_pay: nil,
697
+ samsung_pay: nil,
698
+ sepa_debit: nil,
699
+ shopeepay: nil,
700
+ sofort: nil,
701
+ swish: nil,
702
+ twint: nil,
703
+ type: nil,
704
+ us_bank_account: nil,
705
+ wechat_pay: nil,
706
+ zip: nil
707
+ ); end
708
+ end
709
+ class PaymentMethodOptions < Stripe::RequestParams
710
+ class AcssDebit < Stripe::RequestParams
711
+ class MandateOptions < Stripe::RequestParams
712
+ # A URL for custom mandate text to render during confirmation step.
713
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
714
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
715
+ sig { returns(T.nilable(String)) }
716
+ attr_accessor :custom_mandate_url
717
+ # List of Stripe products where this mandate can be selected automatically.
718
+ sig { returns(T::Array[String]) }
719
+ attr_accessor :default_for
720
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
721
+ sig { returns(String) }
722
+ attr_accessor :interval_description
723
+ # Payment schedule for the mandate.
724
+ sig { returns(String) }
725
+ attr_accessor :payment_schedule
726
+ # Transaction type of the mandate.
727
+ sig { returns(String) }
728
+ attr_accessor :transaction_type
729
+ sig {
730
+ params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
731
+ }
732
+ def initialize(
733
+ custom_mandate_url: nil,
734
+ default_for: nil,
735
+ interval_description: nil,
736
+ payment_schedule: nil,
737
+ transaction_type: nil
738
+ ); end
739
+ end
740
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
741
+ sig { returns(String) }
742
+ attr_accessor :currency
743
+ # Additional fields for Mandate creation
744
+ sig {
745
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
746
+ }
747
+ attr_accessor :mandate_options
748
+ # Bank account verification method.
749
+ sig { returns(String) }
750
+ attr_accessor :verification_method
751
+ sig {
752
+ params(currency: String, mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
753
+ }
754
+ def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
755
+ end
756
+ class AmazonPay < Stripe::RequestParams
757
+
758
+ end
759
+ class BacsDebit < Stripe::RequestParams
760
+ class MandateOptions < Stripe::RequestParams
761
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
762
+ sig { returns(T.nilable(String)) }
763
+ attr_accessor :reference_prefix
764
+ sig { params(reference_prefix: T.nilable(String)).void }
765
+ def initialize(reference_prefix: nil); end
766
+ end
767
+ # Additional fields for Mandate creation
768
+ sig {
769
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
770
+ }
771
+ attr_accessor :mandate_options
772
+ sig {
773
+ params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
774
+ }
775
+ def initialize(mandate_options: nil); end
776
+ end
777
+ class Card < Stripe::RequestParams
778
+ class MandateOptions < Stripe::RequestParams
779
+ # Amount to be charged for future payments.
780
+ sig { returns(Integer) }
781
+ attr_accessor :amount
782
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
783
+ sig { returns(String) }
784
+ attr_accessor :amount_type
785
+ # Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
786
+ sig { returns(String) }
787
+ attr_accessor :currency
788
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
789
+ sig { returns(String) }
790
+ attr_accessor :description
791
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
792
+ sig { returns(Integer) }
793
+ attr_accessor :end_date
794
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
795
+ sig { returns(String) }
796
+ attr_accessor :interval
797
+ # The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
798
+ sig { returns(Integer) }
799
+ attr_accessor :interval_count
800
+ # Unique identifier for the mandate or subscription.
801
+ sig { returns(String) }
802
+ attr_accessor :reference
803
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
804
+ sig { returns(Integer) }
805
+ attr_accessor :start_date
806
+ # Specifies the type of mandates supported. Possible values are `india`.
807
+ sig { returns(T::Array[String]) }
808
+ attr_accessor :supported_types
809
+ sig {
810
+ params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
811
+ }
812
+ def initialize(
813
+ amount: nil,
814
+ amount_type: nil,
815
+ currency: nil,
816
+ description: nil,
817
+ end_date: nil,
818
+ interval: nil,
819
+ interval_count: nil,
820
+ reference: nil,
821
+ start_date: nil,
822
+ supported_types: nil
823
+ ); end
824
+ end
825
+ class ThreeDSecure < Stripe::RequestParams
826
+ class NetworkOptions < Stripe::RequestParams
827
+ class CartesBancaires < Stripe::RequestParams
828
+ # The cryptogram calculation algorithm used by the card Issuer's ACS
829
+ # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
830
+ # messageExtension: CB-AVALGO
831
+ sig { returns(String) }
832
+ attr_accessor :cb_avalgo
833
+ # The exemption indicator returned from Cartes Bancaires in the ARes.
834
+ # message extension: CB-EXEMPTION; string (4 characters)
835
+ # This is a 3 byte bitmap (low significant byte first and most significant
836
+ # bit first) that has been Base64 encoded
837
+ sig { returns(String) }
838
+ attr_accessor :cb_exemption
839
+ # The risk score returned from Cartes Bancaires in the ARes.
840
+ # message extension: CB-SCORE; numeric value 0-99
841
+ sig { returns(Integer) }
842
+ attr_accessor :cb_score
843
+ sig { params(cb_avalgo: String, cb_exemption: String, cb_score: Integer).void }
844
+ def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
845
+ end
846
+ # Cartes Bancaires-specific 3DS fields.
847
+ sig {
848
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
849
+ }
850
+ attr_accessor :cartes_bancaires
851
+ sig {
852
+ params(cartes_bancaires: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
853
+ }
854
+ def initialize(cartes_bancaires: nil); end
855
+ end
856
+ # The `transStatus` returned from the card Issuer’s ACS in the ARes.
857
+ sig { returns(String) }
858
+ attr_accessor :ares_trans_status
859
+ # The cryptogram, also known as the "authentication value" (AAV, CAVV or
860
+ # AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
861
+ # (Most 3D Secure providers will return the base64-encoded version, which
862
+ # is what you should specify here.)
863
+ sig { returns(String) }
864
+ attr_accessor :cryptogram
865
+ # The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
866
+ # provider and indicates what degree of authentication was performed.
867
+ sig { returns(String) }
868
+ attr_accessor :electronic_commerce_indicator
869
+ # Network specific 3DS fields. Network specific arguments require an
870
+ # explicit card brand choice. The parameter `payment_method_options.card.network``
871
+ # must be populated accordingly
872
+ sig {
873
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
874
+ }
875
+ attr_accessor :network_options
876
+ # The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
877
+ # AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
878
+ sig { returns(String) }
879
+ attr_accessor :requestor_challenge_indicator
880
+ # For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
881
+ # Transaction ID (dsTransID).
882
+ sig { returns(String) }
883
+ attr_accessor :transaction_id
884
+ # The version of 3D Secure that was performed.
885
+ sig { returns(String) }
886
+ attr_accessor :version
887
+ sig {
888
+ params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
889
+ }
890
+ def initialize(
891
+ ares_trans_status: nil,
892
+ cryptogram: nil,
893
+ electronic_commerce_indicator: nil,
894
+ network_options: nil,
895
+ requestor_challenge_indicator: nil,
896
+ transaction_id: nil,
897
+ version: nil
898
+ ); end
899
+ end
900
+ # Configuration options for setting up an eMandate for cards issued in India.
901
+ sig {
902
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions)
903
+ }
904
+ attr_accessor :mandate_options
905
+ # When specified, this parameter signals that a card has been collected
906
+ # as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
907
+ # parameter can only be provided during confirmation.
908
+ sig { returns(T::Boolean) }
909
+ attr_accessor :moto
910
+ # Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
911
+ sig { returns(String) }
912
+ attr_accessor :network
913
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
914
+ sig { returns(String) }
915
+ attr_accessor :request_three_d_secure
916
+ # If 3D Secure authentication was performed with a third-party provider,
917
+ # the authentication details to use for this setup.
918
+ sig {
919
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)
920
+ }
921
+ attr_accessor :three_d_secure
922
+ sig {
923
+ params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure).void
924
+ }
925
+ def initialize(
926
+ mandate_options: nil,
927
+ moto: nil,
928
+ network: nil,
929
+ request_three_d_secure: nil,
930
+ three_d_secure: nil
931
+ ); end
932
+ end
933
+ class CardPresent < Stripe::RequestParams
934
+
935
+ end
936
+ class Link < Stripe::RequestParams
937
+ # [Deprecated] This is a legacy parameter that no longer has any function.
938
+ sig { returns(String) }
939
+ attr_accessor :persistent_token
940
+ sig { params(persistent_token: String).void }
941
+ def initialize(persistent_token: nil); end
942
+ end
943
+ class Paypal < Stripe::RequestParams
944
+ # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
945
+ sig { returns(String) }
946
+ attr_accessor :billing_agreement_id
947
+ # Attribute for param field currency
948
+ sig { returns(String) }
949
+ attr_accessor :currency
950
+ # 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.
951
+ sig { returns(T::Array[String]) }
952
+ attr_accessor :subsellers
953
+ sig {
954
+ params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
955
+ }
956
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
957
+ end
958
+ class Payto < Stripe::RequestParams
959
+ class MandateOptions < Stripe::RequestParams
960
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
961
+ sig { returns(Integer) }
962
+ attr_accessor :amount
963
+ # 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.
964
+ sig { returns(String) }
965
+ attr_accessor :amount_type
966
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
967
+ sig { returns(String) }
968
+ attr_accessor :end_date
969
+ # The periodicity at which payments will be collected.
970
+ sig { returns(String) }
971
+ attr_accessor :payment_schedule
972
+ # 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.
973
+ sig { returns(Integer) }
974
+ attr_accessor :payments_per_period
975
+ # The purpose for which payments are made. Defaults to retail.
976
+ sig { returns(String) }
977
+ attr_accessor :purpose
978
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
979
+ sig { returns(String) }
980
+ attr_accessor :start_date
981
+ sig {
982
+ params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
983
+ }
984
+ def initialize(
985
+ amount: nil,
986
+ amount_type: nil,
987
+ end_date: nil,
988
+ payment_schedule: nil,
989
+ payments_per_period: nil,
990
+ purpose: nil,
991
+ start_date: nil
992
+ ); end
993
+ end
994
+ # Additional fields for Mandate creation.
995
+ sig {
996
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto::MandateOptions)
997
+ }
998
+ attr_accessor :mandate_options
999
+ sig {
1000
+ params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto::MandateOptions).void
1001
+ }
1002
+ def initialize(mandate_options: nil); end
1003
+ end
1004
+ class SepaDebit < Stripe::RequestParams
1005
+ class MandateOptions < Stripe::RequestParams
1006
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1007
+ sig { returns(T.nilable(String)) }
1008
+ attr_accessor :reference_prefix
1009
+ sig { params(reference_prefix: T.nilable(String)).void }
1010
+ def initialize(reference_prefix: nil); end
1011
+ end
1012
+ # Additional fields for Mandate creation
1013
+ sig {
1014
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
1015
+ }
1016
+ attr_accessor :mandate_options
1017
+ sig {
1018
+ params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
1019
+ }
1020
+ def initialize(mandate_options: nil); end
1021
+ end
1022
+ class UsBankAccount < Stripe::RequestParams
1023
+ class FinancialConnections < Stripe::RequestParams
1024
+ class Filters < Stripe::RequestParams
1025
+ # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1026
+ sig { returns(T::Array[String]) }
1027
+ attr_accessor :account_subcategories
1028
+ # ID of the institution to use to filter for selectable accounts.
1029
+ sig { returns(String) }
1030
+ attr_accessor :institution
1031
+ sig { params(account_subcategories: T::Array[String], institution: String).void }
1032
+ def initialize(account_subcategories: nil, institution: nil); end
1033
+ end
1034
+ class ManualEntry < Stripe::RequestParams
1035
+ # Settings for configuring manual entry of account details.
1036
+ sig { returns(String) }
1037
+ attr_accessor :mode
1038
+ sig { params(mode: String).void }
1039
+ def initialize(mode: nil); end
1040
+ end
1041
+ # Provide filters for the linked accounts that the customer can select for the payment method
1042
+ sig {
1043
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
1044
+ }
1045
+ attr_accessor :filters
1046
+ # Customize manual entry behavior
1047
+ sig {
1048
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
1049
+ }
1050
+ attr_accessor :manual_entry
1051
+ # 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`.
1052
+ sig { returns(T::Array[String]) }
1053
+ attr_accessor :permissions
1054
+ # List of data features that you would like to retrieve upon account creation.
1055
+ sig { returns(T::Array[String]) }
1056
+ attr_accessor :prefetch
1057
+ # 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.
1058
+ sig { returns(String) }
1059
+ attr_accessor :return_url
1060
+ sig {
1061
+ params(filters: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters, manual_entry: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry, permissions: T::Array[String], prefetch: T::Array[String], return_url: String).void
1062
+ }
1063
+ def initialize(
1064
+ filters: nil,
1065
+ manual_entry: nil,
1066
+ permissions: nil,
1067
+ prefetch: nil,
1068
+ return_url: nil
1069
+ ); end
1070
+ end
1071
+ class MandateOptions < Stripe::RequestParams
1072
+ # The method used to collect offline mandate customer acceptance.
1073
+ sig { returns(T.nilable(String)) }
1074
+ attr_accessor :collection_method
1075
+ sig { params(collection_method: T.nilable(String)).void }
1076
+ def initialize(collection_method: nil); end
1077
+ end
1078
+ class Networks < Stripe::RequestParams
1079
+ # Triggers validations to run across the selected networks
1080
+ sig { returns(T::Array[String]) }
1081
+ attr_accessor :requested
1082
+ sig { params(requested: T::Array[String]).void }
1083
+ def initialize(requested: nil); end
1084
+ end
1085
+ # Additional fields for Financial Connections Session creation
1086
+ sig {
1087
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
1088
+ }
1089
+ attr_accessor :financial_connections
1090
+ # Additional fields for Mandate creation
1091
+ sig {
1092
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
1093
+ }
1094
+ attr_accessor :mandate_options
1095
+ # Additional fields for network related functions
1096
+ sig {
1097
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks)
1098
+ }
1099
+ attr_accessor :networks
1100
+ # Bank account verification method.
1101
+ sig { returns(String) }
1102
+ attr_accessor :verification_method
1103
+ sig {
1104
+ params(financial_connections: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
1105
+ }
1106
+ def initialize(
1107
+ financial_connections: nil,
1108
+ mandate_options: nil,
1109
+ networks: nil,
1110
+ verification_method: nil
1111
+ ); end
1112
+ end
1113
+ # If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
1114
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit) }
1115
+ attr_accessor :acss_debit
1116
+ # If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
1117
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AmazonPay) }
1118
+ attr_accessor :amazon_pay
1119
+ # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
1120
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit) }
1121
+ attr_accessor :bacs_debit
1122
+ # Configuration for any card setup attempted on this SetupIntent.
1123
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card) }
1124
+ attr_accessor :card
1125
+ # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
1126
+ sig {
1127
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent)
1128
+ }
1129
+ attr_accessor :card_present
1130
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1131
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Link) }
1132
+ attr_accessor :link
1133
+ # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1134
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Paypal) }
1135
+ attr_accessor :paypal
1136
+ # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1137
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto) }
1138
+ attr_accessor :payto
1139
+ # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1140
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit) }
1141
+ attr_accessor :sepa_debit
1142
+ # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
1143
+ sig {
1144
+ returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount)
1145
+ }
1146
+ attr_accessor :us_bank_account
1147
+ sig {
1148
+ params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto, sepa_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit, us_bank_account: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount).void
1149
+ }
1150
+ def initialize(
1151
+ acss_debit: nil,
1152
+ amazon_pay: nil,
1153
+ bacs_debit: nil,
1154
+ card: nil,
1155
+ card_present: nil,
1156
+ link: nil,
1157
+ paypal: nil,
1158
+ payto: nil,
1159
+ sepa_debit: nil,
1160
+ us_bank_account: nil
1161
+ ); end
1162
+ end
1163
+ class SingleUse < Stripe::RequestParams
1164
+ # Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1165
+ sig { returns(Integer) }
1166
+ attr_accessor :amount
1167
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1168
+ sig { returns(String) }
1169
+ attr_accessor :currency
1170
+ sig { params(amount: Integer, currency: String).void }
1171
+ def initialize(amount: nil, currency: nil); end
1172
+ end
1173
+ # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
1174
+ #
1175
+ # It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
1176
+ sig { returns(T::Boolean) }
1177
+ attr_accessor :attach_to_self
1178
+ # When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.
1179
+ sig { returns(::Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods) }
1180
+ attr_accessor :automatic_payment_methods
1181
+ # Set to `true` to attempt to confirm this SetupIntent immediately. This parameter defaults to `false`. If a card is the attached payment method, you can provide a `return_url` in case further authentication is necessary.
1182
+ sig { returns(T::Boolean) }
1183
+ attr_accessor :confirm
1184
+ # ID of the ConfirmationToken used to confirm this SetupIntent.
1185
+ #
1186
+ # If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
1187
+ sig { returns(String) }
1188
+ attr_accessor :confirmation_token
1189
+ # ID of the Customer this SetupIntent belongs to, if one exists.
1190
+ #
1191
+ # 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.
1192
+ sig { returns(String) }
1193
+ attr_accessor :customer
1194
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1195
+ sig { returns(String) }
1196
+ attr_accessor :description
1197
+ # Specifies which fields in the response should be expanded.
1198
+ sig { returns(T::Array[String]) }
1199
+ attr_accessor :expand
1200
+ # Indicates the directions of money movement for which this payment method is intended to be used.
1201
+ #
1202
+ # Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
1203
+ sig { returns(T::Array[String]) }
1204
+ attr_accessor :flow_directions
1205
+ # This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
1206
+ sig { returns(T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData)) }
1207
+ attr_accessor :mandate_data
1208
+ # 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`.
1209
+ sig { returns(T::Hash[String, String]) }
1210
+ attr_accessor :metadata
1211
+ # The Stripe account ID created for this SetupIntent.
1212
+ sig { returns(String) }
1213
+ attr_accessor :on_behalf_of
1214
+ # ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
1215
+ sig { returns(String) }
1216
+ attr_accessor :payment_method
1217
+ # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
1218
+ sig { returns(String) }
1219
+ attr_accessor :payment_method_configuration
1220
+ # When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
1221
+ # value in the SetupIntent.
1222
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData) }
1223
+ attr_accessor :payment_method_data
1224
+ # Payment method-specific configuration for this SetupIntent.
1225
+ sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions) }
1226
+ attr_accessor :payment_method_options
1227
+ # The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
1228
+ sig { returns(T::Array[String]) }
1229
+ attr_accessor :payment_method_types
1230
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
1231
+ sig { returns(String) }
1232
+ attr_accessor :return_url
1233
+ # If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
1234
+ sig { returns(::Stripe::SetupIntentService::CreateParams::SingleUse) }
1235
+ attr_accessor :single_use
1236
+ # Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.
1237
+ sig { returns(String) }
1238
+ attr_accessor :usage
1239
+ # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
1240
+ sig { returns(T::Boolean) }
1241
+ attr_accessor :use_stripe_sdk
1242
+ sig {
1243
+ params(attach_to_self: T::Boolean, automatic_payment_methods: ::Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods, confirm: T::Boolean, confirmation_token: String, customer: String, description: String, expand: T::Array[String], flow_directions: T::Array[String], mandate_data: T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData), metadata: T::Hash[String, String], on_behalf_of: String, payment_method: String, payment_method_configuration: String, payment_method_data: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions, payment_method_types: T::Array[String], return_url: String, single_use: ::Stripe::SetupIntentService::CreateParams::SingleUse, usage: String, use_stripe_sdk: T::Boolean).void
1244
+ }
1245
+ def initialize(
1246
+ attach_to_self: nil,
1247
+ automatic_payment_methods: nil,
1248
+ confirm: nil,
1249
+ confirmation_token: nil,
1250
+ customer: nil,
1251
+ description: nil,
1252
+ expand: nil,
1253
+ flow_directions: nil,
1254
+ mandate_data: nil,
1255
+ metadata: nil,
1256
+ on_behalf_of: nil,
1257
+ payment_method: nil,
1258
+ payment_method_configuration: nil,
1259
+ payment_method_data: nil,
1260
+ payment_method_options: nil,
1261
+ payment_method_types: nil,
1262
+ return_url: nil,
1263
+ single_use: nil,
1264
+ usage: nil,
1265
+ use_stripe_sdk: nil
1266
+ ); end
1267
+ end
1268
+ class RetrieveParams < Stripe::RequestParams
1269
+ # The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.
1270
+ sig { returns(String) }
1271
+ attr_accessor :client_secret
1272
+ # Specifies which fields in the response should be expanded.
1273
+ sig { returns(T::Array[String]) }
1274
+ attr_accessor :expand
1275
+ sig { params(client_secret: String, expand: T::Array[String]).void }
1276
+ def initialize(client_secret: nil, expand: nil); end
1277
+ end
1278
+ class UpdateParams < Stripe::RequestParams
1279
+ class PaymentMethodData < Stripe::RequestParams
1280
+ class AcssDebit < Stripe::RequestParams
1281
+ # Customer's bank account number.
1282
+ sig { returns(String) }
1283
+ attr_accessor :account_number
1284
+ # Institution number of the customer's bank.
1285
+ sig { returns(String) }
1286
+ attr_accessor :institution_number
1287
+ # Transit number of the customer's bank.
1288
+ sig { returns(String) }
1289
+ attr_accessor :transit_number
1290
+ sig {
1291
+ params(account_number: String, institution_number: String, transit_number: String).void
1292
+ }
1293
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
1294
+ end
1295
+ class Affirm < Stripe::RequestParams
1296
+
1297
+ end
1298
+ class AfterpayClearpay < Stripe::RequestParams
1299
+
1300
+ end
1301
+ class Alipay < Stripe::RequestParams
1302
+
1303
+ end
1304
+ class Alma < Stripe::RequestParams
1305
+
1306
+ end
1307
+ class AmazonPay < Stripe::RequestParams
1308
+
1309
+ end
1310
+ class AuBecsDebit < Stripe::RequestParams
1311
+ # The account number for the bank account.
1312
+ sig { returns(String) }
1313
+ attr_accessor :account_number
1314
+ # Bank-State-Branch number of the bank account.
1315
+ sig { returns(String) }
1316
+ attr_accessor :bsb_number
1317
+ sig { params(account_number: String, bsb_number: String).void }
1318
+ def initialize(account_number: nil, bsb_number: nil); end
1319
+ end
1320
+ class BacsDebit < Stripe::RequestParams
1321
+ # Account number of the bank account that the funds will be debited from.
1322
+ sig { returns(String) }
1323
+ attr_accessor :account_number
1324
+ # Sort code of the bank account. (e.g., `10-20-30`)
1325
+ sig { returns(String) }
1326
+ attr_accessor :sort_code
1327
+ sig { params(account_number: String, sort_code: String).void }
1328
+ def initialize(account_number: nil, sort_code: nil); end
1329
+ end
1330
+ class Bancontact < Stripe::RequestParams
1331
+
1332
+ end
1333
+ class BillingDetails < Stripe::RequestParams
1334
+ class Address < Stripe::RequestParams
1335
+ # City, district, suburb, town, or village.
1336
+ sig { returns(String) }
1337
+ attr_accessor :city
1338
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1339
+ sig { returns(String) }
1340
+ attr_accessor :country
1341
+ # Address line 1 (e.g., street, PO Box, or company name).
1342
+ sig { returns(String) }
1343
+ attr_accessor :line1
1344
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1345
+ sig { returns(String) }
1346
+ attr_accessor :line2
1347
+ # ZIP or postal code.
1348
+ sig { returns(String) }
1349
+ attr_accessor :postal_code
1350
+ # State, county, province, or region.
1351
+ sig { returns(String) }
1352
+ attr_accessor :state
1353
+ sig {
1354
+ params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
1355
+ }
1356
+ def initialize(
1357
+ city: nil,
1358
+ country: nil,
1359
+ line1: nil,
1360
+ line2: nil,
1361
+ postal_code: nil,
1362
+ state: nil
1363
+ ); end
1364
+ end
1365
+ # Billing address.
1366
+ sig {
1367
+ returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))
1368
+ }
1369
+ attr_accessor :address
1370
+ # Email address.
1371
+ sig { returns(T.nilable(String)) }
1372
+ attr_accessor :email
1373
+ # Full name.
1374
+ sig { returns(T.nilable(String)) }
1375
+ attr_accessor :name
1376
+ # Billing phone number (including extension).
1377
+ sig { returns(T.nilable(String)) }
1378
+ attr_accessor :phone
1379
+ sig {
1380
+ params(address: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
1381
+ }
1382
+ def initialize(address: nil, email: nil, name: nil, phone: nil); end
1383
+ end
1384
+ class Blik < Stripe::RequestParams
1385
+
1386
+ end
1387
+ class Boleto < Stripe::RequestParams
1388
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
1389
+ sig { returns(String) }
1390
+ attr_accessor :tax_id
1391
+ sig { params(tax_id: String).void }
1392
+ def initialize(tax_id: nil); end
1393
+ end
1394
+ class Cashapp < Stripe::RequestParams
1395
+
1396
+ end
1397
+ class CustomerBalance < Stripe::RequestParams
1398
+
1399
+ end
1400
+ class Eps < Stripe::RequestParams
1401
+ # The customer's bank.
1402
+ sig { returns(String) }
1403
+ attr_accessor :bank
1404
+ sig { params(bank: String).void }
1405
+ def initialize(bank: nil); end
1406
+ end
1407
+ class Fpx < Stripe::RequestParams
1408
+ # Account holder type for FPX transaction
1409
+ sig { returns(String) }
1410
+ attr_accessor :account_holder_type
1411
+ # The customer's bank.
1412
+ sig { returns(String) }
1413
+ attr_accessor :bank
1414
+ sig { params(account_holder_type: String, bank: String).void }
1415
+ def initialize(account_holder_type: nil, bank: nil); end
1416
+ end
1417
+ class Giropay < Stripe::RequestParams
1418
+
1419
+ end
1420
+ class Gopay < Stripe::RequestParams
1421
+
1422
+ end
1423
+ class Grabpay < Stripe::RequestParams
1424
+
1425
+ end
1426
+ class IdBankTransfer < Stripe::RequestParams
1427
+ # Bank where the account is held.
1428
+ sig { returns(String) }
1429
+ attr_accessor :bank
1430
+ sig { params(bank: String).void }
1431
+ def initialize(bank: nil); end
1432
+ end
1433
+ class Ideal < Stripe::RequestParams
1434
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1435
+ sig { returns(String) }
1436
+ attr_accessor :bank
1437
+ sig { params(bank: String).void }
1438
+ def initialize(bank: nil); end
1439
+ end
1440
+ class InteracPresent < Stripe::RequestParams
1441
+
1442
+ end
1443
+ class KakaoPay < Stripe::RequestParams
1444
+
1445
+ end
1446
+ class Klarna < Stripe::RequestParams
1447
+ class Dob < Stripe::RequestParams
1448
+ # The day of birth, between 1 and 31.
1449
+ sig { returns(Integer) }
1450
+ attr_accessor :day
1451
+ # The month of birth, between 1 and 12.
1452
+ sig { returns(Integer) }
1453
+ attr_accessor :month
1454
+ # The four-digit year of birth.
1455
+ sig { returns(Integer) }
1456
+ attr_accessor :year
1457
+ sig { params(day: Integer, month: Integer, year: Integer).void }
1458
+ def initialize(day: nil, month: nil, year: nil); end
1459
+ end
1460
+ # Customer's date of birth
1461
+ sig {
1462
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob)
1463
+ }
1464
+ attr_accessor :dob
1465
+ sig {
1466
+ params(dob: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob).void
1467
+ }
1468
+ def initialize(dob: nil); end
1469
+ end
1470
+ class Konbini < Stripe::RequestParams
1471
+
1472
+ end
1473
+ class KrCard < Stripe::RequestParams
1474
+
1475
+ end
1476
+ class Link < Stripe::RequestParams
1477
+
1478
+ end
1479
+ class MbWay < Stripe::RequestParams
1480
+
1481
+ end
1482
+ class Mobilepay < Stripe::RequestParams
1483
+
1484
+ end
1485
+ class Multibanco < Stripe::RequestParams
1486
+
1487
+ end
1488
+ class NaverPay < Stripe::RequestParams
1489
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
1490
+ sig { returns(String) }
1491
+ attr_accessor :funding
1492
+ sig { params(funding: String).void }
1493
+ def initialize(funding: nil); end
1494
+ end
1495
+ class Oxxo < Stripe::RequestParams
1496
+
1497
+ end
1498
+ class P24 < Stripe::RequestParams
1499
+ # The customer's bank.
1500
+ sig { returns(String) }
1501
+ attr_accessor :bank
1502
+ sig { params(bank: String).void }
1503
+ def initialize(bank: nil); end
1504
+ end
1505
+ class Payco < Stripe::RequestParams
1506
+
1507
+ end
1508
+ class Paynow < Stripe::RequestParams
1509
+
1510
+ end
1511
+ class Paypal < Stripe::RequestParams
1512
+
1513
+ end
1514
+ class Payto < Stripe::RequestParams
1515
+ # The account number for the bank account.
1516
+ sig { returns(String) }
1517
+ attr_accessor :account_number
1518
+ # Bank-State-Branch number of the bank account.
1519
+ sig { returns(String) }
1520
+ attr_accessor :bsb_number
1521
+ # The PayID alias for the bank account.
1522
+ sig { returns(String) }
1523
+ attr_accessor :pay_id
1524
+ sig { params(account_number: String, bsb_number: String, pay_id: String).void }
1525
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
1526
+ end
1527
+ class Pix < Stripe::RequestParams
1528
+
1529
+ end
1530
+ class Promptpay < Stripe::RequestParams
1531
+
1532
+ end
1533
+ class Qris < Stripe::RequestParams
1534
+
1535
+ end
1536
+ class RadarOptions < Stripe::RequestParams
1537
+ # 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.
1538
+ sig { returns(String) }
1539
+ attr_accessor :session
1540
+ sig { params(session: String).void }
1541
+ def initialize(session: nil); end
1542
+ end
1543
+ class Rechnung < Stripe::RequestParams
1544
+ class Dob < Stripe::RequestParams
1545
+ # The day of birth, between 1 and 31.
1546
+ sig { returns(Integer) }
1547
+ attr_accessor :day
1548
+ # The month of birth, between 1 and 12.
1549
+ sig { returns(Integer) }
1550
+ attr_accessor :month
1551
+ # The four-digit year of birth.
1552
+ sig { returns(Integer) }
1553
+ attr_accessor :year
1554
+ sig { params(day: Integer, month: Integer, year: Integer).void }
1555
+ def initialize(day: nil, month: nil, year: nil); end
1556
+ end
1557
+ # Customer's date of birth
1558
+ sig {
1559
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung::Dob)
1560
+ }
1561
+ attr_accessor :dob
1562
+ sig {
1563
+ params(dob: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung::Dob).void
1564
+ }
1565
+ def initialize(dob: nil); end
1566
+ end
1567
+ class RevolutPay < Stripe::RequestParams
1568
+
1569
+ end
1570
+ class SamsungPay < Stripe::RequestParams
1571
+
1572
+ end
1573
+ class SepaDebit < Stripe::RequestParams
1574
+ # IBAN of the bank account.
1575
+ sig { returns(String) }
1576
+ attr_accessor :iban
1577
+ sig { params(iban: String).void }
1578
+ def initialize(iban: nil); end
1579
+ end
1580
+ class Shopeepay < Stripe::RequestParams
1581
+
1582
+ end
1583
+ class Sofort < Stripe::RequestParams
1584
+ # Two-letter ISO code representing the country the bank account is located in.
1585
+ sig { returns(String) }
1586
+ attr_accessor :country
1587
+ sig { params(country: String).void }
1588
+ def initialize(country: nil); end
1589
+ end
1590
+ class Swish < Stripe::RequestParams
1591
+
1592
+ end
1593
+ class Twint < Stripe::RequestParams
1594
+
1595
+ end
1596
+ class UsBankAccount < Stripe::RequestParams
1597
+ # Account holder type: individual or company.
1598
+ sig { returns(String) }
1599
+ attr_accessor :account_holder_type
1600
+ # Account number of the bank account.
1601
+ sig { returns(String) }
1602
+ attr_accessor :account_number
1603
+ # Account type: checkings or savings. Defaults to checking if omitted.
1604
+ sig { returns(String) }
1605
+ attr_accessor :account_type
1606
+ # The ID of a Financial Connections Account to use as a payment method.
1607
+ sig { returns(String) }
1608
+ attr_accessor :financial_connections_account
1609
+ # Routing number of the bank account.
1610
+ sig { returns(String) }
1611
+ attr_accessor :routing_number
1612
+ sig {
1613
+ params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
1614
+ }
1615
+ def initialize(
1616
+ account_holder_type: nil,
1617
+ account_number: nil,
1618
+ account_type: nil,
1619
+ financial_connections_account: nil,
1620
+ routing_number: nil
1621
+ ); end
1622
+ end
1623
+ class WechatPay < Stripe::RequestParams
1624
+
1625
+ end
1626
+ class Zip < Stripe::RequestParams
1627
+
1628
+ end
1629
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1630
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit) }
1631
+ attr_accessor :acss_debit
1632
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
1633
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm) }
1634
+ attr_accessor :affirm
1635
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
1636
+ sig {
1637
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay)
1638
+ }
1639
+ attr_accessor :afterpay_clearpay
1640
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
1641
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay) }
1642
+ attr_accessor :alipay
1643
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
1644
+ sig { returns(String) }
1645
+ attr_accessor :allow_redisplay
1646
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
1647
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma) }
1648
+ attr_accessor :alma
1649
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
1650
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay) }
1651
+ attr_accessor :amazon_pay
1652
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
1653
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit) }
1654
+ attr_accessor :au_becs_debit
1655
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
1656
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit) }
1657
+ attr_accessor :bacs_debit
1658
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1659
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact) }
1660
+ attr_accessor :bancontact
1661
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1662
+ sig {
1663
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails)
1664
+ }
1665
+ attr_accessor :billing_details
1666
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
1667
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik) }
1668
+ attr_accessor :blik
1669
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
1670
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto) }
1671
+ attr_accessor :boleto
1672
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1673
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp) }
1674
+ attr_accessor :cashapp
1675
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1676
+ sig {
1677
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance)
1678
+ }
1679
+ attr_accessor :customer_balance
1680
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
1681
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps) }
1682
+ attr_accessor :eps
1683
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
1684
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx) }
1685
+ attr_accessor :fpx
1686
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1687
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay) }
1688
+ attr_accessor :giropay
1689
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1690
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Gopay) }
1691
+ attr_accessor :gopay
1692
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1693
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay) }
1694
+ attr_accessor :grabpay
1695
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1696
+ sig {
1697
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::IdBankTransfer)
1698
+ }
1699
+ attr_accessor :id_bank_transfer
1700
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1701
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal) }
1702
+ attr_accessor :ideal
1703
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
1704
+ sig {
1705
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent)
1706
+ }
1707
+ attr_accessor :interac_present
1708
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
1709
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay) }
1710
+ attr_accessor :kakao_pay
1711
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1712
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna) }
1713
+ attr_accessor :klarna
1714
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
1715
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini) }
1716
+ attr_accessor :konbini
1717
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
1718
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard) }
1719
+ attr_accessor :kr_card
1720
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1721
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link) }
1722
+ attr_accessor :link
1723
+ # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1724
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::MbWay) }
1725
+ attr_accessor :mb_way
1726
+ # 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`.
1727
+ sig { returns(T::Hash[String, String]) }
1728
+ attr_accessor :metadata
1729
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
1730
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay) }
1731
+ attr_accessor :mobilepay
1732
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
1733
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco) }
1734
+ attr_accessor :multibanco
1735
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1736
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay) }
1737
+ attr_accessor :naver_pay
1738
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
1739
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo) }
1740
+ attr_accessor :oxxo
1741
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1742
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24) }
1743
+ attr_accessor :p24
1744
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1745
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco) }
1746
+ attr_accessor :payco
1747
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
1748
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow) }
1749
+ attr_accessor :paynow
1750
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1751
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal) }
1752
+ attr_accessor :paypal
1753
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1754
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payto) }
1755
+ attr_accessor :payto
1756
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1757
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix) }
1758
+ attr_accessor :pix
1759
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1760
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay) }
1761
+ attr_accessor :promptpay
1762
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1763
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Qris) }
1764
+ attr_accessor :qris
1765
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1766
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions) }
1767
+ attr_accessor :radar_options
1768
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1769
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung) }
1770
+ attr_accessor :rechnung
1771
+ # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1772
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay) }
1773
+ attr_accessor :revolut_pay
1774
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1775
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay) }
1776
+ attr_accessor :samsung_pay
1777
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1778
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit) }
1779
+ attr_accessor :sepa_debit
1780
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1781
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Shopeepay) }
1782
+ attr_accessor :shopeepay
1783
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1784
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort) }
1785
+ attr_accessor :sofort
1786
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1787
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish) }
1788
+ attr_accessor :swish
1789
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
1790
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint) }
1791
+ attr_accessor :twint
1792
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
1793
+ sig { returns(String) }
1794
+ attr_accessor :type
1795
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
1796
+ sig {
1797
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount)
1798
+ }
1799
+ attr_accessor :us_bank_account
1800
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1801
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay) }
1802
+ attr_accessor :wechat_pay
1803
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1804
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip) }
1805
+ attr_accessor :zip
1806
+ sig {
1807
+ params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip).void
1808
+ }
1809
+ def initialize(
1810
+ acss_debit: nil,
1811
+ affirm: nil,
1812
+ afterpay_clearpay: nil,
1813
+ alipay: nil,
1814
+ allow_redisplay: nil,
1815
+ alma: nil,
1816
+ amazon_pay: nil,
1817
+ au_becs_debit: nil,
1818
+ bacs_debit: nil,
1819
+ bancontact: nil,
1820
+ billing_details: nil,
1821
+ blik: nil,
1822
+ boleto: nil,
1823
+ cashapp: nil,
1824
+ customer_balance: nil,
1825
+ eps: nil,
1826
+ fpx: nil,
1827
+ giropay: nil,
1828
+ gopay: nil,
1829
+ grabpay: nil,
1830
+ id_bank_transfer: nil,
1831
+ ideal: nil,
1832
+ interac_present: nil,
1833
+ kakao_pay: nil,
1834
+ klarna: nil,
1835
+ konbini: nil,
1836
+ kr_card: nil,
1837
+ link: nil,
1838
+ mb_way: nil,
1839
+ metadata: nil,
1840
+ mobilepay: nil,
1841
+ multibanco: nil,
1842
+ naver_pay: nil,
1843
+ oxxo: nil,
1844
+ p24: nil,
1845
+ payco: nil,
1846
+ paynow: nil,
1847
+ paypal: nil,
1848
+ payto: nil,
1849
+ pix: nil,
1850
+ promptpay: nil,
1851
+ qris: nil,
1852
+ radar_options: nil,
1853
+ rechnung: nil,
1854
+ revolut_pay: nil,
1855
+ samsung_pay: nil,
1856
+ sepa_debit: nil,
1857
+ shopeepay: nil,
1858
+ sofort: nil,
1859
+ swish: nil,
1860
+ twint: nil,
1861
+ type: nil,
1862
+ us_bank_account: nil,
1863
+ wechat_pay: nil,
1864
+ zip: nil
1865
+ ); end
1866
+ end
1867
+ class PaymentMethodOptions < Stripe::RequestParams
1868
+ class AcssDebit < Stripe::RequestParams
1869
+ class MandateOptions < Stripe::RequestParams
1870
+ # A URL for custom mandate text to render during confirmation step.
1871
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
1872
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
1873
+ sig { returns(T.nilable(String)) }
1874
+ attr_accessor :custom_mandate_url
1875
+ # List of Stripe products where this mandate can be selected automatically.
1876
+ sig { returns(T::Array[String]) }
1877
+ attr_accessor :default_for
1878
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
1879
+ sig { returns(String) }
1880
+ attr_accessor :interval_description
1881
+ # Payment schedule for the mandate.
1882
+ sig { returns(String) }
1883
+ attr_accessor :payment_schedule
1884
+ # Transaction type of the mandate.
1885
+ sig { returns(String) }
1886
+ attr_accessor :transaction_type
1887
+ sig {
1888
+ params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
1889
+ }
1890
+ def initialize(
1891
+ custom_mandate_url: nil,
1892
+ default_for: nil,
1893
+ interval_description: nil,
1894
+ payment_schedule: nil,
1895
+ transaction_type: nil
1896
+ ); end
1897
+ end
1898
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1899
+ sig { returns(String) }
1900
+ attr_accessor :currency
1901
+ # Additional fields for Mandate creation
1902
+ sig {
1903
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
1904
+ }
1905
+ attr_accessor :mandate_options
1906
+ # Bank account verification method.
1907
+ sig { returns(String) }
1908
+ attr_accessor :verification_method
1909
+ sig {
1910
+ params(currency: String, mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
1911
+ }
1912
+ def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
1913
+ end
1914
+ class AmazonPay < Stripe::RequestParams
1915
+
1916
+ end
1917
+ class BacsDebit < Stripe::RequestParams
1918
+ class MandateOptions < Stripe::RequestParams
1919
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
1920
+ sig { returns(T.nilable(String)) }
1921
+ attr_accessor :reference_prefix
1922
+ sig { params(reference_prefix: T.nilable(String)).void }
1923
+ def initialize(reference_prefix: nil); end
1924
+ end
1925
+ # Additional fields for Mandate creation
1926
+ sig {
1927
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
1928
+ }
1929
+ attr_accessor :mandate_options
1930
+ sig {
1931
+ params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
1932
+ }
1933
+ def initialize(mandate_options: nil); end
1934
+ end
1935
+ class Card < Stripe::RequestParams
1936
+ class MandateOptions < Stripe::RequestParams
1937
+ # Amount to be charged for future payments.
1938
+ sig { returns(Integer) }
1939
+ attr_accessor :amount
1940
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1941
+ sig { returns(String) }
1942
+ attr_accessor :amount_type
1943
+ # Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1944
+ sig { returns(String) }
1945
+ attr_accessor :currency
1946
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
1947
+ sig { returns(String) }
1948
+ attr_accessor :description
1949
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
1950
+ sig { returns(Integer) }
1951
+ attr_accessor :end_date
1952
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
1953
+ sig { returns(String) }
1954
+ attr_accessor :interval
1955
+ # The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
1956
+ sig { returns(Integer) }
1957
+ attr_accessor :interval_count
1958
+ # Unique identifier for the mandate or subscription.
1959
+ sig { returns(String) }
1960
+ attr_accessor :reference
1961
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
1962
+ sig { returns(Integer) }
1963
+ attr_accessor :start_date
1964
+ # Specifies the type of mandates supported. Possible values are `india`.
1965
+ sig { returns(T::Array[String]) }
1966
+ attr_accessor :supported_types
1967
+ sig {
1968
+ params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
1969
+ }
1970
+ def initialize(
1971
+ amount: nil,
1972
+ amount_type: nil,
1973
+ currency: nil,
1974
+ description: nil,
1975
+ end_date: nil,
1976
+ interval: nil,
1977
+ interval_count: nil,
1978
+ reference: nil,
1979
+ start_date: nil,
1980
+ supported_types: nil
1981
+ ); end
1982
+ end
1983
+ class ThreeDSecure < Stripe::RequestParams
1984
+ class NetworkOptions < Stripe::RequestParams
1985
+ class CartesBancaires < Stripe::RequestParams
1986
+ # The cryptogram calculation algorithm used by the card Issuer's ACS
1987
+ # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
1988
+ # messageExtension: CB-AVALGO
1989
+ sig { returns(String) }
1990
+ attr_accessor :cb_avalgo
1991
+ # The exemption indicator returned from Cartes Bancaires in the ARes.
1992
+ # message extension: CB-EXEMPTION; string (4 characters)
1993
+ # This is a 3 byte bitmap (low significant byte first and most significant
1994
+ # bit first) that has been Base64 encoded
1995
+ sig { returns(String) }
1996
+ attr_accessor :cb_exemption
1997
+ # The risk score returned from Cartes Bancaires in the ARes.
1998
+ # message extension: CB-SCORE; numeric value 0-99
1999
+ sig { returns(Integer) }
2000
+ attr_accessor :cb_score
2001
+ sig { params(cb_avalgo: String, cb_exemption: String, cb_score: Integer).void }
2002
+ def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
2003
+ end
2004
+ # Cartes Bancaires-specific 3DS fields.
2005
+ sig {
2006
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
2007
+ }
2008
+ attr_accessor :cartes_bancaires
2009
+ sig {
2010
+ params(cartes_bancaires: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
2011
+ }
2012
+ def initialize(cartes_bancaires: nil); end
2013
+ end
2014
+ # The `transStatus` returned from the card Issuer’s ACS in the ARes.
2015
+ sig { returns(String) }
2016
+ attr_accessor :ares_trans_status
2017
+ # The cryptogram, also known as the "authentication value" (AAV, CAVV or
2018
+ # AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
2019
+ # (Most 3D Secure providers will return the base64-encoded version, which
2020
+ # is what you should specify here.)
2021
+ sig { returns(String) }
2022
+ attr_accessor :cryptogram
2023
+ # The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
2024
+ # provider and indicates what degree of authentication was performed.
2025
+ sig { returns(String) }
2026
+ attr_accessor :electronic_commerce_indicator
2027
+ # Network specific 3DS fields. Network specific arguments require an
2028
+ # explicit card brand choice. The parameter `payment_method_options.card.network``
2029
+ # must be populated accordingly
2030
+ sig {
2031
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
2032
+ }
2033
+ attr_accessor :network_options
2034
+ # The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
2035
+ # AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
2036
+ sig { returns(String) }
2037
+ attr_accessor :requestor_challenge_indicator
2038
+ # For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
2039
+ # Transaction ID (dsTransID).
2040
+ sig { returns(String) }
2041
+ attr_accessor :transaction_id
2042
+ # The version of 3D Secure that was performed.
2043
+ sig { returns(String) }
2044
+ attr_accessor :version
2045
+ sig {
2046
+ params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
2047
+ }
2048
+ def initialize(
2049
+ ares_trans_status: nil,
2050
+ cryptogram: nil,
2051
+ electronic_commerce_indicator: nil,
2052
+ network_options: nil,
2053
+ requestor_challenge_indicator: nil,
2054
+ transaction_id: nil,
2055
+ version: nil
2056
+ ); end
2057
+ end
2058
+ # Configuration options for setting up an eMandate for cards issued in India.
2059
+ sig {
2060
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions)
2061
+ }
2062
+ attr_accessor :mandate_options
2063
+ # When specified, this parameter signals that a card has been collected
2064
+ # as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
2065
+ # parameter can only be provided during confirmation.
2066
+ sig { returns(T::Boolean) }
2067
+ attr_accessor :moto
2068
+ # Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
2069
+ sig { returns(String) }
2070
+ attr_accessor :network
2071
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
2072
+ sig { returns(String) }
2073
+ attr_accessor :request_three_d_secure
2074
+ # If 3D Secure authentication was performed with a third-party provider,
2075
+ # the authentication details to use for this setup.
2076
+ sig {
2077
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)
2078
+ }
2079
+ attr_accessor :three_d_secure
2080
+ sig {
2081
+ params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure).void
2082
+ }
2083
+ def initialize(
2084
+ mandate_options: nil,
2085
+ moto: nil,
2086
+ network: nil,
2087
+ request_three_d_secure: nil,
2088
+ three_d_secure: nil
2089
+ ); end
2090
+ end
2091
+ class CardPresent < Stripe::RequestParams
2092
+
2093
+ end
2094
+ class Link < Stripe::RequestParams
2095
+ # [Deprecated] This is a legacy parameter that no longer has any function.
2096
+ sig { returns(String) }
2097
+ attr_accessor :persistent_token
2098
+ sig { params(persistent_token: String).void }
2099
+ def initialize(persistent_token: nil); end
2100
+ end
2101
+ class Paypal < Stripe::RequestParams
2102
+ # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2103
+ sig { returns(String) }
2104
+ attr_accessor :billing_agreement_id
2105
+ # Attribute for param field currency
2106
+ sig { returns(String) }
2107
+ attr_accessor :currency
2108
+ # 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.
2109
+ sig { returns(T::Array[String]) }
2110
+ attr_accessor :subsellers
2111
+ sig {
2112
+ params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
2113
+ }
2114
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
2115
+ end
2116
+ class Payto < Stripe::RequestParams
2117
+ class MandateOptions < Stripe::RequestParams
2118
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2119
+ sig { returns(Integer) }
2120
+ attr_accessor :amount
2121
+ # 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.
2122
+ sig { returns(String) }
2123
+ attr_accessor :amount_type
2124
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2125
+ sig { returns(String) }
2126
+ attr_accessor :end_date
2127
+ # The periodicity at which payments will be collected.
2128
+ sig { returns(String) }
2129
+ attr_accessor :payment_schedule
2130
+ # 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.
2131
+ sig { returns(Integer) }
2132
+ attr_accessor :payments_per_period
2133
+ # The purpose for which payments are made. Defaults to retail.
2134
+ sig { returns(String) }
2135
+ attr_accessor :purpose
2136
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2137
+ sig { returns(String) }
2138
+ attr_accessor :start_date
2139
+ sig {
2140
+ params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
2141
+ }
2142
+ def initialize(
2143
+ amount: nil,
2144
+ amount_type: nil,
2145
+ end_date: nil,
2146
+ payment_schedule: nil,
2147
+ payments_per_period: nil,
2148
+ purpose: nil,
2149
+ start_date: nil
2150
+ ); end
2151
+ end
2152
+ # Additional fields for Mandate creation.
2153
+ sig {
2154
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto::MandateOptions)
2155
+ }
2156
+ attr_accessor :mandate_options
2157
+ sig {
2158
+ params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto::MandateOptions).void
2159
+ }
2160
+ def initialize(mandate_options: nil); end
2161
+ end
2162
+ class SepaDebit < Stripe::RequestParams
2163
+ class MandateOptions < Stripe::RequestParams
2164
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
2165
+ sig { returns(T.nilable(String)) }
2166
+ attr_accessor :reference_prefix
2167
+ sig { params(reference_prefix: T.nilable(String)).void }
2168
+ def initialize(reference_prefix: nil); end
2169
+ end
2170
+ # Additional fields for Mandate creation
2171
+ sig {
2172
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
2173
+ }
2174
+ attr_accessor :mandate_options
2175
+ sig {
2176
+ params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
2177
+ }
2178
+ def initialize(mandate_options: nil); end
2179
+ end
2180
+ class UsBankAccount < Stripe::RequestParams
2181
+ class FinancialConnections < Stripe::RequestParams
2182
+ class Filters < Stripe::RequestParams
2183
+ # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2184
+ sig { returns(T::Array[String]) }
2185
+ attr_accessor :account_subcategories
2186
+ # ID of the institution to use to filter for selectable accounts.
2187
+ sig { returns(String) }
2188
+ attr_accessor :institution
2189
+ sig { params(account_subcategories: T::Array[String], institution: String).void }
2190
+ def initialize(account_subcategories: nil, institution: nil); end
2191
+ end
2192
+ class ManualEntry < Stripe::RequestParams
2193
+ # Settings for configuring manual entry of account details.
2194
+ sig { returns(String) }
2195
+ attr_accessor :mode
2196
+ sig { params(mode: String).void }
2197
+ def initialize(mode: nil); end
2198
+ end
2199
+ # Provide filters for the linked accounts that the customer can select for the payment method
2200
+ sig {
2201
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
2202
+ }
2203
+ attr_accessor :filters
2204
+ # Customize manual entry behavior
2205
+ sig {
2206
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
2207
+ }
2208
+ attr_accessor :manual_entry
2209
+ # 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`.
2210
+ sig { returns(T::Array[String]) }
2211
+ attr_accessor :permissions
2212
+ # List of data features that you would like to retrieve upon account creation.
2213
+ sig { returns(T::Array[String]) }
2214
+ attr_accessor :prefetch
2215
+ # 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.
2216
+ sig { returns(String) }
2217
+ attr_accessor :return_url
2218
+ sig {
2219
+ params(filters: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters, manual_entry: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry, permissions: T::Array[String], prefetch: T::Array[String], return_url: String).void
2220
+ }
2221
+ def initialize(
2222
+ filters: nil,
2223
+ manual_entry: nil,
2224
+ permissions: nil,
2225
+ prefetch: nil,
2226
+ return_url: nil
2227
+ ); end
2228
+ end
2229
+ class MandateOptions < Stripe::RequestParams
2230
+ # The method used to collect offline mandate customer acceptance.
2231
+ sig { returns(T.nilable(String)) }
2232
+ attr_accessor :collection_method
2233
+ sig { params(collection_method: T.nilable(String)).void }
2234
+ def initialize(collection_method: nil); end
2235
+ end
2236
+ class Networks < Stripe::RequestParams
2237
+ # Triggers validations to run across the selected networks
2238
+ sig { returns(T::Array[String]) }
2239
+ attr_accessor :requested
2240
+ sig { params(requested: T::Array[String]).void }
2241
+ def initialize(requested: nil); end
2242
+ end
2243
+ # Additional fields for Financial Connections Session creation
2244
+ sig {
2245
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
2246
+ }
2247
+ attr_accessor :financial_connections
2248
+ # Additional fields for Mandate creation
2249
+ sig {
2250
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
2251
+ }
2252
+ attr_accessor :mandate_options
2253
+ # Additional fields for network related functions
2254
+ sig {
2255
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks)
2256
+ }
2257
+ attr_accessor :networks
2258
+ # Bank account verification method.
2259
+ sig { returns(String) }
2260
+ attr_accessor :verification_method
2261
+ sig {
2262
+ params(financial_connections: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
2263
+ }
2264
+ def initialize(
2265
+ financial_connections: nil,
2266
+ mandate_options: nil,
2267
+ networks: nil,
2268
+ verification_method: nil
2269
+ ); end
2270
+ end
2271
+ # If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
2272
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit) }
2273
+ attr_accessor :acss_debit
2274
+ # If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
2275
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AmazonPay) }
2276
+ attr_accessor :amazon_pay
2277
+ # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
2278
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit) }
2279
+ attr_accessor :bacs_debit
2280
+ # Configuration for any card setup attempted on this SetupIntent.
2281
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card) }
2282
+ attr_accessor :card
2283
+ # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
2284
+ sig {
2285
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent)
2286
+ }
2287
+ attr_accessor :card_present
2288
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2289
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Link) }
2290
+ attr_accessor :link
2291
+ # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2292
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Paypal) }
2293
+ attr_accessor :paypal
2294
+ # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2295
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto) }
2296
+ attr_accessor :payto
2297
+ # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2298
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit) }
2299
+ attr_accessor :sepa_debit
2300
+ # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
2301
+ sig {
2302
+ returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount)
2303
+ }
2304
+ attr_accessor :us_bank_account
2305
+ sig {
2306
+ params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto, sepa_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit, us_bank_account: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount).void
2307
+ }
2308
+ def initialize(
2309
+ acss_debit: nil,
2310
+ amazon_pay: nil,
2311
+ bacs_debit: nil,
2312
+ card: nil,
2313
+ card_present: nil,
2314
+ link: nil,
2315
+ paypal: nil,
2316
+ payto: nil,
2317
+ sepa_debit: nil,
2318
+ us_bank_account: nil
2319
+ ); end
2320
+ end
2321
+ # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
2322
+ #
2323
+ # It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
2324
+ sig { returns(T::Boolean) }
2325
+ attr_accessor :attach_to_self
2326
+ # ID of the Customer this SetupIntent belongs to, if one exists.
2327
+ #
2328
+ # 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.
2329
+ sig { returns(String) }
2330
+ attr_accessor :customer
2331
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2332
+ sig { returns(String) }
2333
+ attr_accessor :description
2334
+ # Specifies which fields in the response should be expanded.
2335
+ sig { returns(T::Array[String]) }
2336
+ attr_accessor :expand
2337
+ # Indicates the directions of money movement for which this payment method is intended to be used.
2338
+ #
2339
+ # Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
2340
+ sig { returns(T::Array[String]) }
2341
+ attr_accessor :flow_directions
2342
+ # 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`.
2343
+ sig { returns(T.nilable(T::Hash[String, String])) }
2344
+ attr_accessor :metadata
2345
+ # ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
2346
+ sig { returns(String) }
2347
+ attr_accessor :payment_method
2348
+ # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
2349
+ sig { returns(String) }
2350
+ attr_accessor :payment_method_configuration
2351
+ # When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
2352
+ # value in the SetupIntent.
2353
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData) }
2354
+ attr_accessor :payment_method_data
2355
+ # Payment method-specific configuration for this SetupIntent.
2356
+ sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions) }
2357
+ attr_accessor :payment_method_options
2358
+ # The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
2359
+ sig { returns(T::Array[String]) }
2360
+ attr_accessor :payment_method_types
2361
+ sig {
2362
+ params(attach_to_self: T::Boolean, customer: String, description: String, expand: T::Array[String], flow_directions: T::Array[String], metadata: T.nilable(T::Hash[String, String]), payment_method: String, payment_method_configuration: String, payment_method_data: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions, payment_method_types: T::Array[String]).void
2363
+ }
2364
+ def initialize(
2365
+ attach_to_self: nil,
2366
+ customer: nil,
2367
+ description: nil,
2368
+ expand: nil,
2369
+ flow_directions: nil,
2370
+ metadata: nil,
2371
+ payment_method: nil,
2372
+ payment_method_configuration: nil,
2373
+ payment_method_data: nil,
2374
+ payment_method_options: nil,
2375
+ payment_method_types: nil
2376
+ ); end
2377
+ end
2378
+ class CancelParams < Stripe::RequestParams
2379
+ # Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`
2380
+ sig { returns(String) }
2381
+ attr_accessor :cancellation_reason
2382
+ # Specifies which fields in the response should be expanded.
2383
+ sig { returns(T::Array[String]) }
2384
+ attr_accessor :expand
2385
+ sig { params(cancellation_reason: String, expand: T::Array[String]).void }
2386
+ def initialize(cancellation_reason: nil, expand: nil); end
2387
+ end
2388
+ class ConfirmParams < Stripe::RequestParams
2389
+ class MandateData < Stripe::RequestParams
2390
+ class CustomerAcceptance < Stripe::RequestParams
2391
+ class Offline < Stripe::RequestParams
2392
+
2393
+ end
2394
+ class Online < Stripe::RequestParams
2395
+ # The IP address from which the Mandate was accepted by the customer.
2396
+ sig { returns(String) }
2397
+ attr_accessor :ip_address
2398
+ # The user agent of the browser from which the Mandate was accepted by the customer.
2399
+ sig { returns(String) }
2400
+ attr_accessor :user_agent
2401
+ sig { params(ip_address: String, user_agent: String).void }
2402
+ def initialize(ip_address: nil, user_agent: nil); end
2403
+ end
2404
+ # The time at which the customer accepted the Mandate.
2405
+ sig { returns(Integer) }
2406
+ attr_accessor :accepted_at
2407
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
2408
+ sig {
2409
+ returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline)
2410
+ }
2411
+ attr_accessor :offline
2412
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
2413
+ sig {
2414
+ returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online)
2415
+ }
2416
+ attr_accessor :online
2417
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
2418
+ sig { returns(String) }
2419
+ attr_accessor :type
2420
+ sig {
2421
+ params(accepted_at: Integer, offline: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online, type: String).void
2422
+ }
2423
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
2424
+ end
2425
+ # This hash contains details about the customer acceptance of the Mandate.
2426
+ sig {
2427
+ returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance)
2428
+ }
2429
+ attr_accessor :customer_acceptance
2430
+ sig {
2431
+ params(customer_acceptance: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance).void
2432
+ }
2433
+ def initialize(customer_acceptance: nil); end
2434
+ end
2435
+ class PaymentMethodData < Stripe::RequestParams
2436
+ class AcssDebit < Stripe::RequestParams
2437
+ # Customer's bank account number.
2438
+ sig { returns(String) }
2439
+ attr_accessor :account_number
2440
+ # Institution number of the customer's bank.
2441
+ sig { returns(String) }
2442
+ attr_accessor :institution_number
2443
+ # Transit number of the customer's bank.
2444
+ sig { returns(String) }
2445
+ attr_accessor :transit_number
2446
+ sig {
2447
+ params(account_number: String, institution_number: String, transit_number: String).void
2448
+ }
2449
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
2450
+ end
2451
+ class Affirm < Stripe::RequestParams
2452
+
2453
+ end
2454
+ class AfterpayClearpay < Stripe::RequestParams
2455
+
2456
+ end
2457
+ class Alipay < Stripe::RequestParams
2458
+
2459
+ end
2460
+ class Alma < Stripe::RequestParams
2461
+
2462
+ end
2463
+ class AmazonPay < Stripe::RequestParams
2464
+
2465
+ end
2466
+ class AuBecsDebit < Stripe::RequestParams
2467
+ # The account number for the bank account.
2468
+ sig { returns(String) }
2469
+ attr_accessor :account_number
2470
+ # Bank-State-Branch number of the bank account.
2471
+ sig { returns(String) }
2472
+ attr_accessor :bsb_number
2473
+ sig { params(account_number: String, bsb_number: String).void }
2474
+ def initialize(account_number: nil, bsb_number: nil); end
2475
+ end
2476
+ class BacsDebit < Stripe::RequestParams
2477
+ # Account number of the bank account that the funds will be debited from.
2478
+ sig { returns(String) }
2479
+ attr_accessor :account_number
2480
+ # Sort code of the bank account. (e.g., `10-20-30`)
2481
+ sig { returns(String) }
2482
+ attr_accessor :sort_code
2483
+ sig { params(account_number: String, sort_code: String).void }
2484
+ def initialize(account_number: nil, sort_code: nil); end
2485
+ end
2486
+ class Bancontact < Stripe::RequestParams
2487
+
2488
+ end
2489
+ class BillingDetails < Stripe::RequestParams
2490
+ class Address < Stripe::RequestParams
2491
+ # City, district, suburb, town, or village.
2492
+ sig { returns(String) }
2493
+ attr_accessor :city
2494
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2495
+ sig { returns(String) }
2496
+ attr_accessor :country
2497
+ # Address line 1 (e.g., street, PO Box, or company name).
2498
+ sig { returns(String) }
2499
+ attr_accessor :line1
2500
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2501
+ sig { returns(String) }
2502
+ attr_accessor :line2
2503
+ # ZIP or postal code.
2504
+ sig { returns(String) }
2505
+ attr_accessor :postal_code
2506
+ # State, county, province, or region.
2507
+ sig { returns(String) }
2508
+ attr_accessor :state
2509
+ sig {
2510
+ params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
2511
+ }
2512
+ def initialize(
2513
+ city: nil,
2514
+ country: nil,
2515
+ line1: nil,
2516
+ line2: nil,
2517
+ postal_code: nil,
2518
+ state: nil
2519
+ ); end
2520
+ end
2521
+ # Billing address.
2522
+ sig {
2523
+ returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))
2524
+ }
2525
+ attr_accessor :address
2526
+ # Email address.
2527
+ sig { returns(T.nilable(String)) }
2528
+ attr_accessor :email
2529
+ # Full name.
2530
+ sig { returns(T.nilable(String)) }
2531
+ attr_accessor :name
2532
+ # Billing phone number (including extension).
2533
+ sig { returns(T.nilable(String)) }
2534
+ attr_accessor :phone
2535
+ sig {
2536
+ params(address: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
2537
+ }
2538
+ def initialize(address: nil, email: nil, name: nil, phone: nil); end
2539
+ end
2540
+ class Blik < Stripe::RequestParams
2541
+
2542
+ end
2543
+ class Boleto < Stripe::RequestParams
2544
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
2545
+ sig { returns(String) }
2546
+ attr_accessor :tax_id
2547
+ sig { params(tax_id: String).void }
2548
+ def initialize(tax_id: nil); end
2549
+ end
2550
+ class Cashapp < Stripe::RequestParams
2551
+
2552
+ end
2553
+ class CustomerBalance < Stripe::RequestParams
2554
+
2555
+ end
2556
+ class Eps < Stripe::RequestParams
2557
+ # The customer's bank.
2558
+ sig { returns(String) }
2559
+ attr_accessor :bank
2560
+ sig { params(bank: String).void }
2561
+ def initialize(bank: nil); end
2562
+ end
2563
+ class Fpx < Stripe::RequestParams
2564
+ # Account holder type for FPX transaction
2565
+ sig { returns(String) }
2566
+ attr_accessor :account_holder_type
2567
+ # The customer's bank.
2568
+ sig { returns(String) }
2569
+ attr_accessor :bank
2570
+ sig { params(account_holder_type: String, bank: String).void }
2571
+ def initialize(account_holder_type: nil, bank: nil); end
2572
+ end
2573
+ class Giropay < Stripe::RequestParams
2574
+
2575
+ end
2576
+ class Gopay < Stripe::RequestParams
2577
+
2578
+ end
2579
+ class Grabpay < Stripe::RequestParams
2580
+
2581
+ end
2582
+ class IdBankTransfer < Stripe::RequestParams
2583
+ # Bank where the account is held.
2584
+ sig { returns(String) }
2585
+ attr_accessor :bank
2586
+ sig { params(bank: String).void }
2587
+ def initialize(bank: nil); end
2588
+ end
2589
+ class Ideal < Stripe::RequestParams
2590
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2591
+ sig { returns(String) }
2592
+ attr_accessor :bank
2593
+ sig { params(bank: String).void }
2594
+ def initialize(bank: nil); end
2595
+ end
2596
+ class InteracPresent < Stripe::RequestParams
2597
+
2598
+ end
2599
+ class KakaoPay < Stripe::RequestParams
2600
+
2601
+ end
2602
+ class Klarna < Stripe::RequestParams
2603
+ class Dob < Stripe::RequestParams
2604
+ # The day of birth, between 1 and 31.
2605
+ sig { returns(Integer) }
2606
+ attr_accessor :day
2607
+ # The month of birth, between 1 and 12.
2608
+ sig { returns(Integer) }
2609
+ attr_accessor :month
2610
+ # The four-digit year of birth.
2611
+ sig { returns(Integer) }
2612
+ attr_accessor :year
2613
+ sig { params(day: Integer, month: Integer, year: Integer).void }
2614
+ def initialize(day: nil, month: nil, year: nil); end
2615
+ end
2616
+ # Customer's date of birth
2617
+ sig {
2618
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob)
2619
+ }
2620
+ attr_accessor :dob
2621
+ sig {
2622
+ params(dob: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob).void
2623
+ }
2624
+ def initialize(dob: nil); end
2625
+ end
2626
+ class Konbini < Stripe::RequestParams
2627
+
2628
+ end
2629
+ class KrCard < Stripe::RequestParams
2630
+
2631
+ end
2632
+ class Link < Stripe::RequestParams
2633
+
2634
+ end
2635
+ class MbWay < Stripe::RequestParams
2636
+
2637
+ end
2638
+ class Mobilepay < Stripe::RequestParams
2639
+
2640
+ end
2641
+ class Multibanco < Stripe::RequestParams
2642
+
2643
+ end
2644
+ class NaverPay < Stripe::RequestParams
2645
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
2646
+ sig { returns(String) }
2647
+ attr_accessor :funding
2648
+ sig { params(funding: String).void }
2649
+ def initialize(funding: nil); end
2650
+ end
2651
+ class Oxxo < Stripe::RequestParams
2652
+
2653
+ end
2654
+ class P24 < Stripe::RequestParams
2655
+ # The customer's bank.
2656
+ sig { returns(String) }
2657
+ attr_accessor :bank
2658
+ sig { params(bank: String).void }
2659
+ def initialize(bank: nil); end
2660
+ end
2661
+ class Payco < Stripe::RequestParams
2662
+
2663
+ end
2664
+ class Paynow < Stripe::RequestParams
2665
+
2666
+ end
2667
+ class Paypal < Stripe::RequestParams
2668
+
2669
+ end
2670
+ class Payto < Stripe::RequestParams
2671
+ # The account number for the bank account.
2672
+ sig { returns(String) }
2673
+ attr_accessor :account_number
2674
+ # Bank-State-Branch number of the bank account.
2675
+ sig { returns(String) }
2676
+ attr_accessor :bsb_number
2677
+ # The PayID alias for the bank account.
2678
+ sig { returns(String) }
2679
+ attr_accessor :pay_id
2680
+ sig { params(account_number: String, bsb_number: String, pay_id: String).void }
2681
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
2682
+ end
2683
+ class Pix < Stripe::RequestParams
2684
+
2685
+ end
2686
+ class Promptpay < Stripe::RequestParams
2687
+
2688
+ end
2689
+ class Qris < Stripe::RequestParams
2690
+
2691
+ end
2692
+ class RadarOptions < Stripe::RequestParams
2693
+ # 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.
2694
+ sig { returns(String) }
2695
+ attr_accessor :session
2696
+ sig { params(session: String).void }
2697
+ def initialize(session: nil); end
2698
+ end
2699
+ class Rechnung < Stripe::RequestParams
2700
+ class Dob < Stripe::RequestParams
2701
+ # The day of birth, between 1 and 31.
2702
+ sig { returns(Integer) }
2703
+ attr_accessor :day
2704
+ # The month of birth, between 1 and 12.
2705
+ sig { returns(Integer) }
2706
+ attr_accessor :month
2707
+ # The four-digit year of birth.
2708
+ sig { returns(Integer) }
2709
+ attr_accessor :year
2710
+ sig { params(day: Integer, month: Integer, year: Integer).void }
2711
+ def initialize(day: nil, month: nil, year: nil); end
2712
+ end
2713
+ # Customer's date of birth
2714
+ sig {
2715
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung::Dob)
2716
+ }
2717
+ attr_accessor :dob
2718
+ sig {
2719
+ params(dob: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung::Dob).void
2720
+ }
2721
+ def initialize(dob: nil); end
2722
+ end
2723
+ class RevolutPay < Stripe::RequestParams
2724
+
2725
+ end
2726
+ class SamsungPay < Stripe::RequestParams
2727
+
2728
+ end
2729
+ class SepaDebit < Stripe::RequestParams
2730
+ # IBAN of the bank account.
2731
+ sig { returns(String) }
2732
+ attr_accessor :iban
2733
+ sig { params(iban: String).void }
2734
+ def initialize(iban: nil); end
2735
+ end
2736
+ class Shopeepay < Stripe::RequestParams
2737
+
2738
+ end
2739
+ class Sofort < Stripe::RequestParams
2740
+ # Two-letter ISO code representing the country the bank account is located in.
2741
+ sig { returns(String) }
2742
+ attr_accessor :country
2743
+ sig { params(country: String).void }
2744
+ def initialize(country: nil); end
2745
+ end
2746
+ class Swish < Stripe::RequestParams
2747
+
2748
+ end
2749
+ class Twint < Stripe::RequestParams
2750
+
2751
+ end
2752
+ class UsBankAccount < Stripe::RequestParams
2753
+ # Account holder type: individual or company.
2754
+ sig { returns(String) }
2755
+ attr_accessor :account_holder_type
2756
+ # Account number of the bank account.
2757
+ sig { returns(String) }
2758
+ attr_accessor :account_number
2759
+ # Account type: checkings or savings. Defaults to checking if omitted.
2760
+ sig { returns(String) }
2761
+ attr_accessor :account_type
2762
+ # The ID of a Financial Connections Account to use as a payment method.
2763
+ sig { returns(String) }
2764
+ attr_accessor :financial_connections_account
2765
+ # Routing number of the bank account.
2766
+ sig { returns(String) }
2767
+ attr_accessor :routing_number
2768
+ sig {
2769
+ params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
2770
+ }
2771
+ def initialize(
2772
+ account_holder_type: nil,
2773
+ account_number: nil,
2774
+ account_type: nil,
2775
+ financial_connections_account: nil,
2776
+ routing_number: nil
2777
+ ); end
2778
+ end
2779
+ class WechatPay < Stripe::RequestParams
2780
+
2781
+ end
2782
+ class Zip < Stripe::RequestParams
2783
+
2784
+ end
2785
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2786
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit) }
2787
+ attr_accessor :acss_debit
2788
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
2789
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm) }
2790
+ attr_accessor :affirm
2791
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
2792
+ sig {
2793
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay)
2794
+ }
2795
+ attr_accessor :afterpay_clearpay
2796
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
2797
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay) }
2798
+ attr_accessor :alipay
2799
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
2800
+ sig { returns(String) }
2801
+ attr_accessor :allow_redisplay
2802
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
2803
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma) }
2804
+ attr_accessor :alma
2805
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
2806
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay) }
2807
+ attr_accessor :amazon_pay
2808
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
2809
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit) }
2810
+ attr_accessor :au_becs_debit
2811
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
2812
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit) }
2813
+ attr_accessor :bacs_debit
2814
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
2815
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact) }
2816
+ attr_accessor :bancontact
2817
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2818
+ sig {
2819
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails)
2820
+ }
2821
+ attr_accessor :billing_details
2822
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2823
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik) }
2824
+ attr_accessor :blik
2825
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
2826
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto) }
2827
+ attr_accessor :boleto
2828
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
2829
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp) }
2830
+ attr_accessor :cashapp
2831
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
2832
+ sig {
2833
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance)
2834
+ }
2835
+ attr_accessor :customer_balance
2836
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
2837
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps) }
2838
+ attr_accessor :eps
2839
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
2840
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx) }
2841
+ attr_accessor :fpx
2842
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2843
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay) }
2844
+ attr_accessor :giropay
2845
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2846
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Gopay) }
2847
+ attr_accessor :gopay
2848
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2849
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay) }
2850
+ attr_accessor :grabpay
2851
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2852
+ sig {
2853
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer)
2854
+ }
2855
+ attr_accessor :id_bank_transfer
2856
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2857
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal) }
2858
+ attr_accessor :ideal
2859
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
2860
+ sig {
2861
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent)
2862
+ }
2863
+ attr_accessor :interac_present
2864
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
2865
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay) }
2866
+ attr_accessor :kakao_pay
2867
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
2868
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna) }
2869
+ attr_accessor :klarna
2870
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
2871
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini) }
2872
+ attr_accessor :konbini
2873
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2874
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard) }
2875
+ attr_accessor :kr_card
2876
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2877
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link) }
2878
+ attr_accessor :link
2879
+ # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2880
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::MbWay) }
2881
+ attr_accessor :mb_way
2882
+ # 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`.
2883
+ sig { returns(T::Hash[String, String]) }
2884
+ attr_accessor :metadata
2885
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
2886
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay) }
2887
+ attr_accessor :mobilepay
2888
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
2889
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco) }
2890
+ attr_accessor :multibanco
2891
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
2892
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay) }
2893
+ attr_accessor :naver_pay
2894
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
2895
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo) }
2896
+ attr_accessor :oxxo
2897
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
2898
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24) }
2899
+ attr_accessor :p24
2900
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
2901
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco) }
2902
+ attr_accessor :payco
2903
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
2904
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow) }
2905
+ attr_accessor :paynow
2906
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2907
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal) }
2908
+ attr_accessor :paypal
2909
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2910
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payto) }
2911
+ attr_accessor :payto
2912
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2913
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix) }
2914
+ attr_accessor :pix
2915
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2916
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay) }
2917
+ attr_accessor :promptpay
2918
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2919
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Qris) }
2920
+ attr_accessor :qris
2921
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
2922
+ sig {
2923
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions)
2924
+ }
2925
+ attr_accessor :radar_options
2926
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2927
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung) }
2928
+ attr_accessor :rechnung
2929
+ # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2930
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay) }
2931
+ attr_accessor :revolut_pay
2932
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
2933
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay) }
2934
+ attr_accessor :samsung_pay
2935
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2936
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit) }
2937
+ attr_accessor :sepa_debit
2938
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2939
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Shopeepay) }
2940
+ attr_accessor :shopeepay
2941
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2942
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort) }
2943
+ attr_accessor :sofort
2944
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
2945
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish) }
2946
+ attr_accessor :swish
2947
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
2948
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint) }
2949
+ attr_accessor :twint
2950
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
2951
+ sig { returns(String) }
2952
+ attr_accessor :type
2953
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
2954
+ sig {
2955
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount)
2956
+ }
2957
+ attr_accessor :us_bank_account
2958
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
2959
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay) }
2960
+ attr_accessor :wechat_pay
2961
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
2962
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip) }
2963
+ attr_accessor :zip
2964
+ sig {
2965
+ params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay, gopay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Gopay, grabpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay, id_bank_transfer: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::IdBankTransfer, ideal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal, interac_present: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent, kakao_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay, klarna: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna, konbini: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini, kr_card: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard, link: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link, mb_way: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay, multibanco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco, naver_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay, oxxo: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo, p24: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24, payco: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco, paynow: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow, paypal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal, payto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payto, pix: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix, promptpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay, qris: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Qris, radar_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions, rechnung: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung, revolut_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay, samsung_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay, sepa_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit, shopeepay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Shopeepay, sofort: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort, swish: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish, twint: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint, type: String, us_bank_account: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount, wechat_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay, zip: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip).void
2966
+ }
2967
+ def initialize(
2968
+ acss_debit: nil,
2969
+ affirm: nil,
2970
+ afterpay_clearpay: nil,
2971
+ alipay: nil,
2972
+ allow_redisplay: nil,
2973
+ alma: nil,
2974
+ amazon_pay: nil,
2975
+ au_becs_debit: nil,
2976
+ bacs_debit: nil,
2977
+ bancontact: nil,
2978
+ billing_details: nil,
2979
+ blik: nil,
2980
+ boleto: nil,
2981
+ cashapp: nil,
2982
+ customer_balance: nil,
2983
+ eps: nil,
2984
+ fpx: nil,
2985
+ giropay: nil,
2986
+ gopay: nil,
2987
+ grabpay: nil,
2988
+ id_bank_transfer: nil,
2989
+ ideal: nil,
2990
+ interac_present: nil,
2991
+ kakao_pay: nil,
2992
+ klarna: nil,
2993
+ konbini: nil,
2994
+ kr_card: nil,
2995
+ link: nil,
2996
+ mb_way: nil,
2997
+ metadata: nil,
2998
+ mobilepay: nil,
2999
+ multibanco: nil,
3000
+ naver_pay: nil,
3001
+ oxxo: nil,
3002
+ p24: nil,
3003
+ payco: nil,
3004
+ paynow: nil,
3005
+ paypal: nil,
3006
+ payto: nil,
3007
+ pix: nil,
3008
+ promptpay: nil,
3009
+ qris: nil,
3010
+ radar_options: nil,
3011
+ rechnung: nil,
3012
+ revolut_pay: nil,
3013
+ samsung_pay: nil,
3014
+ sepa_debit: nil,
3015
+ shopeepay: nil,
3016
+ sofort: nil,
3017
+ swish: nil,
3018
+ twint: nil,
3019
+ type: nil,
3020
+ us_bank_account: nil,
3021
+ wechat_pay: nil,
3022
+ zip: nil
3023
+ ); end
3024
+ end
3025
+ class PaymentMethodOptions < Stripe::RequestParams
3026
+ class AcssDebit < Stripe::RequestParams
3027
+ class MandateOptions < Stripe::RequestParams
3028
+ # A URL for custom mandate text to render during confirmation step.
3029
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
3030
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
3031
+ sig { returns(T.nilable(String)) }
3032
+ attr_accessor :custom_mandate_url
3033
+ # List of Stripe products where this mandate can be selected automatically.
3034
+ sig { returns(T::Array[String]) }
3035
+ attr_accessor :default_for
3036
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
3037
+ sig { returns(String) }
3038
+ attr_accessor :interval_description
3039
+ # Payment schedule for the mandate.
3040
+ sig { returns(String) }
3041
+ attr_accessor :payment_schedule
3042
+ # Transaction type of the mandate.
3043
+ sig { returns(String) }
3044
+ attr_accessor :transaction_type
3045
+ sig {
3046
+ params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
3047
+ }
3048
+ def initialize(
3049
+ custom_mandate_url: nil,
3050
+ default_for: nil,
3051
+ interval_description: nil,
3052
+ payment_schedule: nil,
3053
+ transaction_type: nil
3054
+ ); end
3055
+ end
3056
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
3057
+ sig { returns(String) }
3058
+ attr_accessor :currency
3059
+ # Additional fields for Mandate creation
3060
+ sig {
3061
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions)
3062
+ }
3063
+ attr_accessor :mandate_options
3064
+ # Bank account verification method.
3065
+ sig { returns(String) }
3066
+ attr_accessor :verification_method
3067
+ sig {
3068
+ params(currency: String, mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
3069
+ }
3070
+ def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
3071
+ end
3072
+ class AmazonPay < Stripe::RequestParams
3073
+
3074
+ end
3075
+ class BacsDebit < Stripe::RequestParams
3076
+ class MandateOptions < Stripe::RequestParams
3077
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
3078
+ sig { returns(T.nilable(String)) }
3079
+ attr_accessor :reference_prefix
3080
+ sig { params(reference_prefix: T.nilable(String)).void }
3081
+ def initialize(reference_prefix: nil); end
3082
+ end
3083
+ # Additional fields for Mandate creation
3084
+ sig {
3085
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions)
3086
+ }
3087
+ attr_accessor :mandate_options
3088
+ sig {
3089
+ params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
3090
+ }
3091
+ def initialize(mandate_options: nil); end
3092
+ end
3093
+ class Card < Stripe::RequestParams
3094
+ class MandateOptions < Stripe::RequestParams
3095
+ # Amount to be charged for future payments.
3096
+ sig { returns(Integer) }
3097
+ attr_accessor :amount
3098
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
3099
+ sig { returns(String) }
3100
+ attr_accessor :amount_type
3101
+ # Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
3102
+ sig { returns(String) }
3103
+ attr_accessor :currency
3104
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
3105
+ sig { returns(String) }
3106
+ attr_accessor :description
3107
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
3108
+ sig { returns(Integer) }
3109
+ attr_accessor :end_date
3110
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
3111
+ sig { returns(String) }
3112
+ attr_accessor :interval
3113
+ # The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
3114
+ sig { returns(Integer) }
3115
+ attr_accessor :interval_count
3116
+ # Unique identifier for the mandate or subscription.
3117
+ sig { returns(String) }
3118
+ attr_accessor :reference
3119
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
3120
+ sig { returns(Integer) }
3121
+ attr_accessor :start_date
3122
+ # Specifies the type of mandates supported. Possible values are `india`.
3123
+ sig { returns(T::Array[String]) }
3124
+ attr_accessor :supported_types
3125
+ sig {
3126
+ params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
3127
+ }
3128
+ def initialize(
3129
+ amount: nil,
3130
+ amount_type: nil,
3131
+ currency: nil,
3132
+ description: nil,
3133
+ end_date: nil,
3134
+ interval: nil,
3135
+ interval_count: nil,
3136
+ reference: nil,
3137
+ start_date: nil,
3138
+ supported_types: nil
3139
+ ); end
3140
+ end
3141
+ class ThreeDSecure < Stripe::RequestParams
3142
+ class NetworkOptions < Stripe::RequestParams
3143
+ class CartesBancaires < Stripe::RequestParams
3144
+ # The cryptogram calculation algorithm used by the card Issuer's ACS
3145
+ # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
3146
+ # messageExtension: CB-AVALGO
3147
+ sig { returns(String) }
3148
+ attr_accessor :cb_avalgo
3149
+ # The exemption indicator returned from Cartes Bancaires in the ARes.
3150
+ # message extension: CB-EXEMPTION; string (4 characters)
3151
+ # This is a 3 byte bitmap (low significant byte first and most significant
3152
+ # bit first) that has been Base64 encoded
3153
+ sig { returns(String) }
3154
+ attr_accessor :cb_exemption
3155
+ # The risk score returned from Cartes Bancaires in the ARes.
3156
+ # message extension: CB-SCORE; numeric value 0-99
3157
+ sig { returns(Integer) }
3158
+ attr_accessor :cb_score
3159
+ sig { params(cb_avalgo: String, cb_exemption: String, cb_score: Integer).void }
3160
+ def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
3161
+ end
3162
+ # Cartes Bancaires-specific 3DS fields.
3163
+ sig {
3164
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
3165
+ }
3166
+ attr_accessor :cartes_bancaires
3167
+ sig {
3168
+ params(cartes_bancaires: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
3169
+ }
3170
+ def initialize(cartes_bancaires: nil); end
3171
+ end
3172
+ # The `transStatus` returned from the card Issuer’s ACS in the ARes.
3173
+ sig { returns(String) }
3174
+ attr_accessor :ares_trans_status
3175
+ # The cryptogram, also known as the "authentication value" (AAV, CAVV or
3176
+ # AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
3177
+ # (Most 3D Secure providers will return the base64-encoded version, which
3178
+ # is what you should specify here.)
3179
+ sig { returns(String) }
3180
+ attr_accessor :cryptogram
3181
+ # The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
3182
+ # provider and indicates what degree of authentication was performed.
3183
+ sig { returns(String) }
3184
+ attr_accessor :electronic_commerce_indicator
3185
+ # Network specific 3DS fields. Network specific arguments require an
3186
+ # explicit card brand choice. The parameter `payment_method_options.card.network``
3187
+ # must be populated accordingly
3188
+ sig {
3189
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
3190
+ }
3191
+ attr_accessor :network_options
3192
+ # The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
3193
+ # AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
3194
+ sig { returns(String) }
3195
+ attr_accessor :requestor_challenge_indicator
3196
+ # For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
3197
+ # Transaction ID (dsTransID).
3198
+ sig { returns(String) }
3199
+ attr_accessor :transaction_id
3200
+ # The version of 3D Secure that was performed.
3201
+ sig { returns(String) }
3202
+ attr_accessor :version
3203
+ sig {
3204
+ params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
3205
+ }
3206
+ def initialize(
3207
+ ares_trans_status: nil,
3208
+ cryptogram: nil,
3209
+ electronic_commerce_indicator: nil,
3210
+ network_options: nil,
3211
+ requestor_challenge_indicator: nil,
3212
+ transaction_id: nil,
3213
+ version: nil
3214
+ ); end
3215
+ end
3216
+ # Configuration options for setting up an eMandate for cards issued in India.
3217
+ sig {
3218
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions)
3219
+ }
3220
+ attr_accessor :mandate_options
3221
+ # When specified, this parameter signals that a card has been collected
3222
+ # as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
3223
+ # parameter can only be provided during confirmation.
3224
+ sig { returns(T::Boolean) }
3225
+ attr_accessor :moto
3226
+ # Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
3227
+ sig { returns(String) }
3228
+ attr_accessor :network
3229
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
3230
+ sig { returns(String) }
3231
+ attr_accessor :request_three_d_secure
3232
+ # If 3D Secure authentication was performed with a third-party provider,
3233
+ # the authentication details to use for this setup.
3234
+ sig {
3235
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)
3236
+ }
3237
+ attr_accessor :three_d_secure
3238
+ sig {
3239
+ params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure).void
3240
+ }
3241
+ def initialize(
3242
+ mandate_options: nil,
3243
+ moto: nil,
3244
+ network: nil,
3245
+ request_three_d_secure: nil,
3246
+ three_d_secure: nil
3247
+ ); end
3248
+ end
3249
+ class CardPresent < Stripe::RequestParams
3250
+
3251
+ end
3252
+ class Link < Stripe::RequestParams
3253
+ # [Deprecated] This is a legacy parameter that no longer has any function.
3254
+ sig { returns(String) }
3255
+ attr_accessor :persistent_token
3256
+ sig { params(persistent_token: String).void }
3257
+ def initialize(persistent_token: nil); end
3258
+ end
3259
+ class Paypal < Stripe::RequestParams
3260
+ # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3261
+ sig { returns(String) }
3262
+ attr_accessor :billing_agreement_id
3263
+ # Attribute for param field currency
3264
+ sig { returns(String) }
3265
+ attr_accessor :currency
3266
+ # 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.
3267
+ sig { returns(T::Array[String]) }
3268
+ attr_accessor :subsellers
3269
+ sig {
3270
+ params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
3271
+ }
3272
+ def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
3273
+ end
3274
+ class Payto < Stripe::RequestParams
3275
+ class MandateOptions < Stripe::RequestParams
3276
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
3277
+ sig { returns(Integer) }
3278
+ attr_accessor :amount
3279
+ # 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.
3280
+ sig { returns(String) }
3281
+ attr_accessor :amount_type
3282
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3283
+ sig { returns(String) }
3284
+ attr_accessor :end_date
3285
+ # The periodicity at which payments will be collected.
3286
+ sig { returns(String) }
3287
+ attr_accessor :payment_schedule
3288
+ # 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.
3289
+ sig { returns(Integer) }
3290
+ attr_accessor :payments_per_period
3291
+ # The purpose for which payments are made. Defaults to retail.
3292
+ sig { returns(String) }
3293
+ attr_accessor :purpose
3294
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3295
+ sig { returns(String) }
3296
+ attr_accessor :start_date
3297
+ sig {
3298
+ params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
3299
+ }
3300
+ def initialize(
3301
+ amount: nil,
3302
+ amount_type: nil,
3303
+ end_date: nil,
3304
+ payment_schedule: nil,
3305
+ payments_per_period: nil,
3306
+ purpose: nil,
3307
+ start_date: nil
3308
+ ); end
3309
+ end
3310
+ # Additional fields for Mandate creation.
3311
+ sig {
3312
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions)
3313
+ }
3314
+ attr_accessor :mandate_options
3315
+ sig {
3316
+ params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions).void
3317
+ }
3318
+ def initialize(mandate_options: nil); end
3319
+ end
3320
+ class SepaDebit < Stripe::RequestParams
3321
+ class MandateOptions < Stripe::RequestParams
3322
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
3323
+ sig { returns(T.nilable(String)) }
3324
+ attr_accessor :reference_prefix
3325
+ sig { params(reference_prefix: T.nilable(String)).void }
3326
+ def initialize(reference_prefix: nil); end
3327
+ end
3328
+ # Additional fields for Mandate creation
3329
+ sig {
3330
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions)
3331
+ }
3332
+ attr_accessor :mandate_options
3333
+ sig {
3334
+ params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
3335
+ }
3336
+ def initialize(mandate_options: nil); end
3337
+ end
3338
+ class UsBankAccount < Stripe::RequestParams
3339
+ class FinancialConnections < Stripe::RequestParams
3340
+ class Filters < Stripe::RequestParams
3341
+ # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3342
+ sig { returns(T::Array[String]) }
3343
+ attr_accessor :account_subcategories
3344
+ # ID of the institution to use to filter for selectable accounts.
3345
+ sig { returns(String) }
3346
+ attr_accessor :institution
3347
+ sig { params(account_subcategories: T::Array[String], institution: String).void }
3348
+ def initialize(account_subcategories: nil, institution: nil); end
3349
+ end
3350
+ class ManualEntry < Stripe::RequestParams
3351
+ # Settings for configuring manual entry of account details.
3352
+ sig { returns(String) }
3353
+ attr_accessor :mode
3354
+ sig { params(mode: String).void }
3355
+ def initialize(mode: nil); end
3356
+ end
3357
+ # Provide filters for the linked accounts that the customer can select for the payment method
3358
+ sig {
3359
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
3360
+ }
3361
+ attr_accessor :filters
3362
+ # Customize manual entry behavior
3363
+ sig {
3364
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
3365
+ }
3366
+ attr_accessor :manual_entry
3367
+ # 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`.
3368
+ sig { returns(T::Array[String]) }
3369
+ attr_accessor :permissions
3370
+ # List of data features that you would like to retrieve upon account creation.
3371
+ sig { returns(T::Array[String]) }
3372
+ attr_accessor :prefetch
3373
+ # 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.
3374
+ sig { returns(String) }
3375
+ attr_accessor :return_url
3376
+ sig {
3377
+ params(filters: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters, manual_entry: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry, permissions: T::Array[String], prefetch: T::Array[String], return_url: String).void
3378
+ }
3379
+ def initialize(
3380
+ filters: nil,
3381
+ manual_entry: nil,
3382
+ permissions: nil,
3383
+ prefetch: nil,
3384
+ return_url: nil
3385
+ ); end
3386
+ end
3387
+ class MandateOptions < Stripe::RequestParams
3388
+ # The method used to collect offline mandate customer acceptance.
3389
+ sig { returns(T.nilable(String)) }
3390
+ attr_accessor :collection_method
3391
+ sig { params(collection_method: T.nilable(String)).void }
3392
+ def initialize(collection_method: nil); end
3393
+ end
3394
+ class Networks < Stripe::RequestParams
3395
+ # Triggers validations to run across the selected networks
3396
+ sig { returns(T::Array[String]) }
3397
+ attr_accessor :requested
3398
+ sig { params(requested: T::Array[String]).void }
3399
+ def initialize(requested: nil); end
3400
+ end
3401
+ # Additional fields for Financial Connections Session creation
3402
+ sig {
3403
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
3404
+ }
3405
+ attr_accessor :financial_connections
3406
+ # Additional fields for Mandate creation
3407
+ sig {
3408
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
3409
+ }
3410
+ attr_accessor :mandate_options
3411
+ # Additional fields for network related functions
3412
+ sig {
3413
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks)
3414
+ }
3415
+ attr_accessor :networks
3416
+ # Bank account verification method.
3417
+ sig { returns(String) }
3418
+ attr_accessor :verification_method
3419
+ sig {
3420
+ params(financial_connections: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
3421
+ }
3422
+ def initialize(
3423
+ financial_connections: nil,
3424
+ mandate_options: nil,
3425
+ networks: nil,
3426
+ verification_method: nil
3427
+ ); end
3428
+ end
3429
+ # If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
3430
+ sig {
3431
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit)
3432
+ }
3433
+ attr_accessor :acss_debit
3434
+ # If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
3435
+ sig {
3436
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay)
3437
+ }
3438
+ attr_accessor :amazon_pay
3439
+ # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
3440
+ sig {
3441
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit)
3442
+ }
3443
+ attr_accessor :bacs_debit
3444
+ # Configuration for any card setup attempted on this SetupIntent.
3445
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card) }
3446
+ attr_accessor :card
3447
+ # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
3448
+ sig {
3449
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent)
3450
+ }
3451
+ attr_accessor :card_present
3452
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
3453
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Link) }
3454
+ attr_accessor :link
3455
+ # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
3456
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Paypal) }
3457
+ attr_accessor :paypal
3458
+ # If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3459
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto) }
3460
+ attr_accessor :payto
3461
+ # If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3462
+ sig {
3463
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit)
3464
+ }
3465
+ attr_accessor :sepa_debit
3466
+ # If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
3467
+ sig {
3468
+ returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount)
3469
+ }
3470
+ attr_accessor :us_bank_account
3471
+ sig {
3472
+ params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Paypal, payto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto, sepa_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit, us_bank_account: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount).void
3473
+ }
3474
+ def initialize(
3475
+ acss_debit: nil,
3476
+ amazon_pay: nil,
3477
+ bacs_debit: nil,
3478
+ card: nil,
3479
+ card_present: nil,
3480
+ link: nil,
3481
+ paypal: nil,
3482
+ payto: nil,
3483
+ sepa_debit: nil,
3484
+ us_bank_account: nil
3485
+ ); end
3486
+ end
3487
+ # ID of the ConfirmationToken used to confirm this SetupIntent.
3488
+ #
3489
+ # If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
3490
+ sig { returns(String) }
3491
+ attr_accessor :confirmation_token
3492
+ # Specifies which fields in the response should be expanded.
3493
+ sig { returns(T::Array[String]) }
3494
+ attr_accessor :expand
3495
+ # Attribute for param field mandate_data
3496
+ sig { returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData)) }
3497
+ attr_accessor :mandate_data
3498
+ # ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
3499
+ sig { returns(String) }
3500
+ attr_accessor :payment_method
3501
+ # When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
3502
+ # value in the SetupIntent.
3503
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData) }
3504
+ attr_accessor :payment_method_data
3505
+ # Payment method-specific configuration for this SetupIntent.
3506
+ sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions) }
3507
+ attr_accessor :payment_method_options
3508
+ # The URL to redirect your customer back to after they authenticate on the payment method's app or site.
3509
+ # If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
3510
+ # This parameter is only used for cards and other redirect-based payment methods.
3511
+ sig { returns(String) }
3512
+ attr_accessor :return_url
3513
+ # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
3514
+ sig { returns(T::Boolean) }
3515
+ attr_accessor :use_stripe_sdk
3516
+ sig {
3517
+ params(confirmation_token: String, expand: T::Array[String], mandate_data: T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData), payment_method: String, payment_method_data: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions, return_url: String, use_stripe_sdk: T::Boolean).void
3518
+ }
3519
+ def initialize(
3520
+ confirmation_token: nil,
3521
+ expand: nil,
3522
+ mandate_data: nil,
3523
+ payment_method: nil,
3524
+ payment_method_data: nil,
3525
+ payment_method_options: nil,
3526
+ return_url: nil,
3527
+ use_stripe_sdk: nil
3528
+ ); end
3529
+ end
3530
+ class VerifyMicrodepositsParams < Stripe::RequestParams
3531
+ # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.
3532
+ sig { returns(T::Array[Integer]) }
3533
+ attr_accessor :amounts
3534
+ # A six-character code starting with SM present in the microdeposit sent to the bank account.
3535
+ sig { returns(String) }
3536
+ attr_accessor :descriptor_code
3537
+ # Specifies which fields in the response should be expanded.
3538
+ sig { returns(T::Array[String]) }
3539
+ attr_accessor :expand
3540
+ sig {
3541
+ params(amounts: T::Array[Integer], descriptor_code: String, expand: T::Array[String]).void
3542
+ }
3543
+ def initialize(amounts: nil, descriptor_code: nil, expand: nil); end
3544
+ end
3545
+ # You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
3546
+ #
3547
+ # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
3548
+ sig {
3549
+ params(intent: String, params: T.any(::Stripe::SetupIntentService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3550
+ }
3551
+ def cancel(intent, params = {}, opts = {}); end
3552
+
3553
+ # Confirm that your customer intends to set up the current or
3554
+ # provided payment method. For example, you would confirm a SetupIntent
3555
+ # when a customer hits the “Save” button on a payment method management
3556
+ # page on your website.
3557
+ #
3558
+ # If the selected payment method does not require any additional
3559
+ # steps from the customer, the SetupIntent will transition to the
3560
+ # succeeded status.
3561
+ #
3562
+ # Otherwise, it will transition to the requires_action status and
3563
+ # suggest additional actions via next_action. If setup fails,
3564
+ # the SetupIntent will transition to the
3565
+ # requires_payment_method status or the canceled status if the
3566
+ # confirmation limit is reached.
3567
+ sig {
3568
+ params(intent: String, params: T.any(::Stripe::SetupIntentService::ConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3569
+ }
3570
+ def confirm(intent, params = {}, opts = {}); end
3571
+
3572
+ # Creates a SetupIntent object.
3573
+ #
3574
+ # After you create the SetupIntent, attach a payment method and [confirm](https://stripe.com/docs/api/setup_intents/confirm)
3575
+ # it to collect any required permissions to charge the payment method later.
3576
+ sig {
3577
+ params(params: T.any(::Stripe::SetupIntentService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3578
+ }
3579
+ def create(params = {}, opts = {}); end
3580
+
3581
+ # Returns a list of SetupIntents.
3582
+ sig {
3583
+ params(params: T.any(::Stripe::SetupIntentService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
3584
+ }
3585
+ def list(params = {}, opts = {}); end
3586
+
3587
+ # Retrieves the details of a SetupIntent that has previously been created.
3588
+ #
3589
+ # Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.
3590
+ #
3591
+ # When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://stripe.com/docs/api#setup_intent_object) object reference for more details.
3592
+ sig {
3593
+ params(intent: String, params: T.any(::Stripe::SetupIntentService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3594
+ }
3595
+ def retrieve(intent, params = {}, opts = {}); end
3596
+
3597
+ # Updates a SetupIntent object.
3598
+ sig {
3599
+ params(intent: String, params: T.any(::Stripe::SetupIntentService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3600
+ }
3601
+ def update(intent, params = {}, opts = {}); end
3602
+
3603
+ # Verifies microdeposits on a SetupIntent object.
3604
+ sig {
3605
+ params(intent: String, params: T.any(::Stripe::SetupIntentService::VerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent)
3606
+ }
3607
+ def verify_microdeposits(intent, params = {}, opts = {}); end
3608
+ end
3609
+ end