stripe 12.5.0 → 15.0.0

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