stripe 12.5.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (688) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +197 -9
  3. data/Gemfile +4 -0
  4. data/Makefile +2 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +48 -13
  7. data/Rakefile +0 -5
  8. data/VERSION +1 -1
  9. data/examples/README.md +16 -0
  10. data/examples/example_template.rb +36 -0
  11. data/examples/meter_event_stream.rb +57 -0
  12. data/examples/thinevent_webhook_handler.rb +39 -0
  13. data/justfile +43 -0
  14. data/lib/stripe/api_operations/nested_resource.rb +1 -21
  15. data/lib/stripe/api_operations/request.rb +20 -69
  16. data/lib/stripe/api_operations/save.rb +5 -3
  17. data/lib/stripe/api_operations/singleton_save.rb +6 -2
  18. data/lib/stripe/api_requestor.rb +1136 -0
  19. data/lib/stripe/api_resource.rb +38 -17
  20. data/lib/stripe/api_version.rb +1 -1
  21. data/lib/stripe/connection_manager.rb +1 -1
  22. data/lib/stripe/errors.rb +8 -9
  23. data/lib/stripe/event_types.rb +14 -0
  24. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  25. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  26. data/lib/stripe/list_object.rb +2 -3
  27. data/lib/stripe/oauth.rb +8 -15
  28. data/lib/stripe/object_types.rb +26 -3
  29. data/lib/stripe/request_options.rb +129 -0
  30. data/lib/stripe/request_params.rb +24 -0
  31. data/lib/stripe/resources/account.rb +4642 -8
  32. data/lib/stripe/resources/account_link.rb +54 -0
  33. data/lib/stripe/resources/account_session.rb +739 -0
  34. data/lib/stripe/resources/apple_pay_domain.rb +58 -9
  35. data/lib/stripe/resources/application.rb +20 -0
  36. data/lib/stripe/resources/application_fee.rb +89 -2
  37. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  38. data/lib/stripe/resources/apps/secret.rb +143 -2
  39. data/lib/stripe/resources/balance.rb +122 -0
  40. data/lib/stripe/resources/balance_transaction.rb +105 -2
  41. data/lib/stripe/resources/bank_account.rb +85 -3
  42. data/lib/stripe/resources/billing/alert.rb +137 -2
  43. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  44. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  45. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  46. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  47. data/lib/stripe/resources/billing/meter.rb +180 -9
  48. data/lib/stripe/resources/billing/meter_event.rb +37 -3
  49. data/lib/stripe/resources/billing/meter_event_adjustment.rb +44 -1
  50. data/lib/stripe/resources/billing/meter_event_summary.rb +17 -0
  51. data/lib/stripe/resources/billing_portal/configuration.rb +557 -4
  52. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  53. data/lib/stripe/resources/capability.rb +84 -0
  54. data/lib/stripe/resources/card.rb +78 -1
  55. data/lib/stripe/resources/cash_balance.rb +17 -0
  56. data/lib/stripe/resources/charge.rb +1616 -4
  57. data/lib/stripe/resources/checkout/session.rb +3534 -10
  58. data/lib/stripe/resources/climate/order.rb +171 -4
  59. data/lib/stripe/resources/climate/product.rb +49 -2
  60. data/lib/stripe/resources/climate/supplier.rb +47 -2
  61. data/lib/stripe/resources/confirmation_token.rb +1448 -0
  62. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  63. data/lib/stripe/resources/country_spec.rb +56 -2
  64. data/lib/stripe/resources/coupon.rb +195 -6
  65. data/lib/stripe/resources/credit_note.rb +641 -2
  66. data/lib/stripe/resources/credit_note_line_item.rb +67 -0
  67. data/lib/stripe/resources/customer.rb +832 -9
  68. data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
  69. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  70. data/lib/stripe/resources/customer_session.rb +163 -0
  71. data/lib/stripe/resources/discount.rb +29 -0
  72. data/lib/stripe/resources/dispute.rb +614 -4
  73. data/lib/stripe/resources/entitlements/active_entitlement.rb +39 -2
  74. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  75. data/lib/stripe/resources/entitlements/feature.rb +83 -2
  76. data/lib/stripe/resources/ephemeral_key.rb +23 -2
  77. data/lib/stripe/resources/event.rb +92 -2
  78. data/lib/stripe/resources/exchange_rate.rb +26 -2
  79. data/lib/stripe/resources/file.rb +123 -15
  80. data/lib/stripe/resources/file_link.rb +107 -4
  81. data/lib/stripe/resources/financial_connections/account.rb +239 -2
  82. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  83. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  84. data/lib/stripe/resources/financial_connections/session.rb +95 -0
  85. data/lib/stripe/resources/financial_connections/transaction.rb +94 -2
  86. data/lib/stripe/resources/forwarding/request.rb +158 -2
  87. data/lib/stripe/resources/funding_instructions.rb +308 -0
  88. data/lib/stripe/resources/identity/verification_report.rb +259 -2
  89. data/lib/stripe/resources/identity/verification_session.rb +356 -4
  90. data/lib/stripe/resources/invoice.rb +3210 -27
  91. data/lib/stripe/resources/invoice_item.rb +406 -6
  92. data/lib/stripe/resources/invoice_line_item.rb +356 -3
  93. data/lib/stripe/resources/invoice_payment.rb +105 -0
  94. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  95. data/lib/stripe/resources/issuing/authorization.rb +1132 -6
  96. data/lib/stripe/resources/issuing/card.rb +682 -5
  97. data/lib/stripe/resources/issuing/cardholder.rb +653 -5
  98. data/lib/stripe/resources/issuing/dispute.rb +785 -4
  99. data/lib/stripe/resources/issuing/personalization_design.rb +280 -4
  100. data/lib/stripe/resources/issuing/physical_bundle.rb +56 -2
  101. data/lib/stripe/resources/issuing/token.rb +170 -4
  102. data/lib/stripe/resources/issuing/transaction.rb +916 -4
  103. data/lib/stripe/resources/line_item.rb +47 -0
  104. data/lib/stripe/resources/login_link.rb +7 -0
  105. data/lib/stripe/resources/mandate.rb +142 -0
  106. data/lib/stripe/resources/payment_intent.rb +8660 -4
  107. data/lib/stripe/resources/payment_link.rb +1636 -4
  108. data/lib/stripe/resources/payment_method.rb +1546 -4
  109. data/lib/stripe/resources/payment_method_configuration.rb +2780 -4
  110. data/lib/stripe/resources/payment_method_domain.rb +154 -10
  111. data/lib/stripe/resources/payout.rb +213 -4
  112. data/lib/stripe/resources/person.rb +264 -1
  113. data/lib/stripe/resources/plan.rb +308 -6
  114. data/lib/stripe/resources/price.rb +609 -5
  115. data/lib/stripe/resources/product.rb +474 -2
  116. data/lib/stripe/resources/product_feature.rb +12 -0
  117. data/lib/stripe/resources/promotion_code.rb +216 -4
  118. data/lib/stripe/resources/quote.rb +927 -10
  119. data/lib/stripe/resources/radar/early_fraud_warning.rb +70 -2
  120. data/lib/stripe/resources/radar/value_list.rb +122 -6
  121. data/lib/stripe/resources/radar/value_list_item.rb +90 -4
  122. data/lib/stripe/resources/refund.rb +396 -4
  123. data/lib/stripe/resources/reporting/report_run.rb +143 -2
  124. data/lib/stripe/resources/reporting/report_type.rb +29 -2
  125. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  126. data/lib/stripe/resources/reversal.rb +21 -0
  127. data/lib/stripe/resources/review.rb +101 -2
  128. data/lib/stripe/resources/setup_attempt.rb +370 -2
  129. data/lib/stripe/resources/setup_intent.rb +3477 -4
  130. data/lib/stripe/resources/shipping_rate.rb +254 -4
  131. data/lib/stripe/resources/sigma/scheduled_query_run.rb +47 -2
  132. data/lib/stripe/resources/source.rb +1203 -4
  133. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  134. data/lib/stripe/resources/source_transaction.rb +85 -0
  135. data/lib/stripe/resources/subscription.rb +1697 -11
  136. data/lib/stripe/resources/subscription_item.rb +319 -11
  137. data/lib/stripe/resources/subscription_schedule.rb +1285 -4
  138. data/lib/stripe/resources/tax/calculation.rb +378 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  140. data/lib/stripe/resources/tax/registration.rb +2375 -2
  141. data/lib/stripe/resources/tax/settings.rb +117 -0
  142. data/lib/stripe/resources/tax/transaction.rb +258 -0
  143. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  144. data/lib/stripe/resources/tax_code.rb +28 -2
  145. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  146. data/lib/stripe/resources/tax_id.rb +114 -2
  147. data/lib/stripe/resources/tax_rate.rb +197 -6
  148. data/lib/stripe/resources/terminal/configuration.rb +1266 -6
  149. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  150. data/lib/stripe/resources/terminal/location.rb +172 -6
  151. data/lib/stripe/resources/terminal/reader.rb +433 -6
  152. data/lib/stripe/resources/test_helpers/test_clock.rb +81 -4
  153. data/lib/stripe/resources/token.rb +1160 -1
  154. data/lib/stripe/resources/topup.rb +169 -4
  155. data/lib/stripe/resources/transfer.rb +148 -4
  156. data/lib/stripe/resources/treasury/credit_reversal.rb +85 -2
  157. data/lib/stripe/resources/treasury/debit_reversal.rb +96 -2
  158. data/lib/stripe/resources/treasury/financial_account.rb +749 -5
  159. data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
  160. data/lib/stripe/resources/treasury/inbound_transfer.rb +231 -3
  161. data/lib/stripe/resources/treasury/outbound_payment.rb +491 -3
  162. data/lib/stripe/resources/treasury/outbound_transfer.rb +346 -3
  163. data/lib/stripe/resources/treasury/received_credit.rb +239 -2
  164. data/lib/stripe/resources/treasury/received_debit.rb +198 -2
  165. data/lib/stripe/resources/treasury/transaction.rb +169 -2
  166. data/lib/stripe/resources/treasury/transaction_entry.rb +150 -2
  167. data/lib/stripe/resources/v2/amount.rb +9 -0
  168. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  169. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  171. data/lib/stripe/resources/v2/event.rb +41 -0
  172. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  173. data/lib/stripe/resources/webhook_endpoint.rb +119 -11
  174. data/lib/stripe/resources.rb +19 -2
  175. data/lib/stripe/search_result_object.rb +1 -1
  176. data/lib/stripe/services/account_capability_service.rb +71 -0
  177. data/lib/stripe/services/account_external_account_service.rb +318 -0
  178. data/lib/stripe/services/account_link_service.rb +63 -0
  179. data/lib/stripe/services/account_login_link_service.rb +28 -0
  180. data/lib/stripe/services/account_person_service.rb +936 -0
  181. data/lib/stripe/services/account_service.rb +4100 -0
  182. data/lib/stripe/services/account_session_service.rb +501 -0
  183. data/lib/stripe/services/apple_pay_domain_service.rb +101 -0
  184. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  185. data/lib/stripe/services/application_fee_service.rb +92 -0
  186. data/lib/stripe/services/apps/secret_service.rb +168 -0
  187. data/lib/stripe/services/apps_service.rb +13 -0
  188. data/lib/stripe/services/balance_service.rb +21 -0
  189. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  190. data/lib/stripe/services/billing/alert_service.rb +187 -0
  191. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  192. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  193. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  194. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  195. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  196. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  197. data/lib/stripe/services/billing/meter_service.rb +211 -0
  198. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  199. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  200. data/lib/stripe/services/billing_portal_service.rb +14 -0
  201. data/lib/stripe/services/billing_service.rb +20 -0
  202. data/lib/stripe/services/charge_service.rb +471 -0
  203. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  204. data/lib/stripe/services/checkout/session_service.rb +2466 -0
  205. data/lib/stripe/services/checkout_service.rb +13 -0
  206. data/lib/stripe/services/climate/order_service.rb +170 -0
  207. data/lib/stripe/services/climate/product_service.rb +57 -0
  208. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  209. data/lib/stripe/services/climate_service.rb +15 -0
  210. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  211. data/lib/stripe/services/country_spec_service.rb +55 -0
  212. data/lib/stripe/services/coupon_service.rb +203 -0
  213. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  214. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  215. data/lib/stripe/services/credit_note_service.rb +458 -0
  216. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  217. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  218. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  219. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  220. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  221. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  222. data/lib/stripe/services/customer_service.rb +666 -0
  223. data/lib/stripe/services/customer_session_service.rb +113 -0
  224. data/lib/stripe/services/customer_tax_id_service.rb +95 -0
  225. data/lib/stripe/services/dispute_service.rb +422 -0
  226. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  227. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  228. data/lib/stripe/services/entitlements_service.rb +14 -0
  229. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  230. data/lib/stripe/services/event_service.rb +87 -0
  231. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  232. data/lib/stripe/services/file_link_service.rb +132 -0
  233. data/lib/stripe/services/file_service.rb +124 -0
  234. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  235. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  236. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  237. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  238. data/lib/stripe/services/financial_connections_service.rb +15 -0
  239. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  240. data/lib/stripe/services/forwarding_service.rb +13 -0
  241. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  242. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  243. data/lib/stripe/services/identity_service.rb +14 -0
  244. data/lib/stripe/services/invoice_item_service.rb +395 -0
  245. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  246. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  247. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  248. data/lib/stripe/services/invoice_service.rb +2831 -0
  249. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  250. data/lib/stripe/services/issuing/card_service.rb +507 -0
  251. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  252. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  253. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  254. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  255. data/lib/stripe/services/issuing/token_service.rb +114 -0
  256. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  257. data/lib/stripe/services/issuing_service.rb +20 -0
  258. data/lib/stripe/services/mandate_service.rb +26 -0
  259. data/lib/stripe/services/oauth_service.rb +63 -0
  260. data/lib/stripe/services/payment_intent_service.rb +7258 -0
  261. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  262. data/lib/stripe/services/payment_link_service.rb +1333 -0
  263. data/lib/stripe/services/payment_method_configuration_service.rb +2054 -0
  264. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  265. data/lib/stripe/services/payment_method_service.rb +894 -0
  266. data/lib/stripe/services/payout_service.rb +225 -0
  267. data/lib/stripe/services/plan_service.rb +298 -0
  268. data/lib/stripe/services/price_service.rb +545 -0
  269. data/lib/stripe/services/product_feature_service.rb +92 -0
  270. data/lib/stripe/services/product_service.rb +495 -0
  271. data/lib/stripe/services/promotion_code_service.rb +228 -0
  272. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  273. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  274. data/lib/stripe/services/quote_service.rb +703 -0
  275. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  276. data/lib/stripe/services/radar/value_list_item_service.rb +131 -0
  277. data/lib/stripe/services/radar/value_list_service.rb +166 -0
  278. data/lib/stripe/services/radar_service.rb +15 -0
  279. data/lib/stripe/services/refund_service.rb +200 -0
  280. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  281. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  282. data/lib/stripe/services/reporting_service.rb +14 -0
  283. data/lib/stripe/services/review_service.rb +89 -0
  284. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  285. data/lib/stripe/services/setup_intent_service.rb +3268 -0
  286. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  287. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  288. data/lib/stripe/services/sigma_service.rb +13 -0
  289. data/lib/stripe/services/source_service.rb +665 -0
  290. data/lib/stripe/services/source_transaction_service.rb +35 -0
  291. data/lib/stripe/services/subscription_item_service.rb +346 -0
  292. data/lib/stripe/services/subscription_schedule_service.rb +1134 -0
  293. data/lib/stripe/services/subscription_service.rb +1539 -0
  294. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  295. data/lib/stripe/services/tax/calculation_service.rb +242 -0
  296. data/lib/stripe/services/tax/registration_service.rb +1618 -0
  297. data/lib/stripe/services/tax/settings_service.rb +104 -0
  298. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  299. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  300. data/lib/stripe/services/tax_code_service.rb +49 -0
  301. data/lib/stripe/services/tax_id_service.rb +117 -0
  302. data/lib/stripe/services/tax_rate_service.rb +193 -0
  303. data/lib/stripe/services/tax_service.rb +16 -0
  304. data/lib/stripe/services/terminal/configuration_service.rb +1060 -0
  305. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  306. data/lib/stripe/services/terminal/location_service.rb +208 -0
  307. data/lib/stripe/services/terminal/reader_service.rb +384 -0
  308. data/lib/stripe/services/terminal_service.rb +16 -0
  309. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +661 -0
  310. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  311. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  312. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  313. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  314. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  315. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  316. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  317. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +65 -0
  318. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  319. data/lib/stripe/services/test_helpers/test_clock_service.rb +120 -0
  320. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  321. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  322. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  323. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  324. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  325. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  326. data/lib/stripe/services/test_helpers_service.rb +19 -0
  327. data/lib/stripe/services/token_service.rb +1163 -0
  328. data/lib/stripe/services/topup_service.rb +191 -0
  329. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  330. data/lib/stripe/services/transfer_service.rb +166 -0
  331. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  332. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  333. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  334. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  335. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  336. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  337. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  338. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  339. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  340. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  341. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  342. data/lib/stripe/services/treasury_service.rb +22 -0
  343. data/lib/stripe/services/v1_services.rb +90 -0
  344. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  345. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  346. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +24 -0
  347. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  348. data/lib/stripe/services/v2/billing_service.rb +18 -0
  349. data/lib/stripe/services/v2/core/event_destination_service.rb +241 -0
  350. data/lib/stripe/services/v2/core/event_service.rb +49 -0
  351. data/lib/stripe/services/v2/core_service.rb +16 -0
  352. data/lib/stripe/services/v2_services.rb +14 -0
  353. data/lib/stripe/services/webhook_endpoint_service.rb +157 -0
  354. data/lib/stripe/services.rb +180 -0
  355. data/lib/stripe/singleton_api_resource.rb +1 -18
  356. data/lib/stripe/stripe_client.rb +53 -1031
  357. data/lib/stripe/stripe_configuration.rb +52 -19
  358. data/lib/stripe/stripe_object.rb +54 -20
  359. data/lib/stripe/stripe_service.rb +32 -0
  360. data/lib/stripe/thin_event.rb +37 -0
  361. data/lib/stripe/util.rb +78 -37
  362. data/lib/stripe/v2_list_object.rb +84 -0
  363. data/lib/stripe/version.rb +1 -1
  364. data/lib/stripe/webhook.rb +1 -1
  365. data/lib/stripe.rb +38 -25
  366. data/rbi/stripe/resources/account.rbi +4840 -0
  367. data/rbi/stripe/resources/account_link.rbi +74 -0
  368. data/rbi/stripe/resources/account_session.rbi +894 -0
  369. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  370. data/rbi/stripe/resources/application.rbi +20 -0
  371. data/rbi/stripe/resources/application_fee.rbi +118 -0
  372. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  373. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  374. data/rbi/stripe/resources/balance.rbi +180 -0
  375. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  376. data/rbi/stripe/resources/bank_account.rbi +127 -0
  377. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  378. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  379. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  380. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  381. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  382. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  383. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  384. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  385. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  386. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  387. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  388. data/rbi/stripe/resources/capability.rbi +125 -0
  389. data/rbi/stripe/resources/card.rbi +125 -0
  390. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  391. data/rbi/stripe/resources/charge.rbi +2054 -0
  392. data/rbi/stripe/resources/checkout/session.rbi +3951 -0
  393. data/rbi/stripe/resources/climate/order.rbi +245 -0
  394. data/rbi/stripe/resources/climate/product.rbi +75 -0
  395. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  396. data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
  397. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  398. data/rbi/stripe/resources/country_spec.rbi +85 -0
  399. data/rbi/stripe/resources/coupon.rbi +252 -0
  400. data/rbi/stripe/resources/credit_note.rbi +747 -0
  401. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  402. data/rbi/stripe/resources/customer.rbi +1009 -0
  403. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  404. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  405. data/rbi/stripe/resources/customer_session.rbi +200 -0
  406. data/rbi/stripe/resources/discount.rbi +53 -0
  407. data/rbi/stripe/resources/dispute.rbi +761 -0
  408. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  409. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  410. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  411. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  412. data/rbi/stripe/resources/event.rbi +146 -0
  413. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  414. data/rbi/stripe/resources/file.rbi +143 -0
  415. data/rbi/stripe/resources/file_link.rbi +141 -0
  416. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  417. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  418. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  419. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  420. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  421. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  422. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  423. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  424. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  425. data/rbi/stripe/resources/invoice.rbi +3733 -0
  426. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  427. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  428. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  429. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  430. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  431. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  432. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  433. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  434. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  435. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  436. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  437. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  438. data/rbi/stripe/resources/line_item.rbi +72 -0
  439. data/rbi/stripe/resources/login_link.rbi +18 -0
  440. data/rbi/stripe/resources/mandate.rbi +187 -0
  441. data/rbi/stripe/resources/payment_intent.rbi +9731 -0
  442. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  443. data/rbi/stripe/resources/payment_method.rbi +1822 -0
  444. data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
  445. data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
  446. data/rbi/stripe/resources/payout.rbi +300 -0
  447. data/rbi/stripe/resources/person.rbi +371 -0
  448. data/rbi/stripe/resources/plan.rbi +373 -0
  449. data/rbi/stripe/resources/price.rbi +694 -0
  450. data/rbi/stripe/resources/product.rbi +557 -0
  451. data/rbi/stripe/resources/product_feature.rbi +26 -0
  452. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  453. data/rbi/stripe/resources/quote.rbi +1123 -0
  454. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  455. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  456. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  457. data/rbi/stripe/resources/refund.rbi +516 -0
  458. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  459. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  460. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  461. data/rbi/stripe/resources/reversal.rbi +51 -0
  462. data/rbi/stripe/resources/review.rbi +154 -0
  463. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  464. data/rbi/stripe/resources/setup_intent.rbi +3860 -0
  465. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  466. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  467. data/rbi/stripe/resources/source.rbi +1496 -0
  468. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  469. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  470. data/rbi/stripe/resources/subscription.rbi +1964 -0
  471. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  472. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  473. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  474. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  475. data/rbi/stripe/resources/tax/registration.rbi +2485 -0
  476. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  477. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  478. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  479. data/rbi/stripe/resources/tax_code.rbi +44 -0
  480. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  481. data/rbi/stripe/resources/tax_id.rbi +167 -0
  482. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  483. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  484. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  485. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  486. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  487. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  488. data/rbi/stripe/resources/token.rbi +1217 -0
  489. data/rbi/stripe/resources/topup.rbi +222 -0
  490. data/rbi/stripe/resources/transfer.rbi +199 -0
  491. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  492. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  493. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  494. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  495. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  496. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  497. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  498. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  499. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  500. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  501. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  502. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  503. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  504. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  505. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  506. data/rbi/stripe/resources/v2/event.rbi +48 -0
  507. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  508. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  509. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  510. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  511. data/rbi/stripe/services/account_link_service.rbi +58 -0
  512. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  513. data/rbi/stripe/services/account_person_service.rbi +923 -0
  514. data/rbi/stripe/services/account_service.rbi +4143 -0
  515. data/rbi/stripe/services/account_session_service.rbi +572 -0
  516. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  517. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  518. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  519. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  520. data/rbi/stripe/services/apps_service.rbi +9 -0
  521. data/rbi/stripe/services/balance_service.rbi +21 -0
  522. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  523. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  524. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  525. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  526. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  527. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  528. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  529. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  530. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  531. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  532. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  533. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  534. data/rbi/stripe/services/billing_service.rbi +15 -0
  535. data/rbi/stripe/services/charge_service.rbi +448 -0
  536. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  537. data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
  538. data/rbi/stripe/services/checkout_service.rbi +9 -0
  539. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  540. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  541. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  542. data/rbi/stripe/services/climate_service.rbi +11 -0
  543. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  544. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  545. data/rbi/stripe/services/coupon_service.rbi +196 -0
  546. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  547. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  548. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  549. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  550. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  551. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  552. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  553. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  554. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  555. data/rbi/stripe/services/customer_service.rbi +651 -0
  556. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  557. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  558. data/rbi/stripe/services/dispute_service.rbi +424 -0
  559. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  560. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  561. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  562. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  563. data/rbi/stripe/services/event_service.rbi +83 -0
  564. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  565. data/rbi/stripe/services/file_link_service.rbi +124 -0
  566. data/rbi/stripe/services/file_service.rbi +116 -0
  567. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  568. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  569. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  570. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  571. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  572. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  573. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  574. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  575. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  576. data/rbi/stripe/services/identity_service.rbi +10 -0
  577. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  578. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  579. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  580. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  581. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  582. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  583. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  584. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  585. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  586. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  587. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  588. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  589. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  590. data/rbi/stripe/services/issuing_service.rbi +16 -0
  591. data/rbi/stripe/services/mandate_service.rbi +20 -0
  592. data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
  593. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  594. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  595. data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
  596. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  597. data/rbi/stripe/services/payment_method_service.rbi +840 -0
  598. data/rbi/stripe/services/payout_service.rbi +205 -0
  599. data/rbi/stripe/services/plan_service.rbi +284 -0
  600. data/rbi/stripe/services/price_service.rbi +546 -0
  601. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  602. data/rbi/stripe/services/product_service.rbi +479 -0
  603. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  604. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  605. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  606. data/rbi/stripe/services/quote_service.rbi +686 -0
  607. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  608. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  609. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  610. data/rbi/stripe/services/radar_service.rbi +11 -0
  611. data/rbi/stripe/services/refund_service.rbi +185 -0
  612. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  613. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  614. data/rbi/stripe/services/reporting_service.rbi +10 -0
  615. data/rbi/stripe/services/review_service.rbi +84 -0
  616. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  617. data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
  618. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  619. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  620. data/rbi/stripe/services/sigma_service.rbi +9 -0
  621. data/rbi/stripe/services/source_service.rbi +663 -0
  622. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  623. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  624. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  625. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  626. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  627. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  628. data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
  629. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  630. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  631. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  632. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  633. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  634. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  635. data/rbi/stripe/services/tax_service.rbi +12 -0
  636. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  637. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  638. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  639. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  640. data/rbi/stripe/services/terminal_service.rbi +12 -0
  641. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  642. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  643. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  644. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  645. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  646. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  647. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  648. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  649. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  650. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  651. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  652. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  653. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  654. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  655. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  656. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  657. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  658. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  659. data/rbi/stripe/services/token_service.rbi +1189 -0
  660. data/rbi/stripe/services/topup_service.rbi +176 -0
  661. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  662. data/rbi/stripe/services/transfer_service.rbi +152 -0
  663. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  664. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  665. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  666. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  667. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  668. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  669. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  670. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  671. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  672. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  673. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  674. data/rbi/stripe/services/treasury_service.rbi +18 -0
  675. data/rbi/stripe/services/v1_services.rbi +77 -0
  676. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  677. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  678. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  679. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  680. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  681. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  682. data/rbi/stripe/services/v2/core/event_service.rbi +38 -0
  683. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  684. data/rbi/stripe/services/v2_services.rbi +10 -0
  685. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  686. metadata +533 -4
  687. data/lib/stripe/resources/usage_record.rb +0 -17
  688. data/lib/stripe/resources/usage_record_summary.rb +0 -11
