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