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
@@ -26,6 +26,2782 @@ module Stripe
26
26
  "payment_method_configuration"
27
27
  end
28
28
 
29
+ class AcssDebit < Stripe::StripeObject
30
+ class DisplayPreference < Stripe::StripeObject
31
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
32
+ attr_reader :overridable
33
+ # The account's display preference.
34
+ attr_reader :preference
35
+ # The effective display preference value.
36
+ attr_reader :value
37
+ end
38
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
39
+ attr_reader :available
40
+ # Attribute for field display_preference
41
+ attr_reader :display_preference
42
+ end
43
+
44
+ class Affirm < Stripe::StripeObject
45
+ class DisplayPreference < Stripe::StripeObject
46
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
47
+ attr_reader :overridable
48
+ # The account's display preference.
49
+ attr_reader :preference
50
+ # The effective display preference value.
51
+ attr_reader :value
52
+ end
53
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
54
+ attr_reader :available
55
+ # Attribute for field display_preference
56
+ attr_reader :display_preference
57
+ end
58
+
59
+ class AfterpayClearpay < Stripe::StripeObject
60
+ class DisplayPreference < Stripe::StripeObject
61
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
62
+ attr_reader :overridable
63
+ # The account's display preference.
64
+ attr_reader :preference
65
+ # The effective display preference value.
66
+ attr_reader :value
67
+ end
68
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
69
+ attr_reader :available
70
+ # Attribute for field display_preference
71
+ attr_reader :display_preference
72
+ end
73
+
74
+ class Alipay < Stripe::StripeObject
75
+ class DisplayPreference < Stripe::StripeObject
76
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
77
+ attr_reader :overridable
78
+ # The account's display preference.
79
+ attr_reader :preference
80
+ # The effective display preference value.
81
+ attr_reader :value
82
+ end
83
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
84
+ attr_reader :available
85
+ # Attribute for field display_preference
86
+ attr_reader :display_preference
87
+ end
88
+
89
+ class Alma < Stripe::StripeObject
90
+ class DisplayPreference < Stripe::StripeObject
91
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
92
+ attr_reader :overridable
93
+ # The account's display preference.
94
+ attr_reader :preference
95
+ # The effective display preference value.
96
+ attr_reader :value
97
+ end
98
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
99
+ attr_reader :available
100
+ # Attribute for field display_preference
101
+ attr_reader :display_preference
102
+ end
103
+
104
+ class AmazonPay < Stripe::StripeObject
105
+ class DisplayPreference < Stripe::StripeObject
106
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
107
+ attr_reader :overridable
108
+ # The account's display preference.
109
+ attr_reader :preference
110
+ # The effective display preference value.
111
+ attr_reader :value
112
+ end
113
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
114
+ attr_reader :available
115
+ # Attribute for field display_preference
116
+ attr_reader :display_preference
117
+ end
118
+
119
+ class ApplePay < Stripe::StripeObject
120
+ class DisplayPreference < Stripe::StripeObject
121
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
122
+ attr_reader :overridable
123
+ # The account's display preference.
124
+ attr_reader :preference
125
+ # The effective display preference value.
126
+ attr_reader :value
127
+ end
128
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
129
+ attr_reader :available
130
+ # Attribute for field display_preference
131
+ attr_reader :display_preference
132
+ end
133
+
134
+ class AuBecsDebit < Stripe::StripeObject
135
+ class DisplayPreference < Stripe::StripeObject
136
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
137
+ attr_reader :overridable
138
+ # The account's display preference.
139
+ attr_reader :preference
140
+ # The effective display preference value.
141
+ attr_reader :value
142
+ end
143
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
144
+ attr_reader :available
145
+ # Attribute for field display_preference
146
+ attr_reader :display_preference
147
+ end
148
+
149
+ class BacsDebit < Stripe::StripeObject
150
+ class DisplayPreference < Stripe::StripeObject
151
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
152
+ attr_reader :overridable
153
+ # The account's display preference.
154
+ attr_reader :preference
155
+ # The effective display preference value.
156
+ attr_reader :value
157
+ end
158
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
159
+ attr_reader :available
160
+ # Attribute for field display_preference
161
+ attr_reader :display_preference
162
+ end
163
+
164
+ class Bancontact < Stripe::StripeObject
165
+ class DisplayPreference < Stripe::StripeObject
166
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
167
+ attr_reader :overridable
168
+ # The account's display preference.
169
+ attr_reader :preference
170
+ # The effective display preference value.
171
+ attr_reader :value
172
+ end
173
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
174
+ attr_reader :available
175
+ # Attribute for field display_preference
176
+ attr_reader :display_preference
177
+ end
178
+
179
+ class Billie < Stripe::StripeObject
180
+ class DisplayPreference < Stripe::StripeObject
181
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
182
+ attr_reader :overridable
183
+ # The account's display preference.
184
+ attr_reader :preference
185
+ # The effective display preference value.
186
+ attr_reader :value
187
+ end
188
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
189
+ attr_reader :available
190
+ # Attribute for field display_preference
191
+ attr_reader :display_preference
192
+ end
193
+
194
+ class Blik < Stripe::StripeObject
195
+ class DisplayPreference < Stripe::StripeObject
196
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
197
+ attr_reader :overridable
198
+ # The account's display preference.
199
+ attr_reader :preference
200
+ # The effective display preference value.
201
+ attr_reader :value
202
+ end
203
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
204
+ attr_reader :available
205
+ # Attribute for field display_preference
206
+ attr_reader :display_preference
207
+ end
208
+
209
+ class Boleto < Stripe::StripeObject
210
+ class DisplayPreference < Stripe::StripeObject
211
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
212
+ attr_reader :overridable
213
+ # The account's display preference.
214
+ attr_reader :preference
215
+ # The effective display preference value.
216
+ attr_reader :value
217
+ end
218
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
219
+ attr_reader :available
220
+ # Attribute for field display_preference
221
+ attr_reader :display_preference
222
+ end
223
+
224
+ class Card < Stripe::StripeObject
225
+ class DisplayPreference < Stripe::StripeObject
226
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
227
+ attr_reader :overridable
228
+ # The account's display preference.
229
+ attr_reader :preference
230
+ # The effective display preference value.
231
+ attr_reader :value
232
+ end
233
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
234
+ attr_reader :available
235
+ # Attribute for field display_preference
236
+ attr_reader :display_preference
237
+ end
238
+
239
+ class CartesBancaires < Stripe::StripeObject
240
+ class DisplayPreference < Stripe::StripeObject
241
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
242
+ attr_reader :overridable
243
+ # The account's display preference.
244
+ attr_reader :preference
245
+ # The effective display preference value.
246
+ attr_reader :value
247
+ end
248
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
249
+ attr_reader :available
250
+ # Attribute for field display_preference
251
+ attr_reader :display_preference
252
+ end
253
+
254
+ class Cashapp < Stripe::StripeObject
255
+ class DisplayPreference < Stripe::StripeObject
256
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
257
+ attr_reader :overridable
258
+ # The account's display preference.
259
+ attr_reader :preference
260
+ # The effective display preference value.
261
+ attr_reader :value
262
+ end
263
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
264
+ attr_reader :available
265
+ # Attribute for field display_preference
266
+ attr_reader :display_preference
267
+ end
268
+
269
+ class CustomerBalance < Stripe::StripeObject
270
+ class DisplayPreference < Stripe::StripeObject
271
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
272
+ attr_reader :overridable
273
+ # The account's display preference.
274
+ attr_reader :preference
275
+ # The effective display preference value.
276
+ attr_reader :value
277
+ end
278
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
279
+ attr_reader :available
280
+ # Attribute for field display_preference
281
+ attr_reader :display_preference
282
+ end
283
+
284
+ class Eps < Stripe::StripeObject
285
+ class DisplayPreference < Stripe::StripeObject
286
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
287
+ attr_reader :overridable
288
+ # The account's display preference.
289
+ attr_reader :preference
290
+ # The effective display preference value.
291
+ attr_reader :value
292
+ end
293
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
294
+ attr_reader :available
295
+ # Attribute for field display_preference
296
+ attr_reader :display_preference
297
+ end
298
+
299
+ class Fpx < Stripe::StripeObject
300
+ class DisplayPreference < Stripe::StripeObject
301
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
302
+ attr_reader :overridable
303
+ # The account's display preference.
304
+ attr_reader :preference
305
+ # The effective display preference value.
306
+ attr_reader :value
307
+ end
308
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
309
+ attr_reader :available
310
+ # Attribute for field display_preference
311
+ attr_reader :display_preference
312
+ end
313
+
314
+ class Giropay < Stripe::StripeObject
315
+ class DisplayPreference < Stripe::StripeObject
316
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
317
+ attr_reader :overridable
318
+ # The account's display preference.
319
+ attr_reader :preference
320
+ # The effective display preference value.
321
+ attr_reader :value
322
+ end
323
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
324
+ attr_reader :available
325
+ # Attribute for field display_preference
326
+ attr_reader :display_preference
327
+ end
328
+
329
+ class GooglePay < Stripe::StripeObject
330
+ class DisplayPreference < Stripe::StripeObject
331
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
332
+ attr_reader :overridable
333
+ # The account's display preference.
334
+ attr_reader :preference
335
+ # The effective display preference value.
336
+ attr_reader :value
337
+ end
338
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
339
+ attr_reader :available
340
+ # Attribute for field display_preference
341
+ attr_reader :display_preference
342
+ end
343
+
344
+ class Grabpay < Stripe::StripeObject
345
+ class DisplayPreference < Stripe::StripeObject
346
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
347
+ attr_reader :overridable
348
+ # The account's display preference.
349
+ attr_reader :preference
350
+ # The effective display preference value.
351
+ attr_reader :value
352
+ end
353
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
354
+ attr_reader :available
355
+ # Attribute for field display_preference
356
+ attr_reader :display_preference
357
+ end
358
+
359
+ class Ideal < Stripe::StripeObject
360
+ class DisplayPreference < Stripe::StripeObject
361
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
362
+ attr_reader :overridable
363
+ # The account's display preference.
364
+ attr_reader :preference
365
+ # The effective display preference value.
366
+ attr_reader :value
367
+ end
368
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
369
+ attr_reader :available
370
+ # Attribute for field display_preference
371
+ attr_reader :display_preference
372
+ end
373
+
374
+ class Jcb < Stripe::StripeObject
375
+ class DisplayPreference < Stripe::StripeObject
376
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
377
+ attr_reader :overridable
378
+ # The account's display preference.
379
+ attr_reader :preference
380
+ # The effective display preference value.
381
+ attr_reader :value
382
+ end
383
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
384
+ attr_reader :available
385
+ # Attribute for field display_preference
386
+ attr_reader :display_preference
387
+ end
388
+
389
+ class Klarna < Stripe::StripeObject
390
+ class DisplayPreference < Stripe::StripeObject
391
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
392
+ attr_reader :overridable
393
+ # The account's display preference.
394
+ attr_reader :preference
395
+ # The effective display preference value.
396
+ attr_reader :value
397
+ end
398
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
399
+ attr_reader :available
400
+ # Attribute for field display_preference
401
+ attr_reader :display_preference
402
+ end
403
+
404
+ class Konbini < Stripe::StripeObject
405
+ class DisplayPreference < Stripe::StripeObject
406
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
407
+ attr_reader :overridable
408
+ # The account's display preference.
409
+ attr_reader :preference
410
+ # The effective display preference value.
411
+ attr_reader :value
412
+ end
413
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
414
+ attr_reader :available
415
+ # Attribute for field display_preference
416
+ attr_reader :display_preference
417
+ end
418
+
419
+ class Link < Stripe::StripeObject
420
+ class DisplayPreference < Stripe::StripeObject
421
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
422
+ attr_reader :overridable
423
+ # The account's display preference.
424
+ attr_reader :preference
425
+ # The effective display preference value.
426
+ attr_reader :value
427
+ end
428
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
429
+ attr_reader :available
430
+ # Attribute for field display_preference
431
+ attr_reader :display_preference
432
+ end
433
+
434
+ class Mobilepay < Stripe::StripeObject
435
+ class DisplayPreference < Stripe::StripeObject
436
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
437
+ attr_reader :overridable
438
+ # The account's display preference.
439
+ attr_reader :preference
440
+ # The effective display preference value.
441
+ attr_reader :value
442
+ end
443
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
444
+ attr_reader :available
445
+ # Attribute for field display_preference
446
+ attr_reader :display_preference
447
+ end
448
+
449
+ class Multibanco < Stripe::StripeObject
450
+ class DisplayPreference < Stripe::StripeObject
451
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
452
+ attr_reader :overridable
453
+ # The account's display preference.
454
+ attr_reader :preference
455
+ # The effective display preference value.
456
+ attr_reader :value
457
+ end
458
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
459
+ attr_reader :available
460
+ # Attribute for field display_preference
461
+ attr_reader :display_preference
462
+ end
463
+
464
+ class NzBankAccount < Stripe::StripeObject
465
+ class DisplayPreference < Stripe::StripeObject
466
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
467
+ attr_reader :overridable
468
+ # The account's display preference.
469
+ attr_reader :preference
470
+ # The effective display preference value.
471
+ attr_reader :value
472
+ end
473
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
474
+ attr_reader :available
475
+ # Attribute for field display_preference
476
+ attr_reader :display_preference
477
+ end
478
+
479
+ class Oxxo < Stripe::StripeObject
480
+ class DisplayPreference < Stripe::StripeObject
481
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
482
+ attr_reader :overridable
483
+ # The account's display preference.
484
+ attr_reader :preference
485
+ # The effective display preference value.
486
+ attr_reader :value
487
+ end
488
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
489
+ attr_reader :available
490
+ # Attribute for field display_preference
491
+ attr_reader :display_preference
492
+ end
493
+
494
+ class P24 < Stripe::StripeObject
495
+ class DisplayPreference < Stripe::StripeObject
496
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
497
+ attr_reader :overridable
498
+ # The account's display preference.
499
+ attr_reader :preference
500
+ # The effective display preference value.
501
+ attr_reader :value
502
+ end
503
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
504
+ attr_reader :available
505
+ # Attribute for field display_preference
506
+ attr_reader :display_preference
507
+ end
508
+
509
+ class PayByBank < Stripe::StripeObject
510
+ class DisplayPreference < Stripe::StripeObject
511
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
512
+ attr_reader :overridable
513
+ # The account's display preference.
514
+ attr_reader :preference
515
+ # The effective display preference value.
516
+ attr_reader :value
517
+ end
518
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
519
+ attr_reader :available
520
+ # Attribute for field display_preference
521
+ attr_reader :display_preference
522
+ end
523
+
524
+ class Paynow < Stripe::StripeObject
525
+ class DisplayPreference < Stripe::StripeObject
526
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
527
+ attr_reader :overridable
528
+ # The account's display preference.
529
+ attr_reader :preference
530
+ # The effective display preference value.
531
+ attr_reader :value
532
+ end
533
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
534
+ attr_reader :available
535
+ # Attribute for field display_preference
536
+ attr_reader :display_preference
537
+ end
538
+
539
+ class Paypal < Stripe::StripeObject
540
+ class DisplayPreference < Stripe::StripeObject
541
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
542
+ attr_reader :overridable
543
+ # The account's display preference.
544
+ attr_reader :preference
545
+ # The effective display preference value.
546
+ attr_reader :value
547
+ end
548
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
549
+ attr_reader :available
550
+ # Attribute for field display_preference
551
+ attr_reader :display_preference
552
+ end
553
+
554
+ class Promptpay < Stripe::StripeObject
555
+ class DisplayPreference < Stripe::StripeObject
556
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
557
+ attr_reader :overridable
558
+ # The account's display preference.
559
+ attr_reader :preference
560
+ # The effective display preference value.
561
+ attr_reader :value
562
+ end
563
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
564
+ attr_reader :available
565
+ # Attribute for field display_preference
566
+ attr_reader :display_preference
567
+ end
568
+
569
+ class RevolutPay < Stripe::StripeObject
570
+ class DisplayPreference < Stripe::StripeObject
571
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
572
+ attr_reader :overridable
573
+ # The account's display preference.
574
+ attr_reader :preference
575
+ # The effective display preference value.
576
+ attr_reader :value
577
+ end
578
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
579
+ attr_reader :available
580
+ # Attribute for field display_preference
581
+ attr_reader :display_preference
582
+ end
583
+
584
+ class Satispay < Stripe::StripeObject
585
+ class DisplayPreference < Stripe::StripeObject
586
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
587
+ attr_reader :overridable
588
+ # The account's display preference.
589
+ attr_reader :preference
590
+ # The effective display preference value.
591
+ attr_reader :value
592
+ end
593
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
594
+ attr_reader :available
595
+ # Attribute for field display_preference
596
+ attr_reader :display_preference
597
+ end
598
+
599
+ class SepaDebit < Stripe::StripeObject
600
+ class DisplayPreference < Stripe::StripeObject
601
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
602
+ attr_reader :overridable
603
+ # The account's display preference.
604
+ attr_reader :preference
605
+ # The effective display preference value.
606
+ attr_reader :value
607
+ end
608
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
609
+ attr_reader :available
610
+ # Attribute for field display_preference
611
+ attr_reader :display_preference
612
+ end
613
+
614
+ class Sofort < Stripe::StripeObject
615
+ class DisplayPreference < Stripe::StripeObject
616
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
617
+ attr_reader :overridable
618
+ # The account's display preference.
619
+ attr_reader :preference
620
+ # The effective display preference value.
621
+ attr_reader :value
622
+ end
623
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
624
+ attr_reader :available
625
+ # Attribute for field display_preference
626
+ attr_reader :display_preference
627
+ end
628
+
629
+ class Swish < Stripe::StripeObject
630
+ class DisplayPreference < Stripe::StripeObject
631
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
632
+ attr_reader :overridable
633
+ # The account's display preference.
634
+ attr_reader :preference
635
+ # The effective display preference value.
636
+ attr_reader :value
637
+ end
638
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
639
+ attr_reader :available
640
+ # Attribute for field display_preference
641
+ attr_reader :display_preference
642
+ end
643
+
644
+ class Twint < Stripe::StripeObject
645
+ class DisplayPreference < Stripe::StripeObject
646
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
647
+ attr_reader :overridable
648
+ # The account's display preference.
649
+ attr_reader :preference
650
+ # The effective display preference value.
651
+ attr_reader :value
652
+ end
653
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
654
+ attr_reader :available
655
+ # Attribute for field display_preference
656
+ attr_reader :display_preference
657
+ end
658
+
659
+ class UsBankAccount < Stripe::StripeObject
660
+ class DisplayPreference < Stripe::StripeObject
661
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
662
+ attr_reader :overridable
663
+ # The account's display preference.
664
+ attr_reader :preference
665
+ # The effective display preference value.
666
+ attr_reader :value
667
+ end
668
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
669
+ attr_reader :available
670
+ # Attribute for field display_preference
671
+ attr_reader :display_preference
672
+ end
673
+
674
+ class WechatPay < Stripe::StripeObject
675
+ class DisplayPreference < Stripe::StripeObject
676
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
677
+ attr_reader :overridable
678
+ # The account's display preference.
679
+ attr_reader :preference
680
+ # The effective display preference value.
681
+ attr_reader :value
682
+ end
683
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
684
+ attr_reader :available
685
+ # Attribute for field display_preference
686
+ attr_reader :display_preference
687
+ end
688
+
689
+ class Zip < Stripe::StripeObject
690
+ class DisplayPreference < Stripe::StripeObject
691
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
692
+ attr_reader :overridable
693
+ # The account's display preference.
694
+ attr_reader :preference
695
+ # The effective display preference value.
696
+ attr_reader :value
697
+ end
698
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
699
+ attr_reader :available
700
+ # Attribute for field display_preference
701
+ attr_reader :display_preference
702
+ end
703
+
704
+ class ListParams < Stripe::RequestParams
705
+ # The Connect application to filter by.
706
+ attr_accessor :application
707
+ # 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.
708
+ attr_accessor :ending_before
709
+ # Specifies which fields in the response should be expanded.
710
+ attr_accessor :expand
711
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
712
+ attr_accessor :limit
713
+ # 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.
714
+ attr_accessor :starting_after
715
+
716
+ def initialize(
717
+ application: nil,
718
+ ending_before: nil,
719
+ expand: nil,
720
+ limit: nil,
721
+ starting_after: nil
722
+ )
723
+ @application = application
724
+ @ending_before = ending_before
725
+ @expand = expand
726
+ @limit = limit
727
+ @starting_after = starting_after
728
+ end
729
+ end
730
+
731
+ class CreateParams < Stripe::RequestParams
732
+ class AcssDebit < Stripe::RequestParams
733
+ class DisplayPreference < Stripe::RequestParams
734
+ # The account's preference for whether or not to display this payment method.
735
+ attr_accessor :preference
736
+
737
+ def initialize(preference: nil)
738
+ @preference = preference
739
+ end
740
+ end
741
+ # Whether or not the payment method should be displayed.
742
+ attr_accessor :display_preference
743
+
744
+ def initialize(display_preference: nil)
745
+ @display_preference = display_preference
746
+ end
747
+ end
748
+
749
+ class Affirm < Stripe::RequestParams
750
+ class DisplayPreference < Stripe::RequestParams
751
+ # The account's preference for whether or not to display this payment method.
752
+ attr_accessor :preference
753
+
754
+ def initialize(preference: nil)
755
+ @preference = preference
756
+ end
757
+ end
758
+ # Whether or not the payment method should be displayed.
759
+ attr_accessor :display_preference
760
+
761
+ def initialize(display_preference: nil)
762
+ @display_preference = display_preference
763
+ end
764
+ end
765
+
766
+ class AfterpayClearpay < Stripe::RequestParams
767
+ class DisplayPreference < Stripe::RequestParams
768
+ # The account's preference for whether or not to display this payment method.
769
+ attr_accessor :preference
770
+
771
+ def initialize(preference: nil)
772
+ @preference = preference
773
+ end
774
+ end
775
+ # Whether or not the payment method should be displayed.
776
+ attr_accessor :display_preference
777
+
778
+ def initialize(display_preference: nil)
779
+ @display_preference = display_preference
780
+ end
781
+ end
782
+
783
+ class Alipay < Stripe::RequestParams
784
+ class DisplayPreference < Stripe::RequestParams
785
+ # The account's preference for whether or not to display this payment method.
786
+ attr_accessor :preference
787
+
788
+ def initialize(preference: nil)
789
+ @preference = preference
790
+ end
791
+ end
792
+ # Whether or not the payment method should be displayed.
793
+ attr_accessor :display_preference
794
+
795
+ def initialize(display_preference: nil)
796
+ @display_preference = display_preference
797
+ end
798
+ end
799
+
800
+ class Alma < Stripe::RequestParams
801
+ class DisplayPreference < Stripe::RequestParams
802
+ # The account's preference for whether or not to display this payment method.
803
+ attr_accessor :preference
804
+
805
+ def initialize(preference: nil)
806
+ @preference = preference
807
+ end
808
+ end
809
+ # Whether or not the payment method should be displayed.
810
+ attr_accessor :display_preference
811
+
812
+ def initialize(display_preference: nil)
813
+ @display_preference = display_preference
814
+ end
815
+ end
816
+
817
+ class AmazonPay < Stripe::RequestParams
818
+ class DisplayPreference < Stripe::RequestParams
819
+ # The account's preference for whether or not to display this payment method.
820
+ attr_accessor :preference
821
+
822
+ def initialize(preference: nil)
823
+ @preference = preference
824
+ end
825
+ end
826
+ # Whether or not the payment method should be displayed.
827
+ attr_accessor :display_preference
828
+
829
+ def initialize(display_preference: nil)
830
+ @display_preference = display_preference
831
+ end
832
+ end
833
+
834
+ class ApplePay < Stripe::RequestParams
835
+ class DisplayPreference < Stripe::RequestParams
836
+ # The account's preference for whether or not to display this payment method.
837
+ attr_accessor :preference
838
+
839
+ def initialize(preference: nil)
840
+ @preference = preference
841
+ end
842
+ end
843
+ # Whether or not the payment method should be displayed.
844
+ attr_accessor :display_preference
845
+
846
+ def initialize(display_preference: nil)
847
+ @display_preference = display_preference
848
+ end
849
+ end
850
+
851
+ class ApplePayLater < Stripe::RequestParams
852
+ class DisplayPreference < Stripe::RequestParams
853
+ # The account's preference for whether or not to display this payment method.
854
+ attr_accessor :preference
855
+
856
+ def initialize(preference: nil)
857
+ @preference = preference
858
+ end
859
+ end
860
+ # Whether or not the payment method should be displayed.
861
+ attr_accessor :display_preference
862
+
863
+ def initialize(display_preference: nil)
864
+ @display_preference = display_preference
865
+ end
866
+ end
867
+
868
+ class AuBecsDebit < Stripe::RequestParams
869
+ class DisplayPreference < Stripe::RequestParams
870
+ # The account's preference for whether or not to display this payment method.
871
+ attr_accessor :preference
872
+
873
+ def initialize(preference: nil)
874
+ @preference = preference
875
+ end
876
+ end
877
+ # Whether or not the payment method should be displayed.
878
+ attr_accessor :display_preference
879
+
880
+ def initialize(display_preference: nil)
881
+ @display_preference = display_preference
882
+ end
883
+ end
884
+
885
+ class BacsDebit < Stripe::RequestParams
886
+ class DisplayPreference < Stripe::RequestParams
887
+ # The account's preference for whether or not to display this payment method.
888
+ attr_accessor :preference
889
+
890
+ def initialize(preference: nil)
891
+ @preference = preference
892
+ end
893
+ end
894
+ # Whether or not the payment method should be displayed.
895
+ attr_accessor :display_preference
896
+
897
+ def initialize(display_preference: nil)
898
+ @display_preference = display_preference
899
+ end
900
+ end
901
+
902
+ class Bancontact < Stripe::RequestParams
903
+ class DisplayPreference < Stripe::RequestParams
904
+ # The account's preference for whether or not to display this payment method.
905
+ attr_accessor :preference
906
+
907
+ def initialize(preference: nil)
908
+ @preference = preference
909
+ end
910
+ end
911
+ # Whether or not the payment method should be displayed.
912
+ attr_accessor :display_preference
913
+
914
+ def initialize(display_preference: nil)
915
+ @display_preference = display_preference
916
+ end
917
+ end
918
+
919
+ class Billie < Stripe::RequestParams
920
+ class DisplayPreference < Stripe::RequestParams
921
+ # The account's preference for whether or not to display this payment method.
922
+ attr_accessor :preference
923
+
924
+ def initialize(preference: nil)
925
+ @preference = preference
926
+ end
927
+ end
928
+ # Whether or not the payment method should be displayed.
929
+ attr_accessor :display_preference
930
+
931
+ def initialize(display_preference: nil)
932
+ @display_preference = display_preference
933
+ end
934
+ end
935
+
936
+ class Blik < Stripe::RequestParams
937
+ class DisplayPreference < Stripe::RequestParams
938
+ # The account's preference for whether or not to display this payment method.
939
+ attr_accessor :preference
940
+
941
+ def initialize(preference: nil)
942
+ @preference = preference
943
+ end
944
+ end
945
+ # Whether or not the payment method should be displayed.
946
+ attr_accessor :display_preference
947
+
948
+ def initialize(display_preference: nil)
949
+ @display_preference = display_preference
950
+ end
951
+ end
952
+
953
+ class Boleto < Stripe::RequestParams
954
+ class DisplayPreference < Stripe::RequestParams
955
+ # The account's preference for whether or not to display this payment method.
956
+ attr_accessor :preference
957
+
958
+ def initialize(preference: nil)
959
+ @preference = preference
960
+ end
961
+ end
962
+ # Whether or not the payment method should be displayed.
963
+ attr_accessor :display_preference
964
+
965
+ def initialize(display_preference: nil)
966
+ @display_preference = display_preference
967
+ end
968
+ end
969
+
970
+ class Card < Stripe::RequestParams
971
+ class DisplayPreference < Stripe::RequestParams
972
+ # The account's preference for whether or not to display this payment method.
973
+ attr_accessor :preference
974
+
975
+ def initialize(preference: nil)
976
+ @preference = preference
977
+ end
978
+ end
979
+ # Whether or not the payment method should be displayed.
980
+ attr_accessor :display_preference
981
+
982
+ def initialize(display_preference: nil)
983
+ @display_preference = display_preference
984
+ end
985
+ end
986
+
987
+ class CartesBancaires < Stripe::RequestParams
988
+ class DisplayPreference < Stripe::RequestParams
989
+ # The account's preference for whether or not to display this payment method.
990
+ attr_accessor :preference
991
+
992
+ def initialize(preference: nil)
993
+ @preference = preference
994
+ end
995
+ end
996
+ # Whether or not the payment method should be displayed.
997
+ attr_accessor :display_preference
998
+
999
+ def initialize(display_preference: nil)
1000
+ @display_preference = display_preference
1001
+ end
1002
+ end
1003
+
1004
+ class Cashapp < Stripe::RequestParams
1005
+ class DisplayPreference < Stripe::RequestParams
1006
+ # The account's preference for whether or not to display this payment method.
1007
+ attr_accessor :preference
1008
+
1009
+ def initialize(preference: nil)
1010
+ @preference = preference
1011
+ end
1012
+ end
1013
+ # Whether or not the payment method should be displayed.
1014
+ attr_accessor :display_preference
1015
+
1016
+ def initialize(display_preference: nil)
1017
+ @display_preference = display_preference
1018
+ end
1019
+ end
1020
+
1021
+ class CustomerBalance < Stripe::RequestParams
1022
+ class DisplayPreference < Stripe::RequestParams
1023
+ # The account's preference for whether or not to display this payment method.
1024
+ attr_accessor :preference
1025
+
1026
+ def initialize(preference: nil)
1027
+ @preference = preference
1028
+ end
1029
+ end
1030
+ # Whether or not the payment method should be displayed.
1031
+ attr_accessor :display_preference
1032
+
1033
+ def initialize(display_preference: nil)
1034
+ @display_preference = display_preference
1035
+ end
1036
+ end
1037
+
1038
+ class Eps < Stripe::RequestParams
1039
+ class DisplayPreference < Stripe::RequestParams
1040
+ # The account's preference for whether or not to display this payment method.
1041
+ attr_accessor :preference
1042
+
1043
+ def initialize(preference: nil)
1044
+ @preference = preference
1045
+ end
1046
+ end
1047
+ # Whether or not the payment method should be displayed.
1048
+ attr_accessor :display_preference
1049
+
1050
+ def initialize(display_preference: nil)
1051
+ @display_preference = display_preference
1052
+ end
1053
+ end
1054
+
1055
+ class Fpx < Stripe::RequestParams
1056
+ class DisplayPreference < Stripe::RequestParams
1057
+ # The account's preference for whether or not to display this payment method.
1058
+ attr_accessor :preference
1059
+
1060
+ def initialize(preference: nil)
1061
+ @preference = preference
1062
+ end
1063
+ end
1064
+ # Whether or not the payment method should be displayed.
1065
+ attr_accessor :display_preference
1066
+
1067
+ def initialize(display_preference: nil)
1068
+ @display_preference = display_preference
1069
+ end
1070
+ end
1071
+
1072
+ class Giropay < Stripe::RequestParams
1073
+ class DisplayPreference < Stripe::RequestParams
1074
+ # The account's preference for whether or not to display this payment method.
1075
+ attr_accessor :preference
1076
+
1077
+ def initialize(preference: nil)
1078
+ @preference = preference
1079
+ end
1080
+ end
1081
+ # Whether or not the payment method should be displayed.
1082
+ attr_accessor :display_preference
1083
+
1084
+ def initialize(display_preference: nil)
1085
+ @display_preference = display_preference
1086
+ end
1087
+ end
1088
+
1089
+ class GooglePay < Stripe::RequestParams
1090
+ class DisplayPreference < Stripe::RequestParams
1091
+ # The account's preference for whether or not to display this payment method.
1092
+ attr_accessor :preference
1093
+
1094
+ def initialize(preference: nil)
1095
+ @preference = preference
1096
+ end
1097
+ end
1098
+ # Whether or not the payment method should be displayed.
1099
+ attr_accessor :display_preference
1100
+
1101
+ def initialize(display_preference: nil)
1102
+ @display_preference = display_preference
1103
+ end
1104
+ end
1105
+
1106
+ class Grabpay < Stripe::RequestParams
1107
+ class DisplayPreference < Stripe::RequestParams
1108
+ # The account's preference for whether or not to display this payment method.
1109
+ attr_accessor :preference
1110
+
1111
+ def initialize(preference: nil)
1112
+ @preference = preference
1113
+ end
1114
+ end
1115
+ # Whether or not the payment method should be displayed.
1116
+ attr_accessor :display_preference
1117
+
1118
+ def initialize(display_preference: nil)
1119
+ @display_preference = display_preference
1120
+ end
1121
+ end
1122
+
1123
+ class Ideal < Stripe::RequestParams
1124
+ class DisplayPreference < Stripe::RequestParams
1125
+ # The account's preference for whether or not to display this payment method.
1126
+ attr_accessor :preference
1127
+
1128
+ def initialize(preference: nil)
1129
+ @preference = preference
1130
+ end
1131
+ end
1132
+ # Whether or not the payment method should be displayed.
1133
+ attr_accessor :display_preference
1134
+
1135
+ def initialize(display_preference: nil)
1136
+ @display_preference = display_preference
1137
+ end
1138
+ end
1139
+
1140
+ class Jcb < Stripe::RequestParams
1141
+ class DisplayPreference < Stripe::RequestParams
1142
+ # The account's preference for whether or not to display this payment method.
1143
+ attr_accessor :preference
1144
+
1145
+ def initialize(preference: nil)
1146
+ @preference = preference
1147
+ end
1148
+ end
1149
+ # Whether or not the payment method should be displayed.
1150
+ attr_accessor :display_preference
1151
+
1152
+ def initialize(display_preference: nil)
1153
+ @display_preference = display_preference
1154
+ end
1155
+ end
1156
+
1157
+ class Klarna < Stripe::RequestParams
1158
+ class DisplayPreference < Stripe::RequestParams
1159
+ # The account's preference for whether or not to display this payment method.
1160
+ attr_accessor :preference
1161
+
1162
+ def initialize(preference: nil)
1163
+ @preference = preference
1164
+ end
1165
+ end
1166
+ # Whether or not the payment method should be displayed.
1167
+ attr_accessor :display_preference
1168
+
1169
+ def initialize(display_preference: nil)
1170
+ @display_preference = display_preference
1171
+ end
1172
+ end
1173
+
1174
+ class Konbini < Stripe::RequestParams
1175
+ class DisplayPreference < Stripe::RequestParams
1176
+ # The account's preference for whether or not to display this payment method.
1177
+ attr_accessor :preference
1178
+
1179
+ def initialize(preference: nil)
1180
+ @preference = preference
1181
+ end
1182
+ end
1183
+ # Whether or not the payment method should be displayed.
1184
+ attr_accessor :display_preference
1185
+
1186
+ def initialize(display_preference: nil)
1187
+ @display_preference = display_preference
1188
+ end
1189
+ end
1190
+
1191
+ class Link < Stripe::RequestParams
1192
+ class DisplayPreference < Stripe::RequestParams
1193
+ # The account's preference for whether or not to display this payment method.
1194
+ attr_accessor :preference
1195
+
1196
+ def initialize(preference: nil)
1197
+ @preference = preference
1198
+ end
1199
+ end
1200
+ # Whether or not the payment method should be displayed.
1201
+ attr_accessor :display_preference
1202
+
1203
+ def initialize(display_preference: nil)
1204
+ @display_preference = display_preference
1205
+ end
1206
+ end
1207
+
1208
+ class Mobilepay < Stripe::RequestParams
1209
+ class DisplayPreference < Stripe::RequestParams
1210
+ # The account's preference for whether or not to display this payment method.
1211
+ attr_accessor :preference
1212
+
1213
+ def initialize(preference: nil)
1214
+ @preference = preference
1215
+ end
1216
+ end
1217
+ # Whether or not the payment method should be displayed.
1218
+ attr_accessor :display_preference
1219
+
1220
+ def initialize(display_preference: nil)
1221
+ @display_preference = display_preference
1222
+ end
1223
+ end
1224
+
1225
+ class Multibanco < Stripe::RequestParams
1226
+ class DisplayPreference < Stripe::RequestParams
1227
+ # The account's preference for whether or not to display this payment method.
1228
+ attr_accessor :preference
1229
+
1230
+ def initialize(preference: nil)
1231
+ @preference = preference
1232
+ end
1233
+ end
1234
+ # Whether or not the payment method should be displayed.
1235
+ attr_accessor :display_preference
1236
+
1237
+ def initialize(display_preference: nil)
1238
+ @display_preference = display_preference
1239
+ end
1240
+ end
1241
+
1242
+ class NzBankAccount < Stripe::RequestParams
1243
+ class DisplayPreference < Stripe::RequestParams
1244
+ # The account's preference for whether or not to display this payment method.
1245
+ attr_accessor :preference
1246
+
1247
+ def initialize(preference: nil)
1248
+ @preference = preference
1249
+ end
1250
+ end
1251
+ # Whether or not the payment method should be displayed.
1252
+ attr_accessor :display_preference
1253
+
1254
+ def initialize(display_preference: nil)
1255
+ @display_preference = display_preference
1256
+ end
1257
+ end
1258
+
1259
+ class Oxxo < Stripe::RequestParams
1260
+ class DisplayPreference < Stripe::RequestParams
1261
+ # The account's preference for whether or not to display this payment method.
1262
+ attr_accessor :preference
1263
+
1264
+ def initialize(preference: nil)
1265
+ @preference = preference
1266
+ end
1267
+ end
1268
+ # Whether or not the payment method should be displayed.
1269
+ attr_accessor :display_preference
1270
+
1271
+ def initialize(display_preference: nil)
1272
+ @display_preference = display_preference
1273
+ end
1274
+ end
1275
+
1276
+ class P24 < Stripe::RequestParams
1277
+ class DisplayPreference < Stripe::RequestParams
1278
+ # The account's preference for whether or not to display this payment method.
1279
+ attr_accessor :preference
1280
+
1281
+ def initialize(preference: nil)
1282
+ @preference = preference
1283
+ end
1284
+ end
1285
+ # Whether or not the payment method should be displayed.
1286
+ attr_accessor :display_preference
1287
+
1288
+ def initialize(display_preference: nil)
1289
+ @display_preference = display_preference
1290
+ end
1291
+ end
1292
+
1293
+ class PayByBank < Stripe::RequestParams
1294
+ class DisplayPreference < Stripe::RequestParams
1295
+ # The account's preference for whether or not to display this payment method.
1296
+ attr_accessor :preference
1297
+
1298
+ def initialize(preference: nil)
1299
+ @preference = preference
1300
+ end
1301
+ end
1302
+ # Whether or not the payment method should be displayed.
1303
+ attr_accessor :display_preference
1304
+
1305
+ def initialize(display_preference: nil)
1306
+ @display_preference = display_preference
1307
+ end
1308
+ end
1309
+
1310
+ class Paynow < Stripe::RequestParams
1311
+ class DisplayPreference < Stripe::RequestParams
1312
+ # The account's preference for whether or not to display this payment method.
1313
+ attr_accessor :preference
1314
+
1315
+ def initialize(preference: nil)
1316
+ @preference = preference
1317
+ end
1318
+ end
1319
+ # Whether or not the payment method should be displayed.
1320
+ attr_accessor :display_preference
1321
+
1322
+ def initialize(display_preference: nil)
1323
+ @display_preference = display_preference
1324
+ end
1325
+ end
1326
+
1327
+ class Paypal < Stripe::RequestParams
1328
+ class DisplayPreference < Stripe::RequestParams
1329
+ # The account's preference for whether or not to display this payment method.
1330
+ attr_accessor :preference
1331
+
1332
+ def initialize(preference: nil)
1333
+ @preference = preference
1334
+ end
1335
+ end
1336
+ # Whether or not the payment method should be displayed.
1337
+ attr_accessor :display_preference
1338
+
1339
+ def initialize(display_preference: nil)
1340
+ @display_preference = display_preference
1341
+ end
1342
+ end
1343
+
1344
+ class Promptpay < Stripe::RequestParams
1345
+ class DisplayPreference < Stripe::RequestParams
1346
+ # The account's preference for whether or not to display this payment method.
1347
+ attr_accessor :preference
1348
+
1349
+ def initialize(preference: nil)
1350
+ @preference = preference
1351
+ end
1352
+ end
1353
+ # Whether or not the payment method should be displayed.
1354
+ attr_accessor :display_preference
1355
+
1356
+ def initialize(display_preference: nil)
1357
+ @display_preference = display_preference
1358
+ end
1359
+ end
1360
+
1361
+ class RevolutPay < Stripe::RequestParams
1362
+ class DisplayPreference < Stripe::RequestParams
1363
+ # The account's preference for whether or not to display this payment method.
1364
+ attr_accessor :preference
1365
+
1366
+ def initialize(preference: nil)
1367
+ @preference = preference
1368
+ end
1369
+ end
1370
+ # Whether or not the payment method should be displayed.
1371
+ attr_accessor :display_preference
1372
+
1373
+ def initialize(display_preference: nil)
1374
+ @display_preference = display_preference
1375
+ end
1376
+ end
1377
+
1378
+ class Satispay < Stripe::RequestParams
1379
+ class DisplayPreference < Stripe::RequestParams
1380
+ # The account's preference for whether or not to display this payment method.
1381
+ attr_accessor :preference
1382
+
1383
+ def initialize(preference: nil)
1384
+ @preference = preference
1385
+ end
1386
+ end
1387
+ # Whether or not the payment method should be displayed.
1388
+ attr_accessor :display_preference
1389
+
1390
+ def initialize(display_preference: nil)
1391
+ @display_preference = display_preference
1392
+ end
1393
+ end
1394
+
1395
+ class SepaDebit < Stripe::RequestParams
1396
+ class DisplayPreference < Stripe::RequestParams
1397
+ # The account's preference for whether or not to display this payment method.
1398
+ attr_accessor :preference
1399
+
1400
+ def initialize(preference: nil)
1401
+ @preference = preference
1402
+ end
1403
+ end
1404
+ # Whether or not the payment method should be displayed.
1405
+ attr_accessor :display_preference
1406
+
1407
+ def initialize(display_preference: nil)
1408
+ @display_preference = display_preference
1409
+ end
1410
+ end
1411
+
1412
+ class Sofort < Stripe::RequestParams
1413
+ class DisplayPreference < Stripe::RequestParams
1414
+ # The account's preference for whether or not to display this payment method.
1415
+ attr_accessor :preference
1416
+
1417
+ def initialize(preference: nil)
1418
+ @preference = preference
1419
+ end
1420
+ end
1421
+ # Whether or not the payment method should be displayed.
1422
+ attr_accessor :display_preference
1423
+
1424
+ def initialize(display_preference: nil)
1425
+ @display_preference = display_preference
1426
+ end
1427
+ end
1428
+
1429
+ class Swish < Stripe::RequestParams
1430
+ class DisplayPreference < Stripe::RequestParams
1431
+ # The account's preference for whether or not to display this payment method.
1432
+ attr_accessor :preference
1433
+
1434
+ def initialize(preference: nil)
1435
+ @preference = preference
1436
+ end
1437
+ end
1438
+ # Whether or not the payment method should be displayed.
1439
+ attr_accessor :display_preference
1440
+
1441
+ def initialize(display_preference: nil)
1442
+ @display_preference = display_preference
1443
+ end
1444
+ end
1445
+
1446
+ class Twint < Stripe::RequestParams
1447
+ class DisplayPreference < Stripe::RequestParams
1448
+ # The account's preference for whether or not to display this payment method.
1449
+ attr_accessor :preference
1450
+
1451
+ def initialize(preference: nil)
1452
+ @preference = preference
1453
+ end
1454
+ end
1455
+ # Whether or not the payment method should be displayed.
1456
+ attr_accessor :display_preference
1457
+
1458
+ def initialize(display_preference: nil)
1459
+ @display_preference = display_preference
1460
+ end
1461
+ end
1462
+
1463
+ class UsBankAccount < Stripe::RequestParams
1464
+ class DisplayPreference < Stripe::RequestParams
1465
+ # The account's preference for whether or not to display this payment method.
1466
+ attr_accessor :preference
1467
+
1468
+ def initialize(preference: nil)
1469
+ @preference = preference
1470
+ end
1471
+ end
1472
+ # Whether or not the payment method should be displayed.
1473
+ attr_accessor :display_preference
1474
+
1475
+ def initialize(display_preference: nil)
1476
+ @display_preference = display_preference
1477
+ end
1478
+ end
1479
+
1480
+ class WechatPay < Stripe::RequestParams
1481
+ class DisplayPreference < Stripe::RequestParams
1482
+ # The account's preference for whether or not to display this payment method.
1483
+ attr_accessor :preference
1484
+
1485
+ def initialize(preference: nil)
1486
+ @preference = preference
1487
+ end
1488
+ end
1489
+ # Whether or not the payment method should be displayed.
1490
+ attr_accessor :display_preference
1491
+
1492
+ def initialize(display_preference: nil)
1493
+ @display_preference = display_preference
1494
+ end
1495
+ end
1496
+
1497
+ class Zip < Stripe::RequestParams
1498
+ class DisplayPreference < Stripe::RequestParams
1499
+ # The account's preference for whether or not to display this payment method.
1500
+ attr_accessor :preference
1501
+
1502
+ def initialize(preference: nil)
1503
+ @preference = preference
1504
+ end
1505
+ end
1506
+ # Whether or not the payment method should be displayed.
1507
+ attr_accessor :display_preference
1508
+
1509
+ def initialize(display_preference: nil)
1510
+ @display_preference = display_preference
1511
+ end
1512
+ end
1513
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
1514
+ attr_accessor :acss_debit
1515
+ # [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.
1516
+ attr_accessor :affirm
1517
+ # 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.
1518
+ attr_accessor :afterpay_clearpay
1519
+ # 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.
1520
+ attr_accessor :alipay
1521
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
1522
+ attr_accessor :alma
1523
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
1524
+ attr_accessor :amazon_pay
1525
+ # 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.
1526
+ attr_accessor :apple_pay
1527
+ # 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.
1528
+ attr_accessor :apple_pay_later
1529
+ # 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.
1530
+ attr_accessor :au_becs_debit
1531
+ # 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.
1532
+ attr_accessor :bacs_debit
1533
+ # 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.
1534
+ attr_accessor :bancontact
1535
+ # 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.
1536
+ attr_accessor :billie
1537
+ # 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.
1538
+ attr_accessor :blik
1539
+ # 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.
1540
+ attr_accessor :boleto
1541
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
1542
+ attr_accessor :card
1543
+ # 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.
1544
+ attr_accessor :cartes_bancaires
1545
+ # 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.
1546
+ attr_accessor :cashapp
1547
+ # 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.
1548
+ attr_accessor :customer_balance
1549
+ # 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.
1550
+ attr_accessor :eps
1551
+ # Specifies which fields in the response should be expanded.
1552
+ attr_accessor :expand
1553
+ # 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.
1554
+ attr_accessor :fpx
1555
+ # 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.
1556
+ attr_accessor :giropay
1557
+ # 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.
1558
+ attr_accessor :google_pay
1559
+ # 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.
1560
+ attr_accessor :grabpay
1561
+ # 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.
1562
+ attr_accessor :ideal
1563
+ # 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.
1564
+ attr_accessor :jcb
1565
+ # 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.
1566
+ attr_accessor :klarna
1567
+ # 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.
1568
+ attr_accessor :konbini
1569
+ # [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.
1570
+ attr_accessor :link
1571
+ # 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.
1572
+ attr_accessor :mobilepay
1573
+ # 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.
1574
+ attr_accessor :multibanco
1575
+ # Configuration name.
1576
+ attr_accessor :name
1577
+ # 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.
1578
+ attr_accessor :nz_bank_account
1579
+ # 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.
1580
+ attr_accessor :oxxo
1581
+ # 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.
1582
+ attr_accessor :p24
1583
+ # Configuration's parent configuration. Specify to create a child configuration.
1584
+ attr_accessor :parent
1585
+ # 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.
1586
+ attr_accessor :pay_by_bank
1587
+ # 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.
1588
+ attr_accessor :paynow
1589
+ # 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.
1590
+ attr_accessor :paypal
1591
+ # 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.
1592
+ attr_accessor :promptpay
1593
+ # 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.
1594
+ attr_accessor :revolut_pay
1595
+ # 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.
1596
+ attr_accessor :satispay
1597
+ # 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.
1598
+ attr_accessor :sepa_debit
1599
+ # 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.
1600
+ attr_accessor :sofort
1601
+ # 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.
1602
+ attr_accessor :swish
1603
+ # 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.
1604
+ attr_accessor :twint
1605
+ # 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.
1606
+ attr_accessor :us_bank_account
1607
+ # 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.
1608
+ attr_accessor :wechat_pay
1609
+ # 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.
1610
+ attr_accessor :zip
1611
+
1612
+ def initialize(
1613
+ acss_debit: nil,
1614
+ affirm: nil,
1615
+ afterpay_clearpay: nil,
1616
+ alipay: nil,
1617
+ alma: nil,
1618
+ amazon_pay: nil,
1619
+ apple_pay: nil,
1620
+ apple_pay_later: nil,
1621
+ au_becs_debit: nil,
1622
+ bacs_debit: nil,
1623
+ bancontact: nil,
1624
+ billie: nil,
1625
+ blik: nil,
1626
+ boleto: nil,
1627
+ card: nil,
1628
+ cartes_bancaires: nil,
1629
+ cashapp: nil,
1630
+ customer_balance: nil,
1631
+ eps: nil,
1632
+ expand: nil,
1633
+ fpx: nil,
1634
+ giropay: nil,
1635
+ google_pay: nil,
1636
+ grabpay: nil,
1637
+ ideal: nil,
1638
+ jcb: nil,
1639
+ klarna: nil,
1640
+ konbini: nil,
1641
+ link: nil,
1642
+ mobilepay: nil,
1643
+ multibanco: nil,
1644
+ name: nil,
1645
+ nz_bank_account: nil,
1646
+ oxxo: nil,
1647
+ p24: nil,
1648
+ parent: nil,
1649
+ pay_by_bank: nil,
1650
+ paynow: nil,
1651
+ paypal: nil,
1652
+ promptpay: nil,
1653
+ revolut_pay: nil,
1654
+ satispay: nil,
1655
+ sepa_debit: nil,
1656
+ sofort: nil,
1657
+ swish: nil,
1658
+ twint: nil,
1659
+ us_bank_account: nil,
1660
+ wechat_pay: nil,
1661
+ zip: nil
1662
+ )
1663
+ @acss_debit = acss_debit
1664
+ @affirm = affirm
1665
+ @afterpay_clearpay = afterpay_clearpay
1666
+ @alipay = alipay
1667
+ @alma = alma
1668
+ @amazon_pay = amazon_pay
1669
+ @apple_pay = apple_pay
1670
+ @apple_pay_later = apple_pay_later
1671
+ @au_becs_debit = au_becs_debit
1672
+ @bacs_debit = bacs_debit
1673
+ @bancontact = bancontact
1674
+ @billie = billie
1675
+ @blik = blik
1676
+ @boleto = boleto
1677
+ @card = card
1678
+ @cartes_bancaires = cartes_bancaires
1679
+ @cashapp = cashapp
1680
+ @customer_balance = customer_balance
1681
+ @eps = eps
1682
+ @expand = expand
1683
+ @fpx = fpx
1684
+ @giropay = giropay
1685
+ @google_pay = google_pay
1686
+ @grabpay = grabpay
1687
+ @ideal = ideal
1688
+ @jcb = jcb
1689
+ @klarna = klarna
1690
+ @konbini = konbini
1691
+ @link = link
1692
+ @mobilepay = mobilepay
1693
+ @multibanco = multibanco
1694
+ @name = name
1695
+ @nz_bank_account = nz_bank_account
1696
+ @oxxo = oxxo
1697
+ @p24 = p24
1698
+ @parent = parent
1699
+ @pay_by_bank = pay_by_bank
1700
+ @paynow = paynow
1701
+ @paypal = paypal
1702
+ @promptpay = promptpay
1703
+ @revolut_pay = revolut_pay
1704
+ @satispay = satispay
1705
+ @sepa_debit = sepa_debit
1706
+ @sofort = sofort
1707
+ @swish = swish
1708
+ @twint = twint
1709
+ @us_bank_account = us_bank_account
1710
+ @wechat_pay = wechat_pay
1711
+ @zip = zip
1712
+ end
1713
+ end
1714
+
1715
+ class UpdateParams < Stripe::RequestParams
1716
+ class AcssDebit < Stripe::RequestParams
1717
+ class DisplayPreference < Stripe::RequestParams
1718
+ # The account's preference for whether or not to display this payment method.
1719
+ attr_accessor :preference
1720
+
1721
+ def initialize(preference: nil)
1722
+ @preference = preference
1723
+ end
1724
+ end
1725
+ # Whether or not the payment method should be displayed.
1726
+ attr_accessor :display_preference
1727
+
1728
+ def initialize(display_preference: nil)
1729
+ @display_preference = display_preference
1730
+ end
1731
+ end
1732
+
1733
+ class Affirm < Stripe::RequestParams
1734
+ class DisplayPreference < Stripe::RequestParams
1735
+ # The account's preference for whether or not to display this payment method.
1736
+ attr_accessor :preference
1737
+
1738
+ def initialize(preference: nil)
1739
+ @preference = preference
1740
+ end
1741
+ end
1742
+ # Whether or not the payment method should be displayed.
1743
+ attr_accessor :display_preference
1744
+
1745
+ def initialize(display_preference: nil)
1746
+ @display_preference = display_preference
1747
+ end
1748
+ end
1749
+
1750
+ class AfterpayClearpay < Stripe::RequestParams
1751
+ class DisplayPreference < Stripe::RequestParams
1752
+ # The account's preference for whether or not to display this payment method.
1753
+ attr_accessor :preference
1754
+
1755
+ def initialize(preference: nil)
1756
+ @preference = preference
1757
+ end
1758
+ end
1759
+ # Whether or not the payment method should be displayed.
1760
+ attr_accessor :display_preference
1761
+
1762
+ def initialize(display_preference: nil)
1763
+ @display_preference = display_preference
1764
+ end
1765
+ end
1766
+
1767
+ class Alipay < Stripe::RequestParams
1768
+ class DisplayPreference < Stripe::RequestParams
1769
+ # The account's preference for whether or not to display this payment method.
1770
+ attr_accessor :preference
1771
+
1772
+ def initialize(preference: nil)
1773
+ @preference = preference
1774
+ end
1775
+ end
1776
+ # Whether or not the payment method should be displayed.
1777
+ attr_accessor :display_preference
1778
+
1779
+ def initialize(display_preference: nil)
1780
+ @display_preference = display_preference
1781
+ end
1782
+ end
1783
+
1784
+ class Alma < Stripe::RequestParams
1785
+ class DisplayPreference < Stripe::RequestParams
1786
+ # The account's preference for whether or not to display this payment method.
1787
+ attr_accessor :preference
1788
+
1789
+ def initialize(preference: nil)
1790
+ @preference = preference
1791
+ end
1792
+ end
1793
+ # Whether or not the payment method should be displayed.
1794
+ attr_accessor :display_preference
1795
+
1796
+ def initialize(display_preference: nil)
1797
+ @display_preference = display_preference
1798
+ end
1799
+ end
1800
+
1801
+ class AmazonPay < Stripe::RequestParams
1802
+ class DisplayPreference < Stripe::RequestParams
1803
+ # The account's preference for whether or not to display this payment method.
1804
+ attr_accessor :preference
1805
+
1806
+ def initialize(preference: nil)
1807
+ @preference = preference
1808
+ end
1809
+ end
1810
+ # Whether or not the payment method should be displayed.
1811
+ attr_accessor :display_preference
1812
+
1813
+ def initialize(display_preference: nil)
1814
+ @display_preference = display_preference
1815
+ end
1816
+ end
1817
+
1818
+ class ApplePay < Stripe::RequestParams
1819
+ class DisplayPreference < Stripe::RequestParams
1820
+ # The account's preference for whether or not to display this payment method.
1821
+ attr_accessor :preference
1822
+
1823
+ def initialize(preference: nil)
1824
+ @preference = preference
1825
+ end
1826
+ end
1827
+ # Whether or not the payment method should be displayed.
1828
+ attr_accessor :display_preference
1829
+
1830
+ def initialize(display_preference: nil)
1831
+ @display_preference = display_preference
1832
+ end
1833
+ end
1834
+
1835
+ class ApplePayLater < Stripe::RequestParams
1836
+ class DisplayPreference < Stripe::RequestParams
1837
+ # The account's preference for whether or not to display this payment method.
1838
+ attr_accessor :preference
1839
+
1840
+ def initialize(preference: nil)
1841
+ @preference = preference
1842
+ end
1843
+ end
1844
+ # Whether or not the payment method should be displayed.
1845
+ attr_accessor :display_preference
1846
+
1847
+ def initialize(display_preference: nil)
1848
+ @display_preference = display_preference
1849
+ end
1850
+ end
1851
+
1852
+ class AuBecsDebit < Stripe::RequestParams
1853
+ class DisplayPreference < Stripe::RequestParams
1854
+ # The account's preference for whether or not to display this payment method.
1855
+ attr_accessor :preference
1856
+
1857
+ def initialize(preference: nil)
1858
+ @preference = preference
1859
+ end
1860
+ end
1861
+ # Whether or not the payment method should be displayed.
1862
+ attr_accessor :display_preference
1863
+
1864
+ def initialize(display_preference: nil)
1865
+ @display_preference = display_preference
1866
+ end
1867
+ end
1868
+
1869
+ class BacsDebit < Stripe::RequestParams
1870
+ class DisplayPreference < Stripe::RequestParams
1871
+ # The account's preference for whether or not to display this payment method.
1872
+ attr_accessor :preference
1873
+
1874
+ def initialize(preference: nil)
1875
+ @preference = preference
1876
+ end
1877
+ end
1878
+ # Whether or not the payment method should be displayed.
1879
+ attr_accessor :display_preference
1880
+
1881
+ def initialize(display_preference: nil)
1882
+ @display_preference = display_preference
1883
+ end
1884
+ end
1885
+
1886
+ class Bancontact < Stripe::RequestParams
1887
+ class DisplayPreference < Stripe::RequestParams
1888
+ # The account's preference for whether or not to display this payment method.
1889
+ attr_accessor :preference
1890
+
1891
+ def initialize(preference: nil)
1892
+ @preference = preference
1893
+ end
1894
+ end
1895
+ # Whether or not the payment method should be displayed.
1896
+ attr_accessor :display_preference
1897
+
1898
+ def initialize(display_preference: nil)
1899
+ @display_preference = display_preference
1900
+ end
1901
+ end
1902
+
1903
+ class Billie < Stripe::RequestParams
1904
+ class DisplayPreference < Stripe::RequestParams
1905
+ # The account's preference for whether or not to display this payment method.
1906
+ attr_accessor :preference
1907
+
1908
+ def initialize(preference: nil)
1909
+ @preference = preference
1910
+ end
1911
+ end
1912
+ # Whether or not the payment method should be displayed.
1913
+ attr_accessor :display_preference
1914
+
1915
+ def initialize(display_preference: nil)
1916
+ @display_preference = display_preference
1917
+ end
1918
+ end
1919
+
1920
+ class Blik < Stripe::RequestParams
1921
+ class DisplayPreference < Stripe::RequestParams
1922
+ # The account's preference for whether or not to display this payment method.
1923
+ attr_accessor :preference
1924
+
1925
+ def initialize(preference: nil)
1926
+ @preference = preference
1927
+ end
1928
+ end
1929
+ # Whether or not the payment method should be displayed.
1930
+ attr_accessor :display_preference
1931
+
1932
+ def initialize(display_preference: nil)
1933
+ @display_preference = display_preference
1934
+ end
1935
+ end
1936
+
1937
+ class Boleto < Stripe::RequestParams
1938
+ class DisplayPreference < Stripe::RequestParams
1939
+ # The account's preference for whether or not to display this payment method.
1940
+ attr_accessor :preference
1941
+
1942
+ def initialize(preference: nil)
1943
+ @preference = preference
1944
+ end
1945
+ end
1946
+ # Whether or not the payment method should be displayed.
1947
+ attr_accessor :display_preference
1948
+
1949
+ def initialize(display_preference: nil)
1950
+ @display_preference = display_preference
1951
+ end
1952
+ end
1953
+
1954
+ class Card < Stripe::RequestParams
1955
+ class DisplayPreference < Stripe::RequestParams
1956
+ # The account's preference for whether or not to display this payment method.
1957
+ attr_accessor :preference
1958
+
1959
+ def initialize(preference: nil)
1960
+ @preference = preference
1961
+ end
1962
+ end
1963
+ # Whether or not the payment method should be displayed.
1964
+ attr_accessor :display_preference
1965
+
1966
+ def initialize(display_preference: nil)
1967
+ @display_preference = display_preference
1968
+ end
1969
+ end
1970
+
1971
+ class CartesBancaires < Stripe::RequestParams
1972
+ class DisplayPreference < Stripe::RequestParams
1973
+ # The account's preference for whether or not to display this payment method.
1974
+ attr_accessor :preference
1975
+
1976
+ def initialize(preference: nil)
1977
+ @preference = preference
1978
+ end
1979
+ end
1980
+ # Whether or not the payment method should be displayed.
1981
+ attr_accessor :display_preference
1982
+
1983
+ def initialize(display_preference: nil)
1984
+ @display_preference = display_preference
1985
+ end
1986
+ end
1987
+
1988
+ class Cashapp < Stripe::RequestParams
1989
+ class DisplayPreference < Stripe::RequestParams
1990
+ # The account's preference for whether or not to display this payment method.
1991
+ attr_accessor :preference
1992
+
1993
+ def initialize(preference: nil)
1994
+ @preference = preference
1995
+ end
1996
+ end
1997
+ # Whether or not the payment method should be displayed.
1998
+ attr_accessor :display_preference
1999
+
2000
+ def initialize(display_preference: nil)
2001
+ @display_preference = display_preference
2002
+ end
2003
+ end
2004
+
2005
+ class CustomerBalance < Stripe::RequestParams
2006
+ class DisplayPreference < Stripe::RequestParams
2007
+ # The account's preference for whether or not to display this payment method.
2008
+ attr_accessor :preference
2009
+
2010
+ def initialize(preference: nil)
2011
+ @preference = preference
2012
+ end
2013
+ end
2014
+ # Whether or not the payment method should be displayed.
2015
+ attr_accessor :display_preference
2016
+
2017
+ def initialize(display_preference: nil)
2018
+ @display_preference = display_preference
2019
+ end
2020
+ end
2021
+
2022
+ class Eps < Stripe::RequestParams
2023
+ class DisplayPreference < Stripe::RequestParams
2024
+ # The account's preference for whether or not to display this payment method.
2025
+ attr_accessor :preference
2026
+
2027
+ def initialize(preference: nil)
2028
+ @preference = preference
2029
+ end
2030
+ end
2031
+ # Whether or not the payment method should be displayed.
2032
+ attr_accessor :display_preference
2033
+
2034
+ def initialize(display_preference: nil)
2035
+ @display_preference = display_preference
2036
+ end
2037
+ end
2038
+
2039
+ class Fpx < Stripe::RequestParams
2040
+ class DisplayPreference < Stripe::RequestParams
2041
+ # The account's preference for whether or not to display this payment method.
2042
+ attr_accessor :preference
2043
+
2044
+ def initialize(preference: nil)
2045
+ @preference = preference
2046
+ end
2047
+ end
2048
+ # Whether or not the payment method should be displayed.
2049
+ attr_accessor :display_preference
2050
+
2051
+ def initialize(display_preference: nil)
2052
+ @display_preference = display_preference
2053
+ end
2054
+ end
2055
+
2056
+ class Giropay < Stripe::RequestParams
2057
+ class DisplayPreference < Stripe::RequestParams
2058
+ # The account's preference for whether or not to display this payment method.
2059
+ attr_accessor :preference
2060
+
2061
+ def initialize(preference: nil)
2062
+ @preference = preference
2063
+ end
2064
+ end
2065
+ # Whether or not the payment method should be displayed.
2066
+ attr_accessor :display_preference
2067
+
2068
+ def initialize(display_preference: nil)
2069
+ @display_preference = display_preference
2070
+ end
2071
+ end
2072
+
2073
+ class GooglePay < Stripe::RequestParams
2074
+ class DisplayPreference < Stripe::RequestParams
2075
+ # The account's preference for whether or not to display this payment method.
2076
+ attr_accessor :preference
2077
+
2078
+ def initialize(preference: nil)
2079
+ @preference = preference
2080
+ end
2081
+ end
2082
+ # Whether or not the payment method should be displayed.
2083
+ attr_accessor :display_preference
2084
+
2085
+ def initialize(display_preference: nil)
2086
+ @display_preference = display_preference
2087
+ end
2088
+ end
2089
+
2090
+ class Grabpay < Stripe::RequestParams
2091
+ class DisplayPreference < Stripe::RequestParams
2092
+ # The account's preference for whether or not to display this payment method.
2093
+ attr_accessor :preference
2094
+
2095
+ def initialize(preference: nil)
2096
+ @preference = preference
2097
+ end
2098
+ end
2099
+ # Whether or not the payment method should be displayed.
2100
+ attr_accessor :display_preference
2101
+
2102
+ def initialize(display_preference: nil)
2103
+ @display_preference = display_preference
2104
+ end
2105
+ end
2106
+
2107
+ class Ideal < Stripe::RequestParams
2108
+ class DisplayPreference < Stripe::RequestParams
2109
+ # The account's preference for whether or not to display this payment method.
2110
+ attr_accessor :preference
2111
+
2112
+ def initialize(preference: nil)
2113
+ @preference = preference
2114
+ end
2115
+ end
2116
+ # Whether or not the payment method should be displayed.
2117
+ attr_accessor :display_preference
2118
+
2119
+ def initialize(display_preference: nil)
2120
+ @display_preference = display_preference
2121
+ end
2122
+ end
2123
+
2124
+ class Jcb < Stripe::RequestParams
2125
+ class DisplayPreference < Stripe::RequestParams
2126
+ # The account's preference for whether or not to display this payment method.
2127
+ attr_accessor :preference
2128
+
2129
+ def initialize(preference: nil)
2130
+ @preference = preference
2131
+ end
2132
+ end
2133
+ # Whether or not the payment method should be displayed.
2134
+ attr_accessor :display_preference
2135
+
2136
+ def initialize(display_preference: nil)
2137
+ @display_preference = display_preference
2138
+ end
2139
+ end
2140
+
2141
+ class Klarna < Stripe::RequestParams
2142
+ class DisplayPreference < Stripe::RequestParams
2143
+ # The account's preference for whether or not to display this payment method.
2144
+ attr_accessor :preference
2145
+
2146
+ def initialize(preference: nil)
2147
+ @preference = preference
2148
+ end
2149
+ end
2150
+ # Whether or not the payment method should be displayed.
2151
+ attr_accessor :display_preference
2152
+
2153
+ def initialize(display_preference: nil)
2154
+ @display_preference = display_preference
2155
+ end
2156
+ end
2157
+
2158
+ class Konbini < Stripe::RequestParams
2159
+ class DisplayPreference < Stripe::RequestParams
2160
+ # The account's preference for whether or not to display this payment method.
2161
+ attr_accessor :preference
2162
+
2163
+ def initialize(preference: nil)
2164
+ @preference = preference
2165
+ end
2166
+ end
2167
+ # Whether or not the payment method should be displayed.
2168
+ attr_accessor :display_preference
2169
+
2170
+ def initialize(display_preference: nil)
2171
+ @display_preference = display_preference
2172
+ end
2173
+ end
2174
+
2175
+ class Link < Stripe::RequestParams
2176
+ class DisplayPreference < Stripe::RequestParams
2177
+ # The account's preference for whether or not to display this payment method.
2178
+ attr_accessor :preference
2179
+
2180
+ def initialize(preference: nil)
2181
+ @preference = preference
2182
+ end
2183
+ end
2184
+ # Whether or not the payment method should be displayed.
2185
+ attr_accessor :display_preference
2186
+
2187
+ def initialize(display_preference: nil)
2188
+ @display_preference = display_preference
2189
+ end
2190
+ end
2191
+
2192
+ class Mobilepay < Stripe::RequestParams
2193
+ class DisplayPreference < Stripe::RequestParams
2194
+ # The account's preference for whether or not to display this payment method.
2195
+ attr_accessor :preference
2196
+
2197
+ def initialize(preference: nil)
2198
+ @preference = preference
2199
+ end
2200
+ end
2201
+ # Whether or not the payment method should be displayed.
2202
+ attr_accessor :display_preference
2203
+
2204
+ def initialize(display_preference: nil)
2205
+ @display_preference = display_preference
2206
+ end
2207
+ end
2208
+
2209
+ class Multibanco < Stripe::RequestParams
2210
+ class DisplayPreference < Stripe::RequestParams
2211
+ # The account's preference for whether or not to display this payment method.
2212
+ attr_accessor :preference
2213
+
2214
+ def initialize(preference: nil)
2215
+ @preference = preference
2216
+ end
2217
+ end
2218
+ # Whether or not the payment method should be displayed.
2219
+ attr_accessor :display_preference
2220
+
2221
+ def initialize(display_preference: nil)
2222
+ @display_preference = display_preference
2223
+ end
2224
+ end
2225
+
2226
+ class NzBankAccount < Stripe::RequestParams
2227
+ class DisplayPreference < Stripe::RequestParams
2228
+ # The account's preference for whether or not to display this payment method.
2229
+ attr_accessor :preference
2230
+
2231
+ def initialize(preference: nil)
2232
+ @preference = preference
2233
+ end
2234
+ end
2235
+ # Whether or not the payment method should be displayed.
2236
+ attr_accessor :display_preference
2237
+
2238
+ def initialize(display_preference: nil)
2239
+ @display_preference = display_preference
2240
+ end
2241
+ end
2242
+
2243
+ class Oxxo < Stripe::RequestParams
2244
+ class DisplayPreference < Stripe::RequestParams
2245
+ # The account's preference for whether or not to display this payment method.
2246
+ attr_accessor :preference
2247
+
2248
+ def initialize(preference: nil)
2249
+ @preference = preference
2250
+ end
2251
+ end
2252
+ # Whether or not the payment method should be displayed.
2253
+ attr_accessor :display_preference
2254
+
2255
+ def initialize(display_preference: nil)
2256
+ @display_preference = display_preference
2257
+ end
2258
+ end
2259
+
2260
+ class P24 < Stripe::RequestParams
2261
+ class DisplayPreference < Stripe::RequestParams
2262
+ # The account's preference for whether or not to display this payment method.
2263
+ attr_accessor :preference
2264
+
2265
+ def initialize(preference: nil)
2266
+ @preference = preference
2267
+ end
2268
+ end
2269
+ # Whether or not the payment method should be displayed.
2270
+ attr_accessor :display_preference
2271
+
2272
+ def initialize(display_preference: nil)
2273
+ @display_preference = display_preference
2274
+ end
2275
+ end
2276
+
2277
+ class PayByBank < Stripe::RequestParams
2278
+ class DisplayPreference < Stripe::RequestParams
2279
+ # The account's preference for whether or not to display this payment method.
2280
+ attr_accessor :preference
2281
+
2282
+ def initialize(preference: nil)
2283
+ @preference = preference
2284
+ end
2285
+ end
2286
+ # Whether or not the payment method should be displayed.
2287
+ attr_accessor :display_preference
2288
+
2289
+ def initialize(display_preference: nil)
2290
+ @display_preference = display_preference
2291
+ end
2292
+ end
2293
+
2294
+ class Paynow < Stripe::RequestParams
2295
+ class DisplayPreference < Stripe::RequestParams
2296
+ # The account's preference for whether or not to display this payment method.
2297
+ attr_accessor :preference
2298
+
2299
+ def initialize(preference: nil)
2300
+ @preference = preference
2301
+ end
2302
+ end
2303
+ # Whether or not the payment method should be displayed.
2304
+ attr_accessor :display_preference
2305
+
2306
+ def initialize(display_preference: nil)
2307
+ @display_preference = display_preference
2308
+ end
2309
+ end
2310
+
2311
+ class Paypal < Stripe::RequestParams
2312
+ class DisplayPreference < Stripe::RequestParams
2313
+ # The account's preference for whether or not to display this payment method.
2314
+ attr_accessor :preference
2315
+
2316
+ def initialize(preference: nil)
2317
+ @preference = preference
2318
+ end
2319
+ end
2320
+ # Whether or not the payment method should be displayed.
2321
+ attr_accessor :display_preference
2322
+
2323
+ def initialize(display_preference: nil)
2324
+ @display_preference = display_preference
2325
+ end
2326
+ end
2327
+
2328
+ class Promptpay < Stripe::RequestParams
2329
+ class DisplayPreference < Stripe::RequestParams
2330
+ # The account's preference for whether or not to display this payment method.
2331
+ attr_accessor :preference
2332
+
2333
+ def initialize(preference: nil)
2334
+ @preference = preference
2335
+ end
2336
+ end
2337
+ # Whether or not the payment method should be displayed.
2338
+ attr_accessor :display_preference
2339
+
2340
+ def initialize(display_preference: nil)
2341
+ @display_preference = display_preference
2342
+ end
2343
+ end
2344
+
2345
+ class RevolutPay < Stripe::RequestParams
2346
+ class DisplayPreference < Stripe::RequestParams
2347
+ # The account's preference for whether or not to display this payment method.
2348
+ attr_accessor :preference
2349
+
2350
+ def initialize(preference: nil)
2351
+ @preference = preference
2352
+ end
2353
+ end
2354
+ # Whether or not the payment method should be displayed.
2355
+ attr_accessor :display_preference
2356
+
2357
+ def initialize(display_preference: nil)
2358
+ @display_preference = display_preference
2359
+ end
2360
+ end
2361
+
2362
+ class Satispay < Stripe::RequestParams
2363
+ class DisplayPreference < Stripe::RequestParams
2364
+ # The account's preference for whether or not to display this payment method.
2365
+ attr_accessor :preference
2366
+
2367
+ def initialize(preference: nil)
2368
+ @preference = preference
2369
+ end
2370
+ end
2371
+ # Whether or not the payment method should be displayed.
2372
+ attr_accessor :display_preference
2373
+
2374
+ def initialize(display_preference: nil)
2375
+ @display_preference = display_preference
2376
+ end
2377
+ end
2378
+
2379
+ class SepaDebit < Stripe::RequestParams
2380
+ class DisplayPreference < Stripe::RequestParams
2381
+ # The account's preference for whether or not to display this payment method.
2382
+ attr_accessor :preference
2383
+
2384
+ def initialize(preference: nil)
2385
+ @preference = preference
2386
+ end
2387
+ end
2388
+ # Whether or not the payment method should be displayed.
2389
+ attr_accessor :display_preference
2390
+
2391
+ def initialize(display_preference: nil)
2392
+ @display_preference = display_preference
2393
+ end
2394
+ end
2395
+
2396
+ class Sofort < Stripe::RequestParams
2397
+ class DisplayPreference < Stripe::RequestParams
2398
+ # The account's preference for whether or not to display this payment method.
2399
+ attr_accessor :preference
2400
+
2401
+ def initialize(preference: nil)
2402
+ @preference = preference
2403
+ end
2404
+ end
2405
+ # Whether or not the payment method should be displayed.
2406
+ attr_accessor :display_preference
2407
+
2408
+ def initialize(display_preference: nil)
2409
+ @display_preference = display_preference
2410
+ end
2411
+ end
2412
+
2413
+ class Swish < Stripe::RequestParams
2414
+ class DisplayPreference < Stripe::RequestParams
2415
+ # The account's preference for whether or not to display this payment method.
2416
+ attr_accessor :preference
2417
+
2418
+ def initialize(preference: nil)
2419
+ @preference = preference
2420
+ end
2421
+ end
2422
+ # Whether or not the payment method should be displayed.
2423
+ attr_accessor :display_preference
2424
+
2425
+ def initialize(display_preference: nil)
2426
+ @display_preference = display_preference
2427
+ end
2428
+ end
2429
+
2430
+ class Twint < Stripe::RequestParams
2431
+ class DisplayPreference < Stripe::RequestParams
2432
+ # The account's preference for whether or not to display this payment method.
2433
+ attr_accessor :preference
2434
+
2435
+ def initialize(preference: nil)
2436
+ @preference = preference
2437
+ end
2438
+ end
2439
+ # Whether or not the payment method should be displayed.
2440
+ attr_accessor :display_preference
2441
+
2442
+ def initialize(display_preference: nil)
2443
+ @display_preference = display_preference
2444
+ end
2445
+ end
2446
+
2447
+ class UsBankAccount < Stripe::RequestParams
2448
+ class DisplayPreference < Stripe::RequestParams
2449
+ # The account's preference for whether or not to display this payment method.
2450
+ attr_accessor :preference
2451
+
2452
+ def initialize(preference: nil)
2453
+ @preference = preference
2454
+ end
2455
+ end
2456
+ # Whether or not the payment method should be displayed.
2457
+ attr_accessor :display_preference
2458
+
2459
+ def initialize(display_preference: nil)
2460
+ @display_preference = display_preference
2461
+ end
2462
+ end
2463
+
2464
+ class WechatPay < Stripe::RequestParams
2465
+ class DisplayPreference < Stripe::RequestParams
2466
+ # The account's preference for whether or not to display this payment method.
2467
+ attr_accessor :preference
2468
+
2469
+ def initialize(preference: nil)
2470
+ @preference = preference
2471
+ end
2472
+ end
2473
+ # Whether or not the payment method should be displayed.
2474
+ attr_accessor :display_preference
2475
+
2476
+ def initialize(display_preference: nil)
2477
+ @display_preference = display_preference
2478
+ end
2479
+ end
2480
+
2481
+ class Zip < Stripe::RequestParams
2482
+ class DisplayPreference < Stripe::RequestParams
2483
+ # The account's preference for whether or not to display this payment method.
2484
+ attr_accessor :preference
2485
+
2486
+ def initialize(preference: nil)
2487
+ @preference = preference
2488
+ end
2489
+ end
2490
+ # Whether or not the payment method should be displayed.
2491
+ attr_accessor :display_preference
2492
+
2493
+ def initialize(display_preference: nil)
2494
+ @display_preference = display_preference
2495
+ end
2496
+ end
2497
+ # Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability.
2498
+ attr_accessor :acss_debit
2499
+ # Whether the configuration can be used for new payments.
2500
+ attr_accessor :active
2501
+ # [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.
2502
+ attr_accessor :affirm
2503
+ # 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.
2504
+ attr_accessor :afterpay_clearpay
2505
+ # 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.
2506
+ attr_accessor :alipay
2507
+ # Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
2508
+ attr_accessor :alma
2509
+ # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
2510
+ attr_accessor :amazon_pay
2511
+ # 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.
2512
+ attr_accessor :apple_pay
2513
+ # 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.
2514
+ attr_accessor :apple_pay_later
2515
+ # 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.
2516
+ attr_accessor :au_becs_debit
2517
+ # 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.
2518
+ attr_accessor :bacs_debit
2519
+ # 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.
2520
+ attr_accessor :bancontact
2521
+ # 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.
2522
+ attr_accessor :billie
2523
+ # 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.
2524
+ attr_accessor :blik
2525
+ # 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.
2526
+ attr_accessor :boleto
2527
+ # Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.
2528
+ attr_accessor :card
2529
+ # 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.
2530
+ attr_accessor :cartes_bancaires
2531
+ # 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.
2532
+ attr_accessor :cashapp
2533
+ # 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.
2534
+ attr_accessor :customer_balance
2535
+ # 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.
2536
+ attr_accessor :eps
2537
+ # Specifies which fields in the response should be expanded.
2538
+ attr_accessor :expand
2539
+ # 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.
2540
+ attr_accessor :fpx
2541
+ # 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.
2542
+ attr_accessor :giropay
2543
+ # 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.
2544
+ attr_accessor :google_pay
2545
+ # 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.
2546
+ attr_accessor :grabpay
2547
+ # 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.
2548
+ attr_accessor :ideal
2549
+ # 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.
2550
+ attr_accessor :jcb
2551
+ # 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.
2552
+ attr_accessor :klarna
2553
+ # 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.
2554
+ attr_accessor :konbini
2555
+ # [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.
2556
+ attr_accessor :link
2557
+ # 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.
2558
+ attr_accessor :mobilepay
2559
+ # 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.
2560
+ attr_accessor :multibanco
2561
+ # Configuration name.
2562
+ attr_accessor :name
2563
+ # 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.
2564
+ attr_accessor :nz_bank_account
2565
+ # 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.
2566
+ attr_accessor :oxxo
2567
+ # 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.
2568
+ attr_accessor :p24
2569
+ # 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.
2570
+ attr_accessor :pay_by_bank
2571
+ # 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.
2572
+ attr_accessor :paynow
2573
+ # 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.
2574
+ attr_accessor :paypal
2575
+ # 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.
2576
+ attr_accessor :promptpay
2577
+ # 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.
2578
+ attr_accessor :revolut_pay
2579
+ # 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.
2580
+ attr_accessor :satispay
2581
+ # 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.
2582
+ attr_accessor :sepa_debit
2583
+ # 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.
2584
+ attr_accessor :sofort
2585
+ # 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.
2586
+ attr_accessor :swish
2587
+ # 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.
2588
+ attr_accessor :twint
2589
+ # 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.
2590
+ attr_accessor :us_bank_account
2591
+ # 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.
2592
+ attr_accessor :wechat_pay
2593
+ # 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.
2594
+ attr_accessor :zip
2595
+
2596
+ def initialize(
2597
+ acss_debit: nil,
2598
+ active: nil,
2599
+ affirm: nil,
2600
+ afterpay_clearpay: nil,
2601
+ alipay: nil,
2602
+ alma: nil,
2603
+ amazon_pay: nil,
2604
+ apple_pay: nil,
2605
+ apple_pay_later: nil,
2606
+ au_becs_debit: nil,
2607
+ bacs_debit: nil,
2608
+ bancontact: nil,
2609
+ billie: nil,
2610
+ blik: nil,
2611
+ boleto: nil,
2612
+ card: nil,
2613
+ cartes_bancaires: nil,
2614
+ cashapp: nil,
2615
+ customer_balance: nil,
2616
+ eps: nil,
2617
+ expand: nil,
2618
+ fpx: nil,
2619
+ giropay: nil,
2620
+ google_pay: nil,
2621
+ grabpay: nil,
2622
+ ideal: nil,
2623
+ jcb: nil,
2624
+ klarna: nil,
2625
+ konbini: nil,
2626
+ link: nil,
2627
+ mobilepay: nil,
2628
+ multibanco: nil,
2629
+ name: nil,
2630
+ nz_bank_account: nil,
2631
+ oxxo: nil,
2632
+ p24: nil,
2633
+ pay_by_bank: nil,
2634
+ paynow: nil,
2635
+ paypal: nil,
2636
+ promptpay: nil,
2637
+ revolut_pay: nil,
2638
+ satispay: nil,
2639
+ sepa_debit: nil,
2640
+ sofort: nil,
2641
+ swish: nil,
2642
+ twint: nil,
2643
+ us_bank_account: nil,
2644
+ wechat_pay: nil,
2645
+ zip: nil
2646
+ )
2647
+ @acss_debit = acss_debit
2648
+ @active = active
2649
+ @affirm = affirm
2650
+ @afterpay_clearpay = afterpay_clearpay
2651
+ @alipay = alipay
2652
+ @alma = alma
2653
+ @amazon_pay = amazon_pay
2654
+ @apple_pay = apple_pay
2655
+ @apple_pay_later = apple_pay_later
2656
+ @au_becs_debit = au_becs_debit
2657
+ @bacs_debit = bacs_debit
2658
+ @bancontact = bancontact
2659
+ @billie = billie
2660
+ @blik = blik
2661
+ @boleto = boleto
2662
+ @card = card
2663
+ @cartes_bancaires = cartes_bancaires
2664
+ @cashapp = cashapp
2665
+ @customer_balance = customer_balance
2666
+ @eps = eps
2667
+ @expand = expand
2668
+ @fpx = fpx
2669
+ @giropay = giropay
2670
+ @google_pay = google_pay
2671
+ @grabpay = grabpay
2672
+ @ideal = ideal
2673
+ @jcb = jcb
2674
+ @klarna = klarna
2675
+ @konbini = konbini
2676
+ @link = link
2677
+ @mobilepay = mobilepay
2678
+ @multibanco = multibanco
2679
+ @name = name
2680
+ @nz_bank_account = nz_bank_account
2681
+ @oxxo = oxxo
2682
+ @p24 = p24
2683
+ @pay_by_bank = pay_by_bank
2684
+ @paynow = paynow
2685
+ @paypal = paypal
2686
+ @promptpay = promptpay
2687
+ @revolut_pay = revolut_pay
2688
+ @satispay = satispay
2689
+ @sepa_debit = sepa_debit
2690
+ @sofort = sofort
2691
+ @swish = swish
2692
+ @twint = twint
2693
+ @us_bank_account = us_bank_account
2694
+ @wechat_pay = wechat_pay
2695
+ @zip = zip
2696
+ end
2697
+ end
2698
+ # Attribute for field acss_debit
2699
+ attr_reader :acss_debit
2700
+ # Whether the configuration can be used for new payments.
2701
+ attr_reader :active
2702
+ # Attribute for field affirm
2703
+ attr_reader :affirm
2704
+ # Attribute for field afterpay_clearpay
2705
+ attr_reader :afterpay_clearpay
2706
+ # Attribute for field alipay
2707
+ attr_reader :alipay
2708
+ # Attribute for field alma
2709
+ attr_reader :alma
2710
+ # Attribute for field amazon_pay
2711
+ attr_reader :amazon_pay
2712
+ # Attribute for field apple_pay
2713
+ attr_reader :apple_pay
2714
+ # For child configs, the Connect application associated with the configuration.
2715
+ attr_reader :application
2716
+ # Attribute for field au_becs_debit
2717
+ attr_reader :au_becs_debit
2718
+ # Attribute for field bacs_debit
2719
+ attr_reader :bacs_debit
2720
+ # Attribute for field bancontact
2721
+ attr_reader :bancontact
2722
+ # Attribute for field billie
2723
+ attr_reader :billie
2724
+ # Attribute for field blik
2725
+ attr_reader :blik
2726
+ # Attribute for field boleto
2727
+ attr_reader :boleto
2728
+ # Attribute for field card
2729
+ attr_reader :card
2730
+ # Attribute for field cartes_bancaires
2731
+ attr_reader :cartes_bancaires
2732
+ # Attribute for field cashapp
2733
+ attr_reader :cashapp
2734
+ # Attribute for field customer_balance
2735
+ attr_reader :customer_balance
2736
+ # Attribute for field eps
2737
+ attr_reader :eps
2738
+ # Attribute for field fpx
2739
+ attr_reader :fpx
2740
+ # Attribute for field giropay
2741
+ attr_reader :giropay
2742
+ # Attribute for field google_pay
2743
+ attr_reader :google_pay
2744
+ # Attribute for field grabpay
2745
+ attr_reader :grabpay
2746
+ # Unique identifier for the object.
2747
+ attr_reader :id
2748
+ # Attribute for field ideal
2749
+ attr_reader :ideal
2750
+ # The default configuration is used whenever a payment method configuration is not specified.
2751
+ attr_reader :is_default
2752
+ # Attribute for field jcb
2753
+ attr_reader :jcb
2754
+ # Attribute for field klarna
2755
+ attr_reader :klarna
2756
+ # Attribute for field konbini
2757
+ attr_reader :konbini
2758
+ # Attribute for field link
2759
+ attr_reader :link
2760
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2761
+ attr_reader :livemode
2762
+ # Attribute for field mobilepay
2763
+ attr_reader :mobilepay
2764
+ # Attribute for field multibanco
2765
+ attr_reader :multibanco
2766
+ # The configuration's name.
2767
+ attr_reader :name
2768
+ # Attribute for field nz_bank_account
2769
+ attr_reader :nz_bank_account
2770
+ # String representing the object's type. Objects of the same type share the same value.
2771
+ attr_reader :object
2772
+ # Attribute for field oxxo
2773
+ attr_reader :oxxo
2774
+ # Attribute for field p24
2775
+ attr_reader :p24
2776
+ # For child configs, the configuration's parent configuration.
2777
+ attr_reader :parent
2778
+ # Attribute for field pay_by_bank
2779
+ attr_reader :pay_by_bank
2780
+ # Attribute for field paynow
2781
+ attr_reader :paynow
2782
+ # Attribute for field paypal
2783
+ attr_reader :paypal
2784
+ # Attribute for field promptpay
2785
+ attr_reader :promptpay
2786
+ # Attribute for field revolut_pay
2787
+ attr_reader :revolut_pay
2788
+ # Attribute for field satispay
2789
+ attr_reader :satispay
2790
+ # Attribute for field sepa_debit
2791
+ attr_reader :sepa_debit
2792
+ # Attribute for field sofort
2793
+ attr_reader :sofort
2794
+ # Attribute for field swish
2795
+ attr_reader :swish
2796
+ # Attribute for field twint
2797
+ attr_reader :twint
2798
+ # Attribute for field us_bank_account
2799
+ attr_reader :us_bank_account
2800
+ # Attribute for field wechat_pay
2801
+ attr_reader :wechat_pay
2802
+ # Attribute for field zip
2803
+ attr_reader :zip
2804
+
29
2805
  # Creates a payment method configuration
30
2806
  def self.create(params = {}, opts = {})
31
2807
  request_stripe_object(
@@ -37,20 +2813,20 @@ module Stripe
37
2813
  end
38
2814
 
39
2815
  # List payment method configurations
40
- def self.list(filters = {}, opts = {})
2816
+ def self.list(params = {}, opts = {})
41
2817
  request_stripe_object(
42
2818
  method: :get,
43
2819
  path: "/v1/payment_method_configurations",
44
- params: filters,
2820
+ params: params,
45
2821
  opts: opts
46
2822
  )
47
2823
  end
48
2824
 
49
2825
  # Update payment method configuration
50
- def self.update(id, params = {}, opts = {})
2826
+ def self.update(configuration, params = {}, opts = {})
51
2827
  request_stripe_object(
52
2828
  method: :post,
53
- path: format("/v1/payment_method_configurations/%<id>s", { id: CGI.escape(id) }),
2829
+ path: format("/v1/payment_method_configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
54
2830
  params: params,
55
2831
  opts: opts
56
2832
  )