stripe 15.3.0.pre.beta.1 → 15.3.0

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