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