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