stripe 5.38.0 → 15.2.1

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 (708) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +742 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Gemfile +12 -4
  5. data/Makefile +22 -0
  6. data/OPENAPI_VERSION +1 -0
  7. data/README.md +137 -27
  8. data/Rakefile +3 -6
  9. data/VERSION +1 -1
  10. data/examples/README.md +16 -0
  11. data/examples/example_template.rb +36 -0
  12. data/examples/meter_event_stream.rb +57 -0
  13. data/examples/thinevent_webhook_handler.rb +39 -0
  14. data/{bin → exe}/stripe-console +1 -1
  15. data/justfile +43 -0
  16. data/lib/data/ca-certificates.crt +1241 -1937
  17. data/lib/stripe/api_operations/create.rb +6 -2
  18. data/lib/stripe/api_operations/delete.rb +12 -7
  19. data/lib/stripe/api_operations/list.rb +6 -9
  20. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  21. data/lib/stripe/api_operations/request.rb +30 -65
  22. data/lib/stripe/api_operations/save.rb +20 -10
  23. data/lib/stripe/api_operations/search.rb +21 -0
  24. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  25. data/lib/stripe/api_requestor.rb +1136 -0
  26. data/lib/stripe/api_resource.rb +49 -34
  27. data/lib/stripe/api_resource_test_helpers.rb +53 -0
  28. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  29. data/lib/stripe/connection_manager.rb +28 -11
  30. data/lib/stripe/errors.rb +11 -20
  31. data/lib/stripe/event_types.rb +15 -0
  32. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  33. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  34. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  35. data/lib/stripe/instrumentation.rb +37 -15
  36. data/lib/stripe/list_object.rb +5 -3
  37. data/lib/stripe/multipart_encoder.rb +7 -7
  38. data/lib/stripe/oauth.rb +14 -21
  39. data/lib/stripe/object_types.rb +157 -91
  40. data/lib/stripe/request_options.rb +129 -0
  41. data/lib/stripe/request_params.rb +24 -0
  42. data/lib/stripe/resources/account.rb +4854 -30
  43. data/lib/stripe/resources/account_link.rb +66 -0
  44. data/lib/stripe/resources/account_session.rb +868 -0
  45. data/lib/stripe/resources/alipay_account.rb +1 -1
  46. data/lib/stripe/resources/apple_pay_domain.rb +91 -0
  47. data/lib/stripe/resources/application.rb +20 -0
  48. data/lib/stripe/resources/application_fee.rb +96 -2
  49. data/lib/stripe/resources/application_fee_refund.rb +26 -2
  50. data/lib/stripe/resources/apps/secret.rb +196 -0
  51. data/lib/stripe/resources/balance.rb +178 -0
  52. data/lib/stripe/resources/balance_transaction.rb +124 -0
  53. data/lib/stripe/resources/bank_account.rb +137 -6
  54. data/lib/stripe/resources/billing/alert.rb +222 -0
  55. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  56. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  57. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  58. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  59. data/lib/stripe/resources/billing/meter.rb +254 -0
  60. data/lib/stripe/resources/billing/meter_event.rb +61 -0
  61. data/lib/stripe/resources/billing/meter_event_adjustment.rb +69 -0
  62. data/lib/stripe/resources/billing/meter_event_summary.rb +32 -0
  63. data/lib/stripe/resources/billing_portal/configuration.rb +587 -0
  64. data/lib/stripe/resources/billing_portal/session.rb +298 -0
  65. data/lib/stripe/resources/capability.rb +91 -2
  66. data/lib/stripe/resources/card.rb +111 -3
  67. data/lib/stripe/resources/cash_balance.rb +43 -0
  68. data/lib/stripe/resources/charge.rb +1682 -2
  69. data/lib/stripe/resources/checkout/session.rb +3666 -2
  70. data/lib/stripe/resources/climate/order.rb +234 -0
  71. data/lib/stripe/resources/climate/product.rb +74 -0
  72. data/lib/stripe/resources/climate/supplier.rb +71 -0
  73. data/lib/stripe/resources/confirmation_token.rb +1498 -0
  74. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  75. data/lib/stripe/resources/country_spec.rb +68 -0
  76. data/lib/stripe/resources/coupon.rb +236 -0
  77. data/lib/stripe/resources/credit_note.rb +709 -9
  78. data/lib/stripe/resources/credit_note_line_item.rb +71 -0
  79. data/lib/stripe/resources/customer.rb +1015 -16
  80. data/lib/stripe/resources/customer_balance_transaction.rb +38 -1
  81. data/lib/stripe/resources/customer_cash_balance_transaction.rb +124 -0
  82. data/lib/stripe/resources/customer_session.rb +188 -0
  83. data/lib/stripe/resources/discount.rb +37 -0
  84. data/lib/stripe/resources/dispute.rb +650 -2
  85. data/lib/stripe/resources/entitlements/active_entitlement.rb +63 -0
  86. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  87. data/lib/stripe/resources/entitlements/feature.rb +130 -0
  88. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  89. data/lib/stripe/resources/event.rb +130 -0
  90. data/lib/stripe/resources/exchange_rate.rb +58 -0
  91. data/lib/stripe/resources/file.rb +139 -15
  92. data/lib/stripe/resources/file_link.rb +129 -0
  93. data/lib/stripe/resources/financial_connections/account.rb +363 -0
  94. data/lib/stripe/resources/financial_connections/account_owner.rb +31 -0
  95. data/lib/stripe/resources/financial_connections/account_ownership.rb +23 -0
  96. data/lib/stripe/resources/financial_connections/session.rb +121 -0
  97. data/lib/stripe/resources/financial_connections/transaction.rb +118 -0
  98. data/lib/stripe/resources/forwarding/request.rb +208 -0
  99. data/lib/stripe/resources/funding_instructions.rb +332 -0
  100. data/lib/stripe/resources/identity/verification_report.rb +287 -0
  101. data/lib/stripe/resources/identity/verification_session.rb +474 -4
  102. data/lib/stripe/resources/invoice.rb +3525 -17
  103. data/lib/stripe/resources/invoice_item.rb +453 -0
  104. data/lib/stripe/resources/invoice_line_item.rb +372 -1
  105. data/lib/stripe/resources/invoice_payment.rb +112 -0
  106. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  107. data/lib/stripe/resources/issuing/authorization.rb +1313 -4
  108. data/lib/stripe/resources/issuing/card.rb +785 -4
  109. data/lib/stripe/resources/issuing/cardholder.rb +684 -0
  110. data/lib/stripe/resources/issuing/dispute.rb +828 -2
  111. data/lib/stripe/resources/issuing/personalization_design.rb +395 -0
  112. data/lib/stripe/resources/issuing/physical_bundle.rb +80 -0
  113. data/lib/stripe/resources/issuing/token.rb +198 -0
  114. data/lib/stripe/resources/issuing/transaction.rb +991 -0
  115. data/lib/stripe/resources/line_item.rb +51 -0
  116. data/lib/stripe/resources/login_link.rb +12 -0
  117. data/lib/stripe/resources/mandate.rb +146 -0
  118. data/lib/stripe/resources/payment_intent.rb +8876 -6
  119. data/lib/stripe/resources/payment_link.rb +1692 -0
  120. data/lib/stripe/resources/payment_method.rb +1570 -4
  121. data/lib/stripe/resources/payment_method_configuration.rb +3189 -0
  122. data/lib/stripe/resources/payment_method_domain.rb +236 -0
  123. data/lib/stripe/resources/payout.rb +271 -4
  124. data/lib/stripe/resources/person.rb +295 -1
  125. data/lib/stripe/resources/plan.rb +352 -0
  126. data/lib/stripe/resources/price.rb +642 -0
  127. data/lib/stripe/resources/product.rb +534 -0
  128. data/lib/stripe/resources/product_feature.rb +25 -0
  129. data/lib/stripe/resources/promotion_code.rb +237 -0
  130. data/lib/stripe/resources/quote.rb +1015 -38
  131. data/lib/stripe/resources/radar/early_fraud_warning.rb +85 -0
  132. data/lib/stripe/resources/radar/value_list.rb +171 -0
  133. data/lib/stripe/resources/radar/value_list_item.rb +131 -0
  134. data/lib/stripe/resources/refund.rb +494 -0
  135. data/lib/stripe/resources/reporting/report_run.rb +172 -0
  136. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  137. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  138. data/lib/stripe/resources/reversal.rb +38 -2
  139. data/lib/stripe/resources/review.rb +122 -2
  140. data/lib/stripe/resources/setup_attempt.rb +380 -0
  141. data/lib/stripe/resources/setup_intent.rb +3432 -4
  142. data/lib/stripe/resources/shipping_rate.rb +287 -0
  143. data/lib/stripe/resources/sigma/scheduled_query_run.rb +62 -0
  144. data/lib/stripe/resources/source.rb +1250 -10
  145. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  146. data/lib/stripe/resources/source_transaction.rb +93 -0
  147. data/lib/stripe/resources/subscription.rb +1871 -3
  148. data/lib/stripe/resources/subscription_item.rb +399 -10
  149. data/lib/stripe/resources/subscription_schedule.rb +1455 -4
  150. data/lib/stripe/resources/tax/calculation.rb +430 -0
  151. data/lib/stripe/resources/tax/calculation_line_item.rb +71 -0
  152. data/lib/stripe/resources/tax/registration.rb +2667 -0
  153. data/lib/stripe/resources/tax/settings.rb +134 -0
  154. data/lib/stripe/resources/tax/transaction.rb +314 -0
  155. data/lib/stripe/resources/tax/transaction_line_item.rb +44 -0
  156. data/lib/stripe/resources/tax_code.rb +35 -0
  157. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  158. data/lib/stripe/resources/tax_id.rb +144 -11
  159. data/lib/stripe/resources/tax_rate.rb +217 -0
  160. data/lib/stripe/resources/terminal/configuration.rb +1328 -0
  161. data/lib/stripe/resources/terminal/connection_token.rb +34 -0
  162. data/lib/stripe/resources/terminal/location.rb +222 -0
  163. data/lib/stripe/resources/terminal/reader.rb +886 -0
  164. data/lib/stripe/resources/test_helpers/test_clock.rb +156 -0
  165. data/lib/stripe/resources/token.rb +1249 -0
  166. data/lib/stripe/resources/topup.rb +204 -2
  167. data/lib/stripe/resources/transfer.rb +173 -6
  168. data/lib/stripe/resources/treasury/credit_reversal.rb +120 -0
  169. data/lib/stripe/resources/treasury/debit_reversal.rb +131 -0
  170. data/lib/stripe/resources/treasury/financial_account.rb +833 -0
  171. data/lib/stripe/resources/treasury/financial_account_features.rb +204 -0
  172. data/lib/stripe/resources/treasury/inbound_transfer.rb +356 -0
  173. data/lib/stripe/resources/treasury/outbound_payment.rb +638 -0
  174. data/lib/stripe/resources/treasury/outbound_transfer.rb +493 -0
  175. data/lib/stripe/resources/treasury/received_credit.rb +284 -0
  176. data/lib/stripe/resources/treasury/received_debit.rb +243 -0
  177. data/lib/stripe/resources/treasury/transaction.rb +193 -0
  178. data/lib/stripe/resources/treasury/transaction_entry.rb +178 -0
  179. data/lib/stripe/resources/v2/amount.rb +9 -0
  180. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  181. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  182. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  183. data/lib/stripe/resources/v2/event.rb +41 -0
  184. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  185. data/lib/stripe/resources/webhook_endpoint.rb +167 -0
  186. data/lib/stripe/resources.rb +70 -12
  187. data/lib/stripe/search_result_object.rb +89 -0
  188. data/lib/stripe/services/account_capability_service.rb +71 -0
  189. data/lib/stripe/services/account_external_account_service.rb +317 -0
  190. data/lib/stripe/services/account_link_service.rb +63 -0
  191. data/lib/stripe/services/account_login_link_service.rb +28 -0
  192. data/lib/stripe/services/account_person_service.rb +1019 -0
  193. data/lib/stripe/services/account_service.rb +4171 -0
  194. data/lib/stripe/services/account_session_service.rb +569 -0
  195. data/lib/stripe/services/apple_pay_domain_service.rb +100 -0
  196. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  197. data/lib/stripe/services/application_fee_service.rb +92 -0
  198. data/lib/stripe/services/apps/secret_service.rb +168 -0
  199. data/lib/stripe/services/apps_service.rb +13 -0
  200. data/lib/stripe/services/balance_service.rb +21 -0
  201. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  202. data/lib/stripe/services/billing/alert_service.rb +187 -0
  203. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  204. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  205. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  206. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  207. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  208. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  209. data/lib/stripe/services/billing/meter_service.rb +211 -0
  210. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  211. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  212. data/lib/stripe/services/billing_portal_service.rb +14 -0
  213. data/lib/stripe/services/billing_service.rb +20 -0
  214. data/lib/stripe/services/charge_service.rb +471 -0
  215. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  216. data/lib/stripe/services/checkout/session_service.rb +2495 -0
  217. data/lib/stripe/services/checkout_service.rb +13 -0
  218. data/lib/stripe/services/climate/order_service.rb +170 -0
  219. data/lib/stripe/services/climate/product_service.rb +57 -0
  220. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  221. data/lib/stripe/services/climate_service.rb +15 -0
  222. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  223. data/lib/stripe/services/country_spec_service.rb +55 -0
  224. data/lib/stripe/services/coupon_service.rb +202 -0
  225. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  226. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  227. data/lib/stripe/services/credit_note_service.rb +457 -0
  228. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  229. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  230. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  231. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  232. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  233. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  234. data/lib/stripe/services/customer_service.rb +664 -0
  235. data/lib/stripe/services/customer_session_service.rb +113 -0
  236. data/lib/stripe/services/customer_tax_id_service.rb +94 -0
  237. data/lib/stripe/services/dispute_service.rb +422 -0
  238. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  239. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  240. data/lib/stripe/services/entitlements_service.rb +14 -0
  241. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  242. data/lib/stripe/services/event_service.rb +87 -0
  243. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  244. data/lib/stripe/services/file_link_service.rb +132 -0
  245. data/lib/stripe/services/file_service.rb +124 -0
  246. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  247. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  248. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  249. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  250. data/lib/stripe/services/financial_connections_service.rb +15 -0
  251. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  252. data/lib/stripe/services/forwarding_service.rb +13 -0
  253. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  254. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  255. data/lib/stripe/services/identity_service.rb +14 -0
  256. data/lib/stripe/services/invoice_item_service.rb +394 -0
  257. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  258. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  259. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  260. data/lib/stripe/services/invoice_service.rb +2900 -0
  261. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  262. data/lib/stripe/services/issuing/card_service.rb +507 -0
  263. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  264. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  265. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  266. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  267. data/lib/stripe/services/issuing/token_service.rb +114 -0
  268. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  269. data/lib/stripe/services/issuing_service.rb +20 -0
  270. data/lib/stripe/services/mandate_service.rb +26 -0
  271. data/lib/stripe/services/oauth_service.rb +63 -0
  272. data/lib/stripe/services/payment_intent_service.rb +7202 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  274. data/lib/stripe/services/payment_link_service.rb +1333 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2306 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  277. data/lib/stripe/services/payment_method_service.rb +843 -0
  278. data/lib/stripe/services/payout_service.rb +225 -0
  279. data/lib/stripe/services/plan_service.rb +297 -0
  280. data/lib/stripe/services/price_service.rb +545 -0
  281. data/lib/stripe/services/product_feature_service.rb +91 -0
  282. data/lib/stripe/services/product_service.rb +494 -0
  283. data/lib/stripe/services/promotion_code_service.rb +228 -0
  284. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  285. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  286. data/lib/stripe/services/quote_service.rb +703 -0
  287. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  288. data/lib/stripe/services/radar/value_list_item_service.rb +130 -0
  289. data/lib/stripe/services/radar/value_list_service.rb +165 -0
  290. data/lib/stripe/services/radar_service.rb +15 -0
  291. data/lib/stripe/services/refund_service.rb +200 -0
  292. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  293. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  294. data/lib/stripe/services/reporting_service.rb +14 -0
  295. data/lib/stripe/services/review_service.rb +89 -0
  296. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  297. data/lib/stripe/services/setup_intent_service.rb +3107 -0
  298. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  299. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  300. data/lib/stripe/services/sigma_service.rb +13 -0
  301. data/lib/stripe/services/source_service.rb +665 -0
  302. data/lib/stripe/services/source_transaction_service.rb +35 -0
  303. data/lib/stripe/services/subscription_item_service.rb +372 -0
  304. data/lib/stripe/services/subscription_schedule_service.rb +1224 -0
  305. data/lib/stripe/services/subscription_service.rb +1590 -0
  306. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  307. data/lib/stripe/services/tax/calculation_service.rb +246 -0
  308. data/lib/stripe/services/tax/registration_service.rb +1774 -0
  309. data/lib/stripe/services/tax/settings_service.rb +104 -0
  310. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  311. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  312. data/lib/stripe/services/tax_code_service.rb +49 -0
  313. data/lib/stripe/services/tax_id_service.rb +116 -0
  314. data/lib/stripe/services/tax_rate_service.rb +193 -0
  315. data/lib/stripe/services/tax_service.rb +16 -0
  316. data/lib/stripe/services/terminal/configuration_service.rb +1059 -0
  317. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  318. data/lib/stripe/services/terminal/location_service.rb +207 -0
  319. data/lib/stripe/services/terminal/reader_service.rb +488 -0
  320. data/lib/stripe/services/terminal_service.rb +16 -0
  321. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +655 -0
  322. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  323. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  324. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  325. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  326. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  327. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  328. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  329. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +108 -0
  330. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  331. data/lib/stripe/services/test_helpers/test_clock_service.rb +119 -0
  332. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  333. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  334. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  335. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  336. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  337. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  338. data/lib/stripe/services/test_helpers_service.rb +19 -0
  339. data/lib/stripe/services/token_service.rb +1224 -0
  340. data/lib/stripe/services/topup_service.rb +191 -0
  341. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  342. data/lib/stripe/services/transfer_service.rb +166 -0
  343. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  344. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  345. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  346. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  347. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  348. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  349. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  350. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  351. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  352. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  353. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  354. data/lib/stripe/services/treasury_service.rb +22 -0
  355. data/lib/stripe/services/v1_services.rb +90 -0
  356. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  357. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  358. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +23 -0
  359. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  360. data/lib/stripe/services/v2/billing_service.rb +18 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +235 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +48 -0
  363. data/lib/stripe/services/v2/core_service.rb +16 -0
  364. data/lib/stripe/services/v2_services.rb +14 -0
  365. data/lib/stripe/services/webhook_endpoint_service.rb +156 -0
  366. data/lib/stripe/services.rb +180 -0
  367. data/lib/stripe/singleton_api_resource.rb +3 -3
  368. data/lib/stripe/stripe_client.rb +56 -1021
  369. data/lib/stripe/stripe_configuration.rb +63 -42
  370. data/lib/stripe/stripe_object.rb +75 -39
  371. data/lib/stripe/stripe_response.rb +1 -3
  372. data/lib/stripe/stripe_service.rb +32 -0
  373. data/lib/stripe/thin_event.rb +37 -0
  374. data/lib/stripe/util.rb +161 -39
  375. data/lib/stripe/v2_list_object.rb +84 -0
  376. data/lib/stripe/version.rb +1 -1
  377. data/lib/stripe/webhook.rb +3 -2
  378. data/lib/stripe.rb +44 -1
  379. data/rbi/stripe/resources/account.rbi +4926 -0
  380. data/rbi/stripe/resources/account_link.rbi +74 -0
  381. data/rbi/stripe/resources/account_session.rbi +1013 -0
  382. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  383. data/rbi/stripe/resources/application.rbi +20 -0
  384. data/rbi/stripe/resources/application_fee.rbi +118 -0
  385. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  386. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  387. data/rbi/stripe/resources/balance.rbi +235 -0
  388. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  389. data/rbi/stripe/resources/bank_account.rbi +127 -0
  390. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  391. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  392. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  393. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  394. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  395. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  396. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  397. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  398. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  399. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  400. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  401. data/rbi/stripe/resources/capability.rbi +125 -0
  402. data/rbi/stripe/resources/card.rbi +125 -0
  403. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  404. data/rbi/stripe/resources/charge.rbi +2069 -0
  405. data/rbi/stripe/resources/checkout/session.rbi +4004 -0
  406. data/rbi/stripe/resources/climate/order.rbi +245 -0
  407. data/rbi/stripe/resources/climate/product.rbi +75 -0
  408. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  409. data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
  410. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  411. data/rbi/stripe/resources/country_spec.rbi +85 -0
  412. data/rbi/stripe/resources/coupon.rbi +250 -0
  413. data/rbi/stripe/resources/credit_note.rbi +752 -0
  414. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  415. data/rbi/stripe/resources/customer.rbi +1005 -0
  416. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  417. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  418. data/rbi/stripe/resources/customer_session.rbi +200 -0
  419. data/rbi/stripe/resources/discount.rbi +53 -0
  420. data/rbi/stripe/resources/dispute.rbi +761 -0
  421. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  422. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  423. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  424. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  425. data/rbi/stripe/resources/event.rbi +149 -0
  426. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  427. data/rbi/stripe/resources/file.rbi +143 -0
  428. data/rbi/stripe/resources/file_link.rbi +141 -0
  429. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  430. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  431. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  432. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  433. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  434. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  435. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  436. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  437. data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
  438. data/rbi/stripe/resources/invoice.rbi +3812 -0
  439. data/rbi/stripe/resources/invoice_item.rbi +473 -0
  440. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  441. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  442. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  443. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  444. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  445. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  446. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  447. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  448. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  449. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  450. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  451. data/rbi/stripe/resources/line_item.rbi +72 -0
  452. data/rbi/stripe/resources/login_link.rbi +19 -0
  453. data/rbi/stripe/resources/mandate.rbi +187 -0
  454. data/rbi/stripe/resources/payment_intent.rbi +9647 -0
  455. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  456. data/rbi/stripe/resources/payment_method.rbi +1761 -0
  457. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  458. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  459. data/rbi/stripe/resources/payout.rbi +300 -0
  460. data/rbi/stripe/resources/person.rbi +401 -0
  461. data/rbi/stripe/resources/plan.rbi +371 -0
  462. data/rbi/stripe/resources/price.rbi +694 -0
  463. data/rbi/stripe/resources/product.rbi +555 -0
  464. data/rbi/stripe/resources/product_feature.rbi +26 -0
  465. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  466. data/rbi/stripe/resources/quote.rbi +1126 -0
  467. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  468. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  469. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  470. data/rbi/stripe/resources/refund.rbi +523 -0
  471. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  472. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  473. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  474. data/rbi/stripe/resources/reversal.rbi +51 -0
  475. data/rbi/stripe/resources/review.rbi +154 -0
  476. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  477. data/rbi/stripe/resources/setup_intent.rbi +3655 -0
  478. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  479. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  480. data/rbi/stripe/resources/source.rbi +1496 -0
  481. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  482. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  483. data/rbi/stripe/resources/subscription.rbi +2027 -0
  484. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  485. data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
  486. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  487. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  488. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  489. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  490. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  491. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  492. data/rbi/stripe/resources/tax_code.rbi +44 -0
  493. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  494. data/rbi/stripe/resources/tax_id.rbi +165 -0
  495. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  496. data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
  497. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  498. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  499. data/rbi/stripe/resources/terminal/reader.rbi +847 -0
  500. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  501. data/rbi/stripe/resources/token.rbi +1283 -0
  502. data/rbi/stripe/resources/topup.rbi +222 -0
  503. data/rbi/stripe/resources/transfer.rbi +199 -0
  504. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  505. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  506. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  507. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  508. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  509. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  510. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  511. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  512. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  513. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  514. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  515. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  516. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  517. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  518. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  519. data/rbi/stripe/resources/v2/event.rbi +48 -0
  520. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  521. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  522. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  523. data/rbi/stripe/services/account_external_account_service.rbi +304 -0
  524. data/rbi/stripe/services/account_link_service.rbi +58 -0
  525. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  526. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  527. data/rbi/stripe/services/account_service.rbi +4213 -0
  528. data/rbi/stripe/services/account_session_service.rbi +646 -0
  529. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  530. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  531. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  532. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  533. data/{lib/stripe/resources/usage_record_summary.rb → rbi/stripe/services/apps_service.rbi} +4 -3
  534. data/rbi/stripe/services/balance_service.rbi +21 -0
  535. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  536. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  537. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  538. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  539. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  540. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  541. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  542. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  543. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  544. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  545. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  546. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  547. data/rbi/stripe/services/billing_service.rbi +15 -0
  548. data/rbi/stripe/services/charge_service.rbi +448 -0
  549. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  550. data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
  551. data/rbi/stripe/services/checkout_service.rbi +9 -0
  552. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  553. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  554. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  555. data/rbi/stripe/services/climate_service.rbi +11 -0
  556. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  557. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  558. data/rbi/stripe/services/coupon_service.rbi +194 -0
  559. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  560. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  561. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  562. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  563. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  564. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  565. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  566. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  567. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  568. data/rbi/stripe/services/customer_service.rbi +647 -0
  569. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  570. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  571. data/rbi/stripe/services/dispute_service.rbi +424 -0
  572. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  573. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  574. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  575. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  576. data/rbi/stripe/services/event_service.rbi +83 -0
  577. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  578. data/rbi/stripe/services/file_link_service.rbi +124 -0
  579. data/rbi/stripe/services/file_service.rbi +116 -0
  580. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  581. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  582. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  583. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  584. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  585. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  586. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  587. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  588. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  589. data/rbi/stripe/services/identity_service.rbi +10 -0
  590. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  591. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  592. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  593. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  594. data/rbi/stripe/services/invoice_service.rbi +2981 -0
  595. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  596. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  597. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  598. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  599. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  600. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  601. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  602. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  603. data/rbi/stripe/services/issuing_service.rbi +16 -0
  604. data/rbi/stripe/services/mandate_service.rbi +20 -0
  605. data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
  606. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  607. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  608. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  609. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  610. data/rbi/stripe/services/payment_method_service.rbi +776 -0
  611. data/rbi/stripe/services/payout_service.rbi +205 -0
  612. data/rbi/stripe/services/plan_service.rbi +282 -0
  613. data/rbi/stripe/services/price_service.rbi +546 -0
  614. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  615. data/rbi/stripe/services/product_service.rbi +477 -0
  616. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  617. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  618. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  619. data/rbi/stripe/services/quote_service.rbi +686 -0
  620. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  621. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  622. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  623. data/rbi/stripe/services/radar_service.rbi +11 -0
  624. data/rbi/stripe/services/refund_service.rbi +185 -0
  625. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  626. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  627. data/rbi/stripe/services/reporting_service.rbi +10 -0
  628. data/rbi/stripe/services/review_service.rbi +84 -0
  629. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  630. data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
  631. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  632. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  633. data/rbi/stripe/services/sigma_service.rbi +9 -0
  634. data/rbi/stripe/services/source_service.rbi +663 -0
  635. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  636. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  637. data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
  638. data/rbi/stripe/services/subscription_service.rbi +1648 -0
  639. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  640. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  641. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  642. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  644. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  645. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  646. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  647. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  648. data/rbi/stripe/services/tax_service.rbi +12 -0
  649. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  650. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  651. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  652. data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
  653. data/rbi/stripe/services/terminal_service.rbi +12 -0
  654. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
  655. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  656. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  657. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  658. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  659. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  660. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  661. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  662. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  663. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  664. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  665. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  666. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  667. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  668. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  669. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  670. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  671. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  672. data/rbi/stripe/services/token_service.rbi +1257 -0
  673. data/rbi/stripe/services/topup_service.rbi +176 -0
  674. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  675. data/rbi/stripe/services/transfer_service.rbi +152 -0
  676. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  677. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  678. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  679. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  680. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  681. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  682. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  683. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  684. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  685. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  686. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  687. data/rbi/stripe/services/treasury_service.rbi +18 -0
  688. data/rbi/stripe/services/v1_services.rbi +77 -0
  689. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  690. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  691. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  692. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  693. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  694. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  695. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  696. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  697. data/rbi/stripe/services/v2_services.rbi +10 -0
  698. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  699. data/stripe.gemspec +10 -7
  700. metadata +599 -18
  701. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  702. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  703. data/lib/stripe/resources/issuing/card_details.rb +0 -9
  704. data/lib/stripe/resources/order.rb +0 -33
  705. data/lib/stripe/resources/order_return.rb +0 -10
  706. data/lib/stripe/resources/recipient.rb +0 -14
  707. data/lib/stripe/resources/sku.rb +0 -13
  708. data/lib/stripe/resources/three_d_secure.rb +0 -14
