stripe 15.2.0.pre.beta.1 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (648) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +718 -1556
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +0 -28
  8. data/lib/stripe/api_version.rb +1 -1
  9. data/lib/stripe/errors.rb +0 -54
  10. data/lib/stripe/event_types.rb +0 -89
  11. data/lib/stripe/object_types.rb +0 -52
  12. data/lib/stripe/resources/account.rb +32 -657
  13. data/lib/stripe/resources/account_session.rb +59 -253
  14. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  15. data/lib/stripe/resources/balance.rb +42 -0
  16. data/lib/stripe/resources/balance_transaction.rb +2 -0
  17. data/lib/stripe/resources/bank_account.rb +2 -2
  18. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  19. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
  20. data/lib/stripe/resources/billing/credit_grant.rb +0 -10
  21. data/lib/stripe/resources/billing_portal/session.rb +1 -7
  22. data/lib/stripe/resources/capability.rb +1 -1
  23. data/lib/stripe/resources/card.rb +0 -2
  24. data/lib/stripe/resources/cash_balance.rb +0 -2
  25. data/lib/stripe/resources/charge.rb +13 -1475
  26. data/lib/stripe/resources/checkout/session.rb +21 -333
  27. data/lib/stripe/resources/confirmation_token.rb +33 -263
  28. data/lib/stripe/resources/country_spec.rb +1 -1
  29. data/lib/stripe/resources/coupon.rb +2 -32
  30. data/lib/stripe/resources/credit_note.rb +10 -17
  31. data/lib/stripe/resources/credit_note_line_item.rb +0 -9
  32. data/lib/stripe/resources/customer.rb +2 -6
  33. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  34. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  35. data/lib/stripe/resources/customer_session.rb +4 -9
  36. data/lib/stripe/resources/discount.rb +0 -2
  37. data/lib/stripe/resources/dispute.rb +2 -2
  38. data/lib/stripe/resources/event.rb +1 -32
  39. data/lib/stripe/resources/file.rb +1 -1
  40. data/lib/stripe/resources/financial_connections/account.rb +1 -20
  41. data/lib/stripe/resources/financial_connections/session.rb +2 -62
  42. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  43. data/lib/stripe/resources/identity/verification_session.rb +17 -21
  44. data/lib/stripe/resources/invoice.rb +79 -1106
  45. data/lib/stripe/resources/invoice_item.rb +4 -81
  46. data/lib/stripe/resources/invoice_line_item.rb +2 -56
  47. data/lib/stripe/resources/invoice_payment.rb +62 -4
  48. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  49. data/lib/stripe/resources/issuing/card.rb +1 -1
  50. data/lib/stripe/resources/issuing/cardholder.rb +1 -2
  51. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  52. data/lib/stripe/resources/issuing/transaction.rb +0 -6
  53. data/lib/stripe/resources/line_item.rb +0 -37
  54. data/lib/stripe/resources/mandate.rb +0 -24
  55. data/lib/stripe/resources/payment_intent.rb +1912 -6840
  56. data/lib/stripe/resources/payment_method.rb +47 -301
  57. data/lib/stripe/resources/payment_method_configuration.rb +112 -112
  58. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  59. data/lib/stripe/resources/payout.rb +4 -10
  60. data/lib/stripe/resources/person.rb +2 -2
  61. data/lib/stripe/resources/plan.rb +2 -3
  62. data/lib/stripe/resources/price.rb +1 -31
  63. data/lib/stripe/resources/product.rb +1 -61
  64. data/lib/stripe/resources/promotion_code.rb +0 -10
  65. data/lib/stripe/resources/quote.rb +6 -2046
  66. data/lib/stripe/resources/radar/value_list.rb +1 -2
  67. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  68. data/lib/stripe/resources/refund.rb +6 -10
  69. data/lib/stripe/resources/reversal.rb +1 -1
  70. data/lib/stripe/resources/review.rb +1 -1
  71. data/lib/stripe/resources/setup_attempt.rb +0 -21
  72. data/lib/stripe/resources/setup_intent.rb +120 -877
  73. data/lib/stripe/resources/source.rb +1 -30
  74. data/lib/stripe/resources/subscription.rb +97 -326
  75. data/lib/stripe/resources/subscription_item.rb +32 -80
  76. data/lib/stripe/resources/subscription_schedule.rb +127 -1015
  77. data/lib/stripe/resources/tax/calculation.rb +4 -0
  78. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  79. data/lib/stripe/resources/tax/registration.rb +1 -1
  80. data/lib/stripe/resources/tax_id.rb +3 -14
  81. data/lib/stripe/resources/tax_rate.rb +2 -2
  82. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  83. data/lib/stripe/resources/terminal/location.rb +2 -3
  84. data/lib/stripe/resources/terminal/reader.rb +8 -142
  85. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  86. data/lib/stripe/resources/token.rb +2 -2
  87. data/lib/stripe/resources/transfer.rb +1 -7
  88. data/lib/stripe/resources/treasury/financial_account.rb +3 -22
  89. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  90. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
  91. data/lib/stripe/resources/treasury/received_credit.rb +1 -38
  92. data/lib/stripe/resources/treasury/received_debit.rb +1 -40
  93. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  94. data/lib/stripe/resources.rb +0 -99
  95. data/lib/stripe/services/account_external_account_service.rb +2 -3
  96. data/lib/stripe/services/account_login_link_service.rb +1 -1
  97. data/lib/stripe/services/account_person_service.rb +1 -2
  98. data/lib/stripe/services/account_service.rb +23 -559
  99. data/lib/stripe/services/account_session_service.rb +29 -229
  100. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  101. data/lib/stripe/services/balance_service.rb +1 -1
  102. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
  103. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
  104. data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
  105. data/lib/stripe/services/billing_portal/session_service.rb +0 -4
  106. data/lib/stripe/services/charge_service.rb +4 -1354
  107. data/lib/stripe/services/checkout/session_service.rb +13 -250
  108. data/lib/stripe/services/coupon_service.rb +2 -19
  109. data/lib/stripe/services/credit_note_service.rb +7 -12
  110. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  111. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  112. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  113. data/lib/stripe/services/customer_service.rb +3 -5
  114. data/lib/stripe/services/customer_session_service.rb +1 -4
  115. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  116. data/lib/stripe/services/dispute_service.rb +1 -1
  117. data/lib/stripe/services/file_service.rb +1 -1
  118. data/lib/stripe/services/financial_connections/account_service.rb +2 -7
  119. data/lib/stripe/services/financial_connections/session_service.rb +2 -34
  120. data/lib/stripe/services/financial_connections_service.rb +1 -2
  121. data/lib/stripe/services/identity/verification_session_service.rb +5 -13
  122. data/lib/stripe/services/invoice_item_service.rb +3 -76
  123. data/lib/stripe/services/invoice_line_item_service.rb +1 -33
  124. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  125. data/lib/stripe/services/invoice_service.rb +74 -1049
  126. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  127. data/lib/stripe/services/issuing/card_service.rb +1 -1
  128. data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/issuing/transaction_service.rb +0 -4
  131. data/lib/stripe/services/issuing_service.rb +1 -5
  132. data/lib/stripe/services/payment_intent_service.rb +439 -4928
  133. data/lib/stripe/services/payment_method_configuration_service.rb +82 -82
  134. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  135. data/lib/stripe/services/payment_method_service.rb +44 -226
  136. data/lib/stripe/services/payout_service.rb +2 -6
  137. data/lib/stripe/services/plan_service.rb +2 -3
  138. data/lib/stripe/services/price_service.rb +2 -21
  139. data/lib/stripe/services/product_feature_service.rb +1 -2
  140. data/lib/stripe/services/product_service.rb +2 -41
  141. data/lib/stripe/services/promotion_code_service.rb +1 -9
  142. data/lib/stripe/services/quote_service.rb +7 -1730
  143. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  144. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  145. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  146. data/lib/stripe/services/setup_intent_service.rb +119 -836
  147. data/lib/stripe/services/source_service.rb +1 -1
  148. data/lib/stripe/services/subscription_item_service.rb +27 -73
  149. data/lib/stripe/services/subscription_schedule_service.rb +101 -916
  150. data/lib/stripe/services/subscription_service.rb +85 -282
  151. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  152. data/lib/stripe/services/tax/registration_service.rb +1 -1
  153. data/lib/stripe/services/tax_id_service.rb +3 -10
  154. data/lib/stripe/services/tax_service.rb +1 -3
  155. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  156. data/lib/stripe/services/terminal/location_service.rb +2 -3
  157. data/lib/stripe/services/terminal/reader_service.rb +5 -81
  158. data/lib/stripe/services/terminal_service.rb +1 -2
  159. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -190
  160. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  161. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
  162. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
  163. data/lib/stripe/services/token_service.rb +1 -1
  164. data/lib/stripe/services/transfer_service.rb +1 -5
  165. data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
  166. data/lib/stripe/services/treasury/financial_account_service.rb +2 -16
  167. data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
  168. data/lib/stripe/services/v1_services.rb +2 -12
  169. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  170. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  171. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  172. data/lib/stripe/services/v2/core_service.rb +1 -4
  173. data/lib/stripe/services/v2_services.rb +2 -4
  174. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  175. data/lib/stripe/services.rb +1 -54
  176. data/lib/stripe/stripe_configuration.rb +1 -3
  177. data/lib/stripe/stripe_object.rb +1 -1
  178. data/lib/stripe/util.rb +1 -7
  179. data/lib/stripe/version.rb +1 -1
  180. data/lib/stripe.rb +0 -53
  181. data/rbi/stripe/resources/account.rbi +4926 -0
  182. data/rbi/stripe/resources/account_link.rbi +74 -0
  183. data/rbi/stripe/resources/account_session.rbi +1013 -0
  184. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  185. data/rbi/stripe/resources/application.rbi +20 -0
  186. data/rbi/stripe/resources/application_fee.rbi +118 -0
  187. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  188. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  189. data/rbi/stripe/resources/balance.rbi +235 -0
  190. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  191. data/rbi/stripe/resources/bank_account.rbi +127 -0
  192. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  193. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  194. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  195. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  196. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  197. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  198. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  199. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  200. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  201. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  202. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  203. data/rbi/stripe/resources/capability.rbi +125 -0
  204. data/rbi/stripe/resources/card.rbi +125 -0
  205. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  206. data/rbi/stripe/resources/charge.rbi +2069 -0
  207. data/rbi/stripe/resources/checkout/session.rbi +4004 -0
  208. data/rbi/stripe/resources/climate/order.rbi +245 -0
  209. data/rbi/stripe/resources/climate/product.rbi +75 -0
  210. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  211. data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
  212. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  213. data/rbi/stripe/resources/country_spec.rbi +85 -0
  214. data/rbi/stripe/resources/coupon.rbi +250 -0
  215. data/rbi/stripe/resources/credit_note.rbi +752 -0
  216. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  217. data/rbi/stripe/resources/customer.rbi +1005 -0
  218. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  219. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  220. data/rbi/stripe/resources/customer_session.rbi +200 -0
  221. data/rbi/stripe/resources/discount.rbi +53 -0
  222. data/rbi/stripe/resources/dispute.rbi +761 -0
  223. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  224. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  225. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  226. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  227. data/rbi/stripe/resources/event.rbi +149 -0
  228. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  229. data/rbi/stripe/resources/file.rbi +143 -0
  230. data/rbi/stripe/resources/file_link.rbi +141 -0
  231. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  232. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  233. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  234. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  235. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  236. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  237. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  238. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  239. data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
  240. data/rbi/stripe/resources/invoice.rbi +3812 -0
  241. data/rbi/stripe/resources/invoice_item.rbi +473 -0
  242. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  243. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  244. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  245. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  246. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  247. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  248. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  249. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  250. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  251. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  252. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  253. data/rbi/stripe/resources/line_item.rbi +72 -0
  254. data/rbi/stripe/resources/login_link.rbi +19 -0
  255. data/rbi/stripe/resources/mandate.rbi +187 -0
  256. data/rbi/stripe/resources/payment_intent.rbi +9647 -0
  257. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  258. data/rbi/stripe/resources/payment_method.rbi +1761 -0
  259. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  260. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  261. data/rbi/stripe/resources/payout.rbi +300 -0
  262. data/rbi/stripe/resources/person.rbi +401 -0
  263. data/rbi/stripe/resources/plan.rbi +371 -0
  264. data/rbi/stripe/resources/price.rbi +694 -0
  265. data/rbi/stripe/resources/product.rbi +555 -0
  266. data/rbi/stripe/resources/product_feature.rbi +26 -0
  267. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  268. data/rbi/stripe/resources/quote.rbi +1126 -0
  269. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  270. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  271. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  272. data/rbi/stripe/resources/refund.rbi +523 -0
  273. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  274. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  275. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  276. data/rbi/stripe/resources/reversal.rbi +51 -0
  277. data/rbi/stripe/resources/review.rbi +154 -0
  278. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  279. data/rbi/stripe/resources/setup_intent.rbi +3655 -0
  280. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  281. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  282. data/rbi/stripe/resources/source.rbi +1496 -0
  283. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  284. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  285. data/rbi/stripe/resources/subscription.rbi +2027 -0
  286. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  287. data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
  288. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  289. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  290. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  291. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  292. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  293. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  294. data/rbi/stripe/resources/tax_code.rbi +44 -0
  295. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  296. data/rbi/stripe/resources/tax_id.rbi +165 -0
  297. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  298. data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
  299. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  300. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  301. data/rbi/stripe/resources/terminal/reader.rbi +847 -0
  302. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  303. data/rbi/stripe/resources/token.rbi +1283 -0
  304. data/rbi/stripe/resources/topup.rbi +222 -0
  305. data/rbi/stripe/resources/transfer.rbi +199 -0
  306. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  307. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  308. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  309. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  310. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  311. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  312. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  313. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  314. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  315. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  316. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  317. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  318. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  319. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  320. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  321. data/rbi/stripe/resources/v2/event.rbi +48 -0
  322. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  323. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  324. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  325. data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +124 -138
  326. data/rbi/stripe/services/account_link_service.rbi +58 -0
  327. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  328. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  329. data/rbi/stripe/services/account_service.rbi +4213 -0
  330. data/rbi/stripe/services/account_session_service.rbi +646 -0
  331. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  332. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  333. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  334. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  335. data/rbi/stripe/services/apps_service.rbi +9 -0
  336. data/rbi/stripe/services/balance_service.rbi +21 -0
  337. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  338. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  339. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  340. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  341. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  342. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  343. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  344. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  345. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  346. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  347. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  348. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  349. data/rbi/stripe/services/billing_service.rbi +15 -0
  350. data/rbi/stripe/services/charge_service.rbi +448 -0
  351. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  352. data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
  353. data/rbi/stripe/services/checkout_service.rbi +9 -0
  354. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  355. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  356. data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
  357. data/rbi/stripe/services/climate_service.rbi +11 -0
  358. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  359. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  360. data/rbi/stripe/services/coupon_service.rbi +194 -0
  361. data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
  362. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  363. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  364. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  365. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  366. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  367. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  368. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  369. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  370. data/rbi/stripe/services/customer_service.rbi +647 -0
  371. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  372. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  373. data/rbi/stripe/services/dispute_service.rbi +424 -0
  374. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  375. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  376. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  377. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  378. data/rbi/stripe/services/event_service.rbi +83 -0
  379. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  380. data/rbi/stripe/services/file_link_service.rbi +124 -0
  381. data/rbi/stripe/services/file_service.rbi +116 -0
  382. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  383. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  384. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  385. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  386. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  387. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  388. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  389. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  390. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  391. data/rbi/stripe/services/identity_service.rbi +10 -0
  392. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  393. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  394. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  395. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  396. data/rbi/stripe/services/invoice_service.rbi +2981 -0
  397. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  398. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  399. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  400. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  401. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  402. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  403. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  404. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  405. data/rbi/stripe/services/issuing_service.rbi +16 -0
  406. data/rbi/stripe/services/mandate_service.rbi +20 -0
  407. data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
  408. data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
  409. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  410. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  411. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  412. data/rbi/stripe/services/payment_method_service.rbi +776 -0
  413. data/rbi/stripe/services/payout_service.rbi +205 -0
  414. data/rbi/stripe/services/plan_service.rbi +282 -0
  415. data/rbi/stripe/services/price_service.rbi +546 -0
  416. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  417. data/rbi/stripe/services/product_service.rbi +477 -0
  418. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  419. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  420. data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
  421. data/rbi/stripe/services/quote_service.rbi +686 -0
  422. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  423. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  424. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  425. data/rbi/stripe/services/radar_service.rbi +11 -0
  426. data/rbi/stripe/services/refund_service.rbi +185 -0
  427. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  428. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  429. data/rbi/stripe/services/reporting_service.rbi +10 -0
  430. data/rbi/stripe/services/review_service.rbi +84 -0
  431. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  432. data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
  433. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  434. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  435. data/rbi/stripe/services/sigma_service.rbi +9 -0
  436. data/rbi/stripe/services/source_service.rbi +663 -0
  437. data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
  438. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  439. data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
  440. data/rbi/stripe/services/subscription_service.rbi +1648 -0
  441. data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/calculation_line_item_service.rbi} +17 -21
  442. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  443. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  444. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  445. data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
  446. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  447. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  448. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  449. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  450. data/rbi/stripe/services/tax_service.rbi +12 -0
  451. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  452. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  453. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  454. data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
  455. data/rbi/stripe/services/terminal_service.rbi +12 -0
  456. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
  457. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  458. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  459. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  460. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  461. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  462. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  463. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  464. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  465. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  466. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  467. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  468. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  469. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  470. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  471. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  472. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  473. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  474. data/rbi/stripe/services/token_service.rbi +1257 -0
  475. data/rbi/stripe/services/topup_service.rbi +176 -0
  476. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  477. data/rbi/stripe/services/transfer_service.rbi +152 -0
  478. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  479. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  480. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  481. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  482. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  483. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  484. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  485. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  486. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  487. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  488. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  489. data/rbi/stripe/services/treasury_service.rbi +18 -0
  490. data/rbi/stripe/services/v1_services.rbi +77 -0
  491. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  492. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  493. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  494. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  495. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  496. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  497. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  498. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  499. data/rbi/stripe/services/v2_services.rbi +10 -0
  500. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  501. data/stripe.gemspec +1 -4
  502. metadata +326 -158
  503. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
  504. data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
  505. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
  506. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
  507. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
  508. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
  509. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
  510. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
  511. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
  512. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
  513. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
  514. data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
  515. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
  516. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
  517. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
  518. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
  519. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
  520. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
  521. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
  522. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
  523. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
  524. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
  525. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
  526. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
  527. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
  528. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
  529. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
  530. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
  531. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
  532. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
  533. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
  534. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
  535. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
  536. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
  537. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
  538. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
  539. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
  540. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
  541. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
  542. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
  543. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
  544. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
  545. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
  546. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
  547. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
  548. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
  549. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
  550. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
  551. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
  552. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
  553. data/lib/stripe/resources/account_notice.rb +0 -123
  554. data/lib/stripe/resources/balance_settings.rb +0 -105
  555. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  556. data/lib/stripe/resources/capital/financing_offer.rb +0 -179
  557. data/lib/stripe/resources/capital/financing_summary.rb +0 -55
  558. data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
  559. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  560. data/lib/stripe/resources/financial_connections/institution.rb +0 -90
  561. data/lib/stripe/resources/fx_quote.rb +0 -184
  562. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  563. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  564. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
  565. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
  566. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
  567. data/lib/stripe/resources/issuing/settlement.rb +0 -53
  568. data/lib/stripe/resources/margin.rb +0 -115
  569. data/lib/stripe/resources/order.rb +0 -2859
  570. data/lib/stripe/resources/payment_attempt_record.rb +0 -1078
  571. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -65
  572. data/lib/stripe/resources/payment_record.rb +0 -1607
  573. data/lib/stripe/resources/privacy/redaction_job.rb +0 -275
  574. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -25
  575. data/lib/stripe/resources/quote_line.rb +0 -274
  576. data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
  577. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -339
  578. data/lib/stripe/resources/tax/association.rb +0 -89
  579. data/lib/stripe/resources/tax/form.rb +0 -211
  580. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
  581. data/lib/stripe/resources/v2/core/account.rb +0 -1746
  582. data/lib/stripe/resources/v2/core/account_link.rb +0 -56
  583. data/lib/stripe/resources/v2/core/person.rb +0 -276
  584. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
  585. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
  586. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
  587. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
  588. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
  589. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -58
  590. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
  591. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
  592. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
  593. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
  594. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
  595. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
  596. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -75
  597. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
  598. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -136
  599. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -108
  600. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -78
  601. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -68
  602. data/lib/stripe/services/account_notice_service.rb +0 -101
  603. data/lib/stripe/services/balance_settings_service.rb +0 -96
  604. data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
  605. data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
  606. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
  607. data/lib/stripe/services/capital_service.rb +0 -15
  608. data/lib/stripe/services/fx_quote_service.rb +0 -123
  609. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  610. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  611. data/lib/stripe/services/gift_cards_service.rb +0 -14
  612. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
  613. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
  614. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
  615. data/lib/stripe/services/margin_service.rb +0 -119
  616. data/lib/stripe/services/order_service.rb +0 -2268
  617. data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
  618. data/lib/stripe/services/payment_record_service.rb +0 -542
  619. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -231
  620. data/lib/stripe/services/privacy_service.rb +0 -13
  621. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
  622. data/lib/stripe/services/tax/association_service.rb +0 -31
  623. data/lib/stripe/services/tax/form_service.rb +0 -100
  624. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
  625. data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
  626. data/lib/stripe/services/v2/core/account_service.rb +0 -4138
  627. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1048
  628. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -135
  629. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -109
  630. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  631. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -75
  632. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -44
  633. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
  634. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -126
  635. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -96
  636. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -202
  637. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -237
  638. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -174
  639. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -95
  640. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
  641. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -71
  642. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -44
  643. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -70
  644. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -74
  645. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  646. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  647. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -50
  648. data/rbi/stripe.rbi +0 -191867
