stripe 13.3.0 → 13.4.0.pre.beta.2

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