@@ -0,0 +1,3189 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.
6
+ #
7
+ # There are two types of PaymentMethodConfigurations. Which is used depends on the [charge type](https://stripe.com/docs/connect/charges):
8
+ #
9
+ # **Direct** configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.
10
+ #
11
+ # **Child** configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.
12
+ #
13
+ # Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API.
14
+ #
15
+ # Related guides:
16
+ # - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations)
17
+ # - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs)
18
+ # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)
19
+ class PaymentMethodConfiguration < APIResource
20
+ extend Stripe::APIOperations::Create
21
+ extend Stripe::APIOperations::List
22
+ include Stripe::APIOperations::Save
23
+
24
+ OBJECT_NAME = "payment_method_configuration"
25
+ def self.object_name
26
+ "payment_method_configuration"
27
+ end
28
+
29
+ class AcssDebit < Stripe::StripeObject
30
+ class DisplayPreference < Stripe::StripeObject
31
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
32
+ attr_reader :overridable
33
+ # The account's display preference.
34
+ attr_reader :preference
35
+ # The effective display preference value.
36
+ attr_reader :value
37
+ end
38
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
39
+ attr_reader :available
40
+ # Attribute for field display_preference
41
+ attr_reader :display_preference
42
+ end
43
+
44
+ class Affirm < Stripe::StripeObject
45
+ class DisplayPreference < Stripe::StripeObject
46
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
47
+ attr_reader :overridable
48
+ # The account's display preference.
49
+ attr_reader :preference
50
+ # The effective display preference value.
51
+ attr_reader :value
52
+ end
53
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
54
+ attr_reader :available
55
+ # Attribute for field display_preference
56
+ attr_reader :display_preference
57
+ end
58
+
59
+ class AfterpayClearpay < Stripe::StripeObject
60
+ class DisplayPreference < Stripe::StripeObject
61
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
62
+ attr_reader :overridable
63
+ # The account's display preference.
64
+ attr_reader :preference
65
+ # The effective display preference value.
66
+ attr_reader :value
67
+ end
68
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
69
+ attr_reader :available
70
+ # Attribute for field display_preference
71
+ attr_reader :display_preference
72
+ end
73
+
74
+ class Alipay < Stripe::StripeObject
75
+ class DisplayPreference < Stripe::StripeObject
76
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
77
+ attr_reader :overridable
78
+ # The account's display preference.
79
+ attr_reader :preference
80
+ # The effective display preference value.
81
+ attr_reader :value
82
+ end
83
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
84
+ attr_reader :available
85
+ # Attribute for field display_preference
86
+ attr_reader :display_preference
87
+ end
88
+
89
+ class Alma < Stripe::StripeObject
90
+ class DisplayPreference < Stripe::StripeObject
91
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
92
+ attr_reader :overridable
93
+ # The account's display preference.
94
+ attr_reader :preference
95
+ # The effective display preference value.
96
+ attr_reader :value
97
+ end
98
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
99
+ attr_reader :available
100
+ # Attribute for field display_preference
101
+ attr_reader :display_preference
102
+ end
103
+
104
+ class AmazonPay < Stripe::StripeObject
105
+ class DisplayPreference < Stripe::StripeObject
106
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
107
+ attr_reader :overridable
108
+ # The account's display preference.
109
+ attr_reader :preference
110
+ # The effective display preference value.
111
+ attr_reader :value
112
+ end
113
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
114
+ attr_reader :available
115
+ # Attribute for field display_preference
116
+ attr_reader :display_preference
117
+ end
118
+
119
+ class ApplePay < Stripe::StripeObject
120
+ class DisplayPreference < Stripe::StripeObject
121
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
122
+ attr_reader :overridable
123
+ # The account's display preference.
124
+ attr_reader :preference
125
+ # The effective display preference value.
126
+ attr_reader :value
127
+ end
128
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
129
+ attr_reader :available
130
+ # Attribute for field display_preference
131
+ attr_reader :display_preference
132
+ end
133
+
134
+ class AuBecsDebit < Stripe::StripeObject
135
+ class DisplayPreference < Stripe::StripeObject
136
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
137
+ attr_reader :overridable
138
+ # The account's display preference.
139
+ attr_reader :preference
140
+ # The effective display preference value.
141
+ attr_reader :value
142
+ end
143
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
144
+ attr_reader :available
145
+ # Attribute for field display_preference
146
+ attr_reader :display_preference
147
+ end
148
+
149
+ class BacsDebit < Stripe::StripeObject
150
+ class DisplayPreference < Stripe::StripeObject
151
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
152
+ attr_reader :overridable
153
+ # The account's display preference.
154
+ attr_reader :preference
155
+ # The effective display preference value.
156
+ attr_reader :value
157
+ end
158
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
159
+ attr_reader :available
160
+ # Attribute for field display_preference
161
+ attr_reader :display_preference
162
+ end
163
+
164
+ class Bancontact < Stripe::StripeObject
165
+ class DisplayPreference < Stripe::StripeObject
166
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
167
+ attr_reader :overridable
168
+ # The account's display preference.
169
+ attr_reader :preference
170
+ # The effective display preference value.
171
+ attr_reader :value
172
+ end
173
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
174
+ attr_reader :available
175
+ # Attribute for field display_preference
176
+ attr_reader :display_preference
177
+ end
178
+
179
+ class Billie < Stripe::StripeObject
180
+ class DisplayPreference < Stripe::StripeObject
181
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
182
+ attr_reader :overridable
183
+ # The account's display preference.
184
+ attr_reader :preference
185
+ # The effective display preference value.
186
+ attr_reader :value
187
+ end
188
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
189
+ attr_reader :available
190
+ # Attribute for field display_preference
191
+ attr_reader :display_preference
192
+ end
193
+
194
+ class Blik < Stripe::StripeObject
195
+ class DisplayPreference < Stripe::StripeObject
196
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
197
+ attr_reader :overridable
198
+ # The account's display preference.
199
+ attr_reader :preference
200
+ # The effective display preference value.
201
+ attr_reader :value
202
+ end
203
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
204
+ attr_reader :available
205
+ # Attribute for field display_preference
206
+ attr_reader :display_preference
207
+ end
208
+
209
+ class Boleto < Stripe::StripeObject
210
+ class DisplayPreference < Stripe::StripeObject
211
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
212
+ attr_reader :overridable
213
+ # The account's display preference.
214
+ attr_reader :preference
215
+ # The effective display preference value.
216
+ attr_reader :value
217
+ end
218
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
219
+ attr_reader :available
220
+ # Attribute for field display_preference
221
+ attr_reader :display_preference
222
+ end
223
+
224
+ class Card < Stripe::StripeObject
225
+ class DisplayPreference < Stripe::StripeObject
226
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
227
+ attr_reader :overridable
228
+ # The account's display preference.
229
+ attr_reader :preference
230
+ # The effective display preference value.
231
+ attr_reader :value
232
+ end
233
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
234
+ attr_reader :available
235
+ # Attribute for field display_preference
236
+ attr_reader :display_preference
237
+ end
238
+
239
+ class CartesBancaires < Stripe::StripeObject
240
+ class DisplayPreference < Stripe::StripeObject
241
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
242
+ attr_reader :overridable
243
+ # The account's display preference.
244
+ attr_reader :preference
245
+ # The effective display preference value.
246
+ attr_reader :value
247
+ end
248
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
249
+ attr_reader :available
250
+ # Attribute for field display_preference
251
+ attr_reader :display_preference
252
+ end
253
+
254
+ class Cashapp < Stripe::StripeObject
255
+ class DisplayPreference < Stripe::StripeObject
256
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
257
+ attr_reader :overridable
258
+ # The account's display preference.
259
+ attr_reader :preference
260
+ # The effective display preference value.
261
+ attr_reader :value
262
+ end
263
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
264
+ attr_reader :available
265
+ # Attribute for field display_preference
266
+ attr_reader :display_preference
267
+ end
268
+
269
+ class CustomerBalance < Stripe::StripeObject
270
+ class DisplayPreference < Stripe::StripeObject
271
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
272
+ attr_reader :overridable
273
+ # The account's display preference.
274
+ attr_reader :preference
275
+ # The effective display preference value.
276
+ attr_reader :value
277
+ end
278
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
279
+ attr_reader :available
280
+ # Attribute for field display_preference
281
+ attr_reader :display_preference
282
+ end
283
+
284
+ class Eps < Stripe::StripeObject
285
+ class DisplayPreference < Stripe::StripeObject
286
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
287
+ attr_reader :overridable
288
+ # The account's display preference.
289
+ attr_reader :preference
290
+ # The effective display preference value.
291
+ attr_reader :value
292
+ end
293
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
294
+ attr_reader :available
295
+ # Attribute for field display_preference
296
+ attr_reader :display_preference
297
+ end
298
+
299
+ class Fpx < Stripe::StripeObject
300
+ class DisplayPreference < Stripe::StripeObject
301
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
302
+ attr_reader :overridable
303
+ # The account's display preference.
304
+ attr_reader :preference
305
+ # The effective display preference value.
306
+ attr_reader :value
307
+ end
308
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
309
+ attr_reader :available
310
+ # Attribute for field display_preference
311
+ attr_reader :display_preference
312
+ end
313
+
314
+ class Giropay < Stripe::StripeObject
315
+ class DisplayPreference < Stripe::StripeObject
316
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
317
+ attr_reader :overridable
318
+ # The account's display preference.
319
+ attr_reader :preference
320
+ # The effective display preference value.
321
+ attr_reader :value
322
+ end
323
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
324
+ attr_reader :available
325
+ # Attribute for field display_preference
326
+ attr_reader :display_preference
327
+ end
328
+
329
+ class GooglePay < Stripe::StripeObject
330
+ class DisplayPreference < Stripe::StripeObject
331
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
332
+ attr_reader :overridable
333
+ # The account's display preference.
334
+ attr_reader :preference
335
+ # The effective display preference value.
336
+ attr_reader :value
337
+ end
338
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
339
+ attr_reader :available
340
+ # Attribute for field display_preference
341
+ attr_reader :display_preference
342
+ end
343
+
344
+ class Grabpay < Stripe::StripeObject
345
+ class DisplayPreference < Stripe::StripeObject
346
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
347
+ attr_reader :overridable
348
+ # The account's display preference.
349
+ attr_reader :preference
350
+ # The effective display preference value.
351
+ attr_reader :value
352
+ end
353
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
354
+ attr_reader :available
355
+ # Attribute for field display_preference
356
+ attr_reader :display_preference
357
+ end
358
+
359
+ class Ideal < Stripe::StripeObject
360
+ class DisplayPreference < Stripe::StripeObject
361
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
362
+ attr_reader :overridable
363
+ # The account's display preference.
364
+ attr_reader :preference
365
+ # The effective display preference value.
366
+ attr_reader :value
367
+ end
368
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
369
+ attr_reader :available
370
+ # Attribute for field display_preference
371
+ attr_reader :display_preference
372
+ end
373
+
374
+ class Jcb < Stripe::StripeObject
375
+ class DisplayPreference < Stripe::StripeObject
376
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
377
+ attr_reader :overridable
378
+ # The account's display preference.
379
+ attr_reader :preference
380
+ # The effective display preference value.
381
+ attr_reader :value
382
+ end
383
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
384
+ attr_reader :available
385
+ # Attribute for field display_preference
386
+ attr_reader :display_preference
387
+ end
388
+
389
+ class KakaoPay < Stripe::StripeObject
390
+ class DisplayPreference < Stripe::StripeObject
391
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
392
+ attr_reader :overridable
393
+ # The account's display preference.
394
+ attr_reader :preference
395
+ # The effective display preference value.
396
+ attr_reader :value
397
+ end
398
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
399
+ attr_reader :available
400
+ # Attribute for field display_preference
401
+ attr_reader :display_preference
402
+ end
403
+
404
+ class Klarna < Stripe::StripeObject
405
+ class DisplayPreference < Stripe::StripeObject
406
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
407
+ attr_reader :overridable
408
+ # The account's display preference.
409
+ attr_reader :preference
410
+ # The effective display preference value.
411
+ attr_reader :value
412
+ end
413
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
414
+ attr_reader :available
415
+ # Attribute for field display_preference
416
+ attr_reader :display_preference
417
+ end
418
+
419
+ class Konbini < Stripe::StripeObject
420
+ class DisplayPreference < Stripe::StripeObject
421
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
422
+ attr_reader :overridable
423
+ # The account's display preference.
424
+ attr_reader :preference
425
+ # The effective display preference value.
426
+ attr_reader :value
427
+ end
428
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
429
+ attr_reader :available
430
+ # Attribute for field display_preference
431
+ attr_reader :display_preference
432
+ end
433
+
434
+ class KrCard < Stripe::StripeObject
435
+ class DisplayPreference < Stripe::StripeObject
436
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
437
+ attr_reader :overridable
438
+ # The account's display preference.
439
+ attr_reader :preference
440
+ # The effective display preference value.
441
+ attr_reader :value
442
+ end
443
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
444
+ attr_reader :available
445
+ # Attribute for field display_preference
446
+ attr_reader :display_preference
447
+ end
448
+
449
+ class Link < Stripe::StripeObject
450
+ class DisplayPreference < Stripe::StripeObject
451
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
452
+ attr_reader :overridable
453
+ # The account's display preference.
454
+ attr_reader :preference
455
+ # The effective display preference value.
456
+ attr_reader :value
457
+ end
458
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
459
+ attr_reader :available
460
+ # Attribute for field display_preference
461
+ attr_reader :display_preference
462
+ end
463
+
464
+ class Mobilepay < Stripe::StripeObject
465
+ class DisplayPreference < Stripe::StripeObject
466
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
467
+ attr_reader :overridable
468
+ # The account's display preference.
469
+ attr_reader :preference
470
+ # The effective display preference value.
471
+ attr_reader :value
472
+ end
473
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
474
+ attr_reader :available
475
+ # Attribute for field display_preference
476
+ attr_reader :display_preference
477
+ end
478
+
479
+ class Multibanco < Stripe::StripeObject
480
+ class DisplayPreference < Stripe::StripeObject
481
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
482
+ attr_reader :overridable
483
+ # The account's display preference.
484
+ attr_reader :preference
485
+ # The effective display preference value.
486
+ attr_reader :value
487
+ end
488
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
489
+ attr_reader :available
490
+ # Attribute for field display_preference
491
+ attr_reader :display_preference
492
+ end
493
+
494
+ class NaverPay < Stripe::StripeObject
495
+ class DisplayPreference < Stripe::StripeObject
496
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
497
+ attr_reader :overridable
498
+ # The account's display preference.
499
+ attr_reader :preference
500
+ # The effective display preference value.
501
+ attr_reader :value
502
+ end
503
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
504
+ attr_reader :available
505
+ # Attribute for field display_preference
506
+ attr_reader :display_preference
507
+ end
508
+
509
+ class NzBankAccount < Stripe::StripeObject
510
+ class DisplayPreference < Stripe::StripeObject
511
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
512
+ attr_reader :overridable
513
+ # The account's display preference.
514
+ attr_reader :preference
515
+ # The effective display preference value.
516
+ attr_reader :value
517
+ end
518
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
519
+ attr_reader :available
520
+ # Attribute for field display_preference
521
+ attr_reader :display_preference
522
+ end
523
+
524
+ class Oxxo < Stripe::StripeObject
525
+ class DisplayPreference < Stripe::StripeObject
526
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
527
+ attr_reader :overridable
528
+ # The account's display preference.
529
+ attr_reader :preference
530
+ # The effective display preference value.
531
+ attr_reader :value
532
+ end
533
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
534
+ attr_reader :available
535
+ # Attribute for field display_preference
536
+ attr_reader :display_preference
537
+ end
538
+
539
+ class P24 < Stripe::StripeObject
540
+ class DisplayPreference < Stripe::StripeObject
541
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
542
+ attr_reader :overridable
543
+ # The account's display preference.
544
+ attr_reader :preference
545
+ # The effective display preference value.
546
+ attr_reader :value
547
+ end
548
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
549
+ attr_reader :available
550
+ # Attribute for field display_preference
551
+ attr_reader :display_preference
552
+ end
553
+
554
+ class PayByBank < Stripe::StripeObject
555
+ class DisplayPreference < Stripe::StripeObject
556
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
557
+ attr_reader :overridable
558
+ # The account's display preference.
559
+ attr_reader :preference
560
+ # The effective display preference value.
561
+ attr_reader :value
562
+ end
563
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
564
+ attr_reader :available
565
+ # Attribute for field display_preference
566
+ attr_reader :display_preference
567
+ end
568
+
569
+ class Payco < Stripe::StripeObject
570
+ class DisplayPreference < Stripe::StripeObject
571
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
572
+ attr_reader :overridable
573
+ # The account's display preference.
574
+ attr_reader :preference
575
+ # The effective display preference value.
576
+ attr_reader :value
577
+ end
578
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
579
+ attr_reader :available
580
+ # Attribute for field display_preference
581
+ attr_reader :display_preference
582
+ end
583
+
584
+ class Paynow < Stripe::StripeObject
585
+ class DisplayPreference < Stripe::StripeObject
586
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
587
+ attr_reader :overridable
588
+ # The account's display preference.
589
+ attr_reader :preference
590
+ # The effective display preference value.
591
+ attr_reader :value
592
+ end
593
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
594
+ attr_reader :available
595
+ # Attribute for field display_preference
596
+ attr_reader :display_preference
597
+ end
598
+
599
+ class Paypal < Stripe::StripeObject
600
+ class DisplayPreference < Stripe::StripeObject
601
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
602
+ attr_reader :overridable
603
+ # The account's display preference.
604
+ attr_reader :preference
605
+ # The effective display preference value.
606
+ attr_reader :value
607
+ end
608
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
609
+ attr_reader :available
610
+ # Attribute for field display_preference
611
+ attr_reader :display_preference
612
+ end
613
+
614
+ class Pix < Stripe::StripeObject
615
+ class DisplayPreference < Stripe::StripeObject
616
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
617
+ attr_reader :overridable
618
+ # The account's display preference.
619
+ attr_reader :preference
620
+ # The effective display preference value.
621
+ attr_reader :value
622
+ end
623
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
624
+ attr_reader :available
625
+ # Attribute for field display_preference
626
+ attr_reader :display_preference
627
+ end
628
+
629
+ class Promptpay < Stripe::StripeObject
630
+ class DisplayPreference < Stripe::StripeObject
631
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
632
+ attr_reader :overridable
633
+ # The account's display preference.
634
+ attr_reader :preference
635
+ # The effective display preference value.
636
+ attr_reader :value
637
+ end
638
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
639
+ attr_reader :available
640
+ # Attribute for field display_preference
641
+ attr_reader :display_preference
642
+ end
643
+
644
+ class RevolutPay < Stripe::StripeObject
645
+ class DisplayPreference < Stripe::StripeObject
646
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
647
+ attr_reader :overridable
648
+ # The account's display preference.
649
+ attr_reader :preference
650
+ # The effective display preference value.
651
+ attr_reader :value
652
+ end
653
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
654
+ attr_reader :available
655
+ # Attribute for field display_preference
656
+ attr_reader :display_preference
657
+ end
658
+
659
+ class SamsungPay < Stripe::StripeObject
660
+ class DisplayPreference < Stripe::StripeObject
661
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
662
+ attr_reader :overridable
663
+ # The account's display preference.
664
+ attr_reader :preference
665
+ # The effective display preference value.
666
+ attr_reader :value
667
+ end
668
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
669
+ attr_reader :available
670
+ # Attribute for field display_preference
671
+ attr_reader :display_preference
672
+ end
673
+
674
+ class Satispay < Stripe::StripeObject
675
+ class DisplayPreference < Stripe::StripeObject
676
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
677
+ attr_reader :overridable
678
+ # The account's display preference.
679
+ attr_reader :preference
680
+ # The effective display preference value.
681
+ attr_reader :value
682
+ end
683
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
684
+ attr_reader :available
685
+ # Attribute for field display_preference
686
+ attr_reader :display_preference
687
+ end
688
+
689
+ class SepaDebit < Stripe::StripeObject
690
+ class DisplayPreference < Stripe::StripeObject
691
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
692
+ attr_reader :overridable
693
+ # The account's display preference.
694
+ attr_reader :preference
695
+ # The effective display preference value.
696
+ attr_reader :value
697
+ end
698
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
699
+ attr_reader :available
700
+ # Attribute for field display_preference
701
+ attr_reader :display_preference
702
+ end
703
+
704
+ class Sofort < Stripe::StripeObject
705
+ class DisplayPreference < Stripe::StripeObject
706
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
707
+ attr_reader :overridable
708
+ # The account's display preference.
709
+ attr_reader :preference
710
+ # The effective display preference value.
711
+ attr_reader :value
712
+ end
713
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
714
+ attr_reader :available
715
+ # Attribute for field display_preference
716
+ attr_reader :display_preference
717
+ end
718
+
719
+ class Swish < Stripe::StripeObject
720
+ class DisplayPreference < Stripe::StripeObject
721
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
722
+ attr_reader :overridable
723
+ # The account's display preference.
724
+ attr_reader :preference
725
+ # The effective display preference value.
726
+ attr_reader :value
727
+ end
728
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
729
+ attr_reader :available
730
+ # Attribute for field display_preference
731
+ attr_reader :display_preference
732
+ end
733
+
734
+ class Twint < Stripe::StripeObject
735
+ class DisplayPreference < Stripe::StripeObject
736
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
737
+ attr_reader :overridable
738
+ # The account's display preference.
739
+ attr_reader :preference
740
+ # The effective display preference value.
741
+ attr_reader :value
742
+ end
743
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
744
+ attr_reader :available
745
+ # Attribute for field display_preference
746
+ attr_reader :display_preference
747
+ end
748
+
749
+ class UsBankAccount < Stripe::StripeObject
750
+ class DisplayPreference < Stripe::StripeObject
751
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
752
+ attr_reader :overridable
753
+ # The account's display preference.
754
+ attr_reader :preference
755
+ # The effective display preference value.
756
+ attr_reader :value
757
+ end
758
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
759
+ attr_reader :available
760
+ # Attribute for field display_preference
761
+ attr_reader :display_preference
762
+ end
763
+
764
+ class WechatPay < Stripe::StripeObject
765
+ class DisplayPreference < Stripe::StripeObject
766
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
767
+ attr_reader :overridable
768
+ # The account's display preference.
769
+ attr_reader :preference
770
+ # The effective display preference value.
771
+ attr_reader :value
772
+ end
773
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
774
+ attr_reader :available
775
+ # Attribute for field display_preference
776
+ attr_reader :display_preference
777
+ end
778
+
779
+ class Zip < Stripe::StripeObject
780
+ class DisplayPreference < Stripe::StripeObject
781
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
782
+ attr_reader :overridable
783
+ # The account's display preference.
784
+ attr_reader :preference
785
+ # The effective display preference value.
786
+ attr_reader :value
787
+ end
788
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
789
+ attr_reader :available
790
+ # Attribute for field display_preference
791
+ attr_reader :display_preference
792
+ end
793
+
794
+ class ListParams < Stripe::RequestParams
795
+ # The Connect application to filter by.
796
+ attr_accessor :application
797
+ # 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.
798
+ attr_accessor :ending_before
799
+ # Specifies which fields in the response should be expanded.
800
+ attr_accessor :expand
801
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
802
+ attr_accessor :limit
803
+ # 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.
804
+ attr_accessor :starting_after
805
+
806
+ def initialize(
807
+ application: nil,
808
+ ending_before: nil,
809
+ expand: nil,
810
+ limit: nil,
811
+ starting_after: nil
812
+ )
813
+ @application = application
814
+ @ending_before = ending_before
815
+ @expand = expand
816
+ @limit = limit
817
+ @starting_after = starting_after
818
+ end
819
+ end
820
+
821
+ class CreateParams < Stripe::RequestParams
822
+ class AcssDebit < Stripe::RequestParams
823
+ class DisplayPreference < Stripe::RequestParams
824
+ # The account's preference for whether or not to display this payment method.
825
+ attr_accessor :preference
826
+
827
+ def initialize(preference: nil)
828
+ @preference = preference
829
+ end
830
+ end
831
+ # Whether or not the payment method should be displayed.
832
+ attr_accessor :display_preference
833
+
834
+ def initialize(display_preference: nil)
835
+ @display_preference = display_preference
836
+ end
837
+ end
838
+
839
+ class Affirm < Stripe::RequestParams
840
+ class DisplayPreference < Stripe::RequestParams
841
+ # The account's preference for whether or not to display this payment method.
842
+ attr_accessor :preference
843
+
844
+ def initialize(preference: nil)
845
+ @preference = preference
846
+ end
847
+ end
848
+ # Whether or not the payment method should be displayed.
849
+ attr_accessor :display_preference
850
+
851
+ def initialize(display_preference: nil)
852
+ @display_preference = display_preference
853
+ end
854
+ end
855
+
856
+ class AfterpayClearpay < Stripe::RequestParams
857
+ class DisplayPreference < Stripe::RequestParams
858
+ # The account's preference for whether or not to display this payment method.
859
+ attr_accessor :preference
860
+
861
+ def initialize(preference: nil)
862
+ @preference = preference
863
+ end
864
+ end
865
+ # Whether or not the payment method should be displayed.
866
+ attr_accessor :display_preference
867
+
868
+ def initialize(display_preference: nil)
869
+ @display_preference = display_preference
870
+ end
871
+ end
872
+
873
+ class Alipay < Stripe::RequestParams
874
+ class DisplayPreference < Stripe::RequestParams
875
+ # The account's preference for whether or not to display this payment method.
876
+ attr_accessor :preference
877
+
878
+ def initialize(preference: nil)
879
+ @preference = preference
880
+ end
881
+ end
882
+ # Whether or not the payment method should be displayed.
883
+ attr_accessor :display_preference
884
+
885
+ def initialize(display_preference: nil)
886
+ @display_preference = display_preference
887
+ end
888
+ end
889
+
890
+ class Alma < Stripe::RequestParams
891
+ class DisplayPreference < Stripe::RequestParams
892
+ # The account's preference for whether or not to display this payment method.
893
+ attr_accessor :preference
894
+
895
+ def initialize(preference: nil)
896
+ @preference = preference
897
+ end
898
+ end
899
+ # Whether or not the payment method should be displayed.
900
+ attr_accessor :display_preference
901
+
902
+ def initialize(display_preference: nil)
903
+ @display_preference = display_preference
904
+ end
905
+ end
906
+
907
+ class AmazonPay < Stripe::RequestParams
908
+ class DisplayPreference < Stripe::RequestParams
909
+ # The account's preference for whether or not to display this payment method.
910
+ attr_accessor :preference
911
+
912
+ def initialize(preference: nil)
913
+ @preference = preference
914
+ end
915
+ end
916
+ # Whether or not the payment method should be displayed.
917
+ attr_accessor :display_preference
918
+
919
+ def initialize(display_preference: nil)
920
+ @display_preference = display_preference
921
+ end
922
+ end
923
+
924
+ class ApplePay < Stripe::RequestParams
925
+ class DisplayPreference < Stripe::RequestParams
926
+ # The account's preference for whether or not to display this payment method.
927
+ attr_accessor :preference
928
+
929
+ def initialize(preference: nil)
930
+ @preference = preference
931
+ end
932
+ end
933
+ # Whether or not the payment method should be displayed.
934
+ attr_accessor :display_preference
935
+
936
+ def initialize(display_preference: nil)
937
+ @display_preference = display_preference
938
+ end
939
+ end
940
+
941
+ class ApplePayLater < Stripe::RequestParams
942
+ class DisplayPreference < Stripe::RequestParams
943
+ # The account's preference for whether or not to display this payment method.
944
+ attr_accessor :preference
945
+
946
+ def initialize(preference: nil)
947
+ @preference = preference
948
+ end
949
+ end
950
+ # Whether or not the payment method should be displayed.
951
+ attr_accessor :display_preference
952
+
953
+ def initialize(display_preference: nil)
954
+ @display_preference = display_preference
955
+ end
956
+ end
957
+
958
+ class AuBecsDebit < Stripe::RequestParams
959
+ class DisplayPreference < Stripe::RequestParams
960
+ # The account's preference for whether or not to display this payment method.
961
+ attr_accessor :preference
962
+
963
+ def initialize(preference: nil)
964
+ @preference = preference
965
+ end
966
+ end
967
+ # Whether or not the payment method should be displayed.
968
+ attr_accessor :display_preference
969
+
970
+ def initialize(display_preference: nil)
971
+ @display_preference = display_preference
972
+ end
973
+ end
974
+
975
+ class BacsDebit < Stripe::RequestParams
976
+ class DisplayPreference < Stripe::RequestParams
977
+ # The account's preference for whether or not to display this payment method.
978
+ attr_accessor :preference
979
+
980
+ def initialize(preference: nil)
981
+ @preference = preference
982
+ end
983
+ end
984
+ # Whether or not the payment method should be displayed.
985
+ attr_accessor :display_preference
986
+
987
+ def initialize(display_preference: nil)
988
+ @display_preference = display_preference
989
+ end
990
+ end
991
+
992
+ class Bancontact < Stripe::RequestParams
993
+ class DisplayPreference < Stripe::RequestParams
994
+ # The account's preference for whether or not to display this payment method.
995
+ attr_accessor :preference
996
+
997
+ def initialize(preference: nil)
998
+ @preference = preference
999
+ end
1000
+ end
1001
+ # Whether or not the payment method should be displayed.
1002
+ attr_accessor :display_preference
1003
+
1004
+ def initialize(display_preference: nil)
1005
+ @display_preference = display_preference
1006
+ end
1007
+ end
1008
+
1009
+ class Billie < Stripe::RequestParams
1010
+ class DisplayPreference < Stripe::RequestParams
1011
+ # The account's preference for whether or not to display this payment method.
1012
+ attr_accessor :preference
1013
+
1014
+ def initialize(preference: nil)
1015
+ @preference = preference
1016
+ end
1017
+ end
1018
+ # Whether or not the payment method should be displayed.
1019
+ attr_accessor :display_preference
1020
+
1021
+ def initialize(display_preference: nil)
1022
+ @display_preference = display_preference
1023
+ end
1024
+ end
1025
+
1026
+ class Blik < Stripe::RequestParams
1027
+ class DisplayPreference < Stripe::RequestParams
1028
+ # The account's preference for whether or not to display this payment method.
1029
+ attr_accessor :preference
1030
+
1031
+ def initialize(preference: nil)
1032
+ @preference = preference
1033
+ end
1034
+ end
1035
+ # Whether or not the payment method should be displayed.
1036
+ attr_accessor :display_preference
1037
+
1038
+ def initialize(display_preference: nil)
1039
+ @display_preference = display_preference
1040
+ end
1041
+ end
1042
+
1043
+ class Boleto < Stripe::RequestParams
1044
+ class DisplayPreference < Stripe::RequestParams
1045
+ # The account's preference for whether or not to display this payment method.
1046
+ attr_accessor :preference
1047
+
1048
+ def initialize(preference: nil)
1049
+ @preference = preference
1050
+ end
1051
+ end
1052
+ # Whether or not the payment method should be displayed.
1053
+ attr_accessor :display_preference
1054
+
1055
+ def initialize(display_preference: nil)
1056
+ @display_preference = display_preference
1057
+ end
1058
+ end
1059
+
1060
+ class Card < Stripe::RequestParams
1061
+ class DisplayPreference < Stripe::RequestParams
1062
+ # The account's preference for whether or not to display this payment method.
1063
+ attr_accessor :preference
1064
+
1065
+ def initialize(preference: nil)
1066
+ @preference = preference
1067
+ end
1068
+ end
1069
+ # Whether or not the payment method should be displayed.
1070
+ attr_accessor :display_preference
1071
+
1072
+ def initialize(display_preference: nil)
1073
+ @display_preference = display_preference
1074
+ end
1075
+ end
1076
+
1077
+ class CartesBancaires < Stripe::RequestParams
1078
+ class DisplayPreference < Stripe::RequestParams
1079
+ # The account's preference for whether or not to display this payment method.
1080
+ attr_accessor :preference
1081
+
1082
+ def initialize(preference: nil)
1083
+ @preference = preference
1084
+ end
1085
+ end
1086
+ # Whether or not the payment method should be displayed.
1087
+ attr_accessor :display_preference
1088
+
1089
+ def initialize(display_preference: nil)
1090
+ @display_preference = display_preference
1091
+ end
1092
+ end
1093
+
1094
+ class Cashapp < Stripe::RequestParams
1095
+ class DisplayPreference < Stripe::RequestParams
1096
+ # The account's preference for whether or not to display this payment method.
1097
+ attr_accessor :preference
1098
+
1099
+ def initialize(preference: nil)
1100
+ @preference = preference
1101
+ end
1102
+ end
1103
+ # Whether or not the payment method should be displayed.
1104
+ attr_accessor :display_preference
1105
+
1106
+ def initialize(display_preference: nil)
1107
+ @display_preference = display_preference
1108
+ end
1109
+ end
1110
+
1111
+ class CustomerBalance < Stripe::RequestParams
1112
+ class DisplayPreference < Stripe::RequestParams
1113
+ # The account's preference for whether or not to display this payment method.
1114
+ attr_accessor :preference
1115
+
1116
+ def initialize(preference: nil)
1117
+ @preference = preference
1118
+ end
1119
+ end
1120
+ # Whether or not the payment method should be displayed.
1121
+ attr_accessor :display_preference
1122
+
1123
+ def initialize(display_preference: nil)
1124
+ @display_preference = display_preference
1125
+ end
1126
+ end
1127
+
1128
+ class Eps < Stripe::RequestParams
1129
+ class DisplayPreference < Stripe::RequestParams
1130
+ # The account's preference for whether or not to display this payment method.
1131
+ attr_accessor :preference
1132
+
1133
+ def initialize(preference: nil)
1134
+ @preference = preference
1135
+ end
1136
+ end
1137
+ # Whether or not the payment method should be displayed.
1138
+ attr_accessor :display_preference
1139
+
1140
+ def initialize(display_preference: nil)
1141
+ @display_preference = display_preference
1142
+ end
1143
+ end
1144
+
1145
+ class Fpx < Stripe::RequestParams
1146
+ class DisplayPreference < Stripe::RequestParams
1147
+ # The account's preference for whether or not to display this payment method.
1148
+ attr_accessor :preference
1149
+
1150
+ def initialize(preference: nil)
1151
+ @preference = preference
1152
+ end
1153
+ end
1154
+ # Whether or not the payment method should be displayed.
1155
+ attr_accessor :display_preference
1156
+
1157
+ def initialize(display_preference: nil)
1158
+ @display_preference = display_preference
1159
+ end
1160
+ end
1161
+
1162
+ class Giropay < Stripe::RequestParams
1163
+ class DisplayPreference < Stripe::RequestParams
1164
+ # The account's preference for whether or not to display this payment method.
1165
+ attr_accessor :preference
1166
+
1167
+ def initialize(preference: nil)
1168
+ @preference = preference
1169
+ end
1170
+ end
1171
+ # Whether or not the payment method should be displayed.
1172
+ attr_accessor :display_preference
1173
+
1174
+ def initialize(display_preference: nil)
1175
+ @display_preference = display_preference
1176
+ end
1177
+ end
1178
+
1179
+ class GooglePay < Stripe::RequestParams
1180
+ class DisplayPreference < Stripe::RequestParams
1181
+ # The account's preference for whether or not to display this payment method.
1182
+ attr_accessor :preference
1183
+
1184
+ def initialize(preference: nil)
1185
+ @preference = preference
1186
+ end
1187
+ end
1188
+ # Whether or not the payment method should be displayed.
1189
+ attr_accessor :display_preference
1190
+
1191
+ def initialize(display_preference: nil)
1192
+ @display_preference = display_preference
1193
+ end
1194
+ end
1195
+
1196
+ class Grabpay < Stripe::RequestParams
1197
+ class DisplayPreference < Stripe::RequestParams
1198
+ # The account's preference for whether or not to display this payment method.
1199
+ attr_accessor :preference
1200
+
1201
+ def initialize(preference: nil)
1202
+ @preference = preference
1203
+ end
1204
+ end
1205
+ # Whether or not the payment method should be displayed.
1206
+ attr_accessor :display_preference
1207
+
1208
+ def initialize(display_preference: nil)
1209
+ @display_preference = display_preference
1210
+ end
1211
+ end
1212
+
1213
+ class Ideal < Stripe::RequestParams
1214
+ class DisplayPreference < Stripe::RequestParams
1215
+ # The account's preference for whether or not to display this payment method.
1216
+ attr_accessor :preference
1217
+
1218
+ def initialize(preference: nil)
1219
+ @preference = preference
1220
+ end
1221
+ end
1222
+ # Whether or not the payment method should be displayed.
1223
+ attr_accessor :display_preference
1224
+
1225
+ def initialize(display_preference: nil)
1226
+ @display_preference = display_preference
1227
+ end
1228
+ end
1229
+
1230
+ class Jcb < Stripe::RequestParams
1231
+ class DisplayPreference < Stripe::RequestParams
1232
+ # The account's preference for whether or not to display this payment method.
1233
+ attr_accessor :preference
1234
+
1235
+ def initialize(preference: nil)
1236
+ @preference = preference
1237
+ end
1238
+ end
1239
+ # Whether or not the payment method should be displayed.
1240
+ attr_accessor :display_preference
1241
+
1242
+ def initialize(display_preference: nil)
1243
+ @display_preference = display_preference
1244
+ end
1245
+ end
1246
+
1247
+ class KakaoPay < Stripe::RequestParams
1248
+ class DisplayPreference < Stripe::RequestParams
1249
+ # The account's preference for whether or not to display this payment method.
1250
+ attr_accessor :preference
1251
+
1252
+ def initialize(preference: nil)
1253
+ @preference = preference
1254
+ end
1255
+ end
1256
+ # Whether or not the payment method should be displayed.
1257
+ attr_accessor :display_preference
1258
+
1259
+ def initialize(display_preference: nil)
1260
+ @display_preference = display_preference
1261
+ end
1262
+ end
1263
+
1264
+ class Klarna < Stripe::RequestParams
1265
+ class DisplayPreference < Stripe::RequestParams
1266
+ # The account's preference for whether or not to display this payment method.
1267
+ attr_accessor :preference
1268
+
1269
+ def initialize(preference: nil)
1270
+ @preference = preference
1271
+ end
1272
+ end
1273
+ # Whether or not the payment method should be displayed.
1274
+ attr_accessor :display_preference
1275
+
1276
+ def initialize(display_preference: nil)
1277
+ @display_preference = display_preference
1278
+ end
1279
+ end
1280
+
1281
+ class Konbini < Stripe::RequestParams
1282
+ class DisplayPreference < Stripe::RequestParams
1283
+ # The account's preference for whether or not to display this payment method.
1284
+ attr_accessor :preference
1285
+
1286
+ def initialize(preference: nil)
1287
+ @preference = preference
1288
+ end
1289
+ end
1290
+ # Whether or not the payment method should be displayed.
1291
+ attr_accessor :display_preference
1292
+
1293
+ def initialize(display_preference: nil)
1294
+ @display_preference = display_preference
1295
+ end
1296
+ end
1297
+
1298
+ class KrCard < Stripe::RequestParams
1299
+ class DisplayPreference < Stripe::RequestParams
1300
+ # The account's preference for whether or not to display this payment method.
1301
+ attr_accessor :preference
1302
+
1303
+ def initialize(preference: nil)
1304
+ @preference = preference
1305
+ end
1306
+ end
1307
+ # Whether or not the payment method should be displayed.
1308
+ attr_accessor :display_preference
1309
+
1310
+ def initialize(display_preference: nil)
1311
+ @display_preference = display_preference
1312
+ end
1313
+ end
1314
+
1315
+ class Link < Stripe::RequestParams
1316
+ class DisplayPreference < Stripe::RequestParams
1317
+ # The account's preference for whether or not to display this payment method.
1318
+ attr_accessor :preference
1319
+
1320
+ def initialize(preference: nil)
1321
+ @preference = preference
1322
+ end
1323
+ end
1324
+ # Whether or not the payment method should be displayed.
1325
+ attr_accessor :display_preference
1326
+
1327
+ def initialize(display_preference: nil)
1328
+ @display_preference = display_preference
1329
+ end
1330
+ end
1331
+
1332
+ class Mobilepay < Stripe::RequestParams
1333
+ class DisplayPreference < Stripe::RequestParams
1334
+ # The account's preference for whether or not to display this payment method.
1335
+ attr_accessor :preference
1336
+
1337
+ def initialize(preference: nil)
1338
+ @preference = preference
1339
+ end
1340
+ end
1341
+ # Whether or not the payment method should be displayed.
1342
+ attr_accessor :display_preference
1343
+
1344
+ def initialize(display_preference: nil)
1345
+ @display_preference = display_preference
1346
+ end
1347
+ end
1348
+
1349
+ class Multibanco < Stripe::RequestParams
1350
+ class DisplayPreference < Stripe::RequestParams
1351
+ # The account's preference for whether or not to display this payment method.
1352
+ attr_accessor :preference
1353
+
1354
+ def initialize(preference: nil)
1355
+ @preference = preference
1356
+ end
1357
+ end
1358
+ # Whether or not the payment method should be displayed.
1359
+ attr_accessor :display_preference
1360
+
1361
+ def initialize(display_preference: nil)
1362
+ @display_preference = display_preference
1363
+ end
1364
+ end
1365
+
1366
+ class NaverPay < Stripe::RequestParams
1367
+ class DisplayPreference < Stripe::RequestParams
1368
+ # The account's preference for whether or not to display this payment method.
1369
+ attr_accessor :preference
1370
+
1371
+ def initialize(preference: nil)
1372
+ @preference = preference
1373
+ end
1374
+ end
1375
+ # Whether or not the payment method should be displayed.
1376
+ attr_accessor :display_preference
1377
+
1378
+ def initialize(display_preference: nil)
1379
+ @display_preference = display_preference
1380
+ end
1381
+ end
1382
+
1383
+ class NzBankAccount < Stripe::RequestParams
1384
+ class DisplayPreference < Stripe::RequestParams
1385
+ # The account's preference for whether or not to display this payment method.
1386
+ attr_accessor :preference
1387
+
1388
+ def initialize(preference: nil)
1389
+ @preference = preference
1390
+ end
1391
+ end
1392
+ # Whether or not the payment method should be displayed.
1393
+ attr_accessor :display_preference
1394
+
1395
+ def initialize(display_preference: nil)
1396
+ @display_preference = display_preference
1397
+ end
1398
+ end
1399
+
1400
+ class Oxxo < Stripe::RequestParams
1401
+ class DisplayPreference < Stripe::RequestParams
1402
+ # The account's preference for whether or not to display this payment method.
1403
+ attr_accessor :preference
1404
+
1405
+ def initialize(preference: nil)
1406
+ @preference = preference
1407
+ end
1408
+ end
1409
+ # Whether or not the payment method should be displayed.
1410
+ attr_accessor :display_preference
1411
+
1412
+ def initialize(display_preference: nil)
1413
+ @display_preference = display_preference
1414
+ end
1415
+ end
1416
+
1417
+ class P24 < Stripe::RequestParams
1418
+ class DisplayPreference < Stripe::RequestParams
1419
+ # The account's preference for whether or not to display this payment method.
1420
+ attr_accessor :preference
1421
+
1422
+ def initialize(preference: nil)
1423
+ @preference = preference
1424
+ end
1425
+ end
1426
+ # Whether or not the payment method should be displayed.
1427
+ attr_accessor :display_preference
1428
+
1429
+ def initialize(display_preference: nil)
1430
+ @display_preference = display_preference
1431
+ end
1432
+ end
1433
+
1434
+ class PayByBank < Stripe::RequestParams
1435
+ class DisplayPreference < Stripe::RequestParams
1436
+ # The account's preference for whether or not to display this payment method.
1437
+ attr_accessor :preference
1438
+
1439
+ def initialize(preference: nil)
1440
+ @preference = preference
1441
+ end
1442
+ end
1443
+ # Whether or not the payment method should be displayed.
1444
+ attr_accessor :display_preference
1445
+
1446
+ def initialize(display_preference: nil)
1447
+ @display_preference = display_preference
1448
+ end
1449
+ end
1450
+
1451
+ class Payco < Stripe::RequestParams
1452
+ class DisplayPreference < Stripe::RequestParams
1453
+ # The account's preference for whether or not to display this payment method.
1454
+ attr_accessor :preference
1455
+
1456
+ def initialize(preference: nil)
1457
+ @preference = preference
1458
+ end
1459
+ end
1460
+ # Whether or not the payment method should be displayed.
1461
+ attr_accessor :display_preference
1462
+
1463
+ def initialize(display_preference: nil)
1464
+ @display_preference = display_preference
1465
+ end
1466
+ end
1467
+
1468
+ class Paynow < Stripe::RequestParams
1469
+ class DisplayPreference < Stripe::RequestParams
1470
+ # The account's preference for whether or not to display this payment method.
1471
+ attr_accessor :preference
1472
+
1473
+ def initialize(preference: nil)
1474
+ @preference = preference
1475
+ end
1476
+ end
1477
+ # Whether or not the payment method should be displayed.
1478
+ attr_accessor :display_preference
1479
+
1480
+ def initialize(display_preference: nil)
1481
+ @display_preference = display_preference
1482
+ end
1483
+ end
1484
+
1485
+ class Paypal < Stripe::RequestParams
1486
+ class DisplayPreference < Stripe::RequestParams
1487
+ # The account's preference for whether or not to display this payment method.
1488
+ attr_accessor :preference
1489
+
1490
+ def initialize(preference: nil)
1491
+ @preference = preference
1492
+ end
1493
+ end
1494
+ # Whether or not the payment method should be displayed.
1495
+ attr_accessor :display_preference
1496
+
1497
+ def initialize(display_preference: nil)
1498
+ @display_preference = display_preference
1499
+ end
1500
+ end
1501
+
1502
+ class Pix < Stripe::RequestParams
1503
+ class DisplayPreference < Stripe::RequestParams
1504
+ # The account's preference for whether or not to display this payment method.
1505
+ attr_accessor :preference
1506
+
1507
+ def initialize(preference: nil)
1508
+ @preference = preference
1509
+ end
1510
+ end
1511
+ # Whether or not the payment method should be displayed.
1512
+ attr_accessor :display_preference
1513
+
1514
+ def initialize(display_preference: nil)
1515
+ @display_preference = display_preference
1516
+ end
1517
+ end
1518
+
1519
+ class Promptpay < Stripe::RequestParams
1520
+ class DisplayPreference < Stripe::RequestParams
1521
+ # The account's preference for whether or not to display this payment method.
1522
+ attr_accessor :preference
1523
+
1524
+ def initialize(preference: nil)
1525
+ @preference = preference
1526
+ end
1527
+ end
1528
+ # Whether or not the payment method should be displayed.
1529
+ attr_accessor :display_preference
1530
+
1531
+ def initialize(display_preference: nil)
1532
+ @display_preference = display_preference
1533
+ end
1534
+ end
1535
+
1536
+ class RevolutPay < Stripe::RequestParams
1537
+ class DisplayPreference < Stripe::RequestParams
1538
+ # The account's preference for whether or not to display this payment method.
1539
+ attr_accessor :preference
1540
+
1541
+ def initialize(preference: nil)
1542
+ @preference = preference
1543
+ end
1544
+ end
1545
+ # Whether or not the payment method should be displayed.
1546
+ attr_accessor :display_preference
1547
+
1548
+ def initialize(display_preference: nil)
1549
+ @display_preference = display_preference
1550
+ end
1551
+ end
1552
+
1553
+ class SamsungPay < Stripe::RequestParams
1554
+ class DisplayPreference < Stripe::RequestParams
1555
+ # The account's preference for whether or not to display this payment method.
1556
+ attr_accessor :preference
1557
+
1558
+ def initialize(preference: nil)
1559
+ @preference = preference
1560
+ end
1561
+ end
1562
+ # Whether or not the payment method should be displayed.
1563
+ attr_accessor :display_preference
1564
+
1565
+ def initialize(display_preference: nil)
1566
+ @display_preference = display_preference
1567
+ end
1568
+ end
1569
+
1570
+ class Satispay < Stripe::RequestParams
1571
+ class DisplayPreference < Stripe::RequestParams
1572
+ # The account's preference for whether or not to display this payment method.
1573
+ attr_accessor :preference
1574
+
1575
+ def initialize(preference: nil)
1576
+ @preference = preference
1577
+ end
1578
+ end
1579
+ # Whether or not the payment method should be displayed.
1580
+ attr_accessor :display_preference
1581
+
1582
+ def initialize(display_preference: nil)
1583
+ @display_preference = display_preference
1584
+ end
1585
+ end
1586
+
1587
+ class SepaDebit < Stripe::RequestParams
1588
+ class DisplayPreference < Stripe::RequestParams
1589
+ # The account's preference for whether or not to display this payment method.
1590
+ attr_accessor :preference
1591
+
1592
+ def initialize(preference: nil)
1593
+ @preference = preference
1594
+ end
1595
+ end
1596
+ # Whether or not the payment method should be displayed.
1597
+ attr_accessor :display_preference
1598
+
1599
+ def initialize(display_preference: nil)
1600
+ @display_preference = display_preference
1601
+ end
1602
+ end
1603
+
1604
+ class Sofort < Stripe::RequestParams
1605
+ class DisplayPreference < Stripe::RequestParams
1606
+ # The account's preference for whether or not to display this payment method.
1607
+ attr_accessor :preference
1608
+
1609
+ def initialize(preference: nil)
1610
+ @preference = preference
1611
+ end
1612
+ end
1613
+ # Whether or not the payment method should be displayed.
1614
+ attr_accessor :display_preference
1615
+
1616
+ def initialize(display_preference: nil)
1617
+ @display_preference = display_preference
1618
+ end
1619
+ end
1620
+
1621
+ class Swish < Stripe::RequestParams
1622
+ class DisplayPreference < Stripe::RequestParams
1623
+ # The account's preference for whether or not to display this payment method.
1624
+ attr_accessor :preference
1625
+
1626
+ def initialize(preference: nil)
1627
+ @preference = preference
1628
+ end
1629
+ end
1630
+ # Whether or not the payment method should be displayed.
1631
+ attr_accessor :display_preference
1632
+
1633
+ def initialize(display_preference: nil)
1634
+ @display_preference = display_preference
1635
+ end
1636
+ end
1637
+
1638
+ class Twint < Stripe::RequestParams
1639
+ class DisplayPreference < Stripe::RequestParams
1640
+ # The account's preference for whether or not to display this payment method.
1641
+ attr_accessor :preference
1642
+
1643
+ def initialize(preference: nil)
1644
+ @preference = preference
1645
+ end
1646
+ end
1647
+ # Whether or not the payment method should be displayed.
1648
+ attr_accessor :display_preference
1649
+
1650
+ def initialize(display_preference: nil)
1651
+ @display_preference = display_preference
1652
+ end
1653
+ end
1654
+
1655
+ class UsBankAccount < Stripe::RequestParams
1656
+ class DisplayPreference < Stripe::RequestParams
1657
+ # The account's preference for whether or not to display this payment method.
1658
+ attr_accessor :preference
1659
+
1660
+ def initialize(preference: nil)
1661
+ @preference = preference
1662
+ end
1663
+ end
1664
+ # Whether or not the payment method should be displayed.
1665
+ attr_accessor :display_preference
1666
+
1667
+ def initialize(display_preference: nil)
1668
+ @display_preference = display_preference
1669
+ end
1670
+ end
1671
+
1672
+ class WechatPay < Stripe::RequestParams
1673
+ class DisplayPreference < Stripe::RequestParams
1674
+ # The account's preference for whether or not to display this payment method.
1675
+ attr_accessor :preference
1676
+
1677
+ def initialize(preference: nil)
1678
+ @preference = preference
1679
+ end
1680
+ end
1681
+ # Whether or not the payment method should be displayed.
1682
+ attr_accessor :display_preference
1683
+
1684
+ def initialize(display_preference: nil)
1685
+ @display_preference = display_preference
1686
+ end
1687
+ end
1688
+
1689
+ class Zip < Stripe::RequestParams
1690
+ class DisplayPreference < Stripe::RequestParams
1691
+ # The account's preference for whether or not to display this payment method.
1692
+ attr_accessor :preference
1693
+
1694
+ def initialize(preference: nil)
1695
+ @preference = preference
1696
+ end
1697
+ end
1698
+ # Whether or not the payment method should be displayed.
1699
+ attr_accessor :display_preference
1700
+
1701
+ def initialize(display_preference: nil)
1702
+ @display_preference = display_preference
1703
+ end
1704
+ end
1705
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
1706
+ attr_accessor :acss_debit
1707
+ # [Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. Check this [page](https://stripe.com/docs/payments/affirm) for more details like country availability.
1708
+ attr_accessor :affirm
1709
+ # Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://stripe.com/docs/payments/afterpay-clearpay) for more details like country availability. Afterpay is particularly popular among businesses selling fashion, beauty, and sports products.
1710
+ attr_accessor :afterpay_clearpay
1711
+ # Alipay is a digital wallet in China that has more than a billion active users worldwide. Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. Check this [page](https://stripe.com/docs/payments/alipay) for more details.
1712
+ attr_accessor :alipay
1713
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
1714
+ attr_accessor :alma
1715
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
1716
+ attr_accessor :amazon_pay
1717
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
1718
+ attr_accessor :apple_pay
1719
+ # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
1720
+ attr_accessor :apple_pay_later
1721
+ # Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. Check this [page](https://stripe.com/docs/payments/au-becs-debit) for more details.
1722
+ attr_accessor :au_becs_debit
1723
+ # Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://stripe.com/docs/payments/payment-methods/bacs-debit) for more details.
1724
+ attr_accessor :bacs_debit
1725
+ # Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. [Customers](https://stripe.com/docs/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. Check this [page](https://stripe.com/docs/payments/bancontact) for more details.
1726
+ attr_accessor :bancontact
1727
+ # Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1728
+ attr_accessor :billie
1729
+ # BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://stripe.com/docs/payments/blik) for more details.
1730
+ attr_accessor :blik
1731
+ # Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://stripe.com/docs/payments/boleto) for more details.
1732
+ attr_accessor :boleto
1733
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
1734
+ attr_accessor :card
1735
+ # Cartes Bancaires is France's local card network. More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. Check this [page](https://stripe.com/docs/payments/cartes-bancaires) for more details.
1736
+ attr_accessor :cartes_bancaires
1737
+ # Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details.
1738
+ attr_accessor :cashapp
1739
+ # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
1740
+ attr_accessor :customer_balance
1741
+ # EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.
1742
+ attr_accessor :eps
1743
+ # Specifies which fields in the response should be expanded.
1744
+ attr_accessor :expand
1745
+ # Financial Process Exchange (FPX) is a Malaysia-based payment method that allows customers to complete transactions online using their bank credentials. Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. Check this [page](https://stripe.com/docs/payments/fpx) for more details.
1746
+ attr_accessor :fpx
1747
+ # giropay is a German payment method based on online banking, introduced in 2006. It allows customers to complete transactions online using their online banking environment, with funds debited from their bank account. Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. giropay accounts for 10% of online checkouts in Germany. Check this [page](https://stripe.com/docs/payments/giropay) for more details.
1748
+ attr_accessor :giropay
1749
+ # Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details.
1750
+ attr_accessor :google_pay
1751
+ # GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details.
1752
+ attr_accessor :grabpay
1753
+ # iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://stripe.com/docs/payments/ideal) for more details.
1754
+ attr_accessor :ideal
1755
+ # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
1756
+ attr_accessor :jcb
1757
+ # Kakao Pay is a popular local wallet available in South Korea.
1758
+ attr_accessor :kakao_pay
1759
+ # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
1760
+ attr_accessor :klarna
1761
+ # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
1762
+ attr_accessor :konbini
1763
+ # Korean cards let users pay using locally issued cards from South Korea.
1764
+ attr_accessor :kr_card
1765
+ # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
1766
+ attr_accessor :link
1767
+ # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
1768
+ attr_accessor :mobilepay
1769
+ # Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
1770
+ attr_accessor :multibanco
1771
+ # Configuration name.
1772
+ attr_accessor :name
1773
+ # Naver Pay is a popular local wallet available in South Korea.
1774
+ attr_accessor :naver_pay
1775
+ # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
1776
+ attr_accessor :nz_bank_account
1777
+ # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
1778
+ attr_accessor :oxxo
1779
+ # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details.
1780
+ attr_accessor :p24
1781
+ # Configuration's parent configuration. Specify to create a child configuration.
1782
+ attr_accessor :parent
1783
+ # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1784
+ attr_accessor :pay_by_bank
1785
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1786
+ attr_accessor :payco
1787
+ # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
1788
+ attr_accessor :paynow
1789
+ # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
1790
+ attr_accessor :paypal
1791
+ # Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
1792
+ attr_accessor :pix
1793
+ # PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
1794
+ attr_accessor :promptpay
1795
+ # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
1796
+ attr_accessor :revolut_pay
1797
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1798
+ attr_accessor :samsung_pay
1799
+ # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1800
+ attr_accessor :satispay
1801
+ # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
1802
+ attr_accessor :sepa_debit
1803
+ # Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details.
1804
+ attr_accessor :sofort
1805
+ # Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details.
1806
+ attr_accessor :swish
1807
+ # Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
1808
+ attr_accessor :twint
1809
+ # Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details.
1810
+ attr_accessor :us_bank_account
1811
+ # WeChat, owned by Tencent, is China's leading mobile app with over 1 billion monthly active users. Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. Check this [page](https://stripe.com/docs/payments/wechat-pay) for more details.
1812
+ attr_accessor :wechat_pay
1813
+ # Zip gives your customers a way to split purchases over a series of payments. Check this [page](https://stripe.com/docs/payments/zip) for more details like country availability.
1814
+ attr_accessor :zip
1815
+
1816
+ def initialize(
1817
+ acss_debit: nil,
1818
+ affirm: nil,
1819
+ afterpay_clearpay: nil,
1820
+ alipay: nil,
1821
+ alma: nil,
1822
+ amazon_pay: nil,
1823
+ apple_pay: nil,
1824
+ apple_pay_later: nil,
1825
+ au_becs_debit: nil,
1826
+ bacs_debit: nil,
1827
+ bancontact: nil,
1828
+ billie: nil,
1829
+ blik: nil,
1830
+ boleto: nil,
1831
+ card: nil,
1832
+ cartes_bancaires: nil,
1833
+ cashapp: nil,
1834
+ customer_balance: nil,
1835
+ eps: nil,
1836
+ expand: nil,
1837
+ fpx: nil,
1838
+ giropay: nil,
1839
+ google_pay: nil,
1840
+ grabpay: nil,
1841
+ ideal: nil,
1842
+ jcb: nil,
1843
+ kakao_pay: nil,
1844
+ klarna: nil,
1845
+ konbini: nil,
1846
+ kr_card: nil,
1847
+ link: nil,
1848
+ mobilepay: nil,
1849
+ multibanco: nil,
1850
+ name: nil,
1851
+ naver_pay: nil,
1852
+ nz_bank_account: nil,
1853
+ oxxo: nil,
1854
+ p24: nil,
1855
+ parent: nil,
1856
+ pay_by_bank: nil,
1857
+ payco: nil,
1858
+ paynow: nil,
1859
+ paypal: nil,
1860
+ pix: nil,
1861
+ promptpay: nil,
1862
+ revolut_pay: nil,
1863
+ samsung_pay: nil,
1864
+ satispay: nil,
1865
+ sepa_debit: nil,
1866
+ sofort: nil,
1867
+ swish: nil,
1868
+ twint: nil,
1869
+ us_bank_account: nil,
1870
+ wechat_pay: nil,
1871
+ zip: nil
1872
+ )
1873
+ @acss_debit = acss_debit
1874
+ @affirm = affirm
1875
+ @afterpay_clearpay = afterpay_clearpay
1876
+ @alipay = alipay
1877
+ @alma = alma
1878
+ @amazon_pay = amazon_pay
1879
+ @apple_pay = apple_pay
1880
+ @apple_pay_later = apple_pay_later
1881
+ @au_becs_debit = au_becs_debit
1882
+ @bacs_debit = bacs_debit
1883
+ @bancontact = bancontact
1884
+ @billie = billie
1885
+ @blik = blik
1886
+ @boleto = boleto
1887
+ @card = card
1888
+ @cartes_bancaires = cartes_bancaires
1889
+ @cashapp = cashapp
1890
+ @customer_balance = customer_balance
1891
+ @eps = eps
1892
+ @expand = expand
1893
+ @fpx = fpx
1894
+ @giropay = giropay
1895
+ @google_pay = google_pay
1896
+ @grabpay = grabpay
1897
+ @ideal = ideal
1898
+ @jcb = jcb
1899
+ @kakao_pay = kakao_pay
1900
+ @klarna = klarna
1901
+ @konbini = konbini
1902
+ @kr_card = kr_card
1903
+ @link = link
1904
+ @mobilepay = mobilepay
1905
+ @multibanco = multibanco
1906
+ @name = name
1907
+ @naver_pay = naver_pay
1908
+ @nz_bank_account = nz_bank_account
1909
+ @oxxo = oxxo
1910
+ @p24 = p24
1911
+ @parent = parent
1912
+ @pay_by_bank = pay_by_bank
1913
+ @payco = payco
1914
+ @paynow = paynow
1915
+ @paypal = paypal
1916
+ @pix = pix
1917
+ @promptpay = promptpay
1918
+ @revolut_pay = revolut_pay
1919
+ @samsung_pay = samsung_pay
1920
+ @satispay = satispay
1921
+ @sepa_debit = sepa_debit
1922
+ @sofort = sofort
1923
+ @swish = swish
1924
+ @twint = twint
1925
+ @us_bank_account = us_bank_account
1926
+ @wechat_pay = wechat_pay
1927
+ @zip = zip
1928
+ end
1929
+ end
1930
+
1931
+ class UpdateParams < Stripe::RequestParams
1932
+ class AcssDebit < Stripe::RequestParams
1933
+ class DisplayPreference < Stripe::RequestParams
1934
+ # The account's preference for whether or not to display this payment method.
1935
+ attr_accessor :preference
1936
+
1937
+ def initialize(preference: nil)
1938
+ @preference = preference
1939
+ end
1940
+ end
1941
+ # Whether or not the payment method should be displayed.
1942
+ attr_accessor :display_preference
1943
+
1944
+ def initialize(display_preference: nil)
1945
+ @display_preference = display_preference
1946
+ end
1947
+ end
1948
+
1949
+ class Affirm < Stripe::RequestParams
1950
+ class DisplayPreference < Stripe::RequestParams
1951
+ # The account's preference for whether or not to display this payment method.
1952
+ attr_accessor :preference
1953
+
1954
+ def initialize(preference: nil)
1955
+ @preference = preference
1956
+ end
1957
+ end
1958
+ # Whether or not the payment method should be displayed.
1959
+ attr_accessor :display_preference
1960
+
1961
+ def initialize(display_preference: nil)
1962
+ @display_preference = display_preference
1963
+ end
1964
+ end
1965
+
1966
+ class AfterpayClearpay < Stripe::RequestParams
1967
+ class DisplayPreference < Stripe::RequestParams
1968
+ # The account's preference for whether or not to display this payment method.
1969
+ attr_accessor :preference
1970
+
1971
+ def initialize(preference: nil)
1972
+ @preference = preference
1973
+ end
1974
+ end
1975
+ # Whether or not the payment method should be displayed.
1976
+ attr_accessor :display_preference
1977
+
1978
+ def initialize(display_preference: nil)
1979
+ @display_preference = display_preference
1980
+ end
1981
+ end
1982
+
1983
+ class Alipay < Stripe::RequestParams
1984
+ class DisplayPreference < Stripe::RequestParams
1985
+ # The account's preference for whether or not to display this payment method.
1986
+ attr_accessor :preference
1987
+
1988
+ def initialize(preference: nil)
1989
+ @preference = preference
1990
+ end
1991
+ end
1992
+ # Whether or not the payment method should be displayed.
1993
+ attr_accessor :display_preference
1994
+
1995
+ def initialize(display_preference: nil)
1996
+ @display_preference = display_preference
1997
+ end
1998
+ end
1999
+
2000
+ class Alma < Stripe::RequestParams
2001
+ class DisplayPreference < Stripe::RequestParams
2002
+ # The account's preference for whether or not to display this payment method.
2003
+ attr_accessor :preference
2004
+
2005
+ def initialize(preference: nil)
2006
+ @preference = preference
2007
+ end
2008
+ end
2009
+ # Whether or not the payment method should be displayed.
2010
+ attr_accessor :display_preference
2011
+
2012
+ def initialize(display_preference: nil)
2013
+ @display_preference = display_preference
2014
+ end
2015
+ end
2016
+
2017
+ class AmazonPay < Stripe::RequestParams
2018
+ class DisplayPreference < Stripe::RequestParams
2019
+ # The account's preference for whether or not to display this payment method.
2020
+ attr_accessor :preference
2021
+
2022
+ def initialize(preference: nil)
2023
+ @preference = preference
2024
+ end
2025
+ end
2026
+ # Whether or not the payment method should be displayed.
2027
+ attr_accessor :display_preference
2028
+
2029
+ def initialize(display_preference: nil)
2030
+ @display_preference = display_preference
2031
+ end
2032
+ end
2033
+
2034
+ class ApplePay < Stripe::RequestParams
2035
+ class DisplayPreference < Stripe::RequestParams
2036
+ # The account's preference for whether or not to display this payment method.
2037
+ attr_accessor :preference
2038
+
2039
+ def initialize(preference: nil)
2040
+ @preference = preference
2041
+ end
2042
+ end
2043
+ # Whether or not the payment method should be displayed.
2044
+ attr_accessor :display_preference
2045
+
2046
+ def initialize(display_preference: nil)
2047
+ @display_preference = display_preference
2048
+ end
2049
+ end
2050
+
2051
+ class ApplePayLater < Stripe::RequestParams
2052
+ class DisplayPreference < Stripe::RequestParams
2053
+ # The account's preference for whether or not to display this payment method.
2054
+ attr_accessor :preference
2055
+
2056
+ def initialize(preference: nil)
2057
+ @preference = preference
2058
+ end
2059
+ end
2060
+ # Whether or not the payment method should be displayed.
2061
+ attr_accessor :display_preference
2062
+
2063
+ def initialize(display_preference: nil)
2064
+ @display_preference = display_preference
2065
+ end
2066
+ end
2067
+
2068
+ class AuBecsDebit < Stripe::RequestParams
2069
+ class DisplayPreference < Stripe::RequestParams
2070
+ # The account's preference for whether or not to display this payment method.
2071
+ attr_accessor :preference
2072
+
2073
+ def initialize(preference: nil)
2074
+ @preference = preference
2075
+ end
2076
+ end
2077
+ # Whether or not the payment method should be displayed.
2078
+ attr_accessor :display_preference
2079
+
2080
+ def initialize(display_preference: nil)
2081
+ @display_preference = display_preference
2082
+ end
2083
+ end
2084
+
2085
+ class BacsDebit < Stripe::RequestParams
2086
+ class DisplayPreference < Stripe::RequestParams
2087
+ # The account's preference for whether or not to display this payment method.
2088
+ attr_accessor :preference
2089
+
2090
+ def initialize(preference: nil)
2091
+ @preference = preference
2092
+ end
2093
+ end
2094
+ # Whether or not the payment method should be displayed.
2095
+ attr_accessor :display_preference
2096
+
2097
+ def initialize(display_preference: nil)
2098
+ @display_preference = display_preference
2099
+ end
2100
+ end
2101
+
2102
+ class Bancontact < Stripe::RequestParams
2103
+ class DisplayPreference < Stripe::RequestParams
2104
+ # The account's preference for whether or not to display this payment method.
2105
+ attr_accessor :preference
2106
+
2107
+ def initialize(preference: nil)
2108
+ @preference = preference
2109
+ end
2110
+ end
2111
+ # Whether or not the payment method should be displayed.
2112
+ attr_accessor :display_preference
2113
+
2114
+ def initialize(display_preference: nil)
2115
+ @display_preference = display_preference
2116
+ end
2117
+ end
2118
+
2119
+ class Billie < Stripe::RequestParams
2120
+ class DisplayPreference < Stripe::RequestParams
2121
+ # The account's preference for whether or not to display this payment method.
2122
+ attr_accessor :preference
2123
+
2124
+ def initialize(preference: nil)
2125
+ @preference = preference
2126
+ end
2127
+ end
2128
+ # Whether or not the payment method should be displayed.
2129
+ attr_accessor :display_preference
2130
+
2131
+ def initialize(display_preference: nil)
2132
+ @display_preference = display_preference
2133
+ end
2134
+ end
2135
+
2136
+ class Blik < Stripe::RequestParams
2137
+ class DisplayPreference < Stripe::RequestParams
2138
+ # The account's preference for whether or not to display this payment method.
2139
+ attr_accessor :preference
2140
+
2141
+ def initialize(preference: nil)
2142
+ @preference = preference
2143
+ end
2144
+ end
2145
+ # Whether or not the payment method should be displayed.
2146
+ attr_accessor :display_preference
2147
+
2148
+ def initialize(display_preference: nil)
2149
+ @display_preference = display_preference
2150
+ end
2151
+ end
2152
+
2153
+ class Boleto < Stripe::RequestParams
2154
+ class DisplayPreference < Stripe::RequestParams
2155
+ # The account's preference for whether or not to display this payment method.
2156
+ attr_accessor :preference
2157
+
2158
+ def initialize(preference: nil)
2159
+ @preference = preference
2160
+ end
2161
+ end
2162
+ # Whether or not the payment method should be displayed.
2163
+ attr_accessor :display_preference
2164
+
2165
+ def initialize(display_preference: nil)
2166
+ @display_preference = display_preference
2167
+ end
2168
+ end
2169
+
2170
+ class Card < Stripe::RequestParams
2171
+ class DisplayPreference < Stripe::RequestParams
2172
+ # The account's preference for whether or not to display this payment method.
2173
+ attr_accessor :preference
2174
+
2175
+ def initialize(preference: nil)
2176
+ @preference = preference
2177
+ end
2178
+ end
2179
+ # Whether or not the payment method should be displayed.
2180
+ attr_accessor :display_preference
2181
+
2182
+ def initialize(display_preference: nil)
2183
+ @display_preference = display_preference
2184
+ end
2185
+ end
2186
+
2187
+ class CartesBancaires < Stripe::RequestParams
2188
+ class DisplayPreference < Stripe::RequestParams
2189
+ # The account's preference for whether or not to display this payment method.
2190
+ attr_accessor :preference
2191
+
2192
+ def initialize(preference: nil)
2193
+ @preference = preference
2194
+ end
2195
+ end
2196
+ # Whether or not the payment method should be displayed.
2197
+ attr_accessor :display_preference
2198
+
2199
+ def initialize(display_preference: nil)
2200
+ @display_preference = display_preference
2201
+ end
2202
+ end
2203
+
2204
+ class Cashapp < Stripe::RequestParams
2205
+ class DisplayPreference < Stripe::RequestParams
2206
+ # The account's preference for whether or not to display this payment method.
2207
+ attr_accessor :preference
2208
+
2209
+ def initialize(preference: nil)
2210
+ @preference = preference
2211
+ end
2212
+ end
2213
+ # Whether or not the payment method should be displayed.
2214
+ attr_accessor :display_preference
2215
+
2216
+ def initialize(display_preference: nil)
2217
+ @display_preference = display_preference
2218
+ end
2219
+ end
2220
+
2221
+ class CustomerBalance < Stripe::RequestParams
2222
+ class DisplayPreference < Stripe::RequestParams
2223
+ # The account's preference for whether or not to display this payment method.
2224
+ attr_accessor :preference
2225
+
2226
+ def initialize(preference: nil)
2227
+ @preference = preference
2228
+ end
2229
+ end
2230
+ # Whether or not the payment method should be displayed.
2231
+ attr_accessor :display_preference
2232
+
2233
+ def initialize(display_preference: nil)
2234
+ @display_preference = display_preference
2235
+ end
2236
+ end
2237
+
2238
+ class Eps < Stripe::RequestParams
2239
+ class DisplayPreference < Stripe::RequestParams
2240
+ # The account's preference for whether or not to display this payment method.
2241
+ attr_accessor :preference
2242
+
2243
+ def initialize(preference: nil)
2244
+ @preference = preference
2245
+ end
2246
+ end
2247
+ # Whether or not the payment method should be displayed.
2248
+ attr_accessor :display_preference
2249
+
2250
+ def initialize(display_preference: nil)
2251
+ @display_preference = display_preference
2252
+ end
2253
+ end
2254
+
2255
+ class Fpx < Stripe::RequestParams
2256
+ class DisplayPreference < Stripe::RequestParams
2257
+ # The account's preference for whether or not to display this payment method.
2258
+ attr_accessor :preference
2259
+
2260
+ def initialize(preference: nil)
2261
+ @preference = preference
2262
+ end
2263
+ end
2264
+ # Whether or not the payment method should be displayed.
2265
+ attr_accessor :display_preference
2266
+
2267
+ def initialize(display_preference: nil)
2268
+ @display_preference = display_preference
2269
+ end
2270
+ end
2271
+
2272
+ class Giropay < Stripe::RequestParams
2273
+ class DisplayPreference < Stripe::RequestParams
2274
+ # The account's preference for whether or not to display this payment method.
2275
+ attr_accessor :preference
2276
+
2277
+ def initialize(preference: nil)
2278
+ @preference = preference
2279
+ end
2280
+ end
2281
+ # Whether or not the payment method should be displayed.
2282
+ attr_accessor :display_preference
2283
+
2284
+ def initialize(display_preference: nil)
2285
+ @display_preference = display_preference
2286
+ end
2287
+ end
2288
+
2289
+ class GooglePay < Stripe::RequestParams
2290
+ class DisplayPreference < Stripe::RequestParams
2291
+ # The account's preference for whether or not to display this payment method.
2292
+ attr_accessor :preference
2293
+
2294
+ def initialize(preference: nil)
2295
+ @preference = preference
2296
+ end
2297
+ end
2298
+ # Whether or not the payment method should be displayed.
2299
+ attr_accessor :display_preference
2300
+
2301
+ def initialize(display_preference: nil)
2302
+ @display_preference = display_preference
2303
+ end
2304
+ end
2305
+
2306
+ class Grabpay < Stripe::RequestParams
2307
+ class DisplayPreference < Stripe::RequestParams
2308
+ # The account's preference for whether or not to display this payment method.
2309
+ attr_accessor :preference
2310
+
2311
+ def initialize(preference: nil)
2312
+ @preference = preference
2313
+ end
2314
+ end
2315
+ # Whether or not the payment method should be displayed.
2316
+ attr_accessor :display_preference
2317
+
2318
+ def initialize(display_preference: nil)
2319
+ @display_preference = display_preference
2320
+ end
2321
+ end
2322
+
2323
+ class Ideal < Stripe::RequestParams
2324
+ class DisplayPreference < Stripe::RequestParams
2325
+ # The account's preference for whether or not to display this payment method.
2326
+ attr_accessor :preference
2327
+
2328
+ def initialize(preference: nil)
2329
+ @preference = preference
2330
+ end
2331
+ end
2332
+ # Whether or not the payment method should be displayed.
2333
+ attr_accessor :display_preference
2334
+
2335
+ def initialize(display_preference: nil)
2336
+ @display_preference = display_preference
2337
+ end
2338
+ end
2339
+
2340
+ class Jcb < Stripe::RequestParams
2341
+ class DisplayPreference < Stripe::RequestParams
2342
+ # The account's preference for whether or not to display this payment method.
2343
+ attr_accessor :preference
2344
+
2345
+ def initialize(preference: nil)
2346
+ @preference = preference
2347
+ end
2348
+ end
2349
+ # Whether or not the payment method should be displayed.
2350
+ attr_accessor :display_preference
2351
+
2352
+ def initialize(display_preference: nil)
2353
+ @display_preference = display_preference
2354
+ end
2355
+ end
2356
+
2357
+ class KakaoPay < Stripe::RequestParams
2358
+ class DisplayPreference < Stripe::RequestParams
2359
+ # The account's preference for whether or not to display this payment method.
2360
+ attr_accessor :preference
2361
+
2362
+ def initialize(preference: nil)
2363
+ @preference = preference
2364
+ end
2365
+ end
2366
+ # Whether or not the payment method should be displayed.
2367
+ attr_accessor :display_preference
2368
+
2369
+ def initialize(display_preference: nil)
2370
+ @display_preference = display_preference
2371
+ end
2372
+ end
2373
+
2374
+ class Klarna < Stripe::RequestParams
2375
+ class DisplayPreference < Stripe::RequestParams
2376
+ # The account's preference for whether or not to display this payment method.
2377
+ attr_accessor :preference
2378
+
2379
+ def initialize(preference: nil)
2380
+ @preference = preference
2381
+ end
2382
+ end
2383
+ # Whether or not the payment method should be displayed.
2384
+ attr_accessor :display_preference
2385
+
2386
+ def initialize(display_preference: nil)
2387
+ @display_preference = display_preference
2388
+ end
2389
+ end
2390
+
2391
+ class Konbini < Stripe::RequestParams
2392
+ class DisplayPreference < Stripe::RequestParams
2393
+ # The account's preference for whether or not to display this payment method.
2394
+ attr_accessor :preference
2395
+
2396
+ def initialize(preference: nil)
2397
+ @preference = preference
2398
+ end
2399
+ end
2400
+ # Whether or not the payment method should be displayed.
2401
+ attr_accessor :display_preference
2402
+
2403
+ def initialize(display_preference: nil)
2404
+ @display_preference = display_preference
2405
+ end
2406
+ end
2407
+
2408
+ class KrCard < Stripe::RequestParams
2409
+ class DisplayPreference < Stripe::RequestParams
2410
+ # The account's preference for whether or not to display this payment method.
2411
+ attr_accessor :preference
2412
+
2413
+ def initialize(preference: nil)
2414
+ @preference = preference
2415
+ end
2416
+ end
2417
+ # Whether or not the payment method should be displayed.
2418
+ attr_accessor :display_preference
2419
+
2420
+ def initialize(display_preference: nil)
2421
+ @display_preference = display_preference
2422
+ end
2423
+ end
2424
+
2425
+ class Link < Stripe::RequestParams
2426
+ class DisplayPreference < Stripe::RequestParams
2427
+ # The account's preference for whether or not to display this payment method.
2428
+ attr_accessor :preference
2429
+
2430
+ def initialize(preference: nil)
2431
+ @preference = preference
2432
+ end
2433
+ end
2434
+ # Whether or not the payment method should be displayed.
2435
+ attr_accessor :display_preference
2436
+
2437
+ def initialize(display_preference: nil)
2438
+ @display_preference = display_preference
2439
+ end
2440
+ end
2441
+
2442
+ class Mobilepay < Stripe::RequestParams
2443
+ class DisplayPreference < Stripe::RequestParams
2444
+ # The account's preference for whether or not to display this payment method.
2445
+ attr_accessor :preference
2446
+
2447
+ def initialize(preference: nil)
2448
+ @preference = preference
2449
+ end
2450
+ end
2451
+ # Whether or not the payment method should be displayed.
2452
+ attr_accessor :display_preference
2453
+
2454
+ def initialize(display_preference: nil)
2455
+ @display_preference = display_preference
2456
+ end
2457
+ end
2458
+
2459
+ class Multibanco < Stripe::RequestParams
2460
+ class DisplayPreference < Stripe::RequestParams
2461
+ # The account's preference for whether or not to display this payment method.
2462
+ attr_accessor :preference
2463
+
2464
+ def initialize(preference: nil)
2465
+ @preference = preference
2466
+ end
2467
+ end
2468
+ # Whether or not the payment method should be displayed.
2469
+ attr_accessor :display_preference
2470
+
2471
+ def initialize(display_preference: nil)
2472
+ @display_preference = display_preference
2473
+ end
2474
+ end
2475
+
2476
+ class NaverPay < Stripe::RequestParams
2477
+ class DisplayPreference < Stripe::RequestParams
2478
+ # The account's preference for whether or not to display this payment method.
2479
+ attr_accessor :preference
2480
+
2481
+ def initialize(preference: nil)
2482
+ @preference = preference
2483
+ end
2484
+ end
2485
+ # Whether or not the payment method should be displayed.
2486
+ attr_accessor :display_preference
2487
+
2488
+ def initialize(display_preference: nil)
2489
+ @display_preference = display_preference
2490
+ end
2491
+ end
2492
+
2493
+ class NzBankAccount < Stripe::RequestParams
2494
+ class DisplayPreference < Stripe::RequestParams
2495
+ # The account's preference for whether or not to display this payment method.
2496
+ attr_accessor :preference
2497
+
2498
+ def initialize(preference: nil)
2499
+ @preference = preference
2500
+ end
2501
+ end
2502
+ # Whether or not the payment method should be displayed.
2503
+ attr_accessor :display_preference
2504
+
2505
+ def initialize(display_preference: nil)
2506
+ @display_preference = display_preference
2507
+ end
2508
+ end
2509
+
2510
+ class Oxxo < Stripe::RequestParams
2511
+ class DisplayPreference < Stripe::RequestParams
2512
+ # The account's preference for whether or not to display this payment method.
2513
+ attr_accessor :preference
2514
+
2515
+ def initialize(preference: nil)
2516
+ @preference = preference
2517
+ end
2518
+ end
2519
+ # Whether or not the payment method should be displayed.
2520
+ attr_accessor :display_preference
2521
+
2522
+ def initialize(display_preference: nil)
2523
+ @display_preference = display_preference
2524
+ end
2525
+ end
2526
+
2527
+ class P24 < Stripe::RequestParams
2528
+ class DisplayPreference < Stripe::RequestParams
2529
+ # The account's preference for whether or not to display this payment method.
2530
+ attr_accessor :preference
2531
+
2532
+ def initialize(preference: nil)
2533
+ @preference = preference
2534
+ end
2535
+ end
2536
+ # Whether or not the payment method should be displayed.
2537
+ attr_accessor :display_preference
2538
+
2539
+ def initialize(display_preference: nil)
2540
+ @display_preference = display_preference
2541
+ end
2542
+ end
2543
+
2544
+ class PayByBank < Stripe::RequestParams
2545
+ class DisplayPreference < Stripe::RequestParams
2546
+ # The account's preference for whether or not to display this payment method.
2547
+ attr_accessor :preference
2548
+
2549
+ def initialize(preference: nil)
2550
+ @preference = preference
2551
+ end
2552
+ end
2553
+ # Whether or not the payment method should be displayed.
2554
+ attr_accessor :display_preference
2555
+
2556
+ def initialize(display_preference: nil)
2557
+ @display_preference = display_preference
2558
+ end
2559
+ end
2560
+
2561
+ class Payco < Stripe::RequestParams
2562
+ class DisplayPreference < Stripe::RequestParams
2563
+ # The account's preference for whether or not to display this payment method.
2564
+ attr_accessor :preference
2565
+
2566
+ def initialize(preference: nil)
2567
+ @preference = preference
2568
+ end
2569
+ end
2570
+ # Whether or not the payment method should be displayed.
2571
+ attr_accessor :display_preference
2572
+
2573
+ def initialize(display_preference: nil)
2574
+ @display_preference = display_preference
2575
+ end
2576
+ end
2577
+
2578
+ class Paynow < Stripe::RequestParams
2579
+ class DisplayPreference < Stripe::RequestParams
2580
+ # The account's preference for whether or not to display this payment method.
2581
+ attr_accessor :preference
2582
+
2583
+ def initialize(preference: nil)
2584
+ @preference = preference
2585
+ end
2586
+ end
2587
+ # Whether or not the payment method should be displayed.
2588
+ attr_accessor :display_preference
2589
+
2590
+ def initialize(display_preference: nil)
2591
+ @display_preference = display_preference
2592
+ end
2593
+ end
2594
+
2595
+ class Paypal < Stripe::RequestParams
2596
+ class DisplayPreference < Stripe::RequestParams
2597
+ # The account's preference for whether or not to display this payment method.
2598
+ attr_accessor :preference
2599
+
2600
+ def initialize(preference: nil)
2601
+ @preference = preference
2602
+ end
2603
+ end
2604
+ # Whether or not the payment method should be displayed.
2605
+ attr_accessor :display_preference
2606
+
2607
+ def initialize(display_preference: nil)
2608
+ @display_preference = display_preference
2609
+ end
2610
+ end
2611
+
2612
+ class Pix < Stripe::RequestParams
2613
+ class DisplayPreference < Stripe::RequestParams
2614
+ # The account's preference for whether or not to display this payment method.
2615
+ attr_accessor :preference
2616
+
2617
+ def initialize(preference: nil)
2618
+ @preference = preference
2619
+ end
2620
+ end
2621
+ # Whether or not the payment method should be displayed.
2622
+ attr_accessor :display_preference
2623
+
2624
+ def initialize(display_preference: nil)
2625
+ @display_preference = display_preference
2626
+ end
2627
+ end
2628
+
2629
+ class Promptpay < Stripe::RequestParams
2630
+ class DisplayPreference < Stripe::RequestParams
2631
+ # The account's preference for whether or not to display this payment method.
2632
+ attr_accessor :preference
2633
+
2634
+ def initialize(preference: nil)
2635
+ @preference = preference
2636
+ end
2637
+ end
2638
+ # Whether or not the payment method should be displayed.
2639
+ attr_accessor :display_preference
2640
+
2641
+ def initialize(display_preference: nil)
2642
+ @display_preference = display_preference
2643
+ end
2644
+ end
2645
+
2646
+ class RevolutPay < Stripe::RequestParams
2647
+ class DisplayPreference < Stripe::RequestParams
2648
+ # The account's preference for whether or not to display this payment method.
2649
+ attr_accessor :preference
2650
+
2651
+ def initialize(preference: nil)
2652
+ @preference = preference
2653
+ end
2654
+ end
2655
+ # Whether or not the payment method should be displayed.
2656
+ attr_accessor :display_preference
2657
+
2658
+ def initialize(display_preference: nil)
2659
+ @display_preference = display_preference
2660
+ end
2661
+ end
2662
+
2663
+ class SamsungPay < Stripe::RequestParams
2664
+ class DisplayPreference < Stripe::RequestParams
2665
+ # The account's preference for whether or not to display this payment method.
2666
+ attr_accessor :preference
2667
+
2668
+ def initialize(preference: nil)
2669
+ @preference = preference
2670
+ end
2671
+ end
2672
+ # Whether or not the payment method should be displayed.
2673
+ attr_accessor :display_preference
2674
+
2675
+ def initialize(display_preference: nil)
2676
+ @display_preference = display_preference
2677
+ end
2678
+ end
2679
+
2680
+ class Satispay < Stripe::RequestParams
2681
+ class DisplayPreference < Stripe::RequestParams
2682
+ # The account's preference for whether or not to display this payment method.
2683
+ attr_accessor :preference
2684
+
2685
+ def initialize(preference: nil)
2686
+ @preference = preference
2687
+ end
2688
+ end
2689
+ # Whether or not the payment method should be displayed.
2690
+ attr_accessor :display_preference
2691
+
2692
+ def initialize(display_preference: nil)
2693
+ @display_preference = display_preference
2694
+ end
2695
+ end
2696
+
2697
+ class SepaDebit < Stripe::RequestParams
2698
+ class DisplayPreference < Stripe::RequestParams
2699
+ # The account's preference for whether or not to display this payment method.
2700
+ attr_accessor :preference
2701
+
2702
+ def initialize(preference: nil)
2703
+ @preference = preference
2704
+ end
2705
+ end
2706
+ # Whether or not the payment method should be displayed.
2707
+ attr_accessor :display_preference
2708
+
2709
+ def initialize(display_preference: nil)
2710
+ @display_preference = display_preference
2711
+ end
2712
+ end
2713
+
2714
+ class Sofort < Stripe::RequestParams
2715
+ class DisplayPreference < Stripe::RequestParams
2716
+ # The account's preference for whether or not to display this payment method.
2717
+ attr_accessor :preference
2718
+
2719
+ def initialize(preference: nil)
2720
+ @preference = preference
2721
+ end
2722
+ end
2723
+ # Whether or not the payment method should be displayed.
2724
+ attr_accessor :display_preference
2725
+
2726
+ def initialize(display_preference: nil)
2727
+ @display_preference = display_preference
2728
+ end
2729
+ end
2730
+
2731
+ class Swish < Stripe::RequestParams
2732
+ class DisplayPreference < Stripe::RequestParams
2733
+ # The account's preference for whether or not to display this payment method.
2734
+ attr_accessor :preference
2735
+
2736
+ def initialize(preference: nil)
2737
+ @preference = preference
2738
+ end
2739
+ end
2740
+ # Whether or not the payment method should be displayed.
2741
+ attr_accessor :display_preference
2742
+
2743
+ def initialize(display_preference: nil)
2744
+ @display_preference = display_preference
2745
+ end
2746
+ end
2747
+
2748
+ class Twint < Stripe::RequestParams
2749
+ class DisplayPreference < Stripe::RequestParams
2750
+ # The account's preference for whether or not to display this payment method.
2751
+ attr_accessor :preference
2752
+
2753
+ def initialize(preference: nil)
2754
+ @preference = preference
2755
+ end
2756
+ end
2757
+ # Whether or not the payment method should be displayed.
2758
+ attr_accessor :display_preference
2759
+
2760
+ def initialize(display_preference: nil)
2761
+ @display_preference = display_preference
2762
+ end
2763
+ end
2764
+
2765
+ class UsBankAccount < Stripe::RequestParams
2766
+ class DisplayPreference < Stripe::RequestParams
2767
+ # The account's preference for whether or not to display this payment method.
2768
+ attr_accessor :preference
2769
+
2770
+ def initialize(preference: nil)
2771
+ @preference = preference
2772
+ end
2773
+ end
2774
+ # Whether or not the payment method should be displayed.
2775
+ attr_accessor :display_preference
2776
+
2777
+ def initialize(display_preference: nil)
2778
+ @display_preference = display_preference
2779
+ end
2780
+ end
2781
+
2782
+ class WechatPay < Stripe::RequestParams
2783
+ class DisplayPreference < Stripe::RequestParams
2784
+ # The account's preference for whether or not to display this payment method.
2785
+ attr_accessor :preference
2786
+
2787
+ def initialize(preference: nil)
2788
+ @preference = preference
2789
+ end
2790
+ end
2791
+ # Whether or not the payment method should be displayed.
2792
+ attr_accessor :display_preference
2793
+
2794
+ def initialize(display_preference: nil)
2795
+ @display_preference = display_preference
2796
+ end
2797
+ end
2798
+
2799
+ class Zip < Stripe::RequestParams
2800
+ class DisplayPreference < Stripe::RequestParams
2801
+ # The account's preference for whether or not to display this payment method.
2802
+ attr_accessor :preference
2803
+
2804
+ def initialize(preference: nil)
2805
+ @preference = preference
2806
+ end
2807
+ end
2808
+ # Whether or not the payment method should be displayed.
2809
+ attr_accessor :display_preference
2810
+
2811
+ def initialize(display_preference: nil)
2812
+ @display_preference = display_preference
2813
+ end
2814
+ end
2815
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
2816
+ attr_accessor :acss_debit
2817
+ # Whether the configuration can be used for new payments.
2818
+ attr_accessor :active
2819
+ # [Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. Check this [page](https://stripe.com/docs/payments/affirm) for more details like country availability.
2820
+ attr_accessor :affirm
2821
+ # Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://stripe.com/docs/payments/afterpay-clearpay) for more details like country availability. Afterpay is particularly popular among businesses selling fashion, beauty, and sports products.
2822
+ attr_accessor :afterpay_clearpay
2823
+ # Alipay is a digital wallet in China that has more than a billion active users worldwide. Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. Check this [page](https://stripe.com/docs/payments/alipay) for more details.
2824
+ attr_accessor :alipay
2825
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
2826
+ attr_accessor :alma
2827
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
2828
+ attr_accessor :amazon_pay
2829
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
2830
+ attr_accessor :apple_pay
2831
+ # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
2832
+ attr_accessor :apple_pay_later
2833
+ # Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. Check this [page](https://stripe.com/docs/payments/au-becs-debit) for more details.
2834
+ attr_accessor :au_becs_debit
2835
+ # Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://stripe.com/docs/payments/payment-methods/bacs-debit) for more details.
2836
+ attr_accessor :bacs_debit
2837
+ # Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. [Customers](https://stripe.com/docs/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. Check this [page](https://stripe.com/docs/payments/bancontact) for more details.
2838
+ attr_accessor :bancontact
2839
+ # Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
2840
+ attr_accessor :billie
2841
+ # BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://stripe.com/docs/payments/blik) for more details.
2842
+ attr_accessor :blik
2843
+ # Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://stripe.com/docs/payments/boleto) for more details.
2844
+ attr_accessor :boleto
2845
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
2846
+ attr_accessor :card
2847
+ # Cartes Bancaires is France's local card network. More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. Check this [page](https://stripe.com/docs/payments/cartes-bancaires) for more details.
2848
+ attr_accessor :cartes_bancaires
2849
+ # Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details.
2850
+ attr_accessor :cashapp
2851
+ # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
2852
+ attr_accessor :customer_balance
2853
+ # EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.
2854
+ attr_accessor :eps
2855
+ # Specifies which fields in the response should be expanded.
2856
+ attr_accessor :expand
2857
+ # Financial Process Exchange (FPX) is a Malaysia-based payment method that allows customers to complete transactions online using their bank credentials. Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. Check this [page](https://stripe.com/docs/payments/fpx) for more details.
2858
+ attr_accessor :fpx
2859
+ # giropay is a German payment method based on online banking, introduced in 2006. It allows customers to complete transactions online using their online banking environment, with funds debited from their bank account. Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. giropay accounts for 10% of online checkouts in Germany. Check this [page](https://stripe.com/docs/payments/giropay) for more details.
2860
+ attr_accessor :giropay
2861
+ # Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details.
2862
+ attr_accessor :google_pay
2863
+ # GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details.
2864
+ attr_accessor :grabpay
2865
+ # iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://stripe.com/docs/payments/ideal) for more details.
2866
+ attr_accessor :ideal
2867
+ # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
2868
+ attr_accessor :jcb
2869
+ # Kakao Pay is a popular local wallet available in South Korea.
2870
+ attr_accessor :kakao_pay
2871
+ # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
2872
+ attr_accessor :klarna
2873
+ # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
2874
+ attr_accessor :konbini
2875
+ # Korean cards let users pay using locally issued cards from South Korea.
2876
+ attr_accessor :kr_card
2877
+ # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
2878
+ attr_accessor :link
2879
+ # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
2880
+ attr_accessor :mobilepay
2881
+ # Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
2882
+ attr_accessor :multibanco
2883
+ # Configuration name.
2884
+ attr_accessor :name
2885
+ # Naver Pay is a popular local wallet available in South Korea.
2886
+ attr_accessor :naver_pay
2887
+ # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
2888
+ attr_accessor :nz_bank_account
2889
+ # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
2890
+ attr_accessor :oxxo
2891
+ # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details.
2892
+ attr_accessor :p24
2893
+ # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
2894
+ attr_accessor :pay_by_bank
2895
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
2896
+ attr_accessor :payco
2897
+ # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
2898
+ attr_accessor :paynow
2899
+ # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
2900
+ attr_accessor :paypal
2901
+ # Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
2902
+ attr_accessor :pix
2903
+ # PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
2904
+ attr_accessor :promptpay
2905
+ # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
2906
+ attr_accessor :revolut_pay
2907
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
2908
+ attr_accessor :samsung_pay
2909
+ # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
2910
+ attr_accessor :satispay
2911
+ # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
2912
+ attr_accessor :sepa_debit
2913
+ # Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details.
2914
+ attr_accessor :sofort
2915
+ # Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details.
2916
+ attr_accessor :swish
2917
+ # Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
2918
+ attr_accessor :twint
2919
+ # Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details.
2920
+ attr_accessor :us_bank_account
2921
+ # WeChat, owned by Tencent, is China's leading mobile app with over 1 billion monthly active users. Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. Check this [page](https://stripe.com/docs/payments/wechat-pay) for more details.
2922
+ attr_accessor :wechat_pay
2923
+ # Zip gives your customers a way to split purchases over a series of payments. Check this [page](https://stripe.com/docs/payments/zip) for more details like country availability.
2924
+ attr_accessor :zip
2925
+
2926
+ def initialize(
2927
+ acss_debit: nil,
2928
+ active: nil,
2929
+ affirm: nil,
2930
+ afterpay_clearpay: nil,
2931
+ alipay: nil,
2932
+ alma: nil,
2933
+ amazon_pay: nil,
2934
+ apple_pay: nil,
2935
+ apple_pay_later: nil,
2936
+ au_becs_debit: nil,
2937
+ bacs_debit: nil,
2938
+ bancontact: nil,
2939
+ billie: nil,
2940
+ blik: nil,
2941
+ boleto: nil,
2942
+ card: nil,
2943
+ cartes_bancaires: nil,
2944
+ cashapp: nil,
2945
+ customer_balance: nil,
2946
+ eps: nil,
2947
+ expand: nil,
2948
+ fpx: nil,
2949
+ giropay: nil,
2950
+ google_pay: nil,
2951
+ grabpay: nil,
2952
+ ideal: nil,
2953
+ jcb: nil,
2954
+ kakao_pay: nil,
2955
+ klarna: nil,
2956
+ konbini: nil,
2957
+ kr_card: nil,
2958
+ link: nil,
2959
+ mobilepay: nil,
2960
+ multibanco: nil,
2961
+ name: nil,
2962
+ naver_pay: nil,
2963
+ nz_bank_account: nil,
2964
+ oxxo: nil,
2965
+ p24: nil,
2966
+ pay_by_bank: nil,
2967
+ payco: nil,
2968
+ paynow: nil,
2969
+ paypal: nil,
2970
+ pix: nil,
2971
+ promptpay: nil,
2972
+ revolut_pay: nil,
2973
+ samsung_pay: nil,
2974
+ satispay: nil,
2975
+ sepa_debit: nil,
2976
+ sofort: nil,
2977
+ swish: nil,
2978
+ twint: nil,
2979
+ us_bank_account: nil,
2980
+ wechat_pay: nil,
2981
+ zip: nil
2982
+ )
2983
+ @acss_debit = acss_debit
2984
+ @active = active
2985
+ @affirm = affirm
2986
+ @afterpay_clearpay = afterpay_clearpay
2987
+ @alipay = alipay
2988
+ @alma = alma
2989
+ @amazon_pay = amazon_pay
2990
+ @apple_pay = apple_pay
2991
+ @apple_pay_later = apple_pay_later
2992
+ @au_becs_debit = au_becs_debit
2993
+ @bacs_debit = bacs_debit
2994
+ @bancontact = bancontact
2995
+ @billie = billie
2996
+ @blik = blik
2997
+ @boleto = boleto
2998
+ @card = card
2999
+ @cartes_bancaires = cartes_bancaires
3000
+ @cashapp = cashapp
3001
+ @customer_balance = customer_balance
3002
+ @eps = eps
3003
+ @expand = expand
3004
+ @fpx = fpx
3005
+ @giropay = giropay
3006
+ @google_pay = google_pay
3007
+ @grabpay = grabpay
3008
+ @ideal = ideal
3009
+ @jcb = jcb
3010
+ @kakao_pay = kakao_pay
3011
+ @klarna = klarna
3012
+ @konbini = konbini
3013
+ @kr_card = kr_card
3014
+ @link = link
3015
+ @mobilepay = mobilepay
3016
+ @multibanco = multibanco
3017
+ @name = name
3018
+ @naver_pay = naver_pay
3019
+ @nz_bank_account = nz_bank_account
3020
+ @oxxo = oxxo
3021
+ @p24 = p24
3022
+ @pay_by_bank = pay_by_bank
3023
+ @payco = payco
3024
+ @paynow = paynow
3025
+ @paypal = paypal
3026
+ @pix = pix
3027
+ @promptpay = promptpay
3028
+ @revolut_pay = revolut_pay
3029
+ @samsung_pay = samsung_pay
3030
+ @satispay = satispay
3031
+ @sepa_debit = sepa_debit
3032
+ @sofort = sofort
3033
+ @swish = swish
3034
+ @twint = twint
3035
+ @us_bank_account = us_bank_account
3036
+ @wechat_pay = wechat_pay
3037
+ @zip = zip
3038
+ end
3039
+ end
3040
+ # Attribute for field acss_debit
3041
+ attr_reader :acss_debit
3042
+ # Whether the configuration can be used for new payments.
3043
+ attr_reader :active
3044
+ # Attribute for field affirm
3045
+ attr_reader :affirm
3046
+ # Attribute for field afterpay_clearpay
3047
+ attr_reader :afterpay_clearpay
3048
+ # Attribute for field alipay
3049
+ attr_reader :alipay
3050
+ # Attribute for field alma
3051
+ attr_reader :alma
3052
+ # Attribute for field amazon_pay
3053
+ attr_reader :amazon_pay
3054
+ # Attribute for field apple_pay
3055
+ attr_reader :apple_pay
3056
+ # For child configs, the Connect application associated with the configuration.
3057
+ attr_reader :application
3058
+ # Attribute for field au_becs_debit
3059
+ attr_reader :au_becs_debit
3060
+ # Attribute for field bacs_debit
3061
+ attr_reader :bacs_debit
3062
+ # Attribute for field bancontact
3063
+ attr_reader :bancontact
3064
+ # Attribute for field billie
3065
+ attr_reader :billie
3066
+ # Attribute for field blik
3067
+ attr_reader :blik
3068
+ # Attribute for field boleto
3069
+ attr_reader :boleto
3070
+ # Attribute for field card
3071
+ attr_reader :card
3072
+ # Attribute for field cartes_bancaires
3073
+ attr_reader :cartes_bancaires
3074
+ # Attribute for field cashapp
3075
+ attr_reader :cashapp
3076
+ # Attribute for field customer_balance
3077
+ attr_reader :customer_balance
3078
+ # Attribute for field eps
3079
+ attr_reader :eps
3080
+ # Attribute for field fpx
3081
+ attr_reader :fpx
3082
+ # Attribute for field giropay
3083
+ attr_reader :giropay
3084
+ # Attribute for field google_pay
3085
+ attr_reader :google_pay
3086
+ # Attribute for field grabpay
3087
+ attr_reader :grabpay
3088
+ # Unique identifier for the object.
3089
+ attr_reader :id
3090
+ # Attribute for field ideal
3091
+ attr_reader :ideal
3092
+ # The default configuration is used whenever a payment method configuration is not specified.
3093
+ attr_reader :is_default
3094
+ # Attribute for field jcb
3095
+ attr_reader :jcb
3096
+ # Attribute for field kakao_pay
3097
+ attr_reader :kakao_pay
3098
+ # Attribute for field klarna
3099
+ attr_reader :klarna
3100
+ # Attribute for field konbini
3101
+ attr_reader :konbini
3102
+ # Attribute for field kr_card
3103
+ attr_reader :kr_card
3104
+ # Attribute for field link
3105
+ attr_reader :link
3106
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
3107
+ attr_reader :livemode
3108
+ # Attribute for field mobilepay
3109
+ attr_reader :mobilepay
3110
+ # Attribute for field multibanco
3111
+ attr_reader :multibanco
3112
+ # The configuration's name.
3113
+ attr_reader :name
3114
+ # Attribute for field naver_pay
3115
+ attr_reader :naver_pay
3116
+ # Attribute for field nz_bank_account
3117
+ attr_reader :nz_bank_account
3118
+ # String representing the object's type. Objects of the same type share the same value.
3119
+ attr_reader :object
3120
+ # Attribute for field oxxo
3121
+ attr_reader :oxxo
3122
+ # Attribute for field p24
3123
+ attr_reader :p24
3124
+ # For child configs, the configuration's parent configuration.
3125
+ attr_reader :parent
3126
+ # Attribute for field pay_by_bank
3127
+ attr_reader :pay_by_bank
3128
+ # Attribute for field payco
3129
+ attr_reader :payco
3130
+ # Attribute for field paynow
3131
+ attr_reader :paynow
3132
+ # Attribute for field paypal
3133
+ attr_reader :paypal
3134
+ # Attribute for field pix
3135
+ attr_reader :pix
3136
+ # Attribute for field promptpay
3137
+ attr_reader :promptpay
3138
+ # Attribute for field revolut_pay
3139
+ attr_reader :revolut_pay
3140
+ # Attribute for field samsung_pay
3141
+ attr_reader :samsung_pay
3142
+ # Attribute for field satispay
3143
+ attr_reader :satispay
3144
+ # Attribute for field sepa_debit
3145
+ attr_reader :sepa_debit
3146
+ # Attribute for field sofort
3147
+ attr_reader :sofort
3148
+ # Attribute for field swish
3149
+ attr_reader :swish
3150
+ # Attribute for field twint
3151
+ attr_reader :twint
3152
+ # Attribute for field us_bank_account
3153
+ attr_reader :us_bank_account
3154
+ # Attribute for field wechat_pay
3155
+ attr_reader :wechat_pay
3156
+ # Attribute for field zip
3157
+ attr_reader :zip
3158
+
3159
+ # Creates a payment method configuration
3160
+ def self.create(params = {}, opts = {})
3161
+ request_stripe_object(
3162
+ method: :post,
3163
+ path: "/v1/payment_method_configurations",
3164
+ params: params,
3165
+ opts: opts
3166
+ )
3167
+ end
3168
+
3169
+ # List payment method configurations
3170
+ def self.list(params = {}, opts = {})
3171
+ request_stripe_object(
3172
+ method: :get,
3173
+ path: "/v1/payment_method_configurations",
3174
+ params: params,
3175
+ opts: opts
3176
+ )
3177
+ end
3178
+
3179
+ # Update payment method configuration
3180
+ def self.update(configuration, params = {}, opts = {})
3181
+ request_stripe_object(
3182
+ method: :post,
3183
+ path: format("/v1/payment_method_configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
3184
+ params: params,
3185
+ opts: opts
3186
+ )
3187
+ end
3188
+ end
3189
+ end