@@ -0,0 +1,1761 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ # PaymentMethod objects represent your customer's payment instruments.
7
+ # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
8
+ # Customer objects to store instrument details for future payments.
9
+ #
10
+ # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
11
+ class PaymentMethod < APIResource
12
+ class AcssDebit < Stripe::StripeObject
13
+ # Name of the bank associated with the bank account.
14
+ sig { returns(T.nilable(String)) }
15
+ attr_reader :bank_name
16
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
17
+ sig { returns(T.nilable(String)) }
18
+ attr_reader :fingerprint
19
+ # Institution number of the bank account.
20
+ sig { returns(T.nilable(String)) }
21
+ attr_reader :institution_number
22
+ # Last four digits of the bank account number.
23
+ sig { returns(T.nilable(String)) }
24
+ attr_reader :last4
25
+ # Transit number of the bank account.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_reader :transit_number
28
+ end
29
+ class Affirm < Stripe::StripeObject; end
30
+ class AfterpayClearpay < Stripe::StripeObject; end
31
+ class Alipay < Stripe::StripeObject; end
32
+ class Alma < Stripe::StripeObject; end
33
+ class AmazonPay < Stripe::StripeObject; end
34
+ class AuBecsDebit < Stripe::StripeObject
35
+ # Six-digit number identifying bank and branch associated with this bank account.
36
+ sig { returns(T.nilable(String)) }
37
+ attr_reader :bsb_number
38
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
39
+ sig { returns(T.nilable(String)) }
40
+ attr_reader :fingerprint
41
+ # Last four digits of the bank account number.
42
+ sig { returns(T.nilable(String)) }
43
+ attr_reader :last4
44
+ end
45
+ class BacsDebit < Stripe::StripeObject
46
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_reader :fingerprint
49
+ # Last four digits of the bank account number.
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :last4
52
+ # Sort code of the bank account. (e.g., `10-20-30`)
53
+ sig { returns(T.nilable(String)) }
54
+ attr_reader :sort_code
55
+ end
56
+ class Bancontact < Stripe::StripeObject; end
57
+ class Billie < Stripe::StripeObject; end
58
+ class BillingDetails < Stripe::StripeObject
59
+ class Address < Stripe::StripeObject
60
+ # City, district, suburb, town, or village.
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :city
63
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
64
+ sig { returns(T.nilable(String)) }
65
+ attr_reader :country
66
+ # Address line 1 (e.g., street, PO Box, or company name).
67
+ sig { returns(T.nilable(String)) }
68
+ attr_reader :line1
69
+ # Address line 2 (e.g., apartment, suite, unit, or building).
70
+ sig { returns(T.nilable(String)) }
71
+ attr_reader :line2
72
+ # ZIP or postal code.
73
+ sig { returns(T.nilable(String)) }
74
+ attr_reader :postal_code
75
+ # State, county, province, or region.
76
+ sig { returns(T.nilable(String)) }
77
+ attr_reader :state
78
+ end
79
+ # Billing address.
80
+ sig { returns(T.nilable(Address)) }
81
+ attr_reader :address
82
+ # Email address.
83
+ sig { returns(T.nilable(String)) }
84
+ attr_reader :email
85
+ # Full name.
86
+ sig { returns(T.nilable(String)) }
87
+ attr_reader :name
88
+ # Billing phone number (including extension).
89
+ sig { returns(T.nilable(String)) }
90
+ attr_reader :phone
91
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
92
+ sig { returns(T.nilable(String)) }
93
+ attr_reader :tax_id
94
+ end
95
+ class Blik < Stripe::StripeObject; end
96
+ class Boleto < Stripe::StripeObject
97
+ # Uniquely identifies the customer tax id (CNPJ or CPF)
98
+ sig { returns(String) }
99
+ attr_reader :tax_id
100
+ end
101
+ class Card < Stripe::StripeObject
102
+ class Checks < Stripe::StripeObject
103
+ # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
104
+ sig { returns(T.nilable(String)) }
105
+ attr_reader :address_line1_check
106
+ # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
107
+ sig { returns(T.nilable(String)) }
108
+ attr_reader :address_postal_code_check
109
+ # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
110
+ sig { returns(T.nilable(String)) }
111
+ attr_reader :cvc_check
112
+ end
113
+ class GeneratedFrom < Stripe::StripeObject
114
+ class PaymentMethodDetails < Stripe::StripeObject
115
+ class CardPresent < Stripe::StripeObject
116
+ class Offline < Stripe::StripeObject
117
+ # Time at which the payment was collected while offline
118
+ sig { returns(T.nilable(Integer)) }
119
+ attr_reader :stored_at
120
+ # The method used to process this payment method offline. Only deferred is allowed.
121
+ sig { returns(T.nilable(String)) }
122
+ attr_reader :type
123
+ end
124
+ class Receipt < Stripe::StripeObject
125
+ # The type of account being debited or credited
126
+ sig { returns(String) }
127
+ attr_reader :account_type
128
+ # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
129
+ sig { returns(T.nilable(String)) }
130
+ attr_reader :application_cryptogram
131
+ # Mnenomic of the Application Identifier.
132
+ sig { returns(T.nilable(String)) }
133
+ attr_reader :application_preferred_name
134
+ # Identifier for this transaction.
135
+ sig { returns(T.nilable(String)) }
136
+ attr_reader :authorization_code
137
+ # EMV tag 8A. A code returned by the card issuer.
138
+ sig { returns(T.nilable(String)) }
139
+ attr_reader :authorization_response_code
140
+ # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
141
+ sig { returns(T.nilable(String)) }
142
+ attr_reader :cardholder_verification_method
143
+ # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
144
+ sig { returns(T.nilable(String)) }
145
+ attr_reader :dedicated_file_name
146
+ # The outcome of a series of EMV functions performed by the card reader.
147
+ sig { returns(T.nilable(String)) }
148
+ attr_reader :terminal_verification_results
149
+ # An indication of various EMV functions performed during the transaction.
150
+ sig { returns(T.nilable(String)) }
151
+ attr_reader :transaction_status_information
152
+ end
153
+ class Wallet < Stripe::StripeObject
154
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
155
+ sig { returns(String) }
156
+ attr_reader :type
157
+ end
158
+ # The authorized amount
159
+ sig { returns(T.nilable(Integer)) }
160
+ attr_reader :amount_authorized
161
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
162
+ sig { returns(T.nilable(String)) }
163
+ attr_reader :brand
164
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
165
+ sig { returns(T.nilable(String)) }
166
+ attr_reader :brand_product
167
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
168
+ sig { returns(Integer) }
169
+ attr_reader :capture_before
170
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
171
+ sig { returns(T.nilable(String)) }
172
+ attr_reader :cardholder_name
173
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
174
+ sig { returns(T.nilable(String)) }
175
+ attr_reader :country
176
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
177
+ sig { returns(T.nilable(String)) }
178
+ attr_reader :description
179
+ # Authorization response cryptogram.
180
+ sig { returns(T.nilable(String)) }
181
+ attr_reader :emv_auth_data
182
+ # Two-digit number representing the card's expiration month.
183
+ sig { returns(Integer) }
184
+ attr_reader :exp_month
185
+ # Four-digit number representing the card's expiration year.
186
+ sig { returns(Integer) }
187
+ attr_reader :exp_year
188
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
189
+ #
190
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
191
+ sig { returns(T.nilable(String)) }
192
+ attr_reader :fingerprint
193
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
194
+ sig { returns(T.nilable(String)) }
195
+ attr_reader :funding
196
+ # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
197
+ sig { returns(T.nilable(String)) }
198
+ attr_reader :generated_card
199
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
200
+ sig { returns(T.nilable(String)) }
201
+ attr_reader :iin
202
+ # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
203
+ sig { returns(T::Boolean) }
204
+ attr_reader :incremental_authorization_supported
205
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
206
+ sig { returns(T.nilable(String)) }
207
+ attr_reader :issuer
208
+ # The last four digits of the card.
209
+ sig { returns(T.nilable(String)) }
210
+ attr_reader :last4
211
+ # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
212
+ sig { returns(T.nilable(String)) }
213
+ attr_reader :network
214
+ # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
215
+ sig { returns(T.nilable(String)) }
216
+ attr_reader :network_transaction_id
217
+ # Details about payments collected offline.
218
+ sig { returns(T.nilable(Offline)) }
219
+ attr_reader :offline
220
+ # Defines whether the authorized amount can be over-captured or not
221
+ sig { returns(T::Boolean) }
222
+ attr_reader :overcapture_supported
223
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
224
+ sig { returns(T.nilable(T::Array[String])) }
225
+ attr_reader :preferred_locales
226
+ # How card details were read in this transaction.
227
+ sig { returns(T.nilable(String)) }
228
+ attr_reader :read_method
229
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
230
+ sig { returns(T.nilable(Receipt)) }
231
+ attr_reader :receipt
232
+ # Attribute for field wallet
233
+ sig { returns(Wallet) }
234
+ attr_reader :wallet
235
+ end
236
+ # Attribute for field card_present
237
+ sig { returns(CardPresent) }
238
+ attr_reader :card_present
239
+ # The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
240
+ sig { returns(String) }
241
+ attr_reader :type
242
+ end
243
+ # The charge that created this object.
244
+ sig { returns(T.nilable(String)) }
245
+ attr_reader :charge
246
+ # Transaction-specific details of the payment method used in the payment.
247
+ sig { returns(T.nilable(PaymentMethodDetails)) }
248
+ attr_reader :payment_method_details
249
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
250
+ sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
251
+ attr_reader :setup_attempt
252
+ end
253
+ class Networks < Stripe::StripeObject
254
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
255
+ sig { returns(T::Array[String]) }
256
+ attr_reader :available
257
+ # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
258
+ sig { returns(T.nilable(String)) }
259
+ attr_reader :preferred
260
+ end
261
+ class ThreeDSecureUsage < Stripe::StripeObject
262
+ # Whether 3D Secure is supported on this card.
263
+ sig { returns(T::Boolean) }
264
+ attr_reader :supported
265
+ end
266
+ class Wallet < Stripe::StripeObject
267
+ class AmexExpressCheckout < Stripe::StripeObject; end
268
+ class ApplePay < Stripe::StripeObject; end
269
+ class GooglePay < Stripe::StripeObject; end
270
+ class Link < Stripe::StripeObject; end
271
+ class Masterpass < Stripe::StripeObject
272
+ class BillingAddress < Stripe::StripeObject
273
+ # City, district, suburb, town, or village.
274
+ sig { returns(T.nilable(String)) }
275
+ attr_reader :city
276
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
277
+ sig { returns(T.nilable(String)) }
278
+ attr_reader :country
279
+ # Address line 1 (e.g., street, PO Box, or company name).
280
+ sig { returns(T.nilable(String)) }
281
+ attr_reader :line1
282
+ # Address line 2 (e.g., apartment, suite, unit, or building).
283
+ sig { returns(T.nilable(String)) }
284
+ attr_reader :line2
285
+ # ZIP or postal code.
286
+ sig { returns(T.nilable(String)) }
287
+ attr_reader :postal_code
288
+ # State, county, province, or region.
289
+ sig { returns(T.nilable(String)) }
290
+ attr_reader :state
291
+ end
292
+ class ShippingAddress < Stripe::StripeObject
293
+ # City, district, suburb, town, or village.
294
+ sig { returns(T.nilable(String)) }
295
+ attr_reader :city
296
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
297
+ sig { returns(T.nilable(String)) }
298
+ attr_reader :country
299
+ # Address line 1 (e.g., street, PO Box, or company name).
300
+ sig { returns(T.nilable(String)) }
301
+ attr_reader :line1
302
+ # Address line 2 (e.g., apartment, suite, unit, or building).
303
+ sig { returns(T.nilable(String)) }
304
+ attr_reader :line2
305
+ # ZIP or postal code.
306
+ sig { returns(T.nilable(String)) }
307
+ attr_reader :postal_code
308
+ # State, county, province, or region.
309
+ sig { returns(T.nilable(String)) }
310
+ attr_reader :state
311
+ end
312
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
313
+ sig { returns(T.nilable(BillingAddress)) }
314
+ attr_reader :billing_address
315
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
316
+ sig { returns(T.nilable(String)) }
317
+ attr_reader :email
318
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
319
+ sig { returns(T.nilable(String)) }
320
+ attr_reader :name
321
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
322
+ sig { returns(T.nilable(ShippingAddress)) }
323
+ attr_reader :shipping_address
324
+ end
325
+ class SamsungPay < Stripe::StripeObject; end
326
+ class VisaCheckout < Stripe::StripeObject
327
+ class BillingAddress < Stripe::StripeObject
328
+ # City, district, suburb, town, or village.
329
+ sig { returns(T.nilable(String)) }
330
+ attr_reader :city
331
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
332
+ sig { returns(T.nilable(String)) }
333
+ attr_reader :country
334
+ # Address line 1 (e.g., street, PO Box, or company name).
335
+ sig { returns(T.nilable(String)) }
336
+ attr_reader :line1
337
+ # Address line 2 (e.g., apartment, suite, unit, or building).
338
+ sig { returns(T.nilable(String)) }
339
+ attr_reader :line2
340
+ # ZIP or postal code.
341
+ sig { returns(T.nilable(String)) }
342
+ attr_reader :postal_code
343
+ # State, county, province, or region.
344
+ sig { returns(T.nilable(String)) }
345
+ attr_reader :state
346
+ end
347
+ class ShippingAddress < Stripe::StripeObject
348
+ # City, district, suburb, town, or village.
349
+ sig { returns(T.nilable(String)) }
350
+ attr_reader :city
351
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
352
+ sig { returns(T.nilable(String)) }
353
+ attr_reader :country
354
+ # Address line 1 (e.g., street, PO Box, or company name).
355
+ sig { returns(T.nilable(String)) }
356
+ attr_reader :line1
357
+ # Address line 2 (e.g., apartment, suite, unit, or building).
358
+ sig { returns(T.nilable(String)) }
359
+ attr_reader :line2
360
+ # ZIP or postal code.
361
+ sig { returns(T.nilable(String)) }
362
+ attr_reader :postal_code
363
+ # State, county, province, or region.
364
+ sig { returns(T.nilable(String)) }
365
+ attr_reader :state
366
+ end
367
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
368
+ sig { returns(T.nilable(BillingAddress)) }
369
+ attr_reader :billing_address
370
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
371
+ sig { returns(T.nilable(String)) }
372
+ attr_reader :email
373
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
374
+ sig { returns(T.nilable(String)) }
375
+ attr_reader :name
376
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
377
+ sig { returns(T.nilable(ShippingAddress)) }
378
+ attr_reader :shipping_address
379
+ end
380
+ # Attribute for field amex_express_checkout
381
+ sig { returns(AmexExpressCheckout) }
382
+ attr_reader :amex_express_checkout
383
+ # Attribute for field apple_pay
384
+ sig { returns(ApplePay) }
385
+ attr_reader :apple_pay
386
+ # (For tokenized numbers only.) The last four digits of the device account number.
387
+ sig { returns(T.nilable(String)) }
388
+ attr_reader :dynamic_last4
389
+ # Attribute for field google_pay
390
+ sig { returns(GooglePay) }
391
+ attr_reader :google_pay
392
+ # Attribute for field link
393
+ sig { returns(Link) }
394
+ attr_reader :link
395
+ # Attribute for field masterpass
396
+ sig { returns(Masterpass) }
397
+ attr_reader :masterpass
398
+ # Attribute for field samsung_pay
399
+ sig { returns(SamsungPay) }
400
+ attr_reader :samsung_pay
401
+ # The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
402
+ sig { returns(String) }
403
+ attr_reader :type
404
+ # Attribute for field visa_checkout
405
+ sig { returns(VisaCheckout) }
406
+ attr_reader :visa_checkout
407
+ end
408
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
409
+ sig { returns(String) }
410
+ attr_reader :brand
411
+ # Checks on Card address and CVC if provided.
412
+ sig { returns(T.nilable(Checks)) }
413
+ attr_reader :checks
414
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
415
+ sig { returns(T.nilable(String)) }
416
+ attr_reader :country
417
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
418
+ sig { returns(T.nilable(String)) }
419
+ attr_reader :description
420
+ # The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
421
+ sig { returns(T.nilable(String)) }
422
+ attr_reader :display_brand
423
+ # Two-digit number representing the card's expiration month.
424
+ sig { returns(Integer) }
425
+ attr_reader :exp_month
426
+ # Four-digit number representing the card's expiration year.
427
+ sig { returns(Integer) }
428
+ attr_reader :exp_year
429
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
430
+ #
431
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
432
+ sig { returns(T.nilable(String)) }
433
+ attr_reader :fingerprint
434
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
435
+ sig { returns(String) }
436
+ attr_reader :funding
437
+ # Details of the original PaymentMethod that created this object.
438
+ sig { returns(T.nilable(GeneratedFrom)) }
439
+ attr_reader :generated_from
440
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
441
+ sig { returns(T.nilable(String)) }
442
+ attr_reader :iin
443
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
444
+ sig { returns(T.nilable(String)) }
445
+ attr_reader :issuer
446
+ # The last four digits of the card.
447
+ sig { returns(String) }
448
+ attr_reader :last4
449
+ # Contains information about card networks that can be used to process the payment.
450
+ sig { returns(T.nilable(Networks)) }
451
+ attr_reader :networks
452
+ # Status of a card based on the card issuer.
453
+ sig { returns(T.nilable(String)) }
454
+ attr_reader :regulated_status
455
+ # Contains details on how this Card may be used for 3D Secure authentication.
456
+ sig { returns(T.nilable(ThreeDSecureUsage)) }
457
+ attr_reader :three_d_secure_usage
458
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
459
+ sig { returns(T.nilable(Wallet)) }
460
+ attr_reader :wallet
461
+ end
462
+ class CardPresent < Stripe::StripeObject
463
+ class Networks < Stripe::StripeObject
464
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
465
+ sig { returns(T::Array[String]) }
466
+ attr_reader :available
467
+ # The preferred network for the card.
468
+ sig { returns(T.nilable(String)) }
469
+ attr_reader :preferred
470
+ end
471
+ class Offline < Stripe::StripeObject
472
+ # Time at which the payment was collected while offline
473
+ sig { returns(T.nilable(Integer)) }
474
+ attr_reader :stored_at
475
+ # The method used to process this payment method offline. Only deferred is allowed.
476
+ sig { returns(T.nilable(String)) }
477
+ attr_reader :type
478
+ end
479
+ class Wallet < Stripe::StripeObject
480
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
481
+ sig { returns(String) }
482
+ attr_reader :type
483
+ end
484
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
485
+ sig { returns(T.nilable(String)) }
486
+ attr_reader :brand
487
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
488
+ sig { returns(T.nilable(String)) }
489
+ attr_reader :brand_product
490
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
491
+ sig { returns(T.nilable(String)) }
492
+ attr_reader :cardholder_name
493
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
494
+ sig { returns(T.nilable(String)) }
495
+ attr_reader :country
496
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
497
+ sig { returns(T.nilable(String)) }
498
+ attr_reader :description
499
+ # Two-digit number representing the card's expiration month.
500
+ sig { returns(Integer) }
501
+ attr_reader :exp_month
502
+ # Four-digit number representing the card's expiration year.
503
+ sig { returns(Integer) }
504
+ attr_reader :exp_year
505
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
506
+ #
507
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
508
+ sig { returns(T.nilable(String)) }
509
+ attr_reader :fingerprint
510
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
511
+ sig { returns(T.nilable(String)) }
512
+ attr_reader :funding
513
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
514
+ sig { returns(T.nilable(String)) }
515
+ attr_reader :iin
516
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
517
+ sig { returns(T.nilable(String)) }
518
+ attr_reader :issuer
519
+ # The last four digits of the card.
520
+ sig { returns(T.nilable(String)) }
521
+ attr_reader :last4
522
+ # Contains information about card networks that can be used to process the payment.
523
+ sig { returns(T.nilable(Networks)) }
524
+ attr_reader :networks
525
+ # Details about payment methods collected offline.
526
+ sig { returns(T.nilable(Offline)) }
527
+ attr_reader :offline
528
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
529
+ sig { returns(T.nilable(T::Array[String])) }
530
+ attr_reader :preferred_locales
531
+ # How card details were read in this transaction.
532
+ sig { returns(T.nilable(String)) }
533
+ attr_reader :read_method
534
+ # Attribute for field wallet
535
+ sig { returns(Wallet) }
536
+ attr_reader :wallet
537
+ end
538
+ class Cashapp < Stripe::StripeObject
539
+ # A unique and immutable identifier assigned by Cash App to every buyer.
540
+ sig { returns(T.nilable(String)) }
541
+ attr_reader :buyer_id
542
+ # A public identifier for buyers using Cash App.
543
+ sig { returns(T.nilable(String)) }
544
+ attr_reader :cashtag
545
+ end
546
+ class CustomerBalance < Stripe::StripeObject; end
547
+ class Eps < Stripe::StripeObject
548
+ # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
549
+ sig { returns(T.nilable(String)) }
550
+ attr_reader :bank
551
+ end
552
+ class Fpx < Stripe::StripeObject
553
+ # Account holder type, if provided. Can be one of `individual` or `company`.
554
+ sig { returns(T.nilable(String)) }
555
+ attr_reader :account_holder_type
556
+ # The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
557
+ sig { returns(String) }
558
+ attr_reader :bank
559
+ end
560
+ class Giropay < Stripe::StripeObject; end
561
+ class Grabpay < Stripe::StripeObject; end
562
+ class Ideal < Stripe::StripeObject
563
+ # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
564
+ sig { returns(T.nilable(String)) }
565
+ attr_reader :bank
566
+ # The Bank Identifier Code of the customer's bank, if the bank was provided.
567
+ sig { returns(T.nilable(String)) }
568
+ attr_reader :bic
569
+ end
570
+ class InteracPresent < Stripe::StripeObject
571
+ class Networks < Stripe::StripeObject
572
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
573
+ sig { returns(T::Array[String]) }
574
+ attr_reader :available
575
+ # The preferred network for the card.
576
+ sig { returns(T.nilable(String)) }
577
+ attr_reader :preferred
578
+ end
579
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
580
+ sig { returns(T.nilable(String)) }
581
+ attr_reader :brand
582
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
583
+ sig { returns(T.nilable(String)) }
584
+ attr_reader :cardholder_name
585
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
586
+ sig { returns(T.nilable(String)) }
587
+ attr_reader :country
588
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
589
+ sig { returns(T.nilable(String)) }
590
+ attr_reader :description
591
+ # Two-digit number representing the card's expiration month.
592
+ sig { returns(Integer) }
593
+ attr_reader :exp_month
594
+ # Four-digit number representing the card's expiration year.
595
+ sig { returns(Integer) }
596
+ attr_reader :exp_year
597
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
598
+ #
599
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
600
+ sig { returns(T.nilable(String)) }
601
+ attr_reader :fingerprint
602
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
603
+ sig { returns(T.nilable(String)) }
604
+ attr_reader :funding
605
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
606
+ sig { returns(T.nilable(String)) }
607
+ attr_reader :iin
608
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
609
+ sig { returns(T.nilable(String)) }
610
+ attr_reader :issuer
611
+ # The last four digits of the card.
612
+ sig { returns(T.nilable(String)) }
613
+ attr_reader :last4
614
+ # Contains information about card networks that can be used to process the payment.
615
+ sig { returns(T.nilable(Networks)) }
616
+ attr_reader :networks
617
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
618
+ sig { returns(T.nilable(T::Array[String])) }
619
+ attr_reader :preferred_locales
620
+ # How card details were read in this transaction.
621
+ sig { returns(T.nilable(String)) }
622
+ attr_reader :read_method
623
+ end
624
+ class KakaoPay < Stripe::StripeObject; end
625
+ class Klarna < Stripe::StripeObject
626
+ class Dob < Stripe::StripeObject
627
+ # The day of birth, between 1 and 31.
628
+ sig { returns(T.nilable(Integer)) }
629
+ attr_reader :day
630
+ # The month of birth, between 1 and 12.
631
+ sig { returns(T.nilable(Integer)) }
632
+ attr_reader :month
633
+ # The four-digit year of birth.
634
+ sig { returns(T.nilable(Integer)) }
635
+ attr_reader :year
636
+ end
637
+ # The customer's date of birth, if provided.
638
+ sig { returns(T.nilable(Dob)) }
639
+ attr_reader :dob
640
+ end
641
+ class Konbini < Stripe::StripeObject; end
642
+ class KrCard < Stripe::StripeObject
643
+ # The local credit or debit card brand.
644
+ sig { returns(T.nilable(String)) }
645
+ attr_reader :brand
646
+ # The last four digits of the card. This may not be present for American Express cards.
647
+ sig { returns(T.nilable(String)) }
648
+ attr_reader :last4
649
+ end
650
+ class Link < Stripe::StripeObject
651
+ # Account owner's email address.
652
+ sig { returns(T.nilable(String)) }
653
+ attr_reader :email
654
+ # [Deprecated] This is a legacy parameter that no longer has any function.
655
+ sig { returns(String) }
656
+ attr_reader :persistent_token
657
+ end
658
+ class Mobilepay < Stripe::StripeObject; end
659
+ class Multibanco < Stripe::StripeObject; end
660
+ class NaverPay < Stripe::StripeObject
661
+ # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
662
+ sig { returns(T.nilable(String)) }
663
+ attr_reader :buyer_id
664
+ # Whether to fund this transaction with Naver Pay points or a card.
665
+ sig { returns(String) }
666
+ attr_reader :funding
667
+ end
668
+ class NzBankAccount < Stripe::StripeObject
669
+ # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
670
+ sig { returns(T.nilable(String)) }
671
+ attr_reader :account_holder_name
672
+ # The numeric code for the bank account's bank.
673
+ sig { returns(String) }
674
+ attr_reader :bank_code
675
+ # The name of the bank.
676
+ sig { returns(String) }
677
+ attr_reader :bank_name
678
+ # The numeric code for the bank account's bank branch.
679
+ sig { returns(String) }
680
+ attr_reader :branch_code
681
+ # Last four digits of the bank account number.
682
+ sig { returns(String) }
683
+ attr_reader :last4
684
+ # The suffix of the bank account number.
685
+ sig { returns(T.nilable(String)) }
686
+ attr_reader :suffix
687
+ end
688
+ class Oxxo < Stripe::StripeObject; end
689
+ class P24 < Stripe::StripeObject
690
+ # The customer's bank, if provided.
691
+ sig { returns(T.nilable(String)) }
692
+ attr_reader :bank
693
+ end
694
+ class PayByBank < Stripe::StripeObject; end
695
+ class Payco < Stripe::StripeObject; end
696
+ class Paynow < Stripe::StripeObject; end
697
+ class Paypal < Stripe::StripeObject
698
+ # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
699
+ sig { returns(T.nilable(String)) }
700
+ attr_reader :country
701
+ # Owner's email. Values are provided by PayPal directly
702
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
703
+ sig { returns(T.nilable(String)) }
704
+ attr_reader :payer_email
705
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
706
+ sig { returns(T.nilable(String)) }
707
+ attr_reader :payer_id
708
+ end
709
+ class Pix < Stripe::StripeObject; end
710
+ class Promptpay < Stripe::StripeObject; end
711
+ class RadarOptions < Stripe::StripeObject
712
+ # 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.
713
+ sig { returns(String) }
714
+ attr_reader :session
715
+ end
716
+ class RevolutPay < Stripe::StripeObject; end
717
+ class SamsungPay < Stripe::StripeObject; end
718
+ class Satispay < Stripe::StripeObject; end
719
+ class SepaDebit < Stripe::StripeObject
720
+ class GeneratedFrom < Stripe::StripeObject
721
+ # The ID of the Charge that generated this PaymentMethod, if any.
722
+ sig { returns(T.nilable(T.any(String, Stripe::Charge))) }
723
+ attr_reader :charge
724
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
725
+ sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
726
+ attr_reader :setup_attempt
727
+ end
728
+ # Bank code of bank associated with the bank account.
729
+ sig { returns(T.nilable(String)) }
730
+ attr_reader :bank_code
731
+ # Branch code of bank associated with the bank account.
732
+ sig { returns(T.nilable(String)) }
733
+ attr_reader :branch_code
734
+ # Two-letter ISO code representing the country the bank account is located in.
735
+ sig { returns(T.nilable(String)) }
736
+ attr_reader :country
737
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
738
+ sig { returns(T.nilable(String)) }
739
+ attr_reader :fingerprint
740
+ # Information about the object that generated this PaymentMethod.
741
+ sig { returns(T.nilable(GeneratedFrom)) }
742
+ attr_reader :generated_from
743
+ # Last four characters of the IBAN.
744
+ sig { returns(T.nilable(String)) }
745
+ attr_reader :last4
746
+ end
747
+ class Sofort < Stripe::StripeObject
748
+ # Two-letter ISO code representing the country the bank account is located in.
749
+ sig { returns(T.nilable(String)) }
750
+ attr_reader :country
751
+ end
752
+ class Swish < Stripe::StripeObject; end
753
+ class Twint < Stripe::StripeObject; end
754
+ class UsBankAccount < Stripe::StripeObject
755
+ class Networks < Stripe::StripeObject
756
+ # The preferred network.
757
+ sig { returns(T.nilable(String)) }
758
+ attr_reader :preferred
759
+ # All supported networks.
760
+ sig { returns(T::Array[String]) }
761
+ attr_reader :supported
762
+ end
763
+ class StatusDetails < Stripe::StripeObject
764
+ class Blocked < Stripe::StripeObject
765
+ # The ACH network code that resulted in this block.
766
+ sig { returns(T.nilable(String)) }
767
+ attr_reader :network_code
768
+ # The reason why this PaymentMethod's fingerprint has been blocked
769
+ sig { returns(T.nilable(String)) }
770
+ attr_reader :reason
771
+ end
772
+ # Attribute for field blocked
773
+ sig { returns(Blocked) }
774
+ attr_reader :blocked
775
+ end
776
+ # Account holder type: individual or company.
777
+ sig { returns(T.nilable(String)) }
778
+ attr_reader :account_holder_type
779
+ # Account type: checkings or savings. Defaults to checking if omitted.
780
+ sig { returns(T.nilable(String)) }
781
+ attr_reader :account_type
782
+ # The name of the bank.
783
+ sig { returns(T.nilable(String)) }
784
+ attr_reader :bank_name
785
+ # The ID of the Financial Connections Account used to create the payment method.
786
+ sig { returns(T.nilable(String)) }
787
+ attr_reader :financial_connections_account
788
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
789
+ sig { returns(T.nilable(String)) }
790
+ attr_reader :fingerprint
791
+ # Last four digits of the bank account number.
792
+ sig { returns(T.nilable(String)) }
793
+ attr_reader :last4
794
+ # Contains information about US bank account networks that can be used.
795
+ sig { returns(T.nilable(Networks)) }
796
+ attr_reader :networks
797
+ # Routing number of the bank account.
798
+ sig { returns(T.nilable(String)) }
799
+ attr_reader :routing_number
800
+ # Contains information about the future reusability of this PaymentMethod.
801
+ sig { returns(T.nilable(StatusDetails)) }
802
+ attr_reader :status_details
803
+ end
804
+ class WechatPay < Stripe::StripeObject; end
805
+ class Zip < Stripe::StripeObject; end
806
+ # Attribute for field acss_debit
807
+ sig { returns(AcssDebit) }
808
+ attr_reader :acss_debit
809
+ # Attribute for field affirm
810
+ sig { returns(Affirm) }
811
+ attr_reader :affirm
812
+ # Attribute for field afterpay_clearpay
813
+ sig { returns(AfterpayClearpay) }
814
+ attr_reader :afterpay_clearpay
815
+ # Attribute for field alipay
816
+ sig { returns(Alipay) }
817
+ attr_reader :alipay
818
+ # 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”.
819
+ sig { returns(String) }
820
+ attr_reader :allow_redisplay
821
+ # Attribute for field alma
822
+ sig { returns(Alma) }
823
+ attr_reader :alma
824
+ # Attribute for field amazon_pay
825
+ sig { returns(AmazonPay) }
826
+ attr_reader :amazon_pay
827
+ # Attribute for field au_becs_debit
828
+ sig { returns(AuBecsDebit) }
829
+ attr_reader :au_becs_debit
830
+ # Attribute for field bacs_debit
831
+ sig { returns(BacsDebit) }
832
+ attr_reader :bacs_debit
833
+ # Attribute for field bancontact
834
+ sig { returns(Bancontact) }
835
+ attr_reader :bancontact
836
+ # Attribute for field billie
837
+ sig { returns(Billie) }
838
+ attr_reader :billie
839
+ # Attribute for field billing_details
840
+ sig { returns(BillingDetails) }
841
+ attr_reader :billing_details
842
+ # Attribute for field blik
843
+ sig { returns(Blik) }
844
+ attr_reader :blik
845
+ # Attribute for field boleto
846
+ sig { returns(Boleto) }
847
+ attr_reader :boleto
848
+ # Attribute for field card
849
+ sig { returns(Card) }
850
+ attr_reader :card
851
+ # Attribute for field card_present
852
+ sig { returns(CardPresent) }
853
+ attr_reader :card_present
854
+ # Attribute for field cashapp
855
+ sig { returns(Cashapp) }
856
+ attr_reader :cashapp
857
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
858
+ sig { returns(Integer) }
859
+ attr_reader :created
860
+ # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
861
+ sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
862
+ attr_reader :customer
863
+ # Attribute for field customer_balance
864
+ sig { returns(CustomerBalance) }
865
+ attr_reader :customer_balance
866
+ # Attribute for field eps
867
+ sig { returns(Eps) }
868
+ attr_reader :eps
869
+ # Attribute for field fpx
870
+ sig { returns(Fpx) }
871
+ attr_reader :fpx
872
+ # Attribute for field giropay
873
+ sig { returns(Giropay) }
874
+ attr_reader :giropay
875
+ # Attribute for field grabpay
876
+ sig { returns(Grabpay) }
877
+ attr_reader :grabpay
878
+ # Unique identifier for the object.
879
+ sig { returns(String) }
880
+ attr_reader :id
881
+ # Attribute for field ideal
882
+ sig { returns(Ideal) }
883
+ attr_reader :ideal
884
+ # Attribute for field interac_present
885
+ sig { returns(InteracPresent) }
886
+ attr_reader :interac_present
887
+ # Attribute for field kakao_pay
888
+ sig { returns(KakaoPay) }
889
+ attr_reader :kakao_pay
890
+ # Attribute for field klarna
891
+ sig { returns(Klarna) }
892
+ attr_reader :klarna
893
+ # Attribute for field konbini
894
+ sig { returns(Konbini) }
895
+ attr_reader :konbini
896
+ # Attribute for field kr_card
897
+ sig { returns(KrCard) }
898
+ attr_reader :kr_card
899
+ # Attribute for field link
900
+ sig { returns(Link) }
901
+ attr_reader :link
902
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
903
+ sig { returns(T::Boolean) }
904
+ attr_reader :livemode
905
+ # 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.
906
+ sig { returns(T.nilable(T::Hash[String, String])) }
907
+ attr_reader :metadata
908
+ # Attribute for field mobilepay
909
+ sig { returns(Mobilepay) }
910
+ attr_reader :mobilepay
911
+ # Attribute for field multibanco
912
+ sig { returns(Multibanco) }
913
+ attr_reader :multibanco
914
+ # Attribute for field naver_pay
915
+ sig { returns(NaverPay) }
916
+ attr_reader :naver_pay
917
+ # Attribute for field nz_bank_account
918
+ sig { returns(NzBankAccount) }
919
+ attr_reader :nz_bank_account
920
+ # String representing the object's type. Objects of the same type share the same value.
921
+ sig { returns(String) }
922
+ attr_reader :object
923
+ # Attribute for field oxxo
924
+ sig { returns(Oxxo) }
925
+ attr_reader :oxxo
926
+ # Attribute for field p24
927
+ sig { returns(P24) }
928
+ attr_reader :p24
929
+ # Attribute for field pay_by_bank
930
+ sig { returns(PayByBank) }
931
+ attr_reader :pay_by_bank
932
+ # Attribute for field payco
933
+ sig { returns(Payco) }
934
+ attr_reader :payco
935
+ # Attribute for field paynow
936
+ sig { returns(Paynow) }
937
+ attr_reader :paynow
938
+ # Attribute for field paypal
939
+ sig { returns(Paypal) }
940
+ attr_reader :paypal
941
+ # Attribute for field pix
942
+ sig { returns(Pix) }
943
+ attr_reader :pix
944
+ # Attribute for field promptpay
945
+ sig { returns(Promptpay) }
946
+ attr_reader :promptpay
947
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
948
+ sig { returns(RadarOptions) }
949
+ attr_reader :radar_options
950
+ # Attribute for field revolut_pay
951
+ sig { returns(RevolutPay) }
952
+ attr_reader :revolut_pay
953
+ # Attribute for field samsung_pay
954
+ sig { returns(SamsungPay) }
955
+ attr_reader :samsung_pay
956
+ # Attribute for field satispay
957
+ sig { returns(Satispay) }
958
+ attr_reader :satispay
959
+ # Attribute for field sepa_debit
960
+ sig { returns(SepaDebit) }
961
+ attr_reader :sepa_debit
962
+ # Attribute for field sofort
963
+ sig { returns(Sofort) }
964
+ attr_reader :sofort
965
+ # Attribute for field swish
966
+ sig { returns(Swish) }
967
+ attr_reader :swish
968
+ # Attribute for field twint
969
+ sig { returns(Twint) }
970
+ attr_reader :twint
971
+ # 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.
972
+ sig { returns(String) }
973
+ attr_reader :type
974
+ # Attribute for field us_bank_account
975
+ sig { returns(UsBankAccount) }
976
+ attr_reader :us_bank_account
977
+ # Attribute for field wechat_pay
978
+ sig { returns(WechatPay) }
979
+ attr_reader :wechat_pay
980
+ # Attribute for field zip
981
+ sig { returns(Zip) }
982
+ attr_reader :zip
983
+ class ListParams < Stripe::RequestParams
984
+ # The ID of the customer whose PaymentMethods will be retrieved.
985
+ sig { returns(T.nilable(String)) }
986
+ attr_accessor :customer
987
+ # 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.
988
+ sig { returns(T.nilable(String)) }
989
+ attr_accessor :ending_before
990
+ # Specifies which fields in the response should be expanded.
991
+ sig { returns(T.nilable(T::Array[String])) }
992
+ attr_accessor :expand
993
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
994
+ sig { returns(T.nilable(Integer)) }
995
+ attr_accessor :limit
996
+ # 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.
997
+ sig { returns(T.nilable(String)) }
998
+ attr_accessor :starting_after
999
+ # An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
1000
+ sig { returns(T.nilable(String)) }
1001
+ attr_accessor :type
1002
+ sig {
1003
+ params(customer: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String), type: T.nilable(String)).void
1004
+ }
1005
+ def initialize(
1006
+ customer: nil,
1007
+ ending_before: nil,
1008
+ expand: nil,
1009
+ limit: nil,
1010
+ starting_after: nil,
1011
+ type: nil
1012
+ ); end
1013
+ end
1014
+ class CreateParams < Stripe::RequestParams
1015
+ class AcssDebit < Stripe::RequestParams
1016
+ # Customer's bank account number.
1017
+ sig { returns(String) }
1018
+ attr_accessor :account_number
1019
+ # Institution number of the customer's bank.
1020
+ sig { returns(String) }
1021
+ attr_accessor :institution_number
1022
+ # Transit number of the customer's bank.
1023
+ sig { returns(String) }
1024
+ attr_accessor :transit_number
1025
+ sig {
1026
+ params(account_number: String, institution_number: String, transit_number: String).void
1027
+ }
1028
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
1029
+ end
1030
+ class Affirm < Stripe::RequestParams; end
1031
+ class AfterpayClearpay < Stripe::RequestParams; end
1032
+ class Alipay < Stripe::RequestParams; end
1033
+ class Alma < Stripe::RequestParams; end
1034
+ class AmazonPay < Stripe::RequestParams; end
1035
+ class AuBecsDebit < Stripe::RequestParams
1036
+ # The account number for the bank account.
1037
+ sig { returns(String) }
1038
+ attr_accessor :account_number
1039
+ # Bank-State-Branch number of the bank account.
1040
+ sig { returns(String) }
1041
+ attr_accessor :bsb_number
1042
+ sig { params(account_number: String, bsb_number: String).void }
1043
+ def initialize(account_number: nil, bsb_number: nil); end
1044
+ end
1045
+ class BacsDebit < Stripe::RequestParams
1046
+ # Account number of the bank account that the funds will be debited from.
1047
+ sig { returns(T.nilable(String)) }
1048
+ attr_accessor :account_number
1049
+ # Sort code of the bank account. (e.g., `10-20-30`)
1050
+ sig { returns(T.nilable(String)) }
1051
+ attr_accessor :sort_code
1052
+ sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
1053
+ def initialize(account_number: nil, sort_code: nil); end
1054
+ end
1055
+ class Bancontact < Stripe::RequestParams; end
1056
+ class Billie < Stripe::RequestParams; end
1057
+ class BillingDetails < Stripe::RequestParams
1058
+ class Address < Stripe::RequestParams
1059
+ # City, district, suburb, town, or village.
1060
+ sig { returns(T.nilable(String)) }
1061
+ attr_accessor :city
1062
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1063
+ sig { returns(T.nilable(String)) }
1064
+ attr_accessor :country
1065
+ # Address line 1 (e.g., street, PO Box, or company name).
1066
+ sig { returns(T.nilable(String)) }
1067
+ attr_accessor :line1
1068
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1069
+ sig { returns(T.nilable(String)) }
1070
+ attr_accessor :line2
1071
+ # ZIP or postal code.
1072
+ sig { returns(T.nilable(String)) }
1073
+ attr_accessor :postal_code
1074
+ # State, county, province, or region.
1075
+ sig { returns(T.nilable(String)) }
1076
+ attr_accessor :state
1077
+ sig {
1078
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
1079
+ }
1080
+ def initialize(
1081
+ city: nil,
1082
+ country: nil,
1083
+ line1: nil,
1084
+ line2: nil,
1085
+ postal_code: nil,
1086
+ state: nil
1087
+ ); end
1088
+ end
1089
+ # Billing address.
1090
+ sig {
1091
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))))
1092
+ }
1093
+ attr_accessor :address
1094
+ # Email address.
1095
+ sig { returns(T.nilable(T.nilable(String))) }
1096
+ attr_accessor :email
1097
+ # Full name.
1098
+ sig { returns(T.nilable(T.nilable(String))) }
1099
+ attr_accessor :name
1100
+ # Billing phone number (including extension).
1101
+ sig { returns(T.nilable(T.nilable(String))) }
1102
+ attr_accessor :phone
1103
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1104
+ sig { returns(T.nilable(String)) }
1105
+ attr_accessor :tax_id
1106
+ sig {
1107
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
1108
+ }
1109
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
1110
+ end
1111
+ class Blik < Stripe::RequestParams; end
1112
+ class Boleto < Stripe::RequestParams
1113
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
1114
+ sig { returns(String) }
1115
+ attr_accessor :tax_id
1116
+ sig { params(tax_id: String).void }
1117
+ def initialize(tax_id: nil); end
1118
+ end
1119
+ class Card < Stripe::RequestParams
1120
+ class Networks < Stripe::RequestParams
1121
+ # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
1122
+ sig { returns(T.nilable(String)) }
1123
+ attr_accessor :preferred
1124
+ sig { params(preferred: T.nilable(String)).void }
1125
+ def initialize(preferred: nil); end
1126
+ end
1127
+ # The card's CVC. It is highly recommended to always include this value.
1128
+ sig { returns(T.nilable(String)) }
1129
+ attr_accessor :cvc
1130
+ # Two-digit number representing the card's expiration month.
1131
+ sig { returns(T.nilable(Integer)) }
1132
+ attr_accessor :exp_month
1133
+ # Four-digit number representing the card's expiration year.
1134
+ sig { returns(T.nilable(Integer)) }
1135
+ attr_accessor :exp_year
1136
+ # Contains information about card networks used to process the payment.
1137
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Card::Networks)) }
1138
+ attr_accessor :networks
1139
+ # The card number, as a string without any separators.
1140
+ sig { returns(T.nilable(String)) }
1141
+ attr_accessor :number
1142
+ # For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}.
1143
+ sig { returns(T.nilable(String)) }
1144
+ attr_accessor :token
1145
+ sig {
1146
+ params(cvc: T.nilable(String), exp_month: T.nilable(Integer), exp_year: T.nilable(Integer), networks: T.nilable(::Stripe::PaymentMethod::CreateParams::Card::Networks), number: T.nilable(String), token: T.nilable(String)).void
1147
+ }
1148
+ def initialize(
1149
+ cvc: nil,
1150
+ exp_month: nil,
1151
+ exp_year: nil,
1152
+ networks: nil,
1153
+ number: nil,
1154
+ token: nil
1155
+ ); end
1156
+ end
1157
+ class Cashapp < Stripe::RequestParams; end
1158
+ class CustomerBalance < Stripe::RequestParams; end
1159
+ class Eps < Stripe::RequestParams
1160
+ # The customer's bank.
1161
+ sig { returns(T.nilable(String)) }
1162
+ attr_accessor :bank
1163
+ sig { params(bank: T.nilable(String)).void }
1164
+ def initialize(bank: nil); end
1165
+ end
1166
+ class Fpx < Stripe::RequestParams
1167
+ # Account holder type for FPX transaction
1168
+ sig { returns(T.nilable(String)) }
1169
+ attr_accessor :account_holder_type
1170
+ # The customer's bank.
1171
+ sig { returns(String) }
1172
+ attr_accessor :bank
1173
+ sig { params(account_holder_type: T.nilable(String), bank: String).void }
1174
+ def initialize(account_holder_type: nil, bank: nil); end
1175
+ end
1176
+ class Giropay < Stripe::RequestParams; end
1177
+ class Grabpay < Stripe::RequestParams; end
1178
+ class Ideal < Stripe::RequestParams
1179
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1180
+ sig { returns(T.nilable(String)) }
1181
+ attr_accessor :bank
1182
+ sig { params(bank: T.nilable(String)).void }
1183
+ def initialize(bank: nil); end
1184
+ end
1185
+ class InteracPresent < Stripe::RequestParams; end
1186
+ class KakaoPay < Stripe::RequestParams; end
1187
+ class Klarna < Stripe::RequestParams
1188
+ class Dob < Stripe::RequestParams
1189
+ # The day of birth, between 1 and 31.
1190
+ sig { returns(Integer) }
1191
+ attr_accessor :day
1192
+ # The month of birth, between 1 and 12.
1193
+ sig { returns(Integer) }
1194
+ attr_accessor :month
1195
+ # The four-digit year of birth.
1196
+ sig { returns(Integer) }
1197
+ attr_accessor :year
1198
+ sig { params(day: Integer, month: Integer, year: Integer).void }
1199
+ def initialize(day: nil, month: nil, year: nil); end
1200
+ end
1201
+ # Customer's date of birth
1202
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna::Dob)) }
1203
+ attr_accessor :dob
1204
+ sig { params(dob: T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna::Dob)).void }
1205
+ def initialize(dob: nil); end
1206
+ end
1207
+ class Konbini < Stripe::RequestParams; end
1208
+ class KrCard < Stripe::RequestParams; end
1209
+ class Link < Stripe::RequestParams; end
1210
+ class Mobilepay < Stripe::RequestParams; end
1211
+ class Multibanco < Stripe::RequestParams; end
1212
+ class NaverPay < Stripe::RequestParams
1213
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
1214
+ sig { returns(T.nilable(String)) }
1215
+ attr_accessor :funding
1216
+ sig { params(funding: T.nilable(String)).void }
1217
+ def initialize(funding: nil); end
1218
+ end
1219
+ class NzBankAccount < Stripe::RequestParams
1220
+ # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
1221
+ sig { returns(T.nilable(String)) }
1222
+ attr_accessor :account_holder_name
1223
+ # The account number for the bank account.
1224
+ sig { returns(String) }
1225
+ attr_accessor :account_number
1226
+ # The numeric code for the bank account's bank.
1227
+ sig { returns(String) }
1228
+ attr_accessor :bank_code
1229
+ # The numeric code for the bank account's bank branch.
1230
+ sig { returns(String) }
1231
+ attr_accessor :branch_code
1232
+ # Attribute for param field reference
1233
+ sig { returns(T.nilable(String)) }
1234
+ attr_accessor :reference
1235
+ # The suffix of the bank account number.
1236
+ sig { returns(String) }
1237
+ attr_accessor :suffix
1238
+ sig {
1239
+ params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
1240
+ }
1241
+ def initialize(
1242
+ account_holder_name: nil,
1243
+ account_number: nil,
1244
+ bank_code: nil,
1245
+ branch_code: nil,
1246
+ reference: nil,
1247
+ suffix: nil
1248
+ ); end
1249
+ end
1250
+ class Oxxo < Stripe::RequestParams; end
1251
+ class P24 < Stripe::RequestParams
1252
+ # The customer's bank.
1253
+ sig { returns(T.nilable(String)) }
1254
+ attr_accessor :bank
1255
+ sig { params(bank: T.nilable(String)).void }
1256
+ def initialize(bank: nil); end
1257
+ end
1258
+ class PayByBank < Stripe::RequestParams; end
1259
+ class Payco < Stripe::RequestParams; end
1260
+ class Paynow < Stripe::RequestParams; end
1261
+ class Paypal < Stripe::RequestParams; end
1262
+ class Pix < Stripe::RequestParams; end
1263
+ class Promptpay < Stripe::RequestParams; end
1264
+ class RadarOptions < Stripe::RequestParams
1265
+ # 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.
1266
+ sig { returns(T.nilable(String)) }
1267
+ attr_accessor :session
1268
+ sig { params(session: T.nilable(String)).void }
1269
+ def initialize(session: nil); end
1270
+ end
1271
+ class RevolutPay < Stripe::RequestParams; end
1272
+ class SamsungPay < Stripe::RequestParams; end
1273
+ class Satispay < Stripe::RequestParams; end
1274
+ class SepaDebit < Stripe::RequestParams
1275
+ # IBAN of the bank account.
1276
+ sig { returns(String) }
1277
+ attr_accessor :iban
1278
+ sig { params(iban: String).void }
1279
+ def initialize(iban: nil); end
1280
+ end
1281
+ class Sofort < Stripe::RequestParams
1282
+ # Two-letter ISO code representing the country the bank account is located in.
1283
+ sig { returns(String) }
1284
+ attr_accessor :country
1285
+ sig { params(country: String).void }
1286
+ def initialize(country: nil); end
1287
+ end
1288
+ class Swish < Stripe::RequestParams; end
1289
+ class Twint < Stripe::RequestParams; end
1290
+ class UsBankAccount < Stripe::RequestParams
1291
+ # Account holder type: individual or company.
1292
+ sig { returns(T.nilable(String)) }
1293
+ attr_accessor :account_holder_type
1294
+ # Account number of the bank account.
1295
+ sig { returns(T.nilable(String)) }
1296
+ attr_accessor :account_number
1297
+ # Account type: checkings or savings. Defaults to checking if omitted.
1298
+ sig { returns(T.nilable(String)) }
1299
+ attr_accessor :account_type
1300
+ # The ID of a Financial Connections Account to use as a payment method.
1301
+ sig { returns(T.nilable(String)) }
1302
+ attr_accessor :financial_connections_account
1303
+ # Routing number of the bank account.
1304
+ sig { returns(T.nilable(String)) }
1305
+ attr_accessor :routing_number
1306
+ sig {
1307
+ params(account_holder_type: T.nilable(String), account_number: T.nilable(String), account_type: T.nilable(String), financial_connections_account: T.nilable(String), routing_number: T.nilable(String)).void
1308
+ }
1309
+ def initialize(
1310
+ account_holder_type: nil,
1311
+ account_number: nil,
1312
+ account_type: nil,
1313
+ financial_connections_account: nil,
1314
+ routing_number: nil
1315
+ ); end
1316
+ end
1317
+ class WechatPay < Stripe::RequestParams; end
1318
+ class Zip < Stripe::RequestParams; end
1319
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1320
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::AcssDebit)) }
1321
+ attr_accessor :acss_debit
1322
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
1323
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Affirm)) }
1324
+ attr_accessor :affirm
1325
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
1326
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::AfterpayClearpay)) }
1327
+ attr_accessor :afterpay_clearpay
1328
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
1329
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Alipay)) }
1330
+ attr_accessor :alipay
1331
+ # 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`.
1332
+ sig { returns(T.nilable(String)) }
1333
+ attr_accessor :allow_redisplay
1334
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
1335
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Alma)) }
1336
+ attr_accessor :alma
1337
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
1338
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::AmazonPay)) }
1339
+ attr_accessor :amazon_pay
1340
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
1341
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::AuBecsDebit)) }
1342
+ attr_accessor :au_becs_debit
1343
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
1344
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::BacsDebit)) }
1345
+ attr_accessor :bacs_debit
1346
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1347
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact)) }
1348
+ attr_accessor :bancontact
1349
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
1350
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Billie)) }
1351
+ attr_accessor :billie
1352
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1353
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails)) }
1354
+ attr_accessor :billing_details
1355
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
1356
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Blik)) }
1357
+ attr_accessor :blik
1358
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
1359
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Boleto)) }
1360
+ attr_accessor :boleto
1361
+ # If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly.
1362
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Card)) }
1363
+ attr_accessor :card
1364
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1365
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Cashapp)) }
1366
+ attr_accessor :cashapp
1367
+ # The `Customer` to whom the original PaymentMethod is attached.
1368
+ sig { returns(T.nilable(String)) }
1369
+ attr_accessor :customer
1370
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1371
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::CustomerBalance)) }
1372
+ attr_accessor :customer_balance
1373
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
1374
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Eps)) }
1375
+ attr_accessor :eps
1376
+ # Specifies which fields in the response should be expanded.
1377
+ sig { returns(T.nilable(T::Array[String])) }
1378
+ attr_accessor :expand
1379
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
1380
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Fpx)) }
1381
+ attr_accessor :fpx
1382
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1383
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Giropay)) }
1384
+ attr_accessor :giropay
1385
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1386
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Grabpay)) }
1387
+ attr_accessor :grabpay
1388
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1389
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Ideal)) }
1390
+ attr_accessor :ideal
1391
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
1392
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::InteracPresent)) }
1393
+ attr_accessor :interac_present
1394
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
1395
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::KakaoPay)) }
1396
+ attr_accessor :kakao_pay
1397
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1398
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna)) }
1399
+ attr_accessor :klarna
1400
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
1401
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Konbini)) }
1402
+ attr_accessor :konbini
1403
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
1404
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::KrCard)) }
1405
+ attr_accessor :kr_card
1406
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1407
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Link)) }
1408
+ attr_accessor :link
1409
+ # 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`.
1410
+ sig { returns(T.nilable(T::Hash[String, String])) }
1411
+ attr_accessor :metadata
1412
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
1413
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Mobilepay)) }
1414
+ attr_accessor :mobilepay
1415
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
1416
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Multibanco)) }
1417
+ attr_accessor :multibanco
1418
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1419
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::NaverPay)) }
1420
+ attr_accessor :naver_pay
1421
+ # If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
1422
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::NzBankAccount)) }
1423
+ attr_accessor :nz_bank_account
1424
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
1425
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Oxxo)) }
1426
+ attr_accessor :oxxo
1427
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1428
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::P24)) }
1429
+ attr_accessor :p24
1430
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1431
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::PayByBank)) }
1432
+ attr_accessor :pay_by_bank
1433
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1434
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Payco)) }
1435
+ attr_accessor :payco
1436
+ # The PaymentMethod to share.
1437
+ sig { returns(T.nilable(String)) }
1438
+ attr_accessor :payment_method
1439
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
1440
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Paynow)) }
1441
+ attr_accessor :paynow
1442
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1443
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Paypal)) }
1444
+ attr_accessor :paypal
1445
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1446
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Pix)) }
1447
+ attr_accessor :pix
1448
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1449
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Promptpay)) }
1450
+ attr_accessor :promptpay
1451
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1452
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::RadarOptions)) }
1453
+ attr_accessor :radar_options
1454
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1455
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay)) }
1456
+ attr_accessor :revolut_pay
1457
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1458
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay)) }
1459
+ attr_accessor :samsung_pay
1460
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
1461
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay)) }
1462
+ attr_accessor :satispay
1463
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1464
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::SepaDebit)) }
1465
+ attr_accessor :sepa_debit
1466
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1467
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Sofort)) }
1468
+ attr_accessor :sofort
1469
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1470
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Swish)) }
1471
+ attr_accessor :swish
1472
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
1473
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Twint)) }
1474
+ attr_accessor :twint
1475
+ # 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.
1476
+ sig { returns(T.nilable(String)) }
1477
+ attr_accessor :type
1478
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
1479
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::UsBankAccount)) }
1480
+ attr_accessor :us_bank_account
1481
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1482
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::WechatPay)) }
1483
+ attr_accessor :wechat_pay
1484
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1485
+ sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Zip)) }
1486
+ attr_accessor :zip
1487
+ sig {
1488
+ params(acss_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethod::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethod::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethod::CreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethod::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethod::CreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethod::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethod::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethod::CreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethod::CreateParams::Cashapp), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethod::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethod::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethod::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethod::CreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethod::CreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethod::CreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethod::CreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethod::CreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethod::CreateParams::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethod::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethod::CreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethod::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethod::CreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethod::CreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethod::CreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethod::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethod::CreateParams::Paypal), pix: T.nilable(::Stripe::PaymentMethod::CreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethod::CreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethod::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethod::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethod::CreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethod::CreateParams::Zip)).void
1489
+ }
1490
+ def initialize(
1491
+ acss_debit: nil,
1492
+ affirm: nil,
1493
+ afterpay_clearpay: nil,
1494
+ alipay: nil,
1495
+ allow_redisplay: nil,
1496
+ alma: nil,
1497
+ amazon_pay: nil,
1498
+ au_becs_debit: nil,
1499
+ bacs_debit: nil,
1500
+ bancontact: nil,
1501
+ billie: nil,
1502
+ billing_details: nil,
1503
+ blik: nil,
1504
+ boleto: nil,
1505
+ card: nil,
1506
+ cashapp: nil,
1507
+ customer: nil,
1508
+ customer_balance: nil,
1509
+ eps: nil,
1510
+ expand: nil,
1511
+ fpx: nil,
1512
+ giropay: nil,
1513
+ grabpay: nil,
1514
+ ideal: nil,
1515
+ interac_present: nil,
1516
+ kakao_pay: nil,
1517
+ klarna: nil,
1518
+ konbini: nil,
1519
+ kr_card: nil,
1520
+ link: nil,
1521
+ metadata: nil,
1522
+ mobilepay: nil,
1523
+ multibanco: nil,
1524
+ naver_pay: nil,
1525
+ nz_bank_account: nil,
1526
+ oxxo: nil,
1527
+ p24: nil,
1528
+ pay_by_bank: nil,
1529
+ payco: nil,
1530
+ payment_method: nil,
1531
+ paynow: nil,
1532
+ paypal: nil,
1533
+ pix: nil,
1534
+ promptpay: nil,
1535
+ radar_options: nil,
1536
+ revolut_pay: nil,
1537
+ samsung_pay: nil,
1538
+ satispay: nil,
1539
+ sepa_debit: nil,
1540
+ sofort: nil,
1541
+ swish: nil,
1542
+ twint: nil,
1543
+ type: nil,
1544
+ us_bank_account: nil,
1545
+ wechat_pay: nil,
1546
+ zip: nil
1547
+ ); end
1548
+ end
1549
+ class UpdateParams < Stripe::RequestParams
1550
+ class BillingDetails < Stripe::RequestParams
1551
+ class Address < Stripe::RequestParams
1552
+ # City, district, suburb, town, or village.
1553
+ sig { returns(T.nilable(String)) }
1554
+ attr_accessor :city
1555
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1556
+ sig { returns(T.nilable(String)) }
1557
+ attr_accessor :country
1558
+ # Address line 1 (e.g., street, PO Box, or company name).
1559
+ sig { returns(T.nilable(String)) }
1560
+ attr_accessor :line1
1561
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1562
+ sig { returns(T.nilable(String)) }
1563
+ attr_accessor :line2
1564
+ # ZIP or postal code.
1565
+ sig { returns(T.nilable(String)) }
1566
+ attr_accessor :postal_code
1567
+ # State, county, province, or region.
1568
+ sig { returns(T.nilable(String)) }
1569
+ attr_accessor :state
1570
+ sig {
1571
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
1572
+ }
1573
+ def initialize(
1574
+ city: nil,
1575
+ country: nil,
1576
+ line1: nil,
1577
+ line2: nil,
1578
+ postal_code: nil,
1579
+ state: nil
1580
+ ); end
1581
+ end
1582
+ # Billing address.
1583
+ sig {
1584
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))))
1585
+ }
1586
+ attr_accessor :address
1587
+ # Email address.
1588
+ sig { returns(T.nilable(T.nilable(String))) }
1589
+ attr_accessor :email
1590
+ # Full name.
1591
+ sig { returns(T.nilable(T.nilable(String))) }
1592
+ attr_accessor :name
1593
+ # Billing phone number (including extension).
1594
+ sig { returns(T.nilable(T.nilable(String))) }
1595
+ attr_accessor :phone
1596
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1597
+ sig { returns(T.nilable(String)) }
1598
+ attr_accessor :tax_id
1599
+ sig {
1600
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
1601
+ }
1602
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
1603
+ end
1604
+ class Card < Stripe::RequestParams
1605
+ class Networks < Stripe::RequestParams
1606
+ # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
1607
+ sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
1608
+ attr_accessor :preferred
1609
+ sig { params(preferred: T.nilable(T.nilable(T.any(String, String)))).void }
1610
+ def initialize(preferred: nil); end
1611
+ end
1612
+ # Two-digit number representing the card's expiration month.
1613
+ sig { returns(T.nilable(Integer)) }
1614
+ attr_accessor :exp_month
1615
+ # Four-digit number representing the card's expiration year.
1616
+ sig { returns(T.nilable(Integer)) }
1617
+ attr_accessor :exp_year
1618
+ # Contains information about card networks used to process the payment.
1619
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::Card::Networks)) }
1620
+ attr_accessor :networks
1621
+ sig {
1622
+ params(exp_month: T.nilable(Integer), exp_year: T.nilable(Integer), networks: T.nilable(::Stripe::PaymentMethod::UpdateParams::Card::Networks)).void
1623
+ }
1624
+ def initialize(exp_month: nil, exp_year: nil, networks: nil); end
1625
+ end
1626
+ class Link < Stripe::RequestParams; end
1627
+ class PayByBank < Stripe::RequestParams; end
1628
+ class UsBankAccount < Stripe::RequestParams
1629
+ # Bank account holder type.
1630
+ sig { returns(T.nilable(String)) }
1631
+ attr_accessor :account_holder_type
1632
+ # Bank account type.
1633
+ sig { returns(T.nilable(String)) }
1634
+ attr_accessor :account_type
1635
+ sig { params(account_holder_type: T.nilable(String), account_type: T.nilable(String)).void }
1636
+ def initialize(account_holder_type: nil, account_type: nil); end
1637
+ end
1638
+ # 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`.
1639
+ sig { returns(T.nilable(String)) }
1640
+ attr_accessor :allow_redisplay
1641
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1642
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails)) }
1643
+ attr_accessor :billing_details
1644
+ # If this is a `card` PaymentMethod, this hash contains the user's card details.
1645
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::Card)) }
1646
+ attr_accessor :card
1647
+ # Specifies which fields in the response should be expanded.
1648
+ sig { returns(T.nilable(T::Array[String])) }
1649
+ attr_accessor :expand
1650
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1651
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::Link)) }
1652
+ attr_accessor :link
1653
+ # 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`.
1654
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
1655
+ attr_accessor :metadata
1656
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1657
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::PayByBank)) }
1658
+ attr_accessor :pay_by_bank
1659
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
1660
+ sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::UsBankAccount)) }
1661
+ attr_accessor :us_bank_account
1662
+ sig {
1663
+ params(allow_redisplay: T.nilable(String), billing_details: T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails), card: T.nilable(::Stripe::PaymentMethod::UpdateParams::Card), expand: T.nilable(T::Array[String]), link: T.nilable(::Stripe::PaymentMethod::UpdateParams::Link), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), pay_by_bank: T.nilable(::Stripe::PaymentMethod::UpdateParams::PayByBank), us_bank_account: T.nilable(::Stripe::PaymentMethod::UpdateParams::UsBankAccount)).void
1664
+ }
1665
+ def initialize(
1666
+ allow_redisplay: nil,
1667
+ billing_details: nil,
1668
+ card: nil,
1669
+ expand: nil,
1670
+ link: nil,
1671
+ metadata: nil,
1672
+ pay_by_bank: nil,
1673
+ us_bank_account: nil
1674
+ ); end
1675
+ end
1676
+ class AttachParams < Stripe::RequestParams
1677
+ # The ID of the customer to which to attach the PaymentMethod.
1678
+ sig { returns(String) }
1679
+ attr_accessor :customer
1680
+ # Specifies which fields in the response should be expanded.
1681
+ sig { returns(T.nilable(T::Array[String])) }
1682
+ attr_accessor :expand
1683
+ sig { params(customer: String, expand: T.nilable(T::Array[String])).void }
1684
+ def initialize(customer: nil, expand: nil); end
1685
+ end
1686
+ class DetachParams < Stripe::RequestParams
1687
+ # Specifies which fields in the response should be expanded.
1688
+ sig { returns(T.nilable(T::Array[String])) }
1689
+ attr_accessor :expand
1690
+ sig { params(expand: T.nilable(T::Array[String])).void }
1691
+ def initialize(expand: nil); end
1692
+ end
1693
+ # Attaches a PaymentMethod object to a Customer.
1694
+ #
1695
+ # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
1696
+ # or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
1697
+ # These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
1698
+ # endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
1699
+ # future use, which makes later declines and payment friction more likely.
1700
+ # See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
1701
+ # future payments.
1702
+ #
1703
+ # To use this PaymentMethod as the default for invoice or subscription payments,
1704
+ # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
1705
+ # on the Customer to the PaymentMethod's ID.
1706
+ sig {
1707
+ params(params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1708
+ }
1709
+ def attach(params = {}, opts = {}); end
1710
+
1711
+ # Attaches a PaymentMethod object to a Customer.
1712
+ #
1713
+ # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
1714
+ # or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
1715
+ # These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
1716
+ # endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
1717
+ # future use, which makes later declines and payment friction more likely.
1718
+ # See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
1719
+ # future payments.
1720
+ #
1721
+ # To use this PaymentMethod as the default for invoice or subscription payments,
1722
+ # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
1723
+ # on the Customer to the PaymentMethod's ID.
1724
+ sig {
1725
+ params(payment_method: String, params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1726
+ }
1727
+ def self.attach(payment_method, params = {}, opts = {}); end
1728
+
1729
+ # Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
1730
+ #
1731
+ # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
1732
+ sig {
1733
+ params(params: T.any(::Stripe::PaymentMethod::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1734
+ }
1735
+ def self.create(params = {}, opts = {}); end
1736
+
1737
+ # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
1738
+ sig {
1739
+ params(params: T.any(::Stripe::PaymentMethod::DetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1740
+ }
1741
+ def detach(params = {}, opts = {}); end
1742
+
1743
+ # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
1744
+ sig {
1745
+ params(payment_method: String, params: T.any(::Stripe::PaymentMethod::DetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1746
+ }
1747
+ def self.detach(payment_method, params = {}, opts = {}); end
1748
+
1749
+ # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
1750
+ sig {
1751
+ params(params: T.any(::Stripe::PaymentMethod::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
1752
+ }
1753
+ def self.list(params = {}, opts = {}); end
1754
+
1755
+ # Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
1756
+ sig {
1757
+ params(payment_method: String, params: T.any(::Stripe::PaymentMethod::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
1758
+ }
1759
+ def self.update(payment_method, params = {}, opts = {}); end
1760
+ end
1761
+ end