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