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,1807 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ # ConfirmationTokens help transport client side data collected by Stripe JS over
7
+ # to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
8
+ # is successful, values present on the ConfirmationToken are written onto the Intent.
9
+ #
10
+ # To learn more about how to use ConfirmationToken, visit the related guides:
11
+ # - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server)
12
+ # - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation).
13
+ class ConfirmationToken < APIResource
14
+ class MandateData < Stripe::StripeObject
15
+ class CustomerAcceptance < Stripe::StripeObject
16
+ class Online < Stripe::StripeObject
17
+ # The IP address from which the Mandate was accepted by the customer.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :ip_address
20
+ # The user agent of the browser from which the Mandate was accepted by the customer.
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :user_agent
23
+ end
24
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
25
+ sig { returns(T.nilable(Online)) }
26
+ attr_reader :online
27
+ # The type of customer acceptance information included with the Mandate.
28
+ sig { returns(String) }
29
+ attr_reader :type
30
+ end
31
+ # This hash contains details about the customer acceptance of the Mandate.
32
+ sig { returns(CustomerAcceptance) }
33
+ attr_reader :customer_acceptance
34
+ end
35
+ class PaymentMethodOptions < Stripe::StripeObject
36
+ class Card < Stripe::StripeObject
37
+ class Installments < Stripe::StripeObject
38
+ class Plan < Stripe::StripeObject
39
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
40
+ sig { returns(T.nilable(Integer)) }
41
+ attr_reader :count
42
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
43
+ # One of `month`.
44
+ sig { returns(T.nilable(String)) }
45
+ attr_reader :interval
46
+ # Type of installment plan, one of `fixed_count`.
47
+ sig { returns(String) }
48
+ attr_reader :type
49
+ end
50
+ # Attribute for field plan
51
+ sig { returns(Plan) }
52
+ attr_reader :plan
53
+ end
54
+ # The `cvc_update` Token collected from the Payment Element.
55
+ sig { returns(T.nilable(String)) }
56
+ attr_reader :cvc_token
57
+ # Installment configuration for payments.
58
+ sig { returns(Installments) }
59
+ attr_reader :installments
60
+ end
61
+ # This hash contains the card payment method options.
62
+ sig { returns(T.nilable(Card)) }
63
+ attr_reader :card
64
+ end
65
+ class PaymentMethodPreview < Stripe::StripeObject
66
+ class AcssDebit < Stripe::StripeObject
67
+ # Name of the bank associated with the bank account.
68
+ sig { returns(T.nilable(String)) }
69
+ attr_reader :bank_name
70
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
71
+ sig { returns(T.nilable(String)) }
72
+ attr_reader :fingerprint
73
+ # Institution number of the bank account.
74
+ sig { returns(T.nilable(String)) }
75
+ attr_reader :institution_number
76
+ # Last four digits of the bank account number.
77
+ sig { returns(T.nilable(String)) }
78
+ attr_reader :last4
79
+ # Transit number of the bank account.
80
+ sig { returns(T.nilable(String)) }
81
+ attr_reader :transit_number
82
+ end
83
+ class Affirm < Stripe::StripeObject; end
84
+ class AfterpayClearpay < Stripe::StripeObject; end
85
+ class Alipay < Stripe::StripeObject; end
86
+ class Alma < Stripe::StripeObject; end
87
+ class AmazonPay < Stripe::StripeObject; end
88
+ class AuBecsDebit < Stripe::StripeObject
89
+ # Six-digit number identifying bank and branch associated with this bank account.
90
+ sig { returns(T.nilable(String)) }
91
+ attr_reader :bsb_number
92
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
93
+ sig { returns(T.nilable(String)) }
94
+ attr_reader :fingerprint
95
+ # Last four digits of the bank account number.
96
+ sig { returns(T.nilable(String)) }
97
+ attr_reader :last4
98
+ end
99
+ class BacsDebit < Stripe::StripeObject
100
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
101
+ sig { returns(T.nilable(String)) }
102
+ attr_reader :fingerprint
103
+ # Last four digits of the bank account number.
104
+ sig { returns(T.nilable(String)) }
105
+ attr_reader :last4
106
+ # Sort code of the bank account. (e.g., `10-20-30`)
107
+ sig { returns(T.nilable(String)) }
108
+ attr_reader :sort_code
109
+ end
110
+ class Bancontact < Stripe::StripeObject; end
111
+ class Billie < Stripe::StripeObject; end
112
+ class BillingDetails < Stripe::StripeObject
113
+ class Address < Stripe::StripeObject
114
+ # City, district, suburb, town, or village.
115
+ sig { returns(T.nilable(String)) }
116
+ attr_reader :city
117
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
118
+ sig { returns(T.nilable(String)) }
119
+ attr_reader :country
120
+ # Address line 1 (e.g., street, PO Box, or company name).
121
+ sig { returns(T.nilable(String)) }
122
+ attr_reader :line1
123
+ # Address line 2 (e.g., apartment, suite, unit, or building).
124
+ sig { returns(T.nilable(String)) }
125
+ attr_reader :line2
126
+ # ZIP or postal code.
127
+ sig { returns(T.nilable(String)) }
128
+ attr_reader :postal_code
129
+ # State, county, province, or region.
130
+ sig { returns(T.nilable(String)) }
131
+ attr_reader :state
132
+ end
133
+ # Billing address.
134
+ sig { returns(T.nilable(Address)) }
135
+ attr_reader :address
136
+ # Email address.
137
+ sig { returns(T.nilable(String)) }
138
+ attr_reader :email
139
+ # Full name.
140
+ sig { returns(T.nilable(String)) }
141
+ attr_reader :name
142
+ # Billing phone number (including extension).
143
+ sig { returns(T.nilable(String)) }
144
+ attr_reader :phone
145
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
146
+ sig { returns(T.nilable(String)) }
147
+ attr_reader :tax_id
148
+ end
149
+ class Blik < Stripe::StripeObject; end
150
+ class Boleto < Stripe::StripeObject
151
+ # Uniquely identifies the customer tax id (CNPJ or CPF)
152
+ sig { returns(String) }
153
+ attr_reader :tax_id
154
+ end
155
+ class Card < Stripe::StripeObject
156
+ class Checks < Stripe::StripeObject
157
+ # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
158
+ sig { returns(T.nilable(String)) }
159
+ attr_reader :address_line1_check
160
+ # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
161
+ sig { returns(T.nilable(String)) }
162
+ attr_reader :address_postal_code_check
163
+ # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
164
+ sig { returns(T.nilable(String)) }
165
+ attr_reader :cvc_check
166
+ end
167
+ class GeneratedFrom < Stripe::StripeObject
168
+ class PaymentMethodDetails < Stripe::StripeObject
169
+ class CardPresent < Stripe::StripeObject
170
+ class Offline < Stripe::StripeObject
171
+ # Time at which the payment was collected while offline
172
+ sig { returns(T.nilable(Integer)) }
173
+ attr_reader :stored_at
174
+ # The method used to process this payment method offline. Only deferred is allowed.
175
+ sig { returns(T.nilable(String)) }
176
+ attr_reader :type
177
+ end
178
+ class Receipt < Stripe::StripeObject
179
+ # The type of account being debited or credited
180
+ sig { returns(String) }
181
+ attr_reader :account_type
182
+ # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
183
+ sig { returns(T.nilable(String)) }
184
+ attr_reader :application_cryptogram
185
+ # Mnenomic of the Application Identifier.
186
+ sig { returns(T.nilable(String)) }
187
+ attr_reader :application_preferred_name
188
+ # Identifier for this transaction.
189
+ sig { returns(T.nilable(String)) }
190
+ attr_reader :authorization_code
191
+ # EMV tag 8A. A code returned by the card issuer.
192
+ sig { returns(T.nilable(String)) }
193
+ attr_reader :authorization_response_code
194
+ # 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`.
195
+ sig { returns(T.nilable(String)) }
196
+ attr_reader :cardholder_verification_method
197
+ # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
198
+ sig { returns(T.nilable(String)) }
199
+ attr_reader :dedicated_file_name
200
+ # The outcome of a series of EMV functions performed by the card reader.
201
+ sig { returns(T.nilable(String)) }
202
+ attr_reader :terminal_verification_results
203
+ # An indication of various EMV functions performed during the transaction.
204
+ sig { returns(T.nilable(String)) }
205
+ attr_reader :transaction_status_information
206
+ end
207
+ class Wallet < Stripe::StripeObject
208
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
209
+ sig { returns(String) }
210
+ attr_reader :type
211
+ end
212
+ # The authorized amount
213
+ sig { returns(T.nilable(Integer)) }
214
+ attr_reader :amount_authorized
215
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
216
+ sig { returns(T.nilable(String)) }
217
+ attr_reader :brand
218
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
219
+ sig { returns(T.nilable(String)) }
220
+ attr_reader :brand_product
221
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
222
+ sig { returns(Integer) }
223
+ attr_reader :capture_before
224
+ # 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.
225
+ sig { returns(T.nilable(String)) }
226
+ attr_reader :cardholder_name
227
+ # 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.
228
+ sig { returns(T.nilable(String)) }
229
+ attr_reader :country
230
+ # 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.)
231
+ sig { returns(T.nilable(String)) }
232
+ attr_reader :description
233
+ # Authorization response cryptogram.
234
+ sig { returns(T.nilable(String)) }
235
+ attr_reader :emv_auth_data
236
+ # Two-digit number representing the card's expiration month.
237
+ sig { returns(Integer) }
238
+ attr_reader :exp_month
239
+ # Four-digit number representing the card's expiration year.
240
+ sig { returns(Integer) }
241
+ attr_reader :exp_year
242
+ # 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.
243
+ #
244
+ # *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.*
245
+ sig { returns(T.nilable(String)) }
246
+ attr_reader :fingerprint
247
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
248
+ sig { returns(T.nilable(String)) }
249
+ attr_reader :funding
250
+ # 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.
251
+ sig { returns(T.nilable(String)) }
252
+ attr_reader :generated_card
253
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
254
+ sig { returns(T.nilable(String)) }
255
+ attr_reader :iin
256
+ # 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).
257
+ sig { returns(T::Boolean) }
258
+ attr_reader :incremental_authorization_supported
259
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
260
+ sig { returns(T.nilable(String)) }
261
+ attr_reader :issuer
262
+ # The last four digits of the card.
263
+ sig { returns(T.nilable(String)) }
264
+ attr_reader :last4
265
+ # 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`.
266
+ sig { returns(T.nilable(String)) }
267
+ attr_reader :network
268
+ # 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.
269
+ sig { returns(T.nilable(String)) }
270
+ attr_reader :network_transaction_id
271
+ # Details about payments collected offline.
272
+ sig { returns(T.nilable(Offline)) }
273
+ attr_reader :offline
274
+ # Defines whether the authorized amount can be over-captured or not
275
+ sig { returns(T::Boolean) }
276
+ attr_reader :overcapture_supported
277
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
278
+ sig { returns(T.nilable(T::Array[String])) }
279
+ attr_reader :preferred_locales
280
+ # How card details were read in this transaction.
281
+ sig { returns(T.nilable(String)) }
282
+ attr_reader :read_method
283
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
284
+ sig { returns(T.nilable(Receipt)) }
285
+ attr_reader :receipt
286
+ # Attribute for field wallet
287
+ sig { returns(Wallet) }
288
+ attr_reader :wallet
289
+ end
290
+ # Attribute for field card_present
291
+ sig { returns(CardPresent) }
292
+ attr_reader :card_present
293
+ # The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
294
+ sig { returns(String) }
295
+ attr_reader :type
296
+ end
297
+ # The charge that created this object.
298
+ sig { returns(T.nilable(String)) }
299
+ attr_reader :charge
300
+ # Transaction-specific details of the payment method used in the payment.
301
+ sig { returns(T.nilable(PaymentMethodDetails)) }
302
+ attr_reader :payment_method_details
303
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
304
+ sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
305
+ attr_reader :setup_attempt
306
+ end
307
+ class Networks < Stripe::StripeObject
308
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
309
+ sig { returns(T::Array[String]) }
310
+ attr_reader :available
311
+ # 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.
312
+ sig { returns(T.nilable(String)) }
313
+ attr_reader :preferred
314
+ end
315
+ class ThreeDSecureUsage < Stripe::StripeObject
316
+ # Whether 3D Secure is supported on this card.
317
+ sig { returns(T::Boolean) }
318
+ attr_reader :supported
319
+ end
320
+ class Wallet < Stripe::StripeObject
321
+ class AmexExpressCheckout < Stripe::StripeObject; end
322
+ class ApplePay < Stripe::StripeObject; end
323
+ class GooglePay < Stripe::StripeObject; end
324
+ class Link < Stripe::StripeObject; end
325
+ class Masterpass < Stripe::StripeObject
326
+ class BillingAddress < Stripe::StripeObject
327
+ # City, district, suburb, town, or village.
328
+ sig { returns(T.nilable(String)) }
329
+ attr_reader :city
330
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
331
+ sig { returns(T.nilable(String)) }
332
+ attr_reader :country
333
+ # Address line 1 (e.g., street, PO Box, or company name).
334
+ sig { returns(T.nilable(String)) }
335
+ attr_reader :line1
336
+ # Address line 2 (e.g., apartment, suite, unit, or building).
337
+ sig { returns(T.nilable(String)) }
338
+ attr_reader :line2
339
+ # ZIP or postal code.
340
+ sig { returns(T.nilable(String)) }
341
+ attr_reader :postal_code
342
+ # State, county, province, or region.
343
+ sig { returns(T.nilable(String)) }
344
+ attr_reader :state
345
+ end
346
+ class ShippingAddress < Stripe::StripeObject
347
+ # City, district, suburb, town, or village.
348
+ sig { returns(T.nilable(String)) }
349
+ attr_reader :city
350
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
351
+ sig { returns(T.nilable(String)) }
352
+ attr_reader :country
353
+ # Address line 1 (e.g., street, PO Box, or company name).
354
+ sig { returns(T.nilable(String)) }
355
+ attr_reader :line1
356
+ # Address line 2 (e.g., apartment, suite, unit, or building).
357
+ sig { returns(T.nilable(String)) }
358
+ attr_reader :line2
359
+ # ZIP or postal code.
360
+ sig { returns(T.nilable(String)) }
361
+ attr_reader :postal_code
362
+ # State, county, province, or region.
363
+ sig { returns(T.nilable(String)) }
364
+ attr_reader :state
365
+ end
366
+ # 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.
367
+ sig { returns(T.nilable(BillingAddress)) }
368
+ attr_reader :billing_address
369
+ # 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.
370
+ sig { returns(T.nilable(String)) }
371
+ attr_reader :email
372
+ # 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.
373
+ sig { returns(T.nilable(String)) }
374
+ attr_reader :name
375
+ # 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.
376
+ sig { returns(T.nilable(ShippingAddress)) }
377
+ attr_reader :shipping_address
378
+ end
379
+ class SamsungPay < Stripe::StripeObject; end
380
+ class VisaCheckout < Stripe::StripeObject
381
+ class BillingAddress < Stripe::StripeObject
382
+ # City, district, suburb, town, or village.
383
+ sig { returns(T.nilable(String)) }
384
+ attr_reader :city
385
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
386
+ sig { returns(T.nilable(String)) }
387
+ attr_reader :country
388
+ # Address line 1 (e.g., street, PO Box, or company name).
389
+ sig { returns(T.nilable(String)) }
390
+ attr_reader :line1
391
+ # Address line 2 (e.g., apartment, suite, unit, or building).
392
+ sig { returns(T.nilable(String)) }
393
+ attr_reader :line2
394
+ # ZIP or postal code.
395
+ sig { returns(T.nilable(String)) }
396
+ attr_reader :postal_code
397
+ # State, county, province, or region.
398
+ sig { returns(T.nilable(String)) }
399
+ attr_reader :state
400
+ end
401
+ class ShippingAddress < Stripe::StripeObject
402
+ # City, district, suburb, town, or village.
403
+ sig { returns(T.nilable(String)) }
404
+ attr_reader :city
405
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
406
+ sig { returns(T.nilable(String)) }
407
+ attr_reader :country
408
+ # Address line 1 (e.g., street, PO Box, or company name).
409
+ sig { returns(T.nilable(String)) }
410
+ attr_reader :line1
411
+ # Address line 2 (e.g., apartment, suite, unit, or building).
412
+ sig { returns(T.nilable(String)) }
413
+ attr_reader :line2
414
+ # ZIP or postal code.
415
+ sig { returns(T.nilable(String)) }
416
+ attr_reader :postal_code
417
+ # State, county, province, or region.
418
+ sig { returns(T.nilable(String)) }
419
+ attr_reader :state
420
+ end
421
+ # 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.
422
+ sig { returns(T.nilable(BillingAddress)) }
423
+ attr_reader :billing_address
424
+ # 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.
425
+ sig { returns(T.nilable(String)) }
426
+ attr_reader :email
427
+ # 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.
428
+ sig { returns(T.nilable(String)) }
429
+ attr_reader :name
430
+ # 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.
431
+ sig { returns(T.nilable(ShippingAddress)) }
432
+ attr_reader :shipping_address
433
+ end
434
+ # Attribute for field amex_express_checkout
435
+ sig { returns(AmexExpressCheckout) }
436
+ attr_reader :amex_express_checkout
437
+ # Attribute for field apple_pay
438
+ sig { returns(ApplePay) }
439
+ attr_reader :apple_pay
440
+ # (For tokenized numbers only.) The last four digits of the device account number.
441
+ sig { returns(T.nilable(String)) }
442
+ attr_reader :dynamic_last4
443
+ # Attribute for field google_pay
444
+ sig { returns(GooglePay) }
445
+ attr_reader :google_pay
446
+ # Attribute for field link
447
+ sig { returns(Link) }
448
+ attr_reader :link
449
+ # Attribute for field masterpass
450
+ sig { returns(Masterpass) }
451
+ attr_reader :masterpass
452
+ # Attribute for field samsung_pay
453
+ sig { returns(SamsungPay) }
454
+ attr_reader :samsung_pay
455
+ # 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.
456
+ sig { returns(String) }
457
+ attr_reader :type
458
+ # Attribute for field visa_checkout
459
+ sig { returns(VisaCheckout) }
460
+ attr_reader :visa_checkout
461
+ end
462
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
463
+ sig { returns(String) }
464
+ attr_reader :brand
465
+ # Checks on Card address and CVC if provided.
466
+ sig { returns(T.nilable(Checks)) }
467
+ attr_reader :checks
468
+ # 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.
469
+ sig { returns(T.nilable(String)) }
470
+ attr_reader :country
471
+ # 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.)
472
+ sig { returns(T.nilable(String)) }
473
+ attr_reader :description
474
+ # 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.
475
+ sig { returns(T.nilable(String)) }
476
+ attr_reader :display_brand
477
+ # Two-digit number representing the card's expiration month.
478
+ sig { returns(Integer) }
479
+ attr_reader :exp_month
480
+ # Four-digit number representing the card's expiration year.
481
+ sig { returns(Integer) }
482
+ attr_reader :exp_year
483
+ # 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.
484
+ #
485
+ # *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.*
486
+ sig { returns(T.nilable(String)) }
487
+ attr_reader :fingerprint
488
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
489
+ sig { returns(String) }
490
+ attr_reader :funding
491
+ # Details of the original PaymentMethod that created this object.
492
+ sig { returns(T.nilable(GeneratedFrom)) }
493
+ attr_reader :generated_from
494
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
495
+ sig { returns(T.nilable(String)) }
496
+ attr_reader :iin
497
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
498
+ sig { returns(T.nilable(String)) }
499
+ attr_reader :issuer
500
+ # The last four digits of the card.
501
+ sig { returns(String) }
502
+ attr_reader :last4
503
+ # Contains information about card networks that can be used to process the payment.
504
+ sig { returns(T.nilable(Networks)) }
505
+ attr_reader :networks
506
+ # Status of a card based on the card issuer.
507
+ sig { returns(T.nilable(String)) }
508
+ attr_reader :regulated_status
509
+ # Contains details on how this Card may be used for 3D Secure authentication.
510
+ sig { returns(T.nilable(ThreeDSecureUsage)) }
511
+ attr_reader :three_d_secure_usage
512
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
513
+ sig { returns(T.nilable(Wallet)) }
514
+ attr_reader :wallet
515
+ end
516
+ class CardPresent < Stripe::StripeObject
517
+ class Networks < Stripe::StripeObject
518
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
519
+ sig { returns(T::Array[String]) }
520
+ attr_reader :available
521
+ # The preferred network for the card.
522
+ sig { returns(T.nilable(String)) }
523
+ attr_reader :preferred
524
+ end
525
+ class Offline < Stripe::StripeObject
526
+ # Time at which the payment was collected while offline
527
+ sig { returns(T.nilable(Integer)) }
528
+ attr_reader :stored_at
529
+ # The method used to process this payment method offline. Only deferred is allowed.
530
+ sig { returns(T.nilable(String)) }
531
+ attr_reader :type
532
+ end
533
+ class Wallet < Stripe::StripeObject
534
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
535
+ sig { returns(String) }
536
+ attr_reader :type
537
+ end
538
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
539
+ sig { returns(T.nilable(String)) }
540
+ attr_reader :brand
541
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
542
+ sig { returns(T.nilable(String)) }
543
+ attr_reader :brand_product
544
+ # 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.
545
+ sig { returns(T.nilable(String)) }
546
+ attr_reader :cardholder_name
547
+ # 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.
548
+ sig { returns(T.nilable(String)) }
549
+ attr_reader :country
550
+ # 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.)
551
+ sig { returns(T.nilable(String)) }
552
+ attr_reader :description
553
+ # Two-digit number representing the card's expiration month.
554
+ sig { returns(Integer) }
555
+ attr_reader :exp_month
556
+ # Four-digit number representing the card's expiration year.
557
+ sig { returns(Integer) }
558
+ attr_reader :exp_year
559
+ # 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.
560
+ #
561
+ # *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.*
562
+ sig { returns(T.nilable(String)) }
563
+ attr_reader :fingerprint
564
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
565
+ sig { returns(T.nilable(String)) }
566
+ attr_reader :funding
567
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
568
+ sig { returns(T.nilable(String)) }
569
+ attr_reader :iin
570
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
571
+ sig { returns(T.nilable(String)) }
572
+ attr_reader :issuer
573
+ # The last four digits of the card.
574
+ sig { returns(T.nilable(String)) }
575
+ attr_reader :last4
576
+ # Contains information about card networks that can be used to process the payment.
577
+ sig { returns(T.nilable(Networks)) }
578
+ attr_reader :networks
579
+ # Details about payment methods collected offline.
580
+ sig { returns(T.nilable(Offline)) }
581
+ attr_reader :offline
582
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
583
+ sig { returns(T.nilable(T::Array[String])) }
584
+ attr_reader :preferred_locales
585
+ # How card details were read in this transaction.
586
+ sig { returns(T.nilable(String)) }
587
+ attr_reader :read_method
588
+ # Attribute for field wallet
589
+ sig { returns(Wallet) }
590
+ attr_reader :wallet
591
+ end
592
+ class Cashapp < Stripe::StripeObject
593
+ # A unique and immutable identifier assigned by Cash App to every buyer.
594
+ sig { returns(T.nilable(String)) }
595
+ attr_reader :buyer_id
596
+ # A public identifier for buyers using Cash App.
597
+ sig { returns(T.nilable(String)) }
598
+ attr_reader :cashtag
599
+ end
600
+ class CustomerBalance < Stripe::StripeObject; end
601
+ class Eps < Stripe::StripeObject
602
+ # 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`.
603
+ sig { returns(T.nilable(String)) }
604
+ attr_reader :bank
605
+ end
606
+ class Fpx < Stripe::StripeObject
607
+ # Account holder type, if provided. Can be one of `individual` or `company`.
608
+ sig { returns(T.nilable(String)) }
609
+ attr_reader :account_holder_type
610
+ # 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`.
611
+ sig { returns(String) }
612
+ attr_reader :bank
613
+ end
614
+ class Giropay < Stripe::StripeObject; end
615
+ class Grabpay < Stripe::StripeObject; end
616
+ class Ideal < Stripe::StripeObject
617
+ # 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`.
618
+ sig { returns(T.nilable(String)) }
619
+ attr_reader :bank
620
+ # The Bank Identifier Code of the customer's bank, if the bank was provided.
621
+ sig { returns(T.nilable(String)) }
622
+ attr_reader :bic
623
+ end
624
+ class InteracPresent < Stripe::StripeObject
625
+ class Networks < Stripe::StripeObject
626
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
627
+ sig { returns(T::Array[String]) }
628
+ attr_reader :available
629
+ # The preferred network for the card.
630
+ sig { returns(T.nilable(String)) }
631
+ attr_reader :preferred
632
+ end
633
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
634
+ sig { returns(T.nilable(String)) }
635
+ attr_reader :brand
636
+ # 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.
637
+ sig { returns(T.nilable(String)) }
638
+ attr_reader :cardholder_name
639
+ # 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.
640
+ sig { returns(T.nilable(String)) }
641
+ attr_reader :country
642
+ # 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.)
643
+ sig { returns(T.nilable(String)) }
644
+ attr_reader :description
645
+ # Two-digit number representing the card's expiration month.
646
+ sig { returns(Integer) }
647
+ attr_reader :exp_month
648
+ # Four-digit number representing the card's expiration year.
649
+ sig { returns(Integer) }
650
+ attr_reader :exp_year
651
+ # 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.
652
+ #
653
+ # *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.*
654
+ sig { returns(T.nilable(String)) }
655
+ attr_reader :fingerprint
656
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
657
+ sig { returns(T.nilable(String)) }
658
+ attr_reader :funding
659
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
660
+ sig { returns(T.nilable(String)) }
661
+ attr_reader :iin
662
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
663
+ sig { returns(T.nilable(String)) }
664
+ attr_reader :issuer
665
+ # The last four digits of the card.
666
+ sig { returns(T.nilable(String)) }
667
+ attr_reader :last4
668
+ # Contains information about card networks that can be used to process the payment.
669
+ sig { returns(T.nilable(Networks)) }
670
+ attr_reader :networks
671
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
672
+ sig { returns(T.nilable(T::Array[String])) }
673
+ attr_reader :preferred_locales
674
+ # How card details were read in this transaction.
675
+ sig { returns(T.nilable(String)) }
676
+ attr_reader :read_method
677
+ end
678
+ class KakaoPay < Stripe::StripeObject; end
679
+ class Klarna < Stripe::StripeObject
680
+ class Dob < Stripe::StripeObject
681
+ # The day of birth, between 1 and 31.
682
+ sig { returns(T.nilable(Integer)) }
683
+ attr_reader :day
684
+ # The month of birth, between 1 and 12.
685
+ sig { returns(T.nilable(Integer)) }
686
+ attr_reader :month
687
+ # The four-digit year of birth.
688
+ sig { returns(T.nilable(Integer)) }
689
+ attr_reader :year
690
+ end
691
+ # The customer's date of birth, if provided.
692
+ sig { returns(T.nilable(Dob)) }
693
+ attr_reader :dob
694
+ end
695
+ class Konbini < Stripe::StripeObject; end
696
+ class KrCard < Stripe::StripeObject
697
+ # The local credit or debit card brand.
698
+ sig { returns(T.nilable(String)) }
699
+ attr_reader :brand
700
+ # The last four digits of the card. This may not be present for American Express cards.
701
+ sig { returns(T.nilable(String)) }
702
+ attr_reader :last4
703
+ end
704
+ class Link < Stripe::StripeObject
705
+ # Account owner's email address.
706
+ sig { returns(T.nilable(String)) }
707
+ attr_reader :email
708
+ # [Deprecated] This is a legacy parameter that no longer has any function.
709
+ sig { returns(String) }
710
+ attr_reader :persistent_token
711
+ end
712
+ class Mobilepay < Stripe::StripeObject; end
713
+ class Multibanco < Stripe::StripeObject; end
714
+ class NaverPay < Stripe::StripeObject
715
+ # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
716
+ sig { returns(T.nilable(String)) }
717
+ attr_reader :buyer_id
718
+ # Whether to fund this transaction with Naver Pay points or a card.
719
+ sig { returns(String) }
720
+ attr_reader :funding
721
+ end
722
+ class NzBankAccount < Stripe::StripeObject
723
+ # 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.
724
+ sig { returns(T.nilable(String)) }
725
+ attr_reader :account_holder_name
726
+ # The numeric code for the bank account's bank.
727
+ sig { returns(String) }
728
+ attr_reader :bank_code
729
+ # The name of the bank.
730
+ sig { returns(String) }
731
+ attr_reader :bank_name
732
+ # The numeric code for the bank account's bank branch.
733
+ sig { returns(String) }
734
+ attr_reader :branch_code
735
+ # Last four digits of the bank account number.
736
+ sig { returns(String) }
737
+ attr_reader :last4
738
+ # The suffix of the bank account number.
739
+ sig { returns(T.nilable(String)) }
740
+ attr_reader :suffix
741
+ end
742
+ class Oxxo < Stripe::StripeObject; end
743
+ class P24 < Stripe::StripeObject
744
+ # The customer's bank, if provided.
745
+ sig { returns(T.nilable(String)) }
746
+ attr_reader :bank
747
+ end
748
+ class PayByBank < Stripe::StripeObject; end
749
+ class Payco < Stripe::StripeObject; end
750
+ class Paynow < Stripe::StripeObject; end
751
+ class Paypal < Stripe::StripeObject
752
+ # 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.
753
+ sig { returns(T.nilable(String)) }
754
+ attr_reader :country
755
+ # Owner's email. Values are provided by PayPal directly
756
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
757
+ sig { returns(T.nilable(String)) }
758
+ attr_reader :payer_email
759
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
760
+ sig { returns(T.nilable(String)) }
761
+ attr_reader :payer_id
762
+ end
763
+ class Pix < Stripe::StripeObject; end
764
+ class Promptpay < Stripe::StripeObject; end
765
+ class RevolutPay < Stripe::StripeObject; end
766
+ class SamsungPay < Stripe::StripeObject; end
767
+ class Satispay < Stripe::StripeObject; end
768
+ class SepaDebit < Stripe::StripeObject
769
+ class GeneratedFrom < Stripe::StripeObject
770
+ # The ID of the Charge that generated this PaymentMethod, if any.
771
+ sig { returns(T.nilable(T.any(String, Stripe::Charge))) }
772
+ attr_reader :charge
773
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
774
+ sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
775
+ attr_reader :setup_attempt
776
+ end
777
+ # Bank code of bank associated with the bank account.
778
+ sig { returns(T.nilable(String)) }
779
+ attr_reader :bank_code
780
+ # Branch code of bank associated with the bank account.
781
+ sig { returns(T.nilable(String)) }
782
+ attr_reader :branch_code
783
+ # Two-letter ISO code representing the country the bank account is located in.
784
+ sig { returns(T.nilable(String)) }
785
+ attr_reader :country
786
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
787
+ sig { returns(T.nilable(String)) }
788
+ attr_reader :fingerprint
789
+ # Information about the object that generated this PaymentMethod.
790
+ sig { returns(T.nilable(GeneratedFrom)) }
791
+ attr_reader :generated_from
792
+ # Last four characters of the IBAN.
793
+ sig { returns(T.nilable(String)) }
794
+ attr_reader :last4
795
+ end
796
+ class Sofort < Stripe::StripeObject
797
+ # Two-letter ISO code representing the country the bank account is located in.
798
+ sig { returns(T.nilable(String)) }
799
+ attr_reader :country
800
+ end
801
+ class Swish < Stripe::StripeObject; end
802
+ class Twint < Stripe::StripeObject; end
803
+ class UsBankAccount < Stripe::StripeObject
804
+ class Networks < Stripe::StripeObject
805
+ # The preferred network.
806
+ sig { returns(T.nilable(String)) }
807
+ attr_reader :preferred
808
+ # All supported networks.
809
+ sig { returns(T::Array[String]) }
810
+ attr_reader :supported
811
+ end
812
+ class StatusDetails < Stripe::StripeObject
813
+ class Blocked < Stripe::StripeObject
814
+ # The ACH network code that resulted in this block.
815
+ sig { returns(T.nilable(String)) }
816
+ attr_reader :network_code
817
+ # The reason why this PaymentMethod's fingerprint has been blocked
818
+ sig { returns(T.nilable(String)) }
819
+ attr_reader :reason
820
+ end
821
+ # Attribute for field blocked
822
+ sig { returns(Blocked) }
823
+ attr_reader :blocked
824
+ end
825
+ # Account holder type: individual or company.
826
+ sig { returns(T.nilable(String)) }
827
+ attr_reader :account_holder_type
828
+ # Account type: checkings or savings. Defaults to checking if omitted.
829
+ sig { returns(T.nilable(String)) }
830
+ attr_reader :account_type
831
+ # The name of the bank.
832
+ sig { returns(T.nilable(String)) }
833
+ attr_reader :bank_name
834
+ # The ID of the Financial Connections Account used to create the payment method.
835
+ sig { returns(T.nilable(String)) }
836
+ attr_reader :financial_connections_account
837
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
838
+ sig { returns(T.nilable(String)) }
839
+ attr_reader :fingerprint
840
+ # Last four digits of the bank account number.
841
+ sig { returns(T.nilable(String)) }
842
+ attr_reader :last4
843
+ # Contains information about US bank account networks that can be used.
844
+ sig { returns(T.nilable(Networks)) }
845
+ attr_reader :networks
846
+ # Routing number of the bank account.
847
+ sig { returns(T.nilable(String)) }
848
+ attr_reader :routing_number
849
+ # Contains information about the future reusability of this PaymentMethod.
850
+ sig { returns(T.nilable(StatusDetails)) }
851
+ attr_reader :status_details
852
+ end
853
+ class WechatPay < Stripe::StripeObject; end
854
+ class Zip < Stripe::StripeObject; end
855
+ # Attribute for field acss_debit
856
+ sig { returns(AcssDebit) }
857
+ attr_reader :acss_debit
858
+ # Attribute for field affirm
859
+ sig { returns(Affirm) }
860
+ attr_reader :affirm
861
+ # Attribute for field afterpay_clearpay
862
+ sig { returns(AfterpayClearpay) }
863
+ attr_reader :afterpay_clearpay
864
+ # Attribute for field alipay
865
+ sig { returns(Alipay) }
866
+ attr_reader :alipay
867
+ # 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”.
868
+ sig { returns(String) }
869
+ attr_reader :allow_redisplay
870
+ # Attribute for field alma
871
+ sig { returns(Alma) }
872
+ attr_reader :alma
873
+ # Attribute for field amazon_pay
874
+ sig { returns(AmazonPay) }
875
+ attr_reader :amazon_pay
876
+ # Attribute for field au_becs_debit
877
+ sig { returns(AuBecsDebit) }
878
+ attr_reader :au_becs_debit
879
+ # Attribute for field bacs_debit
880
+ sig { returns(BacsDebit) }
881
+ attr_reader :bacs_debit
882
+ # Attribute for field bancontact
883
+ sig { returns(Bancontact) }
884
+ attr_reader :bancontact
885
+ # Attribute for field billie
886
+ sig { returns(Billie) }
887
+ attr_reader :billie
888
+ # Attribute for field billing_details
889
+ sig { returns(BillingDetails) }
890
+ attr_reader :billing_details
891
+ # Attribute for field blik
892
+ sig { returns(Blik) }
893
+ attr_reader :blik
894
+ # Attribute for field boleto
895
+ sig { returns(Boleto) }
896
+ attr_reader :boleto
897
+ # Attribute for field card
898
+ sig { returns(Card) }
899
+ attr_reader :card
900
+ # Attribute for field card_present
901
+ sig { returns(CardPresent) }
902
+ attr_reader :card_present
903
+ # Attribute for field cashapp
904
+ sig { returns(Cashapp) }
905
+ attr_reader :cashapp
906
+ # 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.
907
+ sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
908
+ attr_reader :customer
909
+ # Attribute for field customer_balance
910
+ sig { returns(CustomerBalance) }
911
+ attr_reader :customer_balance
912
+ # Attribute for field eps
913
+ sig { returns(Eps) }
914
+ attr_reader :eps
915
+ # Attribute for field fpx
916
+ sig { returns(Fpx) }
917
+ attr_reader :fpx
918
+ # Attribute for field giropay
919
+ sig { returns(Giropay) }
920
+ attr_reader :giropay
921
+ # Attribute for field grabpay
922
+ sig { returns(Grabpay) }
923
+ attr_reader :grabpay
924
+ # Attribute for field ideal
925
+ sig { returns(Ideal) }
926
+ attr_reader :ideal
927
+ # Attribute for field interac_present
928
+ sig { returns(InteracPresent) }
929
+ attr_reader :interac_present
930
+ # Attribute for field kakao_pay
931
+ sig { returns(KakaoPay) }
932
+ attr_reader :kakao_pay
933
+ # Attribute for field klarna
934
+ sig { returns(Klarna) }
935
+ attr_reader :klarna
936
+ # Attribute for field konbini
937
+ sig { returns(Konbini) }
938
+ attr_reader :konbini
939
+ # Attribute for field kr_card
940
+ sig { returns(KrCard) }
941
+ attr_reader :kr_card
942
+ # Attribute for field link
943
+ sig { returns(Link) }
944
+ attr_reader :link
945
+ # Attribute for field mobilepay
946
+ sig { returns(Mobilepay) }
947
+ attr_reader :mobilepay
948
+ # Attribute for field multibanco
949
+ sig { returns(Multibanco) }
950
+ attr_reader :multibanco
951
+ # Attribute for field naver_pay
952
+ sig { returns(NaverPay) }
953
+ attr_reader :naver_pay
954
+ # Attribute for field nz_bank_account
955
+ sig { returns(NzBankAccount) }
956
+ attr_reader :nz_bank_account
957
+ # Attribute for field oxxo
958
+ sig { returns(Oxxo) }
959
+ attr_reader :oxxo
960
+ # Attribute for field p24
961
+ sig { returns(P24) }
962
+ attr_reader :p24
963
+ # Attribute for field pay_by_bank
964
+ sig { returns(PayByBank) }
965
+ attr_reader :pay_by_bank
966
+ # Attribute for field payco
967
+ sig { returns(Payco) }
968
+ attr_reader :payco
969
+ # Attribute for field paynow
970
+ sig { returns(Paynow) }
971
+ attr_reader :paynow
972
+ # Attribute for field paypal
973
+ sig { returns(Paypal) }
974
+ attr_reader :paypal
975
+ # Attribute for field pix
976
+ sig { returns(Pix) }
977
+ attr_reader :pix
978
+ # Attribute for field promptpay
979
+ sig { returns(Promptpay) }
980
+ attr_reader :promptpay
981
+ # Attribute for field revolut_pay
982
+ sig { returns(RevolutPay) }
983
+ attr_reader :revolut_pay
984
+ # Attribute for field samsung_pay
985
+ sig { returns(SamsungPay) }
986
+ attr_reader :samsung_pay
987
+ # Attribute for field satispay
988
+ sig { returns(Satispay) }
989
+ attr_reader :satispay
990
+ # Attribute for field sepa_debit
991
+ sig { returns(SepaDebit) }
992
+ attr_reader :sepa_debit
993
+ # Attribute for field sofort
994
+ sig { returns(Sofort) }
995
+ attr_reader :sofort
996
+ # Attribute for field swish
997
+ sig { returns(Swish) }
998
+ attr_reader :swish
999
+ # Attribute for field twint
1000
+ sig { returns(Twint) }
1001
+ attr_reader :twint
1002
+ # 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.
1003
+ sig { returns(String) }
1004
+ attr_reader :type
1005
+ # Attribute for field us_bank_account
1006
+ sig { returns(UsBankAccount) }
1007
+ attr_reader :us_bank_account
1008
+ # Attribute for field wechat_pay
1009
+ sig { returns(WechatPay) }
1010
+ attr_reader :wechat_pay
1011
+ # Attribute for field zip
1012
+ sig { returns(Zip) }
1013
+ attr_reader :zip
1014
+ end
1015
+ class Shipping < Stripe::StripeObject
1016
+ class Address < Stripe::StripeObject
1017
+ # City, district, suburb, town, or village.
1018
+ sig { returns(T.nilable(String)) }
1019
+ attr_reader :city
1020
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1021
+ sig { returns(T.nilable(String)) }
1022
+ attr_reader :country
1023
+ # Address line 1 (e.g., street, PO Box, or company name).
1024
+ sig { returns(T.nilable(String)) }
1025
+ attr_reader :line1
1026
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1027
+ sig { returns(T.nilable(String)) }
1028
+ attr_reader :line2
1029
+ # ZIP or postal code.
1030
+ sig { returns(T.nilable(String)) }
1031
+ attr_reader :postal_code
1032
+ # State, county, province, or region.
1033
+ sig { returns(T.nilable(String)) }
1034
+ attr_reader :state
1035
+ end
1036
+ # Attribute for field address
1037
+ sig { returns(Address) }
1038
+ attr_reader :address
1039
+ # Recipient name.
1040
+ sig { returns(String) }
1041
+ attr_reader :name
1042
+ # Recipient phone (including extension).
1043
+ sig { returns(T.nilable(String)) }
1044
+ attr_reader :phone
1045
+ end
1046
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1047
+ sig { returns(Integer) }
1048
+ attr_reader :created
1049
+ # Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
1050
+ sig { returns(T.nilable(Integer)) }
1051
+ attr_reader :expires_at
1052
+ # Unique identifier for the object.
1053
+ sig { returns(String) }
1054
+ attr_reader :id
1055
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1056
+ sig { returns(T::Boolean) }
1057
+ attr_reader :livemode
1058
+ # Data used for generating a Mandate.
1059
+ sig { returns(T.nilable(MandateData)) }
1060
+ attr_reader :mandate_data
1061
+ # String representing the object's type. Objects of the same type share the same value.
1062
+ sig { returns(String) }
1063
+ attr_reader :object
1064
+ # ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1065
+ sig { returns(T.nilable(String)) }
1066
+ attr_reader :payment_intent
1067
+ # Payment-method-specific configuration for this ConfirmationToken.
1068
+ sig { returns(T.nilable(PaymentMethodOptions)) }
1069
+ attr_reader :payment_method_options
1070
+ # Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
1071
+ sig { returns(T.nilable(PaymentMethodPreview)) }
1072
+ attr_reader :payment_method_preview
1073
+ # Return URL used to confirm the Intent.
1074
+ sig { returns(T.nilable(String)) }
1075
+ attr_reader :return_url
1076
+ # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
1077
+ #
1078
+ # The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
1079
+ sig { returns(T.nilable(String)) }
1080
+ attr_reader :setup_future_usage
1081
+ # ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1082
+ sig { returns(T.nilable(String)) }
1083
+ attr_reader :setup_intent
1084
+ # Shipping information collected on this ConfirmationToken.
1085
+ sig { returns(T.nilable(Shipping)) }
1086
+ attr_reader :shipping
1087
+ # Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken.
1088
+ sig { returns(T::Boolean) }
1089
+ attr_reader :use_stripe_sdk
1090
+ class CreateParams < Stripe::RequestParams
1091
+ class PaymentMethodData < Stripe::RequestParams
1092
+ class AcssDebit < Stripe::RequestParams
1093
+ # Customer's bank account number.
1094
+ sig { returns(String) }
1095
+ attr_accessor :account_number
1096
+ # Institution number of the customer's bank.
1097
+ sig { returns(String) }
1098
+ attr_accessor :institution_number
1099
+ # Transit number of the customer's bank.
1100
+ sig { returns(String) }
1101
+ attr_accessor :transit_number
1102
+ sig {
1103
+ params(account_number: String, institution_number: String, transit_number: String).void
1104
+ }
1105
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
1106
+ end
1107
+ class Affirm < Stripe::RequestParams; end
1108
+ class AfterpayClearpay < Stripe::RequestParams; end
1109
+ class Alipay < Stripe::RequestParams; end
1110
+ class Alma < Stripe::RequestParams; end
1111
+ class AmazonPay < Stripe::RequestParams; end
1112
+ class AuBecsDebit < Stripe::RequestParams
1113
+ # The account number for the bank account.
1114
+ sig { returns(String) }
1115
+ attr_accessor :account_number
1116
+ # Bank-State-Branch number of the bank account.
1117
+ sig { returns(String) }
1118
+ attr_accessor :bsb_number
1119
+ sig { params(account_number: String, bsb_number: String).void }
1120
+ def initialize(account_number: nil, bsb_number: nil); end
1121
+ end
1122
+ class BacsDebit < Stripe::RequestParams
1123
+ # Account number of the bank account that the funds will be debited from.
1124
+ sig { returns(T.nilable(String)) }
1125
+ attr_accessor :account_number
1126
+ # Sort code of the bank account. (e.g., `10-20-30`)
1127
+ sig { returns(T.nilable(String)) }
1128
+ attr_accessor :sort_code
1129
+ sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
1130
+ def initialize(account_number: nil, sort_code: nil); end
1131
+ end
1132
+ class Bancontact < Stripe::RequestParams; end
1133
+ class Billie < Stripe::RequestParams; end
1134
+ class BillingDetails < Stripe::RequestParams
1135
+ class Address < Stripe::RequestParams
1136
+ # City, district, suburb, town, or village.
1137
+ sig { returns(T.nilable(String)) }
1138
+ attr_accessor :city
1139
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1140
+ sig { returns(T.nilable(String)) }
1141
+ attr_accessor :country
1142
+ # Address line 1 (e.g., street, PO Box, or company name).
1143
+ sig { returns(T.nilable(String)) }
1144
+ attr_accessor :line1
1145
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1146
+ sig { returns(T.nilable(String)) }
1147
+ attr_accessor :line2
1148
+ # ZIP or postal code.
1149
+ sig { returns(T.nilable(String)) }
1150
+ attr_accessor :postal_code
1151
+ # State, county, province, or region.
1152
+ sig { returns(T.nilable(String)) }
1153
+ attr_accessor :state
1154
+ sig {
1155
+ 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
1156
+ }
1157
+ def initialize(
1158
+ city: nil,
1159
+ country: nil,
1160
+ line1: nil,
1161
+ line2: nil,
1162
+ postal_code: nil,
1163
+ state: nil
1164
+ ); end
1165
+ end
1166
+ # Billing address.
1167
+ sig {
1168
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails::Address))))
1169
+ }
1170
+ attr_accessor :address
1171
+ # Email address.
1172
+ sig { returns(T.nilable(T.nilable(String))) }
1173
+ attr_accessor :email
1174
+ # Full name.
1175
+ sig { returns(T.nilable(T.nilable(String))) }
1176
+ attr_accessor :name
1177
+ # Billing phone number (including extension).
1178
+ sig { returns(T.nilable(T.nilable(String))) }
1179
+ attr_accessor :phone
1180
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1181
+ sig { returns(T.nilable(String)) }
1182
+ attr_accessor :tax_id
1183
+ sig {
1184
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::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
1185
+ }
1186
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
1187
+ end
1188
+ class Blik < Stripe::RequestParams; end
1189
+ class Boleto < Stripe::RequestParams
1190
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
1191
+ sig { returns(String) }
1192
+ attr_accessor :tax_id
1193
+ sig { params(tax_id: String).void }
1194
+ def initialize(tax_id: nil); end
1195
+ end
1196
+ class Cashapp < Stripe::RequestParams; end
1197
+ class CustomerBalance < Stripe::RequestParams; end
1198
+ class Eps < Stripe::RequestParams
1199
+ # The customer's bank.
1200
+ sig { returns(T.nilable(String)) }
1201
+ attr_accessor :bank
1202
+ sig { params(bank: T.nilable(String)).void }
1203
+ def initialize(bank: nil); end
1204
+ end
1205
+ class Fpx < Stripe::RequestParams
1206
+ # Account holder type for FPX transaction
1207
+ sig { returns(T.nilable(String)) }
1208
+ attr_accessor :account_holder_type
1209
+ # The customer's bank.
1210
+ sig { returns(String) }
1211
+ attr_accessor :bank
1212
+ sig { params(account_holder_type: T.nilable(String), bank: String).void }
1213
+ def initialize(account_holder_type: nil, bank: nil); end
1214
+ end
1215
+ class Giropay < Stripe::RequestParams; end
1216
+ class Grabpay < Stripe::RequestParams; end
1217
+ class Ideal < Stripe::RequestParams
1218
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1219
+ sig { returns(T.nilable(String)) }
1220
+ attr_accessor :bank
1221
+ sig { params(bank: T.nilable(String)).void }
1222
+ def initialize(bank: nil); end
1223
+ end
1224
+ class InteracPresent < Stripe::RequestParams; end
1225
+ class KakaoPay < Stripe::RequestParams; end
1226
+ class Klarna < Stripe::RequestParams
1227
+ class Dob < Stripe::RequestParams
1228
+ # The day of birth, between 1 and 31.
1229
+ sig { returns(Integer) }
1230
+ attr_accessor :day
1231
+ # The month of birth, between 1 and 12.
1232
+ sig { returns(Integer) }
1233
+ attr_accessor :month
1234
+ # The four-digit year of birth.
1235
+ sig { returns(Integer) }
1236
+ attr_accessor :year
1237
+ sig { params(day: Integer, month: Integer, year: Integer).void }
1238
+ def initialize(day: nil, month: nil, year: nil); end
1239
+ end
1240
+ # Customer's date of birth
1241
+ sig {
1242
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna::Dob))
1243
+ }
1244
+ attr_accessor :dob
1245
+ sig {
1246
+ params(dob: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna::Dob)).void
1247
+ }
1248
+ def initialize(dob: nil); end
1249
+ end
1250
+ class Konbini < Stripe::RequestParams; end
1251
+ class KrCard < Stripe::RequestParams; end
1252
+ class Link < Stripe::RequestParams; end
1253
+ class Mobilepay < Stripe::RequestParams; end
1254
+ class Multibanco < Stripe::RequestParams; end
1255
+ class NaverPay < Stripe::RequestParams
1256
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
1257
+ sig { returns(T.nilable(String)) }
1258
+ attr_accessor :funding
1259
+ sig { params(funding: T.nilable(String)).void }
1260
+ def initialize(funding: nil); end
1261
+ end
1262
+ class NzBankAccount < Stripe::RequestParams
1263
+ # 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.
1264
+ sig { returns(T.nilable(String)) }
1265
+ attr_accessor :account_holder_name
1266
+ # The account number for the bank account.
1267
+ sig { returns(String) }
1268
+ attr_accessor :account_number
1269
+ # The numeric code for the bank account's bank.
1270
+ sig { returns(String) }
1271
+ attr_accessor :bank_code
1272
+ # The numeric code for the bank account's bank branch.
1273
+ sig { returns(String) }
1274
+ attr_accessor :branch_code
1275
+ # Attribute for param field reference
1276
+ sig { returns(T.nilable(String)) }
1277
+ attr_accessor :reference
1278
+ # The suffix of the bank account number.
1279
+ sig { returns(String) }
1280
+ attr_accessor :suffix
1281
+ sig {
1282
+ params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
1283
+ }
1284
+ def initialize(
1285
+ account_holder_name: nil,
1286
+ account_number: nil,
1287
+ bank_code: nil,
1288
+ branch_code: nil,
1289
+ reference: nil,
1290
+ suffix: nil
1291
+ ); end
1292
+ end
1293
+ class Oxxo < Stripe::RequestParams; end
1294
+ class P24 < Stripe::RequestParams
1295
+ # The customer's bank.
1296
+ sig { returns(T.nilable(String)) }
1297
+ attr_accessor :bank
1298
+ sig { params(bank: T.nilable(String)).void }
1299
+ def initialize(bank: nil); end
1300
+ end
1301
+ class PayByBank < Stripe::RequestParams; end
1302
+ class Payco < Stripe::RequestParams; end
1303
+ class Paynow < Stripe::RequestParams; end
1304
+ class Paypal < Stripe::RequestParams; end
1305
+ class Pix < Stripe::RequestParams; end
1306
+ class Promptpay < Stripe::RequestParams; end
1307
+ class RadarOptions < Stripe::RequestParams
1308
+ # 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.
1309
+ sig { returns(T.nilable(String)) }
1310
+ attr_accessor :session
1311
+ sig { params(session: T.nilable(String)).void }
1312
+ def initialize(session: nil); end
1313
+ end
1314
+ class RevolutPay < Stripe::RequestParams; end
1315
+ class SamsungPay < Stripe::RequestParams; end
1316
+ class Satispay < Stripe::RequestParams; end
1317
+ class SepaDebit < Stripe::RequestParams
1318
+ # IBAN of the bank account.
1319
+ sig { returns(String) }
1320
+ attr_accessor :iban
1321
+ sig { params(iban: String).void }
1322
+ def initialize(iban: nil); end
1323
+ end
1324
+ class Sofort < Stripe::RequestParams
1325
+ # Two-letter ISO code representing the country the bank account is located in.
1326
+ sig { returns(String) }
1327
+ attr_accessor :country
1328
+ sig { params(country: String).void }
1329
+ def initialize(country: nil); end
1330
+ end
1331
+ class Swish < Stripe::RequestParams; end
1332
+ class Twint < Stripe::RequestParams; end
1333
+ class UsBankAccount < Stripe::RequestParams
1334
+ # Account holder type: individual or company.
1335
+ sig { returns(T.nilable(String)) }
1336
+ attr_accessor :account_holder_type
1337
+ # Account number of the bank account.
1338
+ sig { returns(T.nilable(String)) }
1339
+ attr_accessor :account_number
1340
+ # Account type: checkings or savings. Defaults to checking if omitted.
1341
+ sig { returns(T.nilable(String)) }
1342
+ attr_accessor :account_type
1343
+ # The ID of a Financial Connections Account to use as a payment method.
1344
+ sig { returns(T.nilable(String)) }
1345
+ attr_accessor :financial_connections_account
1346
+ # Routing number of the bank account.
1347
+ sig { returns(T.nilable(String)) }
1348
+ attr_accessor :routing_number
1349
+ sig {
1350
+ 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
1351
+ }
1352
+ def initialize(
1353
+ account_holder_type: nil,
1354
+ account_number: nil,
1355
+ account_type: nil,
1356
+ financial_connections_account: nil,
1357
+ routing_number: nil
1358
+ ); end
1359
+ end
1360
+ class WechatPay < Stripe::RequestParams; end
1361
+ class Zip < Stripe::RequestParams; end
1362
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1363
+ sig {
1364
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AcssDebit))
1365
+ }
1366
+ attr_accessor :acss_debit
1367
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
1368
+ sig {
1369
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Affirm))
1370
+ }
1371
+ attr_accessor :affirm
1372
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
1373
+ sig {
1374
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AfterpayClearpay))
1375
+ }
1376
+ attr_accessor :afterpay_clearpay
1377
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
1378
+ sig {
1379
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alipay))
1380
+ }
1381
+ attr_accessor :alipay
1382
+ # 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`.
1383
+ sig { returns(T.nilable(String)) }
1384
+ attr_accessor :allow_redisplay
1385
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
1386
+ sig {
1387
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alma))
1388
+ }
1389
+ attr_accessor :alma
1390
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
1391
+ sig {
1392
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AmazonPay))
1393
+ }
1394
+ attr_accessor :amazon_pay
1395
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
1396
+ sig {
1397
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AuBecsDebit))
1398
+ }
1399
+ attr_accessor :au_becs_debit
1400
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
1401
+ sig {
1402
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BacsDebit))
1403
+ }
1404
+ attr_accessor :bacs_debit
1405
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1406
+ sig {
1407
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Bancontact))
1408
+ }
1409
+ attr_accessor :bancontact
1410
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
1411
+ sig {
1412
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Billie))
1413
+ }
1414
+ attr_accessor :billie
1415
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1416
+ sig {
1417
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails))
1418
+ }
1419
+ attr_accessor :billing_details
1420
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
1421
+ sig {
1422
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Blik))
1423
+ }
1424
+ attr_accessor :blik
1425
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
1426
+ sig {
1427
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Boleto))
1428
+ }
1429
+ attr_accessor :boleto
1430
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1431
+ sig {
1432
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Cashapp))
1433
+ }
1434
+ attr_accessor :cashapp
1435
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1436
+ sig {
1437
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::CustomerBalance))
1438
+ }
1439
+ attr_accessor :customer_balance
1440
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
1441
+ sig {
1442
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Eps))
1443
+ }
1444
+ attr_accessor :eps
1445
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
1446
+ sig {
1447
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Fpx))
1448
+ }
1449
+ attr_accessor :fpx
1450
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1451
+ sig {
1452
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Giropay))
1453
+ }
1454
+ attr_accessor :giropay
1455
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1456
+ sig {
1457
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Grabpay))
1458
+ }
1459
+ attr_accessor :grabpay
1460
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1461
+ sig {
1462
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Ideal))
1463
+ }
1464
+ attr_accessor :ideal
1465
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
1466
+ sig {
1467
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::InteracPresent))
1468
+ }
1469
+ attr_accessor :interac_present
1470
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
1471
+ sig {
1472
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KakaoPay))
1473
+ }
1474
+ attr_accessor :kakao_pay
1475
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1476
+ sig {
1477
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna))
1478
+ }
1479
+ attr_accessor :klarna
1480
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
1481
+ sig {
1482
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Konbini))
1483
+ }
1484
+ attr_accessor :konbini
1485
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
1486
+ sig {
1487
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KrCard))
1488
+ }
1489
+ attr_accessor :kr_card
1490
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1491
+ sig {
1492
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Link))
1493
+ }
1494
+ attr_accessor :link
1495
+ # 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`.
1496
+ sig { returns(T.nilable(T::Hash[String, String])) }
1497
+ attr_accessor :metadata
1498
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
1499
+ sig {
1500
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Mobilepay))
1501
+ }
1502
+ attr_accessor :mobilepay
1503
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
1504
+ sig {
1505
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Multibanco))
1506
+ }
1507
+ attr_accessor :multibanco
1508
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1509
+ sig {
1510
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NaverPay))
1511
+ }
1512
+ attr_accessor :naver_pay
1513
+ # If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
1514
+ sig {
1515
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NzBankAccount))
1516
+ }
1517
+ attr_accessor :nz_bank_account
1518
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
1519
+ sig {
1520
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Oxxo))
1521
+ }
1522
+ attr_accessor :oxxo
1523
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1524
+ sig {
1525
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::P24))
1526
+ }
1527
+ attr_accessor :p24
1528
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1529
+ sig {
1530
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::PayByBank))
1531
+ }
1532
+ attr_accessor :pay_by_bank
1533
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1534
+ sig {
1535
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payco))
1536
+ }
1537
+ attr_accessor :payco
1538
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
1539
+ sig {
1540
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paynow))
1541
+ }
1542
+ attr_accessor :paynow
1543
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1544
+ sig {
1545
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paypal))
1546
+ }
1547
+ attr_accessor :paypal
1548
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1549
+ sig {
1550
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Pix))
1551
+ }
1552
+ attr_accessor :pix
1553
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1554
+ sig {
1555
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Promptpay))
1556
+ }
1557
+ attr_accessor :promptpay
1558
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1559
+ sig {
1560
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RadarOptions))
1561
+ }
1562
+ attr_accessor :radar_options
1563
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1564
+ sig {
1565
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RevolutPay))
1566
+ }
1567
+ attr_accessor :revolut_pay
1568
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1569
+ sig {
1570
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SamsungPay))
1571
+ }
1572
+ attr_accessor :samsung_pay
1573
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
1574
+ sig {
1575
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Satispay))
1576
+ }
1577
+ attr_accessor :satispay
1578
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1579
+ sig {
1580
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SepaDebit))
1581
+ }
1582
+ attr_accessor :sepa_debit
1583
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1584
+ sig {
1585
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Sofort))
1586
+ }
1587
+ attr_accessor :sofort
1588
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1589
+ sig {
1590
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Swish))
1591
+ }
1592
+ attr_accessor :swish
1593
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
1594
+ sig {
1595
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Twint))
1596
+ }
1597
+ attr_accessor :twint
1598
+ # 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.
1599
+ sig { returns(String) }
1600
+ attr_accessor :type
1601
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
1602
+ sig {
1603
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::UsBankAccount))
1604
+ }
1605
+ attr_accessor :us_bank_account
1606
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1607
+ sig {
1608
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::WechatPay))
1609
+ }
1610
+ attr_accessor :wechat_pay
1611
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1612
+ sig {
1613
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Zip))
1614
+ }
1615
+ attr_accessor :zip
1616
+ sig {
1617
+ params(acss_debit: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Zip)).void
1618
+ }
1619
+ def initialize(
1620
+ acss_debit: nil,
1621
+ affirm: nil,
1622
+ afterpay_clearpay: nil,
1623
+ alipay: nil,
1624
+ allow_redisplay: nil,
1625
+ alma: nil,
1626
+ amazon_pay: nil,
1627
+ au_becs_debit: nil,
1628
+ bacs_debit: nil,
1629
+ bancontact: nil,
1630
+ billie: nil,
1631
+ billing_details: nil,
1632
+ blik: nil,
1633
+ boleto: nil,
1634
+ cashapp: nil,
1635
+ customer_balance: nil,
1636
+ eps: nil,
1637
+ fpx: nil,
1638
+ giropay: nil,
1639
+ grabpay: nil,
1640
+ ideal: nil,
1641
+ interac_present: nil,
1642
+ kakao_pay: nil,
1643
+ klarna: nil,
1644
+ konbini: nil,
1645
+ kr_card: nil,
1646
+ link: nil,
1647
+ metadata: nil,
1648
+ mobilepay: nil,
1649
+ multibanco: nil,
1650
+ naver_pay: nil,
1651
+ nz_bank_account: nil,
1652
+ oxxo: nil,
1653
+ p24: nil,
1654
+ pay_by_bank: nil,
1655
+ payco: nil,
1656
+ paynow: nil,
1657
+ paypal: nil,
1658
+ pix: nil,
1659
+ promptpay: nil,
1660
+ radar_options: nil,
1661
+ revolut_pay: nil,
1662
+ samsung_pay: nil,
1663
+ satispay: nil,
1664
+ sepa_debit: nil,
1665
+ sofort: nil,
1666
+ swish: nil,
1667
+ twint: nil,
1668
+ type: nil,
1669
+ us_bank_account: nil,
1670
+ wechat_pay: nil,
1671
+ zip: nil
1672
+ ); end
1673
+ end
1674
+ class PaymentMethodOptions < Stripe::RequestParams
1675
+ class Card < Stripe::RequestParams
1676
+ class Installments < Stripe::RequestParams
1677
+ class Plan < Stripe::RequestParams
1678
+ # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
1679
+ sig { returns(T.nilable(Integer)) }
1680
+ attr_accessor :count
1681
+ # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
1682
+ # One of `month`.
1683
+ sig { returns(T.nilable(String)) }
1684
+ attr_accessor :interval
1685
+ # Type of installment plan, one of `fixed_count`.
1686
+ sig { returns(String) }
1687
+ attr_accessor :type
1688
+ sig {
1689
+ params(count: T.nilable(Integer), interval: T.nilable(String), type: String).void
1690
+ }
1691
+ def initialize(count: nil, interval: nil, type: nil); end
1692
+ end
1693
+ # The selected installment plan to use for this payment attempt.
1694
+ # This parameter can only be provided during confirmation.
1695
+ sig {
1696
+ returns(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card::Installments::Plan)
1697
+ }
1698
+ attr_accessor :plan
1699
+ sig {
1700
+ params(plan: ::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card::Installments::Plan).void
1701
+ }
1702
+ def initialize(plan: nil); end
1703
+ end
1704
+ # Installment configuration for payments confirmed using this ConfirmationToken.
1705
+ sig {
1706
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card::Installments))
1707
+ }
1708
+ attr_accessor :installments
1709
+ sig {
1710
+ params(installments: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card::Installments)).void
1711
+ }
1712
+ def initialize(installments: nil); end
1713
+ end
1714
+ # Configuration for any card payments confirmed using this ConfirmationToken.
1715
+ sig {
1716
+ returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card))
1717
+ }
1718
+ attr_accessor :card
1719
+ sig {
1720
+ params(card: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions::Card)).void
1721
+ }
1722
+ def initialize(card: nil); end
1723
+ end
1724
+ class Shipping < Stripe::RequestParams
1725
+ class Address < Stripe::RequestParams
1726
+ # City, district, suburb, town, or village.
1727
+ sig { returns(T.nilable(String)) }
1728
+ attr_accessor :city
1729
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1730
+ sig { returns(T.nilable(String)) }
1731
+ attr_accessor :country
1732
+ # Address line 1 (e.g., street, PO Box, or company name).
1733
+ sig { returns(T.nilable(String)) }
1734
+ attr_accessor :line1
1735
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1736
+ sig { returns(T.nilable(String)) }
1737
+ attr_accessor :line2
1738
+ # ZIP or postal code.
1739
+ sig { returns(T.nilable(String)) }
1740
+ attr_accessor :postal_code
1741
+ # State, county, province, or region.
1742
+ sig { returns(T.nilable(String)) }
1743
+ attr_accessor :state
1744
+ sig {
1745
+ 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
1746
+ }
1747
+ def initialize(
1748
+ city: nil,
1749
+ country: nil,
1750
+ line1: nil,
1751
+ line2: nil,
1752
+ postal_code: nil,
1753
+ state: nil
1754
+ ); end
1755
+ end
1756
+ # Shipping address
1757
+ sig { returns(::Stripe::ConfirmationToken::CreateParams::Shipping::Address) }
1758
+ attr_accessor :address
1759
+ # Recipient name.
1760
+ sig { returns(String) }
1761
+ attr_accessor :name
1762
+ # Recipient phone (including extension)
1763
+ sig { returns(T.nilable(T.nilable(String))) }
1764
+ attr_accessor :phone
1765
+ sig {
1766
+ params(address: ::Stripe::ConfirmationToken::CreateParams::Shipping::Address, name: String, phone: T.nilable(T.nilable(String))).void
1767
+ }
1768
+ def initialize(address: nil, name: nil, phone: nil); end
1769
+ end
1770
+ # Specifies which fields in the response should be expanded.
1771
+ sig { returns(T.nilable(T::Array[String])) }
1772
+ attr_accessor :expand
1773
+ # ID of an existing PaymentMethod.
1774
+ sig { returns(T.nilable(String)) }
1775
+ attr_accessor :payment_method
1776
+ # If provided, this hash will be used to create a PaymentMethod.
1777
+ sig { returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData)) }
1778
+ attr_accessor :payment_method_data
1779
+ # Payment-method-specific configuration for this ConfirmationToken.
1780
+ sig { returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions)) }
1781
+ attr_accessor :payment_method_options
1782
+ # Return URL used to confirm the Intent.
1783
+ sig { returns(T.nilable(String)) }
1784
+ attr_accessor :return_url
1785
+ # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
1786
+ #
1787
+ # The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
1788
+ sig { returns(T.nilable(String)) }
1789
+ attr_accessor :setup_future_usage
1790
+ # Shipping information for this ConfirmationToken.
1791
+ sig { returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::Shipping)) }
1792
+ attr_accessor :shipping
1793
+ sig {
1794
+ params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodOptions), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::ConfirmationToken::CreateParams::Shipping)).void
1795
+ }
1796
+ def initialize(
1797
+ expand: nil,
1798
+ payment_method: nil,
1799
+ payment_method_data: nil,
1800
+ payment_method_options: nil,
1801
+ return_url: nil,
1802
+ setup_future_usage: nil,
1803
+ shipping: nil
1804
+ ); end
1805
+ end
1806
+ end
1807
+ end