stripe 5.38.0 → 15.2.1

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