@@ -0,0 +1,2211 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ class PaymentMethodConfigurationService < StripeService
7
+ class ListParams < Stripe::RequestParams
8
+ # The Connect application to filter by.
9
+ sig { returns(T.nilable(T.nilable(String))) }
10
+ attr_accessor :application
11
+ # 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.
12
+ sig { returns(T.nilable(String)) }
13
+ attr_accessor :ending_before
14
+ # Specifies which fields in the response should be expanded.
15
+ sig { returns(T.nilable(T::Array[String])) }
16
+ attr_accessor :expand
17
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
18
+ sig { returns(T.nilable(Integer)) }
19
+ attr_accessor :limit
20
+ # 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.
21
+ sig { returns(T.nilable(String)) }
22
+ attr_accessor :starting_after
23
+ sig {
24
+ params(application: T.nilable(T.nilable(String)), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
25
+ }
26
+ def initialize(
27
+ application: nil,
28
+ ending_before: nil,
29
+ expand: nil,
30
+ limit: nil,
31
+ starting_after: nil
32
+ ); end
33
+ end
34
+ class CreateParams < Stripe::RequestParams
35
+ class AcssDebit < Stripe::RequestParams
36
+ class DisplayPreference < Stripe::RequestParams
37
+ # The account's preference for whether or not to display this payment method.
38
+ sig { returns(T.nilable(String)) }
39
+ attr_accessor :preference
40
+ sig { params(preference: T.nilable(String)).void }
41
+ def initialize(preference: nil); end
42
+ end
43
+ # Whether or not the payment method should be displayed.
44
+ sig {
45
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit::DisplayPreference))
46
+ }
47
+ attr_accessor :display_preference
48
+ sig {
49
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit::DisplayPreference)).void
50
+ }
51
+ def initialize(display_preference: nil); end
52
+ end
53
+ class Affirm < Stripe::RequestParams
54
+ class DisplayPreference < Stripe::RequestParams
55
+ # The account's preference for whether or not to display this payment method.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_accessor :preference
58
+ sig { params(preference: T.nilable(String)).void }
59
+ def initialize(preference: nil); end
60
+ end
61
+ # Whether or not the payment method should be displayed.
62
+ sig {
63
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm::DisplayPreference))
64
+ }
65
+ attr_accessor :display_preference
66
+ sig {
67
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm::DisplayPreference)).void
68
+ }
69
+ def initialize(display_preference: nil); end
70
+ end
71
+ class AfterpayClearpay < Stripe::RequestParams
72
+ class DisplayPreference < Stripe::RequestParams
73
+ # The account's preference for whether or not to display this payment method.
74
+ sig { returns(T.nilable(String)) }
75
+ attr_accessor :preference
76
+ sig { params(preference: T.nilable(String)).void }
77
+ def initialize(preference: nil); end
78
+ end
79
+ # Whether or not the payment method should be displayed.
80
+ sig {
81
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay::DisplayPreference))
82
+ }
83
+ attr_accessor :display_preference
84
+ sig {
85
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay::DisplayPreference)).void
86
+ }
87
+ def initialize(display_preference: nil); end
88
+ end
89
+ class Alipay < Stripe::RequestParams
90
+ class DisplayPreference < Stripe::RequestParams
91
+ # The account's preference for whether or not to display this payment method.
92
+ sig { returns(T.nilable(String)) }
93
+ attr_accessor :preference
94
+ sig { params(preference: T.nilable(String)).void }
95
+ def initialize(preference: nil); end
96
+ end
97
+ # Whether or not the payment method should be displayed.
98
+ sig {
99
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay::DisplayPreference))
100
+ }
101
+ attr_accessor :display_preference
102
+ sig {
103
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay::DisplayPreference)).void
104
+ }
105
+ def initialize(display_preference: nil); end
106
+ end
107
+ class Alma < Stripe::RequestParams
108
+ class DisplayPreference < Stripe::RequestParams
109
+ # The account's preference for whether or not to display this payment method.
110
+ sig { returns(T.nilable(String)) }
111
+ attr_accessor :preference
112
+ sig { params(preference: T.nilable(String)).void }
113
+ def initialize(preference: nil); end
114
+ end
115
+ # Whether or not the payment method should be displayed.
116
+ sig {
117
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alma::DisplayPreference))
118
+ }
119
+ attr_accessor :display_preference
120
+ sig {
121
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alma::DisplayPreference)).void
122
+ }
123
+ def initialize(display_preference: nil); end
124
+ end
125
+ class AmazonPay < Stripe::RequestParams
126
+ class DisplayPreference < Stripe::RequestParams
127
+ # The account's preference for whether or not to display this payment method.
128
+ sig { returns(T.nilable(String)) }
129
+ attr_accessor :preference
130
+ sig { params(preference: T.nilable(String)).void }
131
+ def initialize(preference: nil); end
132
+ end
133
+ # Whether or not the payment method should be displayed.
134
+ sig {
135
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay::DisplayPreference))
136
+ }
137
+ attr_accessor :display_preference
138
+ sig {
139
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay::DisplayPreference)).void
140
+ }
141
+ def initialize(display_preference: nil); end
142
+ end
143
+ class ApplePay < Stripe::RequestParams
144
+ class DisplayPreference < Stripe::RequestParams
145
+ # The account's preference for whether or not to display this payment method.
146
+ sig { returns(T.nilable(String)) }
147
+ attr_accessor :preference
148
+ sig { params(preference: T.nilable(String)).void }
149
+ def initialize(preference: nil); end
150
+ end
151
+ # Whether or not the payment method should be displayed.
152
+ sig {
153
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay::DisplayPreference))
154
+ }
155
+ attr_accessor :display_preference
156
+ sig {
157
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay::DisplayPreference)).void
158
+ }
159
+ def initialize(display_preference: nil); end
160
+ end
161
+ class ApplePayLater < Stripe::RequestParams
162
+ class DisplayPreference < Stripe::RequestParams
163
+ # The account's preference for whether or not to display this payment method.
164
+ sig { returns(T.nilable(String)) }
165
+ attr_accessor :preference
166
+ sig { params(preference: T.nilable(String)).void }
167
+ def initialize(preference: nil); end
168
+ end
169
+ # Whether or not the payment method should be displayed.
170
+ sig {
171
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater::DisplayPreference))
172
+ }
173
+ attr_accessor :display_preference
174
+ sig {
175
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater::DisplayPreference)).void
176
+ }
177
+ def initialize(display_preference: nil); end
178
+ end
179
+ class AuBecsDebit < Stripe::RequestParams
180
+ class DisplayPreference < Stripe::RequestParams
181
+ # The account's preference for whether or not to display this payment method.
182
+ sig { returns(T.nilable(String)) }
183
+ attr_accessor :preference
184
+ sig { params(preference: T.nilable(String)).void }
185
+ def initialize(preference: nil); end
186
+ end
187
+ # Whether or not the payment method should be displayed.
188
+ sig {
189
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit::DisplayPreference))
190
+ }
191
+ attr_accessor :display_preference
192
+ sig {
193
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit::DisplayPreference)).void
194
+ }
195
+ def initialize(display_preference: nil); end
196
+ end
197
+ class BacsDebit < Stripe::RequestParams
198
+ class DisplayPreference < Stripe::RequestParams
199
+ # The account's preference for whether or not to display this payment method.
200
+ sig { returns(T.nilable(String)) }
201
+ attr_accessor :preference
202
+ sig { params(preference: T.nilable(String)).void }
203
+ def initialize(preference: nil); end
204
+ end
205
+ # Whether or not the payment method should be displayed.
206
+ sig {
207
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit::DisplayPreference))
208
+ }
209
+ attr_accessor :display_preference
210
+ sig {
211
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit::DisplayPreference)).void
212
+ }
213
+ def initialize(display_preference: nil); end
214
+ end
215
+ class Bancontact < Stripe::RequestParams
216
+ class DisplayPreference < Stripe::RequestParams
217
+ # The account's preference for whether or not to display this payment method.
218
+ sig { returns(T.nilable(String)) }
219
+ attr_accessor :preference
220
+ sig { params(preference: T.nilable(String)).void }
221
+ def initialize(preference: nil); end
222
+ end
223
+ # Whether or not the payment method should be displayed.
224
+ sig {
225
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact::DisplayPreference))
226
+ }
227
+ attr_accessor :display_preference
228
+ sig {
229
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact::DisplayPreference)).void
230
+ }
231
+ def initialize(display_preference: nil); end
232
+ end
233
+ class Billie < Stripe::RequestParams
234
+ class DisplayPreference < Stripe::RequestParams
235
+ # The account's preference for whether or not to display this payment method.
236
+ sig { returns(T.nilable(String)) }
237
+ attr_accessor :preference
238
+ sig { params(preference: T.nilable(String)).void }
239
+ def initialize(preference: nil); end
240
+ end
241
+ # Whether or not the payment method should be displayed.
242
+ sig {
243
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Billie::DisplayPreference))
244
+ }
245
+ attr_accessor :display_preference
246
+ sig {
247
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Billie::DisplayPreference)).void
248
+ }
249
+ def initialize(display_preference: nil); end
250
+ end
251
+ class Blik < Stripe::RequestParams
252
+ class DisplayPreference < Stripe::RequestParams
253
+ # The account's preference for whether or not to display this payment method.
254
+ sig { returns(T.nilable(String)) }
255
+ attr_accessor :preference
256
+ sig { params(preference: T.nilable(String)).void }
257
+ def initialize(preference: nil); end
258
+ end
259
+ # Whether or not the payment method should be displayed.
260
+ sig {
261
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Blik::DisplayPreference))
262
+ }
263
+ attr_accessor :display_preference
264
+ sig {
265
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Blik::DisplayPreference)).void
266
+ }
267
+ def initialize(display_preference: nil); end
268
+ end
269
+ class Boleto < Stripe::RequestParams
270
+ class DisplayPreference < Stripe::RequestParams
271
+ # The account's preference for whether or not to display this payment method.
272
+ sig { returns(T.nilable(String)) }
273
+ attr_accessor :preference
274
+ sig { params(preference: T.nilable(String)).void }
275
+ def initialize(preference: nil); end
276
+ end
277
+ # Whether or not the payment method should be displayed.
278
+ sig {
279
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto::DisplayPreference))
280
+ }
281
+ attr_accessor :display_preference
282
+ sig {
283
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto::DisplayPreference)).void
284
+ }
285
+ def initialize(display_preference: nil); end
286
+ end
287
+ class Card < Stripe::RequestParams
288
+ class DisplayPreference < Stripe::RequestParams
289
+ # The account's preference for whether or not to display this payment method.
290
+ sig { returns(T.nilable(String)) }
291
+ attr_accessor :preference
292
+ sig { params(preference: T.nilable(String)).void }
293
+ def initialize(preference: nil); end
294
+ end
295
+ # Whether or not the payment method should be displayed.
296
+ sig {
297
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Card::DisplayPreference))
298
+ }
299
+ attr_accessor :display_preference
300
+ sig {
301
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Card::DisplayPreference)).void
302
+ }
303
+ def initialize(display_preference: nil); end
304
+ end
305
+ class CartesBancaires < Stripe::RequestParams
306
+ class DisplayPreference < Stripe::RequestParams
307
+ # The account's preference for whether or not to display this payment method.
308
+ sig { returns(T.nilable(String)) }
309
+ attr_accessor :preference
310
+ sig { params(preference: T.nilable(String)).void }
311
+ def initialize(preference: nil); end
312
+ end
313
+ # Whether or not the payment method should be displayed.
314
+ sig {
315
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires::DisplayPreference))
316
+ }
317
+ attr_accessor :display_preference
318
+ sig {
319
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires::DisplayPreference)).void
320
+ }
321
+ def initialize(display_preference: nil); end
322
+ end
323
+ class Cashapp < Stripe::RequestParams
324
+ class DisplayPreference < Stripe::RequestParams
325
+ # The account's preference for whether or not to display this payment method.
326
+ sig { returns(T.nilable(String)) }
327
+ attr_accessor :preference
328
+ sig { params(preference: T.nilable(String)).void }
329
+ def initialize(preference: nil); end
330
+ end
331
+ # Whether or not the payment method should be displayed.
332
+ sig {
333
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp::DisplayPreference))
334
+ }
335
+ attr_accessor :display_preference
336
+ sig {
337
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp::DisplayPreference)).void
338
+ }
339
+ def initialize(display_preference: nil); end
340
+ end
341
+ class CustomerBalance < Stripe::RequestParams
342
+ class DisplayPreference < Stripe::RequestParams
343
+ # The account's preference for whether or not to display this payment method.
344
+ sig { returns(T.nilable(String)) }
345
+ attr_accessor :preference
346
+ sig { params(preference: T.nilable(String)).void }
347
+ def initialize(preference: nil); end
348
+ end
349
+ # Whether or not the payment method should be displayed.
350
+ sig {
351
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance::DisplayPreference))
352
+ }
353
+ attr_accessor :display_preference
354
+ sig {
355
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance::DisplayPreference)).void
356
+ }
357
+ def initialize(display_preference: nil); end
358
+ end
359
+ class Eps < Stripe::RequestParams
360
+ class DisplayPreference < Stripe::RequestParams
361
+ # The account's preference for whether or not to display this payment method.
362
+ sig { returns(T.nilable(String)) }
363
+ attr_accessor :preference
364
+ sig { params(preference: T.nilable(String)).void }
365
+ def initialize(preference: nil); end
366
+ end
367
+ # Whether or not the payment method should be displayed.
368
+ sig {
369
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Eps::DisplayPreference))
370
+ }
371
+ attr_accessor :display_preference
372
+ sig {
373
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Eps::DisplayPreference)).void
374
+ }
375
+ def initialize(display_preference: nil); end
376
+ end
377
+ class Fpx < Stripe::RequestParams
378
+ class DisplayPreference < Stripe::RequestParams
379
+ # The account's preference for whether or not to display this payment method.
380
+ sig { returns(T.nilable(String)) }
381
+ attr_accessor :preference
382
+ sig { params(preference: T.nilable(String)).void }
383
+ def initialize(preference: nil); end
384
+ end
385
+ # Whether or not the payment method should be displayed.
386
+ sig {
387
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx::DisplayPreference))
388
+ }
389
+ attr_accessor :display_preference
390
+ sig {
391
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx::DisplayPreference)).void
392
+ }
393
+ def initialize(display_preference: nil); end
394
+ end
395
+ class Giropay < Stripe::RequestParams
396
+ class DisplayPreference < Stripe::RequestParams
397
+ # The account's preference for whether or not to display this payment method.
398
+ sig { returns(T.nilable(String)) }
399
+ attr_accessor :preference
400
+ sig { params(preference: T.nilable(String)).void }
401
+ def initialize(preference: nil); end
402
+ end
403
+ # Whether or not the payment method should be displayed.
404
+ sig {
405
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay::DisplayPreference))
406
+ }
407
+ attr_accessor :display_preference
408
+ sig {
409
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay::DisplayPreference)).void
410
+ }
411
+ def initialize(display_preference: nil); end
412
+ end
413
+ class GooglePay < Stripe::RequestParams
414
+ class DisplayPreference < Stripe::RequestParams
415
+ # The account's preference for whether or not to display this payment method.
416
+ sig { returns(T.nilable(String)) }
417
+ attr_accessor :preference
418
+ sig { params(preference: T.nilable(String)).void }
419
+ def initialize(preference: nil); end
420
+ end
421
+ # Whether or not the payment method should be displayed.
422
+ sig {
423
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay::DisplayPreference))
424
+ }
425
+ attr_accessor :display_preference
426
+ sig {
427
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay::DisplayPreference)).void
428
+ }
429
+ def initialize(display_preference: nil); end
430
+ end
431
+ class Grabpay < Stripe::RequestParams
432
+ class DisplayPreference < Stripe::RequestParams
433
+ # The account's preference for whether or not to display this payment method.
434
+ sig { returns(T.nilable(String)) }
435
+ attr_accessor :preference
436
+ sig { params(preference: T.nilable(String)).void }
437
+ def initialize(preference: nil); end
438
+ end
439
+ # Whether or not the payment method should be displayed.
440
+ sig {
441
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay::DisplayPreference))
442
+ }
443
+ attr_accessor :display_preference
444
+ sig {
445
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay::DisplayPreference)).void
446
+ }
447
+ def initialize(display_preference: nil); end
448
+ end
449
+ class Ideal < Stripe::RequestParams
450
+ class DisplayPreference < Stripe::RequestParams
451
+ # The account's preference for whether or not to display this payment method.
452
+ sig { returns(T.nilable(String)) }
453
+ attr_accessor :preference
454
+ sig { params(preference: T.nilable(String)).void }
455
+ def initialize(preference: nil); end
456
+ end
457
+ # Whether or not the payment method should be displayed.
458
+ sig {
459
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal::DisplayPreference))
460
+ }
461
+ attr_accessor :display_preference
462
+ sig {
463
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal::DisplayPreference)).void
464
+ }
465
+ def initialize(display_preference: nil); end
466
+ end
467
+ class Jcb < Stripe::RequestParams
468
+ class DisplayPreference < Stripe::RequestParams
469
+ # The account's preference for whether or not to display this payment method.
470
+ sig { returns(T.nilable(String)) }
471
+ attr_accessor :preference
472
+ sig { params(preference: T.nilable(String)).void }
473
+ def initialize(preference: nil); end
474
+ end
475
+ # Whether or not the payment method should be displayed.
476
+ sig {
477
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb::DisplayPreference))
478
+ }
479
+ attr_accessor :display_preference
480
+ sig {
481
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb::DisplayPreference)).void
482
+ }
483
+ def initialize(display_preference: nil); end
484
+ end
485
+ class Klarna < Stripe::RequestParams
486
+ class DisplayPreference < Stripe::RequestParams
487
+ # The account's preference for whether or not to display this payment method.
488
+ sig { returns(T.nilable(String)) }
489
+ attr_accessor :preference
490
+ sig { params(preference: T.nilable(String)).void }
491
+ def initialize(preference: nil); end
492
+ end
493
+ # Whether or not the payment method should be displayed.
494
+ sig {
495
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna::DisplayPreference))
496
+ }
497
+ attr_accessor :display_preference
498
+ sig {
499
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna::DisplayPreference)).void
500
+ }
501
+ def initialize(display_preference: nil); end
502
+ end
503
+ class Konbini < Stripe::RequestParams
504
+ class DisplayPreference < Stripe::RequestParams
505
+ # The account's preference for whether or not to display this payment method.
506
+ sig { returns(T.nilable(String)) }
507
+ attr_accessor :preference
508
+ sig { params(preference: T.nilable(String)).void }
509
+ def initialize(preference: nil); end
510
+ end
511
+ # Whether or not the payment method should be displayed.
512
+ sig {
513
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini::DisplayPreference))
514
+ }
515
+ attr_accessor :display_preference
516
+ sig {
517
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini::DisplayPreference)).void
518
+ }
519
+ def initialize(display_preference: nil); end
520
+ end
521
+ class Link < Stripe::RequestParams
522
+ class DisplayPreference < Stripe::RequestParams
523
+ # The account's preference for whether or not to display this payment method.
524
+ sig { returns(T.nilable(String)) }
525
+ attr_accessor :preference
526
+ sig { params(preference: T.nilable(String)).void }
527
+ def initialize(preference: nil); end
528
+ end
529
+ # Whether or not the payment method should be displayed.
530
+ sig {
531
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Link::DisplayPreference))
532
+ }
533
+ attr_accessor :display_preference
534
+ sig {
535
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Link::DisplayPreference)).void
536
+ }
537
+ def initialize(display_preference: nil); end
538
+ end
539
+ class Mobilepay < Stripe::RequestParams
540
+ class DisplayPreference < Stripe::RequestParams
541
+ # The account's preference for whether or not to display this payment method.
542
+ sig { returns(T.nilable(String)) }
543
+ attr_accessor :preference
544
+ sig { params(preference: T.nilable(String)).void }
545
+ def initialize(preference: nil); end
546
+ end
547
+ # Whether or not the payment method should be displayed.
548
+ sig {
549
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay::DisplayPreference))
550
+ }
551
+ attr_accessor :display_preference
552
+ sig {
553
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay::DisplayPreference)).void
554
+ }
555
+ def initialize(display_preference: nil); end
556
+ end
557
+ class Multibanco < Stripe::RequestParams
558
+ class DisplayPreference < Stripe::RequestParams
559
+ # The account's preference for whether or not to display this payment method.
560
+ sig { returns(T.nilable(String)) }
561
+ attr_accessor :preference
562
+ sig { params(preference: T.nilable(String)).void }
563
+ def initialize(preference: nil); end
564
+ end
565
+ # Whether or not the payment method should be displayed.
566
+ sig {
567
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco::DisplayPreference))
568
+ }
569
+ attr_accessor :display_preference
570
+ sig {
571
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco::DisplayPreference)).void
572
+ }
573
+ def initialize(display_preference: nil); end
574
+ end
575
+ class NzBankAccount < Stripe::RequestParams
576
+ class DisplayPreference < Stripe::RequestParams
577
+ # The account's preference for whether or not to display this payment method.
578
+ sig { returns(T.nilable(String)) }
579
+ attr_accessor :preference
580
+ sig { params(preference: T.nilable(String)).void }
581
+ def initialize(preference: nil); end
582
+ end
583
+ # Whether or not the payment method should be displayed.
584
+ sig {
585
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::NzBankAccount::DisplayPreference))
586
+ }
587
+ attr_accessor :display_preference
588
+ sig {
589
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::NzBankAccount::DisplayPreference)).void
590
+ }
591
+ def initialize(display_preference: nil); end
592
+ end
593
+ class Oxxo < Stripe::RequestParams
594
+ class DisplayPreference < Stripe::RequestParams
595
+ # The account's preference for whether or not to display this payment method.
596
+ sig { returns(T.nilable(String)) }
597
+ attr_accessor :preference
598
+ sig { params(preference: T.nilable(String)).void }
599
+ def initialize(preference: nil); end
600
+ end
601
+ # Whether or not the payment method should be displayed.
602
+ sig {
603
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo::DisplayPreference))
604
+ }
605
+ attr_accessor :display_preference
606
+ sig {
607
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo::DisplayPreference)).void
608
+ }
609
+ def initialize(display_preference: nil); end
610
+ end
611
+ class P24 < Stripe::RequestParams
612
+ class DisplayPreference < Stripe::RequestParams
613
+ # The account's preference for whether or not to display this payment method.
614
+ sig { returns(T.nilable(String)) }
615
+ attr_accessor :preference
616
+ sig { params(preference: T.nilable(String)).void }
617
+ def initialize(preference: nil); end
618
+ end
619
+ # Whether or not the payment method should be displayed.
620
+ sig {
621
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::P24::DisplayPreference))
622
+ }
623
+ attr_accessor :display_preference
624
+ sig {
625
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::P24::DisplayPreference)).void
626
+ }
627
+ def initialize(display_preference: nil); end
628
+ end
629
+ class PayByBank < Stripe::RequestParams
630
+ class DisplayPreference < Stripe::RequestParams
631
+ # The account's preference for whether or not to display this payment method.
632
+ sig { returns(T.nilable(String)) }
633
+ attr_accessor :preference
634
+ sig { params(preference: T.nilable(String)).void }
635
+ def initialize(preference: nil); end
636
+ end
637
+ # Whether or not the payment method should be displayed.
638
+ sig {
639
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank::DisplayPreference))
640
+ }
641
+ attr_accessor :display_preference
642
+ sig {
643
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank::DisplayPreference)).void
644
+ }
645
+ def initialize(display_preference: nil); end
646
+ end
647
+ class Paynow < Stripe::RequestParams
648
+ class DisplayPreference < Stripe::RequestParams
649
+ # The account's preference for whether or not to display this payment method.
650
+ sig { returns(T.nilable(String)) }
651
+ attr_accessor :preference
652
+ sig { params(preference: T.nilable(String)).void }
653
+ def initialize(preference: nil); end
654
+ end
655
+ # Whether or not the payment method should be displayed.
656
+ sig {
657
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow::DisplayPreference))
658
+ }
659
+ attr_accessor :display_preference
660
+ sig {
661
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow::DisplayPreference)).void
662
+ }
663
+ def initialize(display_preference: nil); end
664
+ end
665
+ class Paypal < Stripe::RequestParams
666
+ class DisplayPreference < Stripe::RequestParams
667
+ # The account's preference for whether or not to display this payment method.
668
+ sig { returns(T.nilable(String)) }
669
+ attr_accessor :preference
670
+ sig { params(preference: T.nilable(String)).void }
671
+ def initialize(preference: nil); end
672
+ end
673
+ # Whether or not the payment method should be displayed.
674
+ sig {
675
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal::DisplayPreference))
676
+ }
677
+ attr_accessor :display_preference
678
+ sig {
679
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal::DisplayPreference)).void
680
+ }
681
+ def initialize(display_preference: nil); end
682
+ end
683
+ class Promptpay < Stripe::RequestParams
684
+ class DisplayPreference < Stripe::RequestParams
685
+ # The account's preference for whether or not to display this payment method.
686
+ sig { returns(T.nilable(String)) }
687
+ attr_accessor :preference
688
+ sig { params(preference: T.nilable(String)).void }
689
+ def initialize(preference: nil); end
690
+ end
691
+ # Whether or not the payment method should be displayed.
692
+ sig {
693
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay::DisplayPreference))
694
+ }
695
+ attr_accessor :display_preference
696
+ sig {
697
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay::DisplayPreference)).void
698
+ }
699
+ def initialize(display_preference: nil); end
700
+ end
701
+ class RevolutPay < Stripe::RequestParams
702
+ class DisplayPreference < Stripe::RequestParams
703
+ # The account's preference for whether or not to display this payment method.
704
+ sig { returns(T.nilable(String)) }
705
+ attr_accessor :preference
706
+ sig { params(preference: T.nilable(String)).void }
707
+ def initialize(preference: nil); end
708
+ end
709
+ # Whether or not the payment method should be displayed.
710
+ sig {
711
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay::DisplayPreference))
712
+ }
713
+ attr_accessor :display_preference
714
+ sig {
715
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay::DisplayPreference)).void
716
+ }
717
+ def initialize(display_preference: nil); end
718
+ end
719
+ class Satispay < Stripe::RequestParams
720
+ class DisplayPreference < Stripe::RequestParams
721
+ # The account's preference for whether or not to display this payment method.
722
+ sig { returns(T.nilable(String)) }
723
+ attr_accessor :preference
724
+ sig { params(preference: T.nilable(String)).void }
725
+ def initialize(preference: nil); end
726
+ end
727
+ # Whether or not the payment method should be displayed.
728
+ sig {
729
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Satispay::DisplayPreference))
730
+ }
731
+ attr_accessor :display_preference
732
+ sig {
733
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Satispay::DisplayPreference)).void
734
+ }
735
+ def initialize(display_preference: nil); end
736
+ end
737
+ class SepaDebit < Stripe::RequestParams
738
+ class DisplayPreference < Stripe::RequestParams
739
+ # The account's preference for whether or not to display this payment method.
740
+ sig { returns(T.nilable(String)) }
741
+ attr_accessor :preference
742
+ sig { params(preference: T.nilable(String)).void }
743
+ def initialize(preference: nil); end
744
+ end
745
+ # Whether or not the payment method should be displayed.
746
+ sig {
747
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit::DisplayPreference))
748
+ }
749
+ attr_accessor :display_preference
750
+ sig {
751
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit::DisplayPreference)).void
752
+ }
753
+ def initialize(display_preference: nil); end
754
+ end
755
+ class Sofort < Stripe::RequestParams
756
+ class DisplayPreference < Stripe::RequestParams
757
+ # The account's preference for whether or not to display this payment method.
758
+ sig { returns(T.nilable(String)) }
759
+ attr_accessor :preference
760
+ sig { params(preference: T.nilable(String)).void }
761
+ def initialize(preference: nil); end
762
+ end
763
+ # Whether or not the payment method should be displayed.
764
+ sig {
765
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort::DisplayPreference))
766
+ }
767
+ attr_accessor :display_preference
768
+ sig {
769
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort::DisplayPreference)).void
770
+ }
771
+ def initialize(display_preference: nil); end
772
+ end
773
+ class Swish < Stripe::RequestParams
774
+ class DisplayPreference < Stripe::RequestParams
775
+ # The account's preference for whether or not to display this payment method.
776
+ sig { returns(T.nilable(String)) }
777
+ attr_accessor :preference
778
+ sig { params(preference: T.nilable(String)).void }
779
+ def initialize(preference: nil); end
780
+ end
781
+ # Whether or not the payment method should be displayed.
782
+ sig {
783
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Swish::DisplayPreference))
784
+ }
785
+ attr_accessor :display_preference
786
+ sig {
787
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Swish::DisplayPreference)).void
788
+ }
789
+ def initialize(display_preference: nil); end
790
+ end
791
+ class Twint < Stripe::RequestParams
792
+ class DisplayPreference < Stripe::RequestParams
793
+ # The account's preference for whether or not to display this payment method.
794
+ sig { returns(T.nilable(String)) }
795
+ attr_accessor :preference
796
+ sig { params(preference: T.nilable(String)).void }
797
+ def initialize(preference: nil); end
798
+ end
799
+ # Whether or not the payment method should be displayed.
800
+ sig {
801
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Twint::DisplayPreference))
802
+ }
803
+ attr_accessor :display_preference
804
+ sig {
805
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Twint::DisplayPreference)).void
806
+ }
807
+ def initialize(display_preference: nil); end
808
+ end
809
+ class UsBankAccount < Stripe::RequestParams
810
+ class DisplayPreference < Stripe::RequestParams
811
+ # The account's preference for whether or not to display this payment method.
812
+ sig { returns(T.nilable(String)) }
813
+ attr_accessor :preference
814
+ sig { params(preference: T.nilable(String)).void }
815
+ def initialize(preference: nil); end
816
+ end
817
+ # Whether or not the payment method should be displayed.
818
+ sig {
819
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount::DisplayPreference))
820
+ }
821
+ attr_accessor :display_preference
822
+ sig {
823
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount::DisplayPreference)).void
824
+ }
825
+ def initialize(display_preference: nil); end
826
+ end
827
+ class WechatPay < Stripe::RequestParams
828
+ class DisplayPreference < Stripe::RequestParams
829
+ # The account's preference for whether or not to display this payment method.
830
+ sig { returns(T.nilable(String)) }
831
+ attr_accessor :preference
832
+ sig { params(preference: T.nilable(String)).void }
833
+ def initialize(preference: nil); end
834
+ end
835
+ # Whether or not the payment method should be displayed.
836
+ sig {
837
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay::DisplayPreference))
838
+ }
839
+ attr_accessor :display_preference
840
+ sig {
841
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay::DisplayPreference)).void
842
+ }
843
+ def initialize(display_preference: nil); end
844
+ end
845
+ class Zip < Stripe::RequestParams
846
+ class DisplayPreference < Stripe::RequestParams
847
+ # The account's preference for whether or not to display this payment method.
848
+ sig { returns(T.nilable(String)) }
849
+ attr_accessor :preference
850
+ sig { params(preference: T.nilable(String)).void }
851
+ def initialize(preference: nil); end
852
+ end
853
+ # Whether or not the payment method should be displayed.
854
+ sig {
855
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Zip::DisplayPreference))
856
+ }
857
+ attr_accessor :display_preference
858
+ sig {
859
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Zip::DisplayPreference)).void
860
+ }
861
+ def initialize(display_preference: nil); end
862
+ end
863
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
864
+ sig {
865
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit))
866
+ }
867
+ attr_accessor :acss_debit
868
+ # [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.
869
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm)) }
870
+ attr_accessor :affirm
871
+ # 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.
872
+ sig {
873
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay))
874
+ }
875
+ attr_accessor :afterpay_clearpay
876
+ # 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.
877
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay)) }
878
+ attr_accessor :alipay
879
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
880
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alma)) }
881
+ attr_accessor :alma
882
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
883
+ sig {
884
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay))
885
+ }
886
+ attr_accessor :amazon_pay
887
+ # Stripe users can accept [Apple Pay](/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](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
888
+ sig {
889
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay))
890
+ }
891
+ attr_accessor :apple_pay
892
+ # 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.
893
+ sig {
894
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater))
895
+ }
896
+ attr_accessor :apple_pay_later
897
+ # 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.
898
+ sig {
899
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit))
900
+ }
901
+ attr_accessor :au_becs_debit
902
+ # 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.
903
+ sig {
904
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit))
905
+ }
906
+ attr_accessor :bacs_debit
907
+ # 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.
908
+ sig {
909
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact))
910
+ }
911
+ attr_accessor :bancontact
912
+ # 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.
913
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Billie)) }
914
+ attr_accessor :billie
915
+ # 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.
916
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Blik)) }
917
+ attr_accessor :blik
918
+ # 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.
919
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto)) }
920
+ attr_accessor :boleto
921
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
922
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Card)) }
923
+ attr_accessor :card
924
+ # 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.
925
+ sig {
926
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires))
927
+ }
928
+ attr_accessor :cartes_bancaires
929
+ # 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.
930
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp)) }
931
+ attr_accessor :cashapp
932
+ # 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.
933
+ sig {
934
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance))
935
+ }
936
+ attr_accessor :customer_balance
937
+ # 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.
938
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Eps)) }
939
+ attr_accessor :eps
940
+ # Specifies which fields in the response should be expanded.
941
+ sig { returns(T.nilable(T::Array[String])) }
942
+ attr_accessor :expand
943
+ # 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.
944
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx)) }
945
+ attr_accessor :fpx
946
+ # 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.
947
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay)) }
948
+ attr_accessor :giropay
949
+ # 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.
950
+ sig {
951
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay))
952
+ }
953
+ attr_accessor :google_pay
954
+ # 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.
955
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay)) }
956
+ attr_accessor :grabpay
957
+ # 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.
958
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal)) }
959
+ attr_accessor :ideal
960
+ # 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.
961
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb)) }
962
+ attr_accessor :jcb
963
+ # 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.
964
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna)) }
965
+ attr_accessor :klarna
966
+ # 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.
967
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini)) }
968
+ attr_accessor :konbini
969
+ # [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.
970
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Link)) }
971
+ attr_accessor :link
972
+ # 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.
973
+ sig {
974
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay))
975
+ }
976
+ attr_accessor :mobilepay
977
+ # 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.
978
+ sig {
979
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco))
980
+ }
981
+ attr_accessor :multibanco
982
+ # Configuration name.
983
+ sig { returns(T.nilable(String)) }
984
+ attr_accessor :name
985
+ # 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.
986
+ sig {
987
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::NzBankAccount))
988
+ }
989
+ attr_accessor :nz_bank_account
990
+ # 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.
991
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo)) }
992
+ attr_accessor :oxxo
993
+ # 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.
994
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::P24)) }
995
+ attr_accessor :p24
996
+ # Configuration's parent configuration. Specify to create a child configuration.
997
+ sig { returns(T.nilable(String)) }
998
+ attr_accessor :parent
999
+ # 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.
1000
+ sig {
1001
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank))
1002
+ }
1003
+ attr_accessor :pay_by_bank
1004
+ # 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.
1005
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow)) }
1006
+ attr_accessor :paynow
1007
+ # 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.
1008
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal)) }
1009
+ attr_accessor :paypal
1010
+ # 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.
1011
+ sig {
1012
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay))
1013
+ }
1014
+ attr_accessor :promptpay
1015
+ # 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.
1016
+ sig {
1017
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay))
1018
+ }
1019
+ attr_accessor :revolut_pay
1020
+ # 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.
1021
+ sig {
1022
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Satispay))
1023
+ }
1024
+ attr_accessor :satispay
1025
+ # 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.
1026
+ sig {
1027
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit))
1028
+ }
1029
+ attr_accessor :sepa_debit
1030
+ # 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.
1031
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort)) }
1032
+ attr_accessor :sofort
1033
+ # 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.
1034
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Swish)) }
1035
+ attr_accessor :swish
1036
+ # 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.
1037
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Twint)) }
1038
+ attr_accessor :twint
1039
+ # 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.
1040
+ sig {
1041
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount))
1042
+ }
1043
+ attr_accessor :us_bank_account
1044
+ # 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.
1045
+ sig {
1046
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay))
1047
+ }
1048
+ attr_accessor :wechat_pay
1049
+ # 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.
1050
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Zip)) }
1051
+ attr_accessor :zip
1052
+ sig {
1053
+ params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Cashapp), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Jcb), klarna: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Konbini), link: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Link), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Multibanco), name: T.nilable(String), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::PayByBank), paynow: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Paypal), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::RevolutPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Twint), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationService::CreateParams::Zip)).void
1054
+ }
1055
+ def initialize(
1056
+ acss_debit: nil,
1057
+ affirm: nil,
1058
+ afterpay_clearpay: nil,
1059
+ alipay: nil,
1060
+ alma: nil,
1061
+ amazon_pay: nil,
1062
+ apple_pay: nil,
1063
+ apple_pay_later: nil,
1064
+ au_becs_debit: nil,
1065
+ bacs_debit: nil,
1066
+ bancontact: nil,
1067
+ billie: nil,
1068
+ blik: nil,
1069
+ boleto: nil,
1070
+ card: nil,
1071
+ cartes_bancaires: nil,
1072
+ cashapp: nil,
1073
+ customer_balance: nil,
1074
+ eps: nil,
1075
+ expand: nil,
1076
+ fpx: nil,
1077
+ giropay: nil,
1078
+ google_pay: nil,
1079
+ grabpay: nil,
1080
+ ideal: nil,
1081
+ jcb: nil,
1082
+ klarna: nil,
1083
+ konbini: nil,
1084
+ link: nil,
1085
+ mobilepay: nil,
1086
+ multibanco: nil,
1087
+ name: nil,
1088
+ nz_bank_account: nil,
1089
+ oxxo: nil,
1090
+ p24: nil,
1091
+ parent: nil,
1092
+ pay_by_bank: nil,
1093
+ paynow: nil,
1094
+ paypal: nil,
1095
+ promptpay: nil,
1096
+ revolut_pay: nil,
1097
+ satispay: nil,
1098
+ sepa_debit: nil,
1099
+ sofort: nil,
1100
+ swish: nil,
1101
+ twint: nil,
1102
+ us_bank_account: nil,
1103
+ wechat_pay: nil,
1104
+ zip: nil
1105
+ ); end
1106
+ end
1107
+ class RetrieveParams < Stripe::RequestParams
1108
+ # Specifies which fields in the response should be expanded.
1109
+ sig { returns(T.nilable(T::Array[String])) }
1110
+ attr_accessor :expand
1111
+ sig { params(expand: T.nilable(T::Array[String])).void }
1112
+ def initialize(expand: nil); end
1113
+ end
1114
+ class UpdateParams < Stripe::RequestParams
1115
+ class AcssDebit < Stripe::RequestParams
1116
+ class DisplayPreference < Stripe::RequestParams
1117
+ # The account's preference for whether or not to display this payment method.
1118
+ sig { returns(T.nilable(String)) }
1119
+ attr_accessor :preference
1120
+ sig { params(preference: T.nilable(String)).void }
1121
+ def initialize(preference: nil); end
1122
+ end
1123
+ # Whether or not the payment method should be displayed.
1124
+ sig {
1125
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit::DisplayPreference))
1126
+ }
1127
+ attr_accessor :display_preference
1128
+ sig {
1129
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit::DisplayPreference)).void
1130
+ }
1131
+ def initialize(display_preference: nil); end
1132
+ end
1133
+ class Affirm < Stripe::RequestParams
1134
+ class DisplayPreference < Stripe::RequestParams
1135
+ # The account's preference for whether or not to display this payment method.
1136
+ sig { returns(T.nilable(String)) }
1137
+ attr_accessor :preference
1138
+ sig { params(preference: T.nilable(String)).void }
1139
+ def initialize(preference: nil); end
1140
+ end
1141
+ # Whether or not the payment method should be displayed.
1142
+ sig {
1143
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm::DisplayPreference))
1144
+ }
1145
+ attr_accessor :display_preference
1146
+ sig {
1147
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm::DisplayPreference)).void
1148
+ }
1149
+ def initialize(display_preference: nil); end
1150
+ end
1151
+ class AfterpayClearpay < Stripe::RequestParams
1152
+ class DisplayPreference < Stripe::RequestParams
1153
+ # The account's preference for whether or not to display this payment method.
1154
+ sig { returns(T.nilable(String)) }
1155
+ attr_accessor :preference
1156
+ sig { params(preference: T.nilable(String)).void }
1157
+ def initialize(preference: nil); end
1158
+ end
1159
+ # Whether or not the payment method should be displayed.
1160
+ sig {
1161
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay::DisplayPreference))
1162
+ }
1163
+ attr_accessor :display_preference
1164
+ sig {
1165
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay::DisplayPreference)).void
1166
+ }
1167
+ def initialize(display_preference: nil); end
1168
+ end
1169
+ class Alipay < Stripe::RequestParams
1170
+ class DisplayPreference < Stripe::RequestParams
1171
+ # The account's preference for whether or not to display this payment method.
1172
+ sig { returns(T.nilable(String)) }
1173
+ attr_accessor :preference
1174
+ sig { params(preference: T.nilable(String)).void }
1175
+ def initialize(preference: nil); end
1176
+ end
1177
+ # Whether or not the payment method should be displayed.
1178
+ sig {
1179
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay::DisplayPreference))
1180
+ }
1181
+ attr_accessor :display_preference
1182
+ sig {
1183
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay::DisplayPreference)).void
1184
+ }
1185
+ def initialize(display_preference: nil); end
1186
+ end
1187
+ class Alma < Stripe::RequestParams
1188
+ class DisplayPreference < Stripe::RequestParams
1189
+ # The account's preference for whether or not to display this payment method.
1190
+ sig { returns(T.nilable(String)) }
1191
+ attr_accessor :preference
1192
+ sig { params(preference: T.nilable(String)).void }
1193
+ def initialize(preference: nil); end
1194
+ end
1195
+ # Whether or not the payment method should be displayed.
1196
+ sig {
1197
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma::DisplayPreference))
1198
+ }
1199
+ attr_accessor :display_preference
1200
+ sig {
1201
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma::DisplayPreference)).void
1202
+ }
1203
+ def initialize(display_preference: nil); end
1204
+ end
1205
+ class AmazonPay < Stripe::RequestParams
1206
+ class DisplayPreference < Stripe::RequestParams
1207
+ # The account's preference for whether or not to display this payment method.
1208
+ sig { returns(T.nilable(String)) }
1209
+ attr_accessor :preference
1210
+ sig { params(preference: T.nilable(String)).void }
1211
+ def initialize(preference: nil); end
1212
+ end
1213
+ # Whether or not the payment method should be displayed.
1214
+ sig {
1215
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay::DisplayPreference))
1216
+ }
1217
+ attr_accessor :display_preference
1218
+ sig {
1219
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay::DisplayPreference)).void
1220
+ }
1221
+ def initialize(display_preference: nil); end
1222
+ end
1223
+ class ApplePay < Stripe::RequestParams
1224
+ class DisplayPreference < Stripe::RequestParams
1225
+ # The account's preference for whether or not to display this payment method.
1226
+ sig { returns(T.nilable(String)) }
1227
+ attr_accessor :preference
1228
+ sig { params(preference: T.nilable(String)).void }
1229
+ def initialize(preference: nil); end
1230
+ end
1231
+ # Whether or not the payment method should be displayed.
1232
+ sig {
1233
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay::DisplayPreference))
1234
+ }
1235
+ attr_accessor :display_preference
1236
+ sig {
1237
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay::DisplayPreference)).void
1238
+ }
1239
+ def initialize(display_preference: nil); end
1240
+ end
1241
+ class ApplePayLater < Stripe::RequestParams
1242
+ class DisplayPreference < Stripe::RequestParams
1243
+ # The account's preference for whether or not to display this payment method.
1244
+ sig { returns(T.nilable(String)) }
1245
+ attr_accessor :preference
1246
+ sig { params(preference: T.nilable(String)).void }
1247
+ def initialize(preference: nil); end
1248
+ end
1249
+ # Whether or not the payment method should be displayed.
1250
+ sig {
1251
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater::DisplayPreference))
1252
+ }
1253
+ attr_accessor :display_preference
1254
+ sig {
1255
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater::DisplayPreference)).void
1256
+ }
1257
+ def initialize(display_preference: nil); end
1258
+ end
1259
+ class AuBecsDebit < Stripe::RequestParams
1260
+ class DisplayPreference < Stripe::RequestParams
1261
+ # The account's preference for whether or not to display this payment method.
1262
+ sig { returns(T.nilable(String)) }
1263
+ attr_accessor :preference
1264
+ sig { params(preference: T.nilable(String)).void }
1265
+ def initialize(preference: nil); end
1266
+ end
1267
+ # Whether or not the payment method should be displayed.
1268
+ sig {
1269
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit::DisplayPreference))
1270
+ }
1271
+ attr_accessor :display_preference
1272
+ sig {
1273
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit::DisplayPreference)).void
1274
+ }
1275
+ def initialize(display_preference: nil); end
1276
+ end
1277
+ class BacsDebit < Stripe::RequestParams
1278
+ class DisplayPreference < Stripe::RequestParams
1279
+ # The account's preference for whether or not to display this payment method.
1280
+ sig { returns(T.nilable(String)) }
1281
+ attr_accessor :preference
1282
+ sig { params(preference: T.nilable(String)).void }
1283
+ def initialize(preference: nil); end
1284
+ end
1285
+ # Whether or not the payment method should be displayed.
1286
+ sig {
1287
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit::DisplayPreference))
1288
+ }
1289
+ attr_accessor :display_preference
1290
+ sig {
1291
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit::DisplayPreference)).void
1292
+ }
1293
+ def initialize(display_preference: nil); end
1294
+ end
1295
+ class Bancontact < Stripe::RequestParams
1296
+ class DisplayPreference < Stripe::RequestParams
1297
+ # The account's preference for whether or not to display this payment method.
1298
+ sig { returns(T.nilable(String)) }
1299
+ attr_accessor :preference
1300
+ sig { params(preference: T.nilable(String)).void }
1301
+ def initialize(preference: nil); end
1302
+ end
1303
+ # Whether or not the payment method should be displayed.
1304
+ sig {
1305
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact::DisplayPreference))
1306
+ }
1307
+ attr_accessor :display_preference
1308
+ sig {
1309
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact::DisplayPreference)).void
1310
+ }
1311
+ def initialize(display_preference: nil); end
1312
+ end
1313
+ class Billie < Stripe::RequestParams
1314
+ class DisplayPreference < Stripe::RequestParams
1315
+ # The account's preference for whether or not to display this payment method.
1316
+ sig { returns(T.nilable(String)) }
1317
+ attr_accessor :preference
1318
+ sig { params(preference: T.nilable(String)).void }
1319
+ def initialize(preference: nil); end
1320
+ end
1321
+ # Whether or not the payment method should be displayed.
1322
+ sig {
1323
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Billie::DisplayPreference))
1324
+ }
1325
+ attr_accessor :display_preference
1326
+ sig {
1327
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Billie::DisplayPreference)).void
1328
+ }
1329
+ def initialize(display_preference: nil); end
1330
+ end
1331
+ class Blik < Stripe::RequestParams
1332
+ class DisplayPreference < Stripe::RequestParams
1333
+ # The account's preference for whether or not to display this payment method.
1334
+ sig { returns(T.nilable(String)) }
1335
+ attr_accessor :preference
1336
+ sig { params(preference: T.nilable(String)).void }
1337
+ def initialize(preference: nil); end
1338
+ end
1339
+ # Whether or not the payment method should be displayed.
1340
+ sig {
1341
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik::DisplayPreference))
1342
+ }
1343
+ attr_accessor :display_preference
1344
+ sig {
1345
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik::DisplayPreference)).void
1346
+ }
1347
+ def initialize(display_preference: nil); end
1348
+ end
1349
+ class Boleto < Stripe::RequestParams
1350
+ class DisplayPreference < Stripe::RequestParams
1351
+ # The account's preference for whether or not to display this payment method.
1352
+ sig { returns(T.nilable(String)) }
1353
+ attr_accessor :preference
1354
+ sig { params(preference: T.nilable(String)).void }
1355
+ def initialize(preference: nil); end
1356
+ end
1357
+ # Whether or not the payment method should be displayed.
1358
+ sig {
1359
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto::DisplayPreference))
1360
+ }
1361
+ attr_accessor :display_preference
1362
+ sig {
1363
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto::DisplayPreference)).void
1364
+ }
1365
+ def initialize(display_preference: nil); end
1366
+ end
1367
+ class Card < Stripe::RequestParams
1368
+ class DisplayPreference < Stripe::RequestParams
1369
+ # The account's preference for whether or not to display this payment method.
1370
+ sig { returns(T.nilable(String)) }
1371
+ attr_accessor :preference
1372
+ sig { params(preference: T.nilable(String)).void }
1373
+ def initialize(preference: nil); end
1374
+ end
1375
+ # Whether or not the payment method should be displayed.
1376
+ sig {
1377
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Card::DisplayPreference))
1378
+ }
1379
+ attr_accessor :display_preference
1380
+ sig {
1381
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Card::DisplayPreference)).void
1382
+ }
1383
+ def initialize(display_preference: nil); end
1384
+ end
1385
+ class CartesBancaires < Stripe::RequestParams
1386
+ class DisplayPreference < Stripe::RequestParams
1387
+ # The account's preference for whether or not to display this payment method.
1388
+ sig { returns(T.nilable(String)) }
1389
+ attr_accessor :preference
1390
+ sig { params(preference: T.nilable(String)).void }
1391
+ def initialize(preference: nil); end
1392
+ end
1393
+ # Whether or not the payment method should be displayed.
1394
+ sig {
1395
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires::DisplayPreference))
1396
+ }
1397
+ attr_accessor :display_preference
1398
+ sig {
1399
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires::DisplayPreference)).void
1400
+ }
1401
+ def initialize(display_preference: nil); end
1402
+ end
1403
+ class Cashapp < Stripe::RequestParams
1404
+ class DisplayPreference < Stripe::RequestParams
1405
+ # The account's preference for whether or not to display this payment method.
1406
+ sig { returns(T.nilable(String)) }
1407
+ attr_accessor :preference
1408
+ sig { params(preference: T.nilable(String)).void }
1409
+ def initialize(preference: nil); end
1410
+ end
1411
+ # Whether or not the payment method should be displayed.
1412
+ sig {
1413
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp::DisplayPreference))
1414
+ }
1415
+ attr_accessor :display_preference
1416
+ sig {
1417
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp::DisplayPreference)).void
1418
+ }
1419
+ def initialize(display_preference: nil); end
1420
+ end
1421
+ class CustomerBalance < Stripe::RequestParams
1422
+ class DisplayPreference < Stripe::RequestParams
1423
+ # The account's preference for whether or not to display this payment method.
1424
+ sig { returns(T.nilable(String)) }
1425
+ attr_accessor :preference
1426
+ sig { params(preference: T.nilable(String)).void }
1427
+ def initialize(preference: nil); end
1428
+ end
1429
+ # Whether or not the payment method should be displayed.
1430
+ sig {
1431
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance::DisplayPreference))
1432
+ }
1433
+ attr_accessor :display_preference
1434
+ sig {
1435
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance::DisplayPreference)).void
1436
+ }
1437
+ def initialize(display_preference: nil); end
1438
+ end
1439
+ class Eps < Stripe::RequestParams
1440
+ class DisplayPreference < Stripe::RequestParams
1441
+ # The account's preference for whether or not to display this payment method.
1442
+ sig { returns(T.nilable(String)) }
1443
+ attr_accessor :preference
1444
+ sig { params(preference: T.nilable(String)).void }
1445
+ def initialize(preference: nil); end
1446
+ end
1447
+ # Whether or not the payment method should be displayed.
1448
+ sig {
1449
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps::DisplayPreference))
1450
+ }
1451
+ attr_accessor :display_preference
1452
+ sig {
1453
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps::DisplayPreference)).void
1454
+ }
1455
+ def initialize(display_preference: nil); end
1456
+ end
1457
+ class Fpx < Stripe::RequestParams
1458
+ class DisplayPreference < Stripe::RequestParams
1459
+ # The account's preference for whether or not to display this payment method.
1460
+ sig { returns(T.nilable(String)) }
1461
+ attr_accessor :preference
1462
+ sig { params(preference: T.nilable(String)).void }
1463
+ def initialize(preference: nil); end
1464
+ end
1465
+ # Whether or not the payment method should be displayed.
1466
+ sig {
1467
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx::DisplayPreference))
1468
+ }
1469
+ attr_accessor :display_preference
1470
+ sig {
1471
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx::DisplayPreference)).void
1472
+ }
1473
+ def initialize(display_preference: nil); end
1474
+ end
1475
+ class Giropay < Stripe::RequestParams
1476
+ class DisplayPreference < Stripe::RequestParams
1477
+ # The account's preference for whether or not to display this payment method.
1478
+ sig { returns(T.nilable(String)) }
1479
+ attr_accessor :preference
1480
+ sig { params(preference: T.nilable(String)).void }
1481
+ def initialize(preference: nil); end
1482
+ end
1483
+ # Whether or not the payment method should be displayed.
1484
+ sig {
1485
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay::DisplayPreference))
1486
+ }
1487
+ attr_accessor :display_preference
1488
+ sig {
1489
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay::DisplayPreference)).void
1490
+ }
1491
+ def initialize(display_preference: nil); end
1492
+ end
1493
+ class GooglePay < Stripe::RequestParams
1494
+ class DisplayPreference < Stripe::RequestParams
1495
+ # The account's preference for whether or not to display this payment method.
1496
+ sig { returns(T.nilable(String)) }
1497
+ attr_accessor :preference
1498
+ sig { params(preference: T.nilable(String)).void }
1499
+ def initialize(preference: nil); end
1500
+ end
1501
+ # Whether or not the payment method should be displayed.
1502
+ sig {
1503
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay::DisplayPreference))
1504
+ }
1505
+ attr_accessor :display_preference
1506
+ sig {
1507
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay::DisplayPreference)).void
1508
+ }
1509
+ def initialize(display_preference: nil); end
1510
+ end
1511
+ class Grabpay < Stripe::RequestParams
1512
+ class DisplayPreference < Stripe::RequestParams
1513
+ # The account's preference for whether or not to display this payment method.
1514
+ sig { returns(T.nilable(String)) }
1515
+ attr_accessor :preference
1516
+ sig { params(preference: T.nilable(String)).void }
1517
+ def initialize(preference: nil); end
1518
+ end
1519
+ # Whether or not the payment method should be displayed.
1520
+ sig {
1521
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay::DisplayPreference))
1522
+ }
1523
+ attr_accessor :display_preference
1524
+ sig {
1525
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay::DisplayPreference)).void
1526
+ }
1527
+ def initialize(display_preference: nil); end
1528
+ end
1529
+ class Ideal < Stripe::RequestParams
1530
+ class DisplayPreference < Stripe::RequestParams
1531
+ # The account's preference for whether or not to display this payment method.
1532
+ sig { returns(T.nilable(String)) }
1533
+ attr_accessor :preference
1534
+ sig { params(preference: T.nilable(String)).void }
1535
+ def initialize(preference: nil); end
1536
+ end
1537
+ # Whether or not the payment method should be displayed.
1538
+ sig {
1539
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal::DisplayPreference))
1540
+ }
1541
+ attr_accessor :display_preference
1542
+ sig {
1543
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal::DisplayPreference)).void
1544
+ }
1545
+ def initialize(display_preference: nil); end
1546
+ end
1547
+ class Jcb < Stripe::RequestParams
1548
+ class DisplayPreference < Stripe::RequestParams
1549
+ # The account's preference for whether or not to display this payment method.
1550
+ sig { returns(T.nilable(String)) }
1551
+ attr_accessor :preference
1552
+ sig { params(preference: T.nilable(String)).void }
1553
+ def initialize(preference: nil); end
1554
+ end
1555
+ # Whether or not the payment method should be displayed.
1556
+ sig {
1557
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb::DisplayPreference))
1558
+ }
1559
+ attr_accessor :display_preference
1560
+ sig {
1561
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb::DisplayPreference)).void
1562
+ }
1563
+ def initialize(display_preference: nil); end
1564
+ end
1565
+ class Klarna < Stripe::RequestParams
1566
+ class DisplayPreference < Stripe::RequestParams
1567
+ # The account's preference for whether or not to display this payment method.
1568
+ sig { returns(T.nilable(String)) }
1569
+ attr_accessor :preference
1570
+ sig { params(preference: T.nilable(String)).void }
1571
+ def initialize(preference: nil); end
1572
+ end
1573
+ # Whether or not the payment method should be displayed.
1574
+ sig {
1575
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna::DisplayPreference))
1576
+ }
1577
+ attr_accessor :display_preference
1578
+ sig {
1579
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna::DisplayPreference)).void
1580
+ }
1581
+ def initialize(display_preference: nil); end
1582
+ end
1583
+ class Konbini < Stripe::RequestParams
1584
+ class DisplayPreference < Stripe::RequestParams
1585
+ # The account's preference for whether or not to display this payment method.
1586
+ sig { returns(T.nilable(String)) }
1587
+ attr_accessor :preference
1588
+ sig { params(preference: T.nilable(String)).void }
1589
+ def initialize(preference: nil); end
1590
+ end
1591
+ # Whether or not the payment method should be displayed.
1592
+ sig {
1593
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini::DisplayPreference))
1594
+ }
1595
+ attr_accessor :display_preference
1596
+ sig {
1597
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini::DisplayPreference)).void
1598
+ }
1599
+ def initialize(display_preference: nil); end
1600
+ end
1601
+ class Link < Stripe::RequestParams
1602
+ class DisplayPreference < Stripe::RequestParams
1603
+ # The account's preference for whether or not to display this payment method.
1604
+ sig { returns(T.nilable(String)) }
1605
+ attr_accessor :preference
1606
+ sig { params(preference: T.nilable(String)).void }
1607
+ def initialize(preference: nil); end
1608
+ end
1609
+ # Whether or not the payment method should be displayed.
1610
+ sig {
1611
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Link::DisplayPreference))
1612
+ }
1613
+ attr_accessor :display_preference
1614
+ sig {
1615
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Link::DisplayPreference)).void
1616
+ }
1617
+ def initialize(display_preference: nil); end
1618
+ end
1619
+ class Mobilepay < Stripe::RequestParams
1620
+ class DisplayPreference < Stripe::RequestParams
1621
+ # The account's preference for whether or not to display this payment method.
1622
+ sig { returns(T.nilable(String)) }
1623
+ attr_accessor :preference
1624
+ sig { params(preference: T.nilable(String)).void }
1625
+ def initialize(preference: nil); end
1626
+ end
1627
+ # Whether or not the payment method should be displayed.
1628
+ sig {
1629
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay::DisplayPreference))
1630
+ }
1631
+ attr_accessor :display_preference
1632
+ sig {
1633
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay::DisplayPreference)).void
1634
+ }
1635
+ def initialize(display_preference: nil); end
1636
+ end
1637
+ class Multibanco < Stripe::RequestParams
1638
+ class DisplayPreference < Stripe::RequestParams
1639
+ # The account's preference for whether or not to display this payment method.
1640
+ sig { returns(T.nilable(String)) }
1641
+ attr_accessor :preference
1642
+ sig { params(preference: T.nilable(String)).void }
1643
+ def initialize(preference: nil); end
1644
+ end
1645
+ # Whether or not the payment method should be displayed.
1646
+ sig {
1647
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco::DisplayPreference))
1648
+ }
1649
+ attr_accessor :display_preference
1650
+ sig {
1651
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco::DisplayPreference)).void
1652
+ }
1653
+ def initialize(display_preference: nil); end
1654
+ end
1655
+ class NzBankAccount < Stripe::RequestParams
1656
+ class DisplayPreference < Stripe::RequestParams
1657
+ # The account's preference for whether or not to display this payment method.
1658
+ sig { returns(T.nilable(String)) }
1659
+ attr_accessor :preference
1660
+ sig { params(preference: T.nilable(String)).void }
1661
+ def initialize(preference: nil); end
1662
+ end
1663
+ # Whether or not the payment method should be displayed.
1664
+ sig {
1665
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::NzBankAccount::DisplayPreference))
1666
+ }
1667
+ attr_accessor :display_preference
1668
+ sig {
1669
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::NzBankAccount::DisplayPreference)).void
1670
+ }
1671
+ def initialize(display_preference: nil); end
1672
+ end
1673
+ class Oxxo < Stripe::RequestParams
1674
+ class DisplayPreference < Stripe::RequestParams
1675
+ # The account's preference for whether or not to display this payment method.
1676
+ sig { returns(T.nilable(String)) }
1677
+ attr_accessor :preference
1678
+ sig { params(preference: T.nilable(String)).void }
1679
+ def initialize(preference: nil); end
1680
+ end
1681
+ # Whether or not the payment method should be displayed.
1682
+ sig {
1683
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo::DisplayPreference))
1684
+ }
1685
+ attr_accessor :display_preference
1686
+ sig {
1687
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo::DisplayPreference)).void
1688
+ }
1689
+ def initialize(display_preference: nil); end
1690
+ end
1691
+ class P24 < Stripe::RequestParams
1692
+ class DisplayPreference < Stripe::RequestParams
1693
+ # The account's preference for whether or not to display this payment method.
1694
+ sig { returns(T.nilable(String)) }
1695
+ attr_accessor :preference
1696
+ sig { params(preference: T.nilable(String)).void }
1697
+ def initialize(preference: nil); end
1698
+ end
1699
+ # Whether or not the payment method should be displayed.
1700
+ sig {
1701
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::P24::DisplayPreference))
1702
+ }
1703
+ attr_accessor :display_preference
1704
+ sig {
1705
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::P24::DisplayPreference)).void
1706
+ }
1707
+ def initialize(display_preference: nil); end
1708
+ end
1709
+ class PayByBank < Stripe::RequestParams
1710
+ class DisplayPreference < Stripe::RequestParams
1711
+ # The account's preference for whether or not to display this payment method.
1712
+ sig { returns(T.nilable(String)) }
1713
+ attr_accessor :preference
1714
+ sig { params(preference: T.nilable(String)).void }
1715
+ def initialize(preference: nil); end
1716
+ end
1717
+ # Whether or not the payment method should be displayed.
1718
+ sig {
1719
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank::DisplayPreference))
1720
+ }
1721
+ attr_accessor :display_preference
1722
+ sig {
1723
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank::DisplayPreference)).void
1724
+ }
1725
+ def initialize(display_preference: nil); end
1726
+ end
1727
+ class Paynow < Stripe::RequestParams
1728
+ class DisplayPreference < Stripe::RequestParams
1729
+ # The account's preference for whether or not to display this payment method.
1730
+ sig { returns(T.nilable(String)) }
1731
+ attr_accessor :preference
1732
+ sig { params(preference: T.nilable(String)).void }
1733
+ def initialize(preference: nil); end
1734
+ end
1735
+ # Whether or not the payment method should be displayed.
1736
+ sig {
1737
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow::DisplayPreference))
1738
+ }
1739
+ attr_accessor :display_preference
1740
+ sig {
1741
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow::DisplayPreference)).void
1742
+ }
1743
+ def initialize(display_preference: nil); end
1744
+ end
1745
+ class Paypal < Stripe::RequestParams
1746
+ class DisplayPreference < Stripe::RequestParams
1747
+ # The account's preference for whether or not to display this payment method.
1748
+ sig { returns(T.nilable(String)) }
1749
+ attr_accessor :preference
1750
+ sig { params(preference: T.nilable(String)).void }
1751
+ def initialize(preference: nil); end
1752
+ end
1753
+ # Whether or not the payment method should be displayed.
1754
+ sig {
1755
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal::DisplayPreference))
1756
+ }
1757
+ attr_accessor :display_preference
1758
+ sig {
1759
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal::DisplayPreference)).void
1760
+ }
1761
+ def initialize(display_preference: nil); end
1762
+ end
1763
+ class Promptpay < Stripe::RequestParams
1764
+ class DisplayPreference < Stripe::RequestParams
1765
+ # The account's preference for whether or not to display this payment method.
1766
+ sig { returns(T.nilable(String)) }
1767
+ attr_accessor :preference
1768
+ sig { params(preference: T.nilable(String)).void }
1769
+ def initialize(preference: nil); end
1770
+ end
1771
+ # Whether or not the payment method should be displayed.
1772
+ sig {
1773
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay::DisplayPreference))
1774
+ }
1775
+ attr_accessor :display_preference
1776
+ sig {
1777
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay::DisplayPreference)).void
1778
+ }
1779
+ def initialize(display_preference: nil); end
1780
+ end
1781
+ class RevolutPay < Stripe::RequestParams
1782
+ class DisplayPreference < Stripe::RequestParams
1783
+ # The account's preference for whether or not to display this payment method.
1784
+ sig { returns(T.nilable(String)) }
1785
+ attr_accessor :preference
1786
+ sig { params(preference: T.nilable(String)).void }
1787
+ def initialize(preference: nil); end
1788
+ end
1789
+ # Whether or not the payment method should be displayed.
1790
+ sig {
1791
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay::DisplayPreference))
1792
+ }
1793
+ attr_accessor :display_preference
1794
+ sig {
1795
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay::DisplayPreference)).void
1796
+ }
1797
+ def initialize(display_preference: nil); end
1798
+ end
1799
+ class Satispay < Stripe::RequestParams
1800
+ class DisplayPreference < Stripe::RequestParams
1801
+ # The account's preference for whether or not to display this payment method.
1802
+ sig { returns(T.nilable(String)) }
1803
+ attr_accessor :preference
1804
+ sig { params(preference: T.nilable(String)).void }
1805
+ def initialize(preference: nil); end
1806
+ end
1807
+ # Whether or not the payment method should be displayed.
1808
+ sig {
1809
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Satispay::DisplayPreference))
1810
+ }
1811
+ attr_accessor :display_preference
1812
+ sig {
1813
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Satispay::DisplayPreference)).void
1814
+ }
1815
+ def initialize(display_preference: nil); end
1816
+ end
1817
+ class SepaDebit < Stripe::RequestParams
1818
+ class DisplayPreference < Stripe::RequestParams
1819
+ # The account's preference for whether or not to display this payment method.
1820
+ sig { returns(T.nilable(String)) }
1821
+ attr_accessor :preference
1822
+ sig { params(preference: T.nilable(String)).void }
1823
+ def initialize(preference: nil); end
1824
+ end
1825
+ # Whether or not the payment method should be displayed.
1826
+ sig {
1827
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit::DisplayPreference))
1828
+ }
1829
+ attr_accessor :display_preference
1830
+ sig {
1831
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit::DisplayPreference)).void
1832
+ }
1833
+ def initialize(display_preference: nil); end
1834
+ end
1835
+ class Sofort < Stripe::RequestParams
1836
+ class DisplayPreference < Stripe::RequestParams
1837
+ # The account's preference for whether or not to display this payment method.
1838
+ sig { returns(T.nilable(String)) }
1839
+ attr_accessor :preference
1840
+ sig { params(preference: T.nilable(String)).void }
1841
+ def initialize(preference: nil); end
1842
+ end
1843
+ # Whether or not the payment method should be displayed.
1844
+ sig {
1845
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort::DisplayPreference))
1846
+ }
1847
+ attr_accessor :display_preference
1848
+ sig {
1849
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort::DisplayPreference)).void
1850
+ }
1851
+ def initialize(display_preference: nil); end
1852
+ end
1853
+ class Swish < Stripe::RequestParams
1854
+ class DisplayPreference < Stripe::RequestParams
1855
+ # The account's preference for whether or not to display this payment method.
1856
+ sig { returns(T.nilable(String)) }
1857
+ attr_accessor :preference
1858
+ sig { params(preference: T.nilable(String)).void }
1859
+ def initialize(preference: nil); end
1860
+ end
1861
+ # Whether or not the payment method should be displayed.
1862
+ sig {
1863
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish::DisplayPreference))
1864
+ }
1865
+ attr_accessor :display_preference
1866
+ sig {
1867
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish::DisplayPreference)).void
1868
+ }
1869
+ def initialize(display_preference: nil); end
1870
+ end
1871
+ class Twint < Stripe::RequestParams
1872
+ class DisplayPreference < Stripe::RequestParams
1873
+ # The account's preference for whether or not to display this payment method.
1874
+ sig { returns(T.nilable(String)) }
1875
+ attr_accessor :preference
1876
+ sig { params(preference: T.nilable(String)).void }
1877
+ def initialize(preference: nil); end
1878
+ end
1879
+ # Whether or not the payment method should be displayed.
1880
+ sig {
1881
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint::DisplayPreference))
1882
+ }
1883
+ attr_accessor :display_preference
1884
+ sig {
1885
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint::DisplayPreference)).void
1886
+ }
1887
+ def initialize(display_preference: nil); end
1888
+ end
1889
+ class UsBankAccount < Stripe::RequestParams
1890
+ class DisplayPreference < Stripe::RequestParams
1891
+ # The account's preference for whether or not to display this payment method.
1892
+ sig { returns(T.nilable(String)) }
1893
+ attr_accessor :preference
1894
+ sig { params(preference: T.nilable(String)).void }
1895
+ def initialize(preference: nil); end
1896
+ end
1897
+ # Whether or not the payment method should be displayed.
1898
+ sig {
1899
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount::DisplayPreference))
1900
+ }
1901
+ attr_accessor :display_preference
1902
+ sig {
1903
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount::DisplayPreference)).void
1904
+ }
1905
+ def initialize(display_preference: nil); end
1906
+ end
1907
+ class WechatPay < Stripe::RequestParams
1908
+ class DisplayPreference < Stripe::RequestParams
1909
+ # The account's preference for whether or not to display this payment method.
1910
+ sig { returns(T.nilable(String)) }
1911
+ attr_accessor :preference
1912
+ sig { params(preference: T.nilable(String)).void }
1913
+ def initialize(preference: nil); end
1914
+ end
1915
+ # Whether or not the payment method should be displayed.
1916
+ sig {
1917
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay::DisplayPreference))
1918
+ }
1919
+ attr_accessor :display_preference
1920
+ sig {
1921
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay::DisplayPreference)).void
1922
+ }
1923
+ def initialize(display_preference: nil); end
1924
+ end
1925
+ class Zip < Stripe::RequestParams
1926
+ class DisplayPreference < Stripe::RequestParams
1927
+ # The account's preference for whether or not to display this payment method.
1928
+ sig { returns(T.nilable(String)) }
1929
+ attr_accessor :preference
1930
+ sig { params(preference: T.nilable(String)).void }
1931
+ def initialize(preference: nil); end
1932
+ end
1933
+ # Whether or not the payment method should be displayed.
1934
+ sig {
1935
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip::DisplayPreference))
1936
+ }
1937
+ attr_accessor :display_preference
1938
+ sig {
1939
+ params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip::DisplayPreference)).void
1940
+ }
1941
+ def initialize(display_preference: nil); end
1942
+ end
1943
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
1944
+ sig {
1945
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit))
1946
+ }
1947
+ attr_accessor :acss_debit
1948
+ # Whether the configuration can be used for new payments.
1949
+ sig { returns(T.nilable(T::Boolean)) }
1950
+ attr_accessor :active
1951
+ # [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.
1952
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm)) }
1953
+ attr_accessor :affirm
1954
+ # 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.
1955
+ sig {
1956
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay))
1957
+ }
1958
+ attr_accessor :afterpay_clearpay
1959
+ # 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.
1960
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay)) }
1961
+ attr_accessor :alipay
1962
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
1963
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma)) }
1964
+ attr_accessor :alma
1965
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
1966
+ sig {
1967
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay))
1968
+ }
1969
+ attr_accessor :amazon_pay
1970
+ # Stripe users can accept [Apple Pay](/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](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
1971
+ sig {
1972
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay))
1973
+ }
1974
+ attr_accessor :apple_pay
1975
+ # 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.
1976
+ sig {
1977
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater))
1978
+ }
1979
+ attr_accessor :apple_pay_later
1980
+ # 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.
1981
+ sig {
1982
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit))
1983
+ }
1984
+ attr_accessor :au_becs_debit
1985
+ # 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.
1986
+ sig {
1987
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit))
1988
+ }
1989
+ attr_accessor :bacs_debit
1990
+ # 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.
1991
+ sig {
1992
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact))
1993
+ }
1994
+ attr_accessor :bancontact
1995
+ # 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.
1996
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Billie)) }
1997
+ attr_accessor :billie
1998
+ # 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.
1999
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik)) }
2000
+ attr_accessor :blik
2001
+ # 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.
2002
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto)) }
2003
+ attr_accessor :boleto
2004
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
2005
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Card)) }
2006
+ attr_accessor :card
2007
+ # 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.
2008
+ sig {
2009
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires))
2010
+ }
2011
+ attr_accessor :cartes_bancaires
2012
+ # 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.
2013
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp)) }
2014
+ attr_accessor :cashapp
2015
+ # 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.
2016
+ sig {
2017
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance))
2018
+ }
2019
+ attr_accessor :customer_balance
2020
+ # 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.
2021
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps)) }
2022
+ attr_accessor :eps
2023
+ # Specifies which fields in the response should be expanded.
2024
+ sig { returns(T.nilable(T::Array[String])) }
2025
+ attr_accessor :expand
2026
+ # 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.
2027
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx)) }
2028
+ attr_accessor :fpx
2029
+ # 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.
2030
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay)) }
2031
+ attr_accessor :giropay
2032
+ # 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.
2033
+ sig {
2034
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay))
2035
+ }
2036
+ attr_accessor :google_pay
2037
+ # 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.
2038
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay)) }
2039
+ attr_accessor :grabpay
2040
+ # 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.
2041
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal)) }
2042
+ attr_accessor :ideal
2043
+ # 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.
2044
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb)) }
2045
+ attr_accessor :jcb
2046
+ # 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.
2047
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna)) }
2048
+ attr_accessor :klarna
2049
+ # 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.
2050
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini)) }
2051
+ attr_accessor :konbini
2052
+ # [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.
2053
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Link)) }
2054
+ attr_accessor :link
2055
+ # 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.
2056
+ sig {
2057
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay))
2058
+ }
2059
+ attr_accessor :mobilepay
2060
+ # 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.
2061
+ sig {
2062
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco))
2063
+ }
2064
+ attr_accessor :multibanco
2065
+ # Configuration name.
2066
+ sig { returns(T.nilable(String)) }
2067
+ attr_accessor :name
2068
+ # 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.
2069
+ sig {
2070
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::NzBankAccount))
2071
+ }
2072
+ attr_accessor :nz_bank_account
2073
+ # 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.
2074
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo)) }
2075
+ attr_accessor :oxxo
2076
+ # 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.
2077
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::P24)) }
2078
+ attr_accessor :p24
2079
+ # 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.
2080
+ sig {
2081
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank))
2082
+ }
2083
+ attr_accessor :pay_by_bank
2084
+ # 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.
2085
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow)) }
2086
+ attr_accessor :paynow
2087
+ # 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.
2088
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal)) }
2089
+ attr_accessor :paypal
2090
+ # 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.
2091
+ sig {
2092
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay))
2093
+ }
2094
+ attr_accessor :promptpay
2095
+ # 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.
2096
+ sig {
2097
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay))
2098
+ }
2099
+ attr_accessor :revolut_pay
2100
+ # 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.
2101
+ sig {
2102
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Satispay))
2103
+ }
2104
+ attr_accessor :satispay
2105
+ # 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.
2106
+ sig {
2107
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit))
2108
+ }
2109
+ attr_accessor :sepa_debit
2110
+ # 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.
2111
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort)) }
2112
+ attr_accessor :sofort
2113
+ # 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.
2114
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish)) }
2115
+ attr_accessor :swish
2116
+ # 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.
2117
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint)) }
2118
+ attr_accessor :twint
2119
+ # 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.
2120
+ sig {
2121
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount))
2122
+ }
2123
+ attr_accessor :us_bank_account
2124
+ # 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.
2125
+ sig {
2126
+ returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay))
2127
+ }
2128
+ attr_accessor :wechat_pay
2129
+ # 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.
2130
+ sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip)) }
2131
+ attr_accessor :zip
2132
+ sig {
2133
+ params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Cashapp), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Jcb), klarna: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Konbini), link: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Link), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Multibanco), name: T.nilable(String), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::PayByBank), paynow: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Paypal), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::RevolutPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Twint), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationService::UpdateParams::Zip)).void
2134
+ }
2135
+ def initialize(
2136
+ acss_debit: nil,
2137
+ active: nil,
2138
+ affirm: nil,
2139
+ afterpay_clearpay: nil,
2140
+ alipay: nil,
2141
+ alma: nil,
2142
+ amazon_pay: nil,
2143
+ apple_pay: nil,
2144
+ apple_pay_later: nil,
2145
+ au_becs_debit: nil,
2146
+ bacs_debit: nil,
2147
+ bancontact: nil,
2148
+ billie: nil,
2149
+ blik: nil,
2150
+ boleto: nil,
2151
+ card: nil,
2152
+ cartes_bancaires: nil,
2153
+ cashapp: nil,
2154
+ customer_balance: nil,
2155
+ eps: nil,
2156
+ expand: nil,
2157
+ fpx: nil,
2158
+ giropay: nil,
2159
+ google_pay: nil,
2160
+ grabpay: nil,
2161
+ ideal: nil,
2162
+ jcb: nil,
2163
+ klarna: nil,
2164
+ konbini: nil,
2165
+ link: nil,
2166
+ mobilepay: nil,
2167
+ multibanco: nil,
2168
+ name: nil,
2169
+ nz_bank_account: nil,
2170
+ oxxo: nil,
2171
+ p24: nil,
2172
+ pay_by_bank: nil,
2173
+ paynow: nil,
2174
+ paypal: nil,
2175
+ promptpay: nil,
2176
+ revolut_pay: nil,
2177
+ satispay: nil,
2178
+ sepa_debit: nil,
2179
+ sofort: nil,
2180
+ swish: nil,
2181
+ twint: nil,
2182
+ us_bank_account: nil,
2183
+ wechat_pay: nil,
2184
+ zip: nil
2185
+ ); end
2186
+ end
2187
+ # Creates a payment method configuration
2188
+ sig {
2189
+ params(params: T.any(::Stripe::PaymentMethodConfigurationService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration)
2190
+ }
2191
+ def create(params = {}, opts = {}); end
2192
+
2193
+ # List payment method configurations
2194
+ sig {
2195
+ params(params: T.any(::Stripe::PaymentMethodConfigurationService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
2196
+ }
2197
+ def list(params = {}, opts = {}); end
2198
+
2199
+ # Retrieve payment method configuration
2200
+ sig {
2201
+ params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration)
2202
+ }
2203
+ def retrieve(configuration, params = {}, opts = {}); end
2204
+
2205
+ # Update payment method configuration
2206
+ sig {
2207
+ params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration)
2208
+ }
2209
+ def update(configuration, params = {}, opts = {}); end
2210
+ end
2211
+ end