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
@@ -13,6 +13,4357 @@ module Stripe
13
13
  @persons = Stripe::AccountPersonService.new(@requestor)
14
14
  end
15
15
 
16
+ class DeleteParams < Stripe::RequestParams
17
+ end
18
+
19
+ class RetrieveParams < Stripe::RequestParams
20
+ # Specifies which fields in the response should be expanded.
21
+ attr_accessor :expand
22
+
23
+ def initialize(expand: nil)
24
+ @expand = expand
25
+ end
26
+ end
27
+
28
+ class UpdateParams < Stripe::RequestParams
29
+ class BankAccount < Stripe::RequestParams
30
+ # Attribute for param field object
31
+ attr_accessor :object
32
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
33
+ attr_accessor :account_holder_name
34
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
35
+ attr_accessor :account_holder_type
36
+ # The account number for the bank account, in string form. Must be a checking account.
37
+ attr_accessor :account_number
38
+ # The country in which the bank account is located.
39
+ attr_accessor :country
40
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
41
+ attr_accessor :currency
42
+ # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
43
+ attr_accessor :routing_number
44
+
45
+ def initialize(
46
+ object: nil,
47
+ account_holder_name: nil,
48
+ account_holder_type: nil,
49
+ account_number: nil,
50
+ country: nil,
51
+ currency: nil,
52
+ routing_number: nil
53
+ )
54
+ @object = object
55
+ @account_holder_name = account_holder_name
56
+ @account_holder_type = account_holder_type
57
+ @account_number = account_number
58
+ @country = country
59
+ @currency = currency
60
+ @routing_number = routing_number
61
+ end
62
+ end
63
+
64
+ class BusinessProfile < Stripe::RequestParams
65
+ class AnnualRevenue < Stripe::RequestParams
66
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
67
+ attr_accessor :amount
68
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
69
+ attr_accessor :currency
70
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
71
+ attr_accessor :fiscal_year_end
72
+
73
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
74
+ @amount = amount
75
+ @currency = currency
76
+ @fiscal_year_end = fiscal_year_end
77
+ end
78
+ end
79
+
80
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
81
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
82
+ attr_accessor :amount
83
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
84
+ attr_accessor :currency
85
+
86
+ def initialize(amount: nil, currency: nil)
87
+ @amount = amount
88
+ @currency = currency
89
+ end
90
+ end
91
+
92
+ class SupportAddress < Stripe::RequestParams
93
+ # City, district, suburb, town, or village.
94
+ attr_accessor :city
95
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
96
+ attr_accessor :country
97
+ # Address line 1 (e.g., street, PO Box, or company name).
98
+ attr_accessor :line1
99
+ # Address line 2 (e.g., apartment, suite, unit, or building).
100
+ attr_accessor :line2
101
+ # ZIP or postal code.
102
+ attr_accessor :postal_code
103
+ # State, county, province, or region.
104
+ attr_accessor :state
105
+
106
+ def initialize(
107
+ city: nil,
108
+ country: nil,
109
+ line1: nil,
110
+ line2: nil,
111
+ postal_code: nil,
112
+ state: nil
113
+ )
114
+ @city = city
115
+ @country = country
116
+ @line1 = line1
117
+ @line2 = line2
118
+ @postal_code = postal_code
119
+ @state = state
120
+ end
121
+ end
122
+ # The applicant's gross annual revenue for its preceding fiscal year.
123
+ attr_accessor :annual_revenue
124
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
125
+ attr_accessor :estimated_worker_count
126
+ # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
127
+ attr_accessor :mcc
128
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
129
+ attr_accessor :monthly_estimated_revenue
130
+ # The customer-facing business name.
131
+ attr_accessor :name
132
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
133
+ attr_accessor :product_description
134
+ # A publicly available mailing address for sending support issues to.
135
+ attr_accessor :support_address
136
+ # A publicly available email address for sending support issues to.
137
+ attr_accessor :support_email
138
+ # A publicly available phone number to call with support issues.
139
+ attr_accessor :support_phone
140
+ # A publicly available website for handling support issues.
141
+ attr_accessor :support_url
142
+ # The business's publicly available website.
143
+ attr_accessor :url
144
+
145
+ def initialize(
146
+ annual_revenue: nil,
147
+ estimated_worker_count: nil,
148
+ mcc: nil,
149
+ monthly_estimated_revenue: nil,
150
+ name: nil,
151
+ product_description: nil,
152
+ support_address: nil,
153
+ support_email: nil,
154
+ support_phone: nil,
155
+ support_url: nil,
156
+ url: nil
157
+ )
158
+ @annual_revenue = annual_revenue
159
+ @estimated_worker_count = estimated_worker_count
160
+ @mcc = mcc
161
+ @monthly_estimated_revenue = monthly_estimated_revenue
162
+ @name = name
163
+ @product_description = product_description
164
+ @support_address = support_address
165
+ @support_email = support_email
166
+ @support_phone = support_phone
167
+ @support_url = support_url
168
+ @url = url
169
+ end
170
+ end
171
+
172
+ class Capabilities < Stripe::RequestParams
173
+ class AcssDebitPayments < Stripe::RequestParams
174
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
175
+ attr_accessor :requested
176
+
177
+ def initialize(requested: nil)
178
+ @requested = requested
179
+ end
180
+ end
181
+
182
+ class AffirmPayments < Stripe::RequestParams
183
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
184
+ attr_accessor :requested
185
+
186
+ def initialize(requested: nil)
187
+ @requested = requested
188
+ end
189
+ end
190
+
191
+ class AfterpayClearpayPayments < Stripe::RequestParams
192
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
193
+ attr_accessor :requested
194
+
195
+ def initialize(requested: nil)
196
+ @requested = requested
197
+ end
198
+ end
199
+
200
+ class AlmaPayments < Stripe::RequestParams
201
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
202
+ attr_accessor :requested
203
+
204
+ def initialize(requested: nil)
205
+ @requested = requested
206
+ end
207
+ end
208
+
209
+ class AmazonPayPayments < Stripe::RequestParams
210
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
211
+ attr_accessor :requested
212
+
213
+ def initialize(requested: nil)
214
+ @requested = requested
215
+ end
216
+ end
217
+
218
+ class AuBecsDebitPayments < Stripe::RequestParams
219
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
220
+ attr_accessor :requested
221
+
222
+ def initialize(requested: nil)
223
+ @requested = requested
224
+ end
225
+ end
226
+
227
+ class AutomaticIndirectTax < Stripe::RequestParams
228
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
229
+ attr_accessor :requested
230
+
231
+ def initialize(requested: nil)
232
+ @requested = requested
233
+ end
234
+ end
235
+
236
+ class BacsDebitPayments < Stripe::RequestParams
237
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
238
+ attr_accessor :requested
239
+
240
+ def initialize(requested: nil)
241
+ @requested = requested
242
+ end
243
+ end
244
+
245
+ class BancontactPayments < Stripe::RequestParams
246
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
247
+ attr_accessor :requested
248
+
249
+ def initialize(requested: nil)
250
+ @requested = requested
251
+ end
252
+ end
253
+
254
+ class BankTransferPayments < Stripe::RequestParams
255
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
256
+ attr_accessor :requested
257
+
258
+ def initialize(requested: nil)
259
+ @requested = requested
260
+ end
261
+ end
262
+
263
+ class BlikPayments < Stripe::RequestParams
264
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
265
+ attr_accessor :requested
266
+
267
+ def initialize(requested: nil)
268
+ @requested = requested
269
+ end
270
+ end
271
+
272
+ class BoletoPayments < Stripe::RequestParams
273
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
274
+ attr_accessor :requested
275
+
276
+ def initialize(requested: nil)
277
+ @requested = requested
278
+ end
279
+ end
280
+
281
+ class CardIssuing < Stripe::RequestParams
282
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
283
+ attr_accessor :requested
284
+
285
+ def initialize(requested: nil)
286
+ @requested = requested
287
+ end
288
+ end
289
+
290
+ class CardPayments < Stripe::RequestParams
291
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
292
+ attr_accessor :requested
293
+
294
+ def initialize(requested: nil)
295
+ @requested = requested
296
+ end
297
+ end
298
+
299
+ class CartesBancairesPayments < Stripe::RequestParams
300
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
301
+ attr_accessor :requested
302
+
303
+ def initialize(requested: nil)
304
+ @requested = requested
305
+ end
306
+ end
307
+
308
+ class CashappPayments < Stripe::RequestParams
309
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
310
+ attr_accessor :requested
311
+
312
+ def initialize(requested: nil)
313
+ @requested = requested
314
+ end
315
+ end
316
+
317
+ class EpsPayments < Stripe::RequestParams
318
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
319
+ attr_accessor :requested
320
+
321
+ def initialize(requested: nil)
322
+ @requested = requested
323
+ end
324
+ end
325
+
326
+ class FpxPayments < Stripe::RequestParams
327
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
328
+ attr_accessor :requested
329
+
330
+ def initialize(requested: nil)
331
+ @requested = requested
332
+ end
333
+ end
334
+
335
+ class GbBankTransferPayments < Stripe::RequestParams
336
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
337
+ attr_accessor :requested
338
+
339
+ def initialize(requested: nil)
340
+ @requested = requested
341
+ end
342
+ end
343
+
344
+ class GiropayPayments < Stripe::RequestParams
345
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
346
+ attr_accessor :requested
347
+
348
+ def initialize(requested: nil)
349
+ @requested = requested
350
+ end
351
+ end
352
+
353
+ class GopayPayments < Stripe::RequestParams
354
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
355
+ attr_accessor :requested
356
+
357
+ def initialize(requested: nil)
358
+ @requested = requested
359
+ end
360
+ end
361
+
362
+ class GrabpayPayments < Stripe::RequestParams
363
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
364
+ attr_accessor :requested
365
+
366
+ def initialize(requested: nil)
367
+ @requested = requested
368
+ end
369
+ end
370
+
371
+ class IdBankTransferPayments < Stripe::RequestParams
372
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
373
+ attr_accessor :requested
374
+
375
+ def initialize(requested: nil)
376
+ @requested = requested
377
+ end
378
+ end
379
+
380
+ class IdBankTransferPaymentsBca < Stripe::RequestParams
381
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
382
+ attr_accessor :requested
383
+
384
+ def initialize(requested: nil)
385
+ @requested = requested
386
+ end
387
+ end
388
+
389
+ class IdealPayments < Stripe::RequestParams
390
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
391
+ attr_accessor :requested
392
+
393
+ def initialize(requested: nil)
394
+ @requested = requested
395
+ end
396
+ end
397
+
398
+ class IndiaInternationalPayments < Stripe::RequestParams
399
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
400
+ attr_accessor :requested
401
+
402
+ def initialize(requested: nil)
403
+ @requested = requested
404
+ end
405
+ end
406
+
407
+ class JcbPayments < Stripe::RequestParams
408
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
409
+ attr_accessor :requested
410
+
411
+ def initialize(requested: nil)
412
+ @requested = requested
413
+ end
414
+ end
415
+
416
+ class JpBankTransferPayments < Stripe::RequestParams
417
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
418
+ attr_accessor :requested
419
+
420
+ def initialize(requested: nil)
421
+ @requested = requested
422
+ end
423
+ end
424
+
425
+ class KakaoPayPayments < Stripe::RequestParams
426
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
427
+ attr_accessor :requested
428
+
429
+ def initialize(requested: nil)
430
+ @requested = requested
431
+ end
432
+ end
433
+
434
+ class KlarnaPayments < Stripe::RequestParams
435
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
436
+ attr_accessor :requested
437
+
438
+ def initialize(requested: nil)
439
+ @requested = requested
440
+ end
441
+ end
442
+
443
+ class KonbiniPayments < Stripe::RequestParams
444
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
445
+ attr_accessor :requested
446
+
447
+ def initialize(requested: nil)
448
+ @requested = requested
449
+ end
450
+ end
451
+
452
+ class KrCardPayments < Stripe::RequestParams
453
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
454
+ attr_accessor :requested
455
+
456
+ def initialize(requested: nil)
457
+ @requested = requested
458
+ end
459
+ end
460
+
461
+ class LegacyPayments < Stripe::RequestParams
462
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
463
+ attr_accessor :requested
464
+
465
+ def initialize(requested: nil)
466
+ @requested = requested
467
+ end
468
+ end
469
+
470
+ class LinkPayments < Stripe::RequestParams
471
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
472
+ attr_accessor :requested
473
+
474
+ def initialize(requested: nil)
475
+ @requested = requested
476
+ end
477
+ end
478
+
479
+ class MbWayPayments < Stripe::RequestParams
480
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
481
+ attr_accessor :requested
482
+
483
+ def initialize(requested: nil)
484
+ @requested = requested
485
+ end
486
+ end
487
+
488
+ class MobilepayPayments < Stripe::RequestParams
489
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
490
+ attr_accessor :requested
491
+
492
+ def initialize(requested: nil)
493
+ @requested = requested
494
+ end
495
+ end
496
+
497
+ class MultibancoPayments < Stripe::RequestParams
498
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
499
+ attr_accessor :requested
500
+
501
+ def initialize(requested: nil)
502
+ @requested = requested
503
+ end
504
+ end
505
+
506
+ class MxBankTransferPayments < Stripe::RequestParams
507
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
508
+ attr_accessor :requested
509
+
510
+ def initialize(requested: nil)
511
+ @requested = requested
512
+ end
513
+ end
514
+
515
+ class NaverPayPayments < Stripe::RequestParams
516
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
517
+ attr_accessor :requested
518
+
519
+ def initialize(requested: nil)
520
+ @requested = requested
521
+ end
522
+ end
523
+
524
+ class OxxoPayments < Stripe::RequestParams
525
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
526
+ attr_accessor :requested
527
+
528
+ def initialize(requested: nil)
529
+ @requested = requested
530
+ end
531
+ end
532
+
533
+ class P24Payments < Stripe::RequestParams
534
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
535
+ attr_accessor :requested
536
+
537
+ def initialize(requested: nil)
538
+ @requested = requested
539
+ end
540
+ end
541
+
542
+ class PaycoPayments < Stripe::RequestParams
543
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
544
+ attr_accessor :requested
545
+
546
+ def initialize(requested: nil)
547
+ @requested = requested
548
+ end
549
+ end
550
+
551
+ class PaynowPayments < Stripe::RequestParams
552
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
553
+ attr_accessor :requested
554
+
555
+ def initialize(requested: nil)
556
+ @requested = requested
557
+ end
558
+ end
559
+
560
+ class PaypalPayments < Stripe::RequestParams
561
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
562
+ attr_accessor :requested
563
+
564
+ def initialize(requested: nil)
565
+ @requested = requested
566
+ end
567
+ end
568
+
569
+ class PaytoPayments < Stripe::RequestParams
570
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
571
+ attr_accessor :requested
572
+
573
+ def initialize(requested: nil)
574
+ @requested = requested
575
+ end
576
+ end
577
+
578
+ class PromptpayPayments < Stripe::RequestParams
579
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
580
+ attr_accessor :requested
581
+
582
+ def initialize(requested: nil)
583
+ @requested = requested
584
+ end
585
+ end
586
+
587
+ class QrisPayments < Stripe::RequestParams
588
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
589
+ attr_accessor :requested
590
+
591
+ def initialize(requested: nil)
592
+ @requested = requested
593
+ end
594
+ end
595
+
596
+ class RechnungPayments < Stripe::RequestParams
597
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
598
+ attr_accessor :requested
599
+
600
+ def initialize(requested: nil)
601
+ @requested = requested
602
+ end
603
+ end
604
+
605
+ class RevolutPayPayments < Stripe::RequestParams
606
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
607
+ attr_accessor :requested
608
+
609
+ def initialize(requested: nil)
610
+ @requested = requested
611
+ end
612
+ end
613
+
614
+ class SamsungPayPayments < Stripe::RequestParams
615
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
616
+ attr_accessor :requested
617
+
618
+ def initialize(requested: nil)
619
+ @requested = requested
620
+ end
621
+ end
622
+
623
+ class SepaBankTransferPayments < Stripe::RequestParams
624
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
625
+ attr_accessor :requested
626
+
627
+ def initialize(requested: nil)
628
+ @requested = requested
629
+ end
630
+ end
631
+
632
+ class SepaDebitPayments < Stripe::RequestParams
633
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
634
+ attr_accessor :requested
635
+
636
+ def initialize(requested: nil)
637
+ @requested = requested
638
+ end
639
+ end
640
+
641
+ class ShopeepayPayments < Stripe::RequestParams
642
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
643
+ attr_accessor :requested
644
+
645
+ def initialize(requested: nil)
646
+ @requested = requested
647
+ end
648
+ end
649
+
650
+ class SofortPayments < Stripe::RequestParams
651
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
652
+ attr_accessor :requested
653
+
654
+ def initialize(requested: nil)
655
+ @requested = requested
656
+ end
657
+ end
658
+
659
+ class SwishPayments < Stripe::RequestParams
660
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
661
+ attr_accessor :requested
662
+
663
+ def initialize(requested: nil)
664
+ @requested = requested
665
+ end
666
+ end
667
+
668
+ class TaxReportingUs1099K < Stripe::RequestParams
669
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
670
+ attr_accessor :requested
671
+
672
+ def initialize(requested: nil)
673
+ @requested = requested
674
+ end
675
+ end
676
+
677
+ class TaxReportingUs1099Misc < Stripe::RequestParams
678
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
679
+ attr_accessor :requested
680
+
681
+ def initialize(requested: nil)
682
+ @requested = requested
683
+ end
684
+ end
685
+
686
+ class Transfers < Stripe::RequestParams
687
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
688
+ attr_accessor :requested
689
+
690
+ def initialize(requested: nil)
691
+ @requested = requested
692
+ end
693
+ end
694
+
695
+ class Treasury < Stripe::RequestParams
696
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
697
+ attr_accessor :requested
698
+
699
+ def initialize(requested: nil)
700
+ @requested = requested
701
+ end
702
+ end
703
+
704
+ class TreasuryEvolve < Stripe::RequestParams
705
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
706
+ attr_accessor :requested
707
+
708
+ def initialize(requested: nil)
709
+ @requested = requested
710
+ end
711
+ end
712
+
713
+ class TreasuryFifthThird < Stripe::RequestParams
714
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
715
+ attr_accessor :requested
716
+
717
+ def initialize(requested: nil)
718
+ @requested = requested
719
+ end
720
+ end
721
+
722
+ class TreasuryGoldmanSachs < Stripe::RequestParams
723
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
724
+ attr_accessor :requested
725
+
726
+ def initialize(requested: nil)
727
+ @requested = requested
728
+ end
729
+ end
730
+
731
+ class TwintPayments < Stripe::RequestParams
732
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
733
+ attr_accessor :requested
734
+
735
+ def initialize(requested: nil)
736
+ @requested = requested
737
+ end
738
+ end
739
+
740
+ class UsBankAccountAchPayments < Stripe::RequestParams
741
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
742
+ attr_accessor :requested
743
+
744
+ def initialize(requested: nil)
745
+ @requested = requested
746
+ end
747
+ end
748
+
749
+ class UsBankTransferPayments < Stripe::RequestParams
750
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
751
+ attr_accessor :requested
752
+
753
+ def initialize(requested: nil)
754
+ @requested = requested
755
+ end
756
+ end
757
+
758
+ class ZipPayments < Stripe::RequestParams
759
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
760
+ attr_accessor :requested
761
+
762
+ def initialize(requested: nil)
763
+ @requested = requested
764
+ end
765
+ end
766
+ # The acss_debit_payments capability.
767
+ attr_accessor :acss_debit_payments
768
+ # The affirm_payments capability.
769
+ attr_accessor :affirm_payments
770
+ # The afterpay_clearpay_payments capability.
771
+ attr_accessor :afterpay_clearpay_payments
772
+ # The alma_payments capability.
773
+ attr_accessor :alma_payments
774
+ # The amazon_pay_payments capability.
775
+ attr_accessor :amazon_pay_payments
776
+ # The au_becs_debit_payments capability.
777
+ attr_accessor :au_becs_debit_payments
778
+ # The automatic_indirect_tax capability.
779
+ attr_accessor :automatic_indirect_tax
780
+ # The bacs_debit_payments capability.
781
+ attr_accessor :bacs_debit_payments
782
+ # The bancontact_payments capability.
783
+ attr_accessor :bancontact_payments
784
+ # The bank_transfer_payments capability.
785
+ attr_accessor :bank_transfer_payments
786
+ # The blik_payments capability.
787
+ attr_accessor :blik_payments
788
+ # The boleto_payments capability.
789
+ attr_accessor :boleto_payments
790
+ # The card_issuing capability.
791
+ attr_accessor :card_issuing
792
+ # The card_payments capability.
793
+ attr_accessor :card_payments
794
+ # The cartes_bancaires_payments capability.
795
+ attr_accessor :cartes_bancaires_payments
796
+ # The cashapp_payments capability.
797
+ attr_accessor :cashapp_payments
798
+ # The eps_payments capability.
799
+ attr_accessor :eps_payments
800
+ # The fpx_payments capability.
801
+ attr_accessor :fpx_payments
802
+ # The gb_bank_transfer_payments capability.
803
+ attr_accessor :gb_bank_transfer_payments
804
+ # The giropay_payments capability.
805
+ attr_accessor :giropay_payments
806
+ # The gopay_payments capability.
807
+ attr_accessor :gopay_payments
808
+ # The grabpay_payments capability.
809
+ attr_accessor :grabpay_payments
810
+ # The id_bank_transfer_payments capability.
811
+ attr_accessor :id_bank_transfer_payments
812
+ # The id_bank_transfer_payments_bca capability.
813
+ attr_accessor :id_bank_transfer_payments_bca
814
+ # The ideal_payments capability.
815
+ attr_accessor :ideal_payments
816
+ # The india_international_payments capability.
817
+ attr_accessor :india_international_payments
818
+ # The jcb_payments capability.
819
+ attr_accessor :jcb_payments
820
+ # The jp_bank_transfer_payments capability.
821
+ attr_accessor :jp_bank_transfer_payments
822
+ # The kakao_pay_payments capability.
823
+ attr_accessor :kakao_pay_payments
824
+ # The klarna_payments capability.
825
+ attr_accessor :klarna_payments
826
+ # The konbini_payments capability.
827
+ attr_accessor :konbini_payments
828
+ # The kr_card_payments capability.
829
+ attr_accessor :kr_card_payments
830
+ # The legacy_payments capability.
831
+ attr_accessor :legacy_payments
832
+ # The link_payments capability.
833
+ attr_accessor :link_payments
834
+ # The mb_way_payments capability.
835
+ attr_accessor :mb_way_payments
836
+ # The mobilepay_payments capability.
837
+ attr_accessor :mobilepay_payments
838
+ # The multibanco_payments capability.
839
+ attr_accessor :multibanco_payments
840
+ # The mx_bank_transfer_payments capability.
841
+ attr_accessor :mx_bank_transfer_payments
842
+ # The naver_pay_payments capability.
843
+ attr_accessor :naver_pay_payments
844
+ # The oxxo_payments capability.
845
+ attr_accessor :oxxo_payments
846
+ # The p24_payments capability.
847
+ attr_accessor :p24_payments
848
+ # The payco_payments capability.
849
+ attr_accessor :payco_payments
850
+ # The paynow_payments capability.
851
+ attr_accessor :paynow_payments
852
+ # The paypal_payments capability.
853
+ attr_accessor :paypal_payments
854
+ # The payto_payments capability.
855
+ attr_accessor :payto_payments
856
+ # The promptpay_payments capability.
857
+ attr_accessor :promptpay_payments
858
+ # The qris_payments capability.
859
+ attr_accessor :qris_payments
860
+ # The rechnung_payments capability.
861
+ attr_accessor :rechnung_payments
862
+ # The revolut_pay_payments capability.
863
+ attr_accessor :revolut_pay_payments
864
+ # The samsung_pay_payments capability.
865
+ attr_accessor :samsung_pay_payments
866
+ # The sepa_bank_transfer_payments capability.
867
+ attr_accessor :sepa_bank_transfer_payments
868
+ # The sepa_debit_payments capability.
869
+ attr_accessor :sepa_debit_payments
870
+ # The shopeepay_payments capability.
871
+ attr_accessor :shopeepay_payments
872
+ # The sofort_payments capability.
873
+ attr_accessor :sofort_payments
874
+ # The swish_payments capability.
875
+ attr_accessor :swish_payments
876
+ # The tax_reporting_us_1099_k capability.
877
+ attr_accessor :tax_reporting_us_1099_k
878
+ # The tax_reporting_us_1099_misc capability.
879
+ attr_accessor :tax_reporting_us_1099_misc
880
+ # The transfers capability.
881
+ attr_accessor :transfers
882
+ # The treasury capability.
883
+ attr_accessor :treasury
884
+ # The treasury_evolve capability.
885
+ attr_accessor :treasury_evolve
886
+ # The treasury_fifth_third capability.
887
+ attr_accessor :treasury_fifth_third
888
+ # The treasury_goldman_sachs capability.
889
+ attr_accessor :treasury_goldman_sachs
890
+ # The twint_payments capability.
891
+ attr_accessor :twint_payments
892
+ # The us_bank_account_ach_payments capability.
893
+ attr_accessor :us_bank_account_ach_payments
894
+ # The us_bank_transfer_payments capability.
895
+ attr_accessor :us_bank_transfer_payments
896
+ # The zip_payments capability.
897
+ attr_accessor :zip_payments
898
+
899
+ def initialize(
900
+ acss_debit_payments: nil,
901
+ affirm_payments: nil,
902
+ afterpay_clearpay_payments: nil,
903
+ alma_payments: nil,
904
+ amazon_pay_payments: nil,
905
+ au_becs_debit_payments: nil,
906
+ automatic_indirect_tax: nil,
907
+ bacs_debit_payments: nil,
908
+ bancontact_payments: nil,
909
+ bank_transfer_payments: nil,
910
+ blik_payments: nil,
911
+ boleto_payments: nil,
912
+ card_issuing: nil,
913
+ card_payments: nil,
914
+ cartes_bancaires_payments: nil,
915
+ cashapp_payments: nil,
916
+ eps_payments: nil,
917
+ fpx_payments: nil,
918
+ gb_bank_transfer_payments: nil,
919
+ giropay_payments: nil,
920
+ gopay_payments: nil,
921
+ grabpay_payments: nil,
922
+ id_bank_transfer_payments: nil,
923
+ id_bank_transfer_payments_bca: nil,
924
+ ideal_payments: nil,
925
+ india_international_payments: nil,
926
+ jcb_payments: nil,
927
+ jp_bank_transfer_payments: nil,
928
+ kakao_pay_payments: nil,
929
+ klarna_payments: nil,
930
+ konbini_payments: nil,
931
+ kr_card_payments: nil,
932
+ legacy_payments: nil,
933
+ link_payments: nil,
934
+ mb_way_payments: nil,
935
+ mobilepay_payments: nil,
936
+ multibanco_payments: nil,
937
+ mx_bank_transfer_payments: nil,
938
+ naver_pay_payments: nil,
939
+ oxxo_payments: nil,
940
+ p24_payments: nil,
941
+ payco_payments: nil,
942
+ paynow_payments: nil,
943
+ paypal_payments: nil,
944
+ payto_payments: nil,
945
+ promptpay_payments: nil,
946
+ qris_payments: nil,
947
+ rechnung_payments: nil,
948
+ revolut_pay_payments: nil,
949
+ samsung_pay_payments: nil,
950
+ sepa_bank_transfer_payments: nil,
951
+ sepa_debit_payments: nil,
952
+ shopeepay_payments: nil,
953
+ sofort_payments: nil,
954
+ swish_payments: nil,
955
+ tax_reporting_us_1099_k: nil,
956
+ tax_reporting_us_1099_misc: nil,
957
+ transfers: nil,
958
+ treasury: nil,
959
+ treasury_evolve: nil,
960
+ treasury_fifth_third: nil,
961
+ treasury_goldman_sachs: nil,
962
+ twint_payments: nil,
963
+ us_bank_account_ach_payments: nil,
964
+ us_bank_transfer_payments: nil,
965
+ zip_payments: nil
966
+ )
967
+ @acss_debit_payments = acss_debit_payments
968
+ @affirm_payments = affirm_payments
969
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
970
+ @alma_payments = alma_payments
971
+ @amazon_pay_payments = amazon_pay_payments
972
+ @au_becs_debit_payments = au_becs_debit_payments
973
+ @automatic_indirect_tax = automatic_indirect_tax
974
+ @bacs_debit_payments = bacs_debit_payments
975
+ @bancontact_payments = bancontact_payments
976
+ @bank_transfer_payments = bank_transfer_payments
977
+ @blik_payments = blik_payments
978
+ @boleto_payments = boleto_payments
979
+ @card_issuing = card_issuing
980
+ @card_payments = card_payments
981
+ @cartes_bancaires_payments = cartes_bancaires_payments
982
+ @cashapp_payments = cashapp_payments
983
+ @eps_payments = eps_payments
984
+ @fpx_payments = fpx_payments
985
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
986
+ @giropay_payments = giropay_payments
987
+ @gopay_payments = gopay_payments
988
+ @grabpay_payments = grabpay_payments
989
+ @id_bank_transfer_payments = id_bank_transfer_payments
990
+ @id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
991
+ @ideal_payments = ideal_payments
992
+ @india_international_payments = india_international_payments
993
+ @jcb_payments = jcb_payments
994
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
995
+ @kakao_pay_payments = kakao_pay_payments
996
+ @klarna_payments = klarna_payments
997
+ @konbini_payments = konbini_payments
998
+ @kr_card_payments = kr_card_payments
999
+ @legacy_payments = legacy_payments
1000
+ @link_payments = link_payments
1001
+ @mb_way_payments = mb_way_payments
1002
+ @mobilepay_payments = mobilepay_payments
1003
+ @multibanco_payments = multibanco_payments
1004
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
1005
+ @naver_pay_payments = naver_pay_payments
1006
+ @oxxo_payments = oxxo_payments
1007
+ @p24_payments = p24_payments
1008
+ @payco_payments = payco_payments
1009
+ @paynow_payments = paynow_payments
1010
+ @paypal_payments = paypal_payments
1011
+ @payto_payments = payto_payments
1012
+ @promptpay_payments = promptpay_payments
1013
+ @qris_payments = qris_payments
1014
+ @rechnung_payments = rechnung_payments
1015
+ @revolut_pay_payments = revolut_pay_payments
1016
+ @samsung_pay_payments = samsung_pay_payments
1017
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
1018
+ @sepa_debit_payments = sepa_debit_payments
1019
+ @shopeepay_payments = shopeepay_payments
1020
+ @sofort_payments = sofort_payments
1021
+ @swish_payments = swish_payments
1022
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
1023
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
1024
+ @transfers = transfers
1025
+ @treasury = treasury
1026
+ @treasury_evolve = treasury_evolve
1027
+ @treasury_fifth_third = treasury_fifth_third
1028
+ @treasury_goldman_sachs = treasury_goldman_sachs
1029
+ @twint_payments = twint_payments
1030
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
1031
+ @us_bank_transfer_payments = us_bank_transfer_payments
1032
+ @zip_payments = zip_payments
1033
+ end
1034
+ end
1035
+
1036
+ class Card < Stripe::RequestParams
1037
+ # Attribute for param field object
1038
+ attr_accessor :object
1039
+ # Attribute for param field address_city
1040
+ attr_accessor :address_city
1041
+ # Attribute for param field address_country
1042
+ attr_accessor :address_country
1043
+ # Attribute for param field address_line1
1044
+ attr_accessor :address_line1
1045
+ # Attribute for param field address_line2
1046
+ attr_accessor :address_line2
1047
+ # Attribute for param field address_state
1048
+ attr_accessor :address_state
1049
+ # Attribute for param field address_zip
1050
+ attr_accessor :address_zip
1051
+ # Attribute for param field currency
1052
+ attr_accessor :currency
1053
+ # Attribute for param field cvc
1054
+ attr_accessor :cvc
1055
+ # Attribute for param field exp_month
1056
+ attr_accessor :exp_month
1057
+ # Attribute for param field exp_year
1058
+ attr_accessor :exp_year
1059
+ # Attribute for param field name
1060
+ attr_accessor :name
1061
+ # Attribute for param field number
1062
+ attr_accessor :number
1063
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1064
+ attr_accessor :metadata
1065
+ # Attribute for param field default_for_currency
1066
+ attr_accessor :default_for_currency
1067
+
1068
+ def initialize(
1069
+ object: nil,
1070
+ address_city: nil,
1071
+ address_country: nil,
1072
+ address_line1: nil,
1073
+ address_line2: nil,
1074
+ address_state: nil,
1075
+ address_zip: nil,
1076
+ currency: nil,
1077
+ cvc: nil,
1078
+ exp_month: nil,
1079
+ exp_year: nil,
1080
+ name: nil,
1081
+ number: nil,
1082
+ metadata: nil,
1083
+ default_for_currency: nil
1084
+ )
1085
+ @object = object
1086
+ @address_city = address_city
1087
+ @address_country = address_country
1088
+ @address_line1 = address_line1
1089
+ @address_line2 = address_line2
1090
+ @address_state = address_state
1091
+ @address_zip = address_zip
1092
+ @currency = currency
1093
+ @cvc = cvc
1094
+ @exp_month = exp_month
1095
+ @exp_year = exp_year
1096
+ @name = name
1097
+ @number = number
1098
+ @metadata = metadata
1099
+ @default_for_currency = default_for_currency
1100
+ end
1101
+ end
1102
+
1103
+ class CardToken < Stripe::RequestParams
1104
+ # Attribute for param field object
1105
+ attr_accessor :object
1106
+ # Attribute for param field currency
1107
+ attr_accessor :currency
1108
+ # Attribute for param field token
1109
+ attr_accessor :token
1110
+
1111
+ def initialize(object: nil, currency: nil, token: nil)
1112
+ @object = object
1113
+ @currency = currency
1114
+ @token = token
1115
+ end
1116
+ end
1117
+
1118
+ class Company < Stripe::RequestParams
1119
+ class Address < Stripe::RequestParams
1120
+ # City, district, suburb, town, or village.
1121
+ attr_accessor :city
1122
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1123
+ attr_accessor :country
1124
+ # Address line 1 (e.g., street, PO Box, or company name).
1125
+ attr_accessor :line1
1126
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1127
+ attr_accessor :line2
1128
+ # ZIP or postal code.
1129
+ attr_accessor :postal_code
1130
+ # State, county, province, or region.
1131
+ attr_accessor :state
1132
+
1133
+ def initialize(
1134
+ city: nil,
1135
+ country: nil,
1136
+ line1: nil,
1137
+ line2: nil,
1138
+ postal_code: nil,
1139
+ state: nil
1140
+ )
1141
+ @city = city
1142
+ @country = country
1143
+ @line1 = line1
1144
+ @line2 = line2
1145
+ @postal_code = postal_code
1146
+ @state = state
1147
+ end
1148
+ end
1149
+
1150
+ class AddressKana < Stripe::RequestParams
1151
+ # City or ward.
1152
+ attr_accessor :city
1153
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1154
+ attr_accessor :country
1155
+ # Block or building number.
1156
+ attr_accessor :line1
1157
+ # Building details.
1158
+ attr_accessor :line2
1159
+ # Postal code.
1160
+ attr_accessor :postal_code
1161
+ # Prefecture.
1162
+ attr_accessor :state
1163
+ # Town or cho-me.
1164
+ attr_accessor :town
1165
+
1166
+ def initialize(
1167
+ city: nil,
1168
+ country: nil,
1169
+ line1: nil,
1170
+ line2: nil,
1171
+ postal_code: nil,
1172
+ state: nil,
1173
+ town: nil
1174
+ )
1175
+ @city = city
1176
+ @country = country
1177
+ @line1 = line1
1178
+ @line2 = line2
1179
+ @postal_code = postal_code
1180
+ @state = state
1181
+ @town = town
1182
+ end
1183
+ end
1184
+
1185
+ class AddressKanji < Stripe::RequestParams
1186
+ # City or ward.
1187
+ attr_accessor :city
1188
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1189
+ attr_accessor :country
1190
+ # Block or building number.
1191
+ attr_accessor :line1
1192
+ # Building details.
1193
+ attr_accessor :line2
1194
+ # Postal code.
1195
+ attr_accessor :postal_code
1196
+ # Prefecture.
1197
+ attr_accessor :state
1198
+ # Town or cho-me.
1199
+ attr_accessor :town
1200
+
1201
+ def initialize(
1202
+ city: nil,
1203
+ country: nil,
1204
+ line1: nil,
1205
+ line2: nil,
1206
+ postal_code: nil,
1207
+ state: nil,
1208
+ town: nil
1209
+ )
1210
+ @city = city
1211
+ @country = country
1212
+ @line1 = line1
1213
+ @line2 = line2
1214
+ @postal_code = postal_code
1215
+ @state = state
1216
+ @town = town
1217
+ end
1218
+ end
1219
+
1220
+ class OwnershipDeclaration < Stripe::RequestParams
1221
+ # The Unix timestamp marking when the beneficial owner attestation was made.
1222
+ attr_accessor :date
1223
+ # The IP address from which the beneficial owner attestation was made.
1224
+ attr_accessor :ip
1225
+ # The user agent of the browser from which the beneficial owner attestation was made.
1226
+ attr_accessor :user_agent
1227
+
1228
+ def initialize(date: nil, ip: nil, user_agent: nil)
1229
+ @date = date
1230
+ @ip = ip
1231
+ @user_agent = user_agent
1232
+ end
1233
+ end
1234
+
1235
+ class Verification < Stripe::RequestParams
1236
+ class Document < Stripe::RequestParams
1237
+ # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1238
+ attr_accessor :back
1239
+ # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1240
+ attr_accessor :front
1241
+
1242
+ def initialize(back: nil, front: nil)
1243
+ @back = back
1244
+ @front = front
1245
+ end
1246
+ end
1247
+ # A document verifying the business.
1248
+ attr_accessor :document
1249
+
1250
+ def initialize(document: nil)
1251
+ @document = document
1252
+ end
1253
+ end
1254
+ # The company's primary address.
1255
+ attr_accessor :address
1256
+ # The Kana variation of the company's primary address (Japan only).
1257
+ attr_accessor :address_kana
1258
+ # The Kanji variation of the company's primary address (Japan only).
1259
+ attr_accessor :address_kanji
1260
+ # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
1261
+ attr_accessor :directors_provided
1262
+ # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
1263
+ attr_accessor :executives_provided
1264
+ # The export license ID number of the company, also referred as Import Export Code (India only).
1265
+ attr_accessor :export_license_id
1266
+ # The purpose code to use for export transactions (India only).
1267
+ attr_accessor :export_purpose_code
1268
+ # The company's legal name.
1269
+ attr_accessor :name
1270
+ # The Kana variation of the company's legal name (Japan only).
1271
+ attr_accessor :name_kana
1272
+ # The Kanji variation of the company's legal name (Japan only).
1273
+ attr_accessor :name_kanji
1274
+ # Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
1275
+ attr_accessor :owners_provided
1276
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1277
+ attr_accessor :ownership_declaration
1278
+ # Attribute for param field ownership_exemption_reason
1279
+ attr_accessor :ownership_exemption_reason
1280
+ # The company's phone number (used for verification).
1281
+ attr_accessor :phone
1282
+ # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
1283
+ attr_accessor :registration_number
1284
+ # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
1285
+ attr_accessor :structure
1286
+ # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
1287
+ attr_accessor :tax_id
1288
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1289
+ attr_accessor :tax_id_registrar
1290
+ # The VAT number of the company.
1291
+ attr_accessor :vat_id
1292
+ # Information on the verification state of the company.
1293
+ attr_accessor :verification
1294
+
1295
+ def initialize(
1296
+ address: nil,
1297
+ address_kana: nil,
1298
+ address_kanji: nil,
1299
+ directors_provided: nil,
1300
+ executives_provided: nil,
1301
+ export_license_id: nil,
1302
+ export_purpose_code: nil,
1303
+ name: nil,
1304
+ name_kana: nil,
1305
+ name_kanji: nil,
1306
+ owners_provided: nil,
1307
+ ownership_declaration: nil,
1308
+ ownership_exemption_reason: nil,
1309
+ phone: nil,
1310
+ registration_number: nil,
1311
+ structure: nil,
1312
+ tax_id: nil,
1313
+ tax_id_registrar: nil,
1314
+ vat_id: nil,
1315
+ verification: nil
1316
+ )
1317
+ @address = address
1318
+ @address_kana = address_kana
1319
+ @address_kanji = address_kanji
1320
+ @directors_provided = directors_provided
1321
+ @executives_provided = executives_provided
1322
+ @export_license_id = export_license_id
1323
+ @export_purpose_code = export_purpose_code
1324
+ @name = name
1325
+ @name_kana = name_kana
1326
+ @name_kanji = name_kanji
1327
+ @owners_provided = owners_provided
1328
+ @ownership_declaration = ownership_declaration
1329
+ @ownership_exemption_reason = ownership_exemption_reason
1330
+ @phone = phone
1331
+ @registration_number = registration_number
1332
+ @structure = structure
1333
+ @tax_id = tax_id
1334
+ @tax_id_registrar = tax_id_registrar
1335
+ @vat_id = vat_id
1336
+ @verification = verification
1337
+ end
1338
+ end
1339
+
1340
+ class Documents < Stripe::RequestParams
1341
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1342
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1343
+ attr_accessor :files
1344
+
1345
+ def initialize(files: nil)
1346
+ @files = files
1347
+ end
1348
+ end
1349
+
1350
+ class CompanyLicense < Stripe::RequestParams
1351
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1352
+ attr_accessor :files
1353
+
1354
+ def initialize(files: nil)
1355
+ @files = files
1356
+ end
1357
+ end
1358
+
1359
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1360
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1361
+ attr_accessor :files
1362
+
1363
+ def initialize(files: nil)
1364
+ @files = files
1365
+ end
1366
+ end
1367
+
1368
+ class CompanyMinisterialDecree < Stripe::RequestParams
1369
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1370
+ attr_accessor :files
1371
+
1372
+ def initialize(files: nil)
1373
+ @files = files
1374
+ end
1375
+ end
1376
+
1377
+ class CompanyRegistrationVerification < Stripe::RequestParams
1378
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1379
+ attr_accessor :files
1380
+
1381
+ def initialize(files: nil)
1382
+ @files = files
1383
+ end
1384
+ end
1385
+
1386
+ class CompanyTaxIdVerification < Stripe::RequestParams
1387
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1388
+ attr_accessor :files
1389
+
1390
+ def initialize(files: nil)
1391
+ @files = files
1392
+ end
1393
+ end
1394
+
1395
+ class ProofOfRegistration < Stripe::RequestParams
1396
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1397
+ attr_accessor :files
1398
+
1399
+ def initialize(files: nil)
1400
+ @files = files
1401
+ end
1402
+ end
1403
+ # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
1404
+ attr_accessor :bank_account_ownership_verification
1405
+ # One or more documents that demonstrate proof of a company's license to operate.
1406
+ attr_accessor :company_license
1407
+ # One or more documents showing the company's Memorandum of Association.
1408
+ attr_accessor :company_memorandum_of_association
1409
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1410
+ attr_accessor :company_ministerial_decree
1411
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
1412
+ attr_accessor :company_registration_verification
1413
+ # One or more documents that demonstrate proof of a company's tax ID.
1414
+ attr_accessor :company_tax_id_verification
1415
+ # One or more documents showing the company’s proof of registration with the national business registry.
1416
+ attr_accessor :proof_of_registration
1417
+
1418
+ def initialize(
1419
+ bank_account_ownership_verification: nil,
1420
+ company_license: nil,
1421
+ company_memorandum_of_association: nil,
1422
+ company_ministerial_decree: nil,
1423
+ company_registration_verification: nil,
1424
+ company_tax_id_verification: nil,
1425
+ proof_of_registration: nil
1426
+ )
1427
+ @bank_account_ownership_verification = bank_account_ownership_verification
1428
+ @company_license = company_license
1429
+ @company_memorandum_of_association = company_memorandum_of_association
1430
+ @company_ministerial_decree = company_ministerial_decree
1431
+ @company_registration_verification = company_registration_verification
1432
+ @company_tax_id_verification = company_tax_id_verification
1433
+ @proof_of_registration = proof_of_registration
1434
+ end
1435
+ end
1436
+
1437
+ class Groups < Stripe::RequestParams
1438
+ # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
1439
+ attr_accessor :payments_pricing
1440
+
1441
+ def initialize(payments_pricing: nil)
1442
+ @payments_pricing = payments_pricing
1443
+ end
1444
+ end
1445
+
1446
+ class Individual < Stripe::RequestParams
1447
+ class Address < Stripe::RequestParams
1448
+ # City, district, suburb, town, or village.
1449
+ attr_accessor :city
1450
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1451
+ attr_accessor :country
1452
+ # Address line 1 (e.g., street, PO Box, or company name).
1453
+ attr_accessor :line1
1454
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1455
+ attr_accessor :line2
1456
+ # ZIP or postal code.
1457
+ attr_accessor :postal_code
1458
+ # State, county, province, or region.
1459
+ attr_accessor :state
1460
+
1461
+ def initialize(
1462
+ city: nil,
1463
+ country: nil,
1464
+ line1: nil,
1465
+ line2: nil,
1466
+ postal_code: nil,
1467
+ state: nil
1468
+ )
1469
+ @city = city
1470
+ @country = country
1471
+ @line1 = line1
1472
+ @line2 = line2
1473
+ @postal_code = postal_code
1474
+ @state = state
1475
+ end
1476
+ end
1477
+
1478
+ class AddressKana < Stripe::RequestParams
1479
+ # City or ward.
1480
+ attr_accessor :city
1481
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1482
+ attr_accessor :country
1483
+ # Block or building number.
1484
+ attr_accessor :line1
1485
+ # Building details.
1486
+ attr_accessor :line2
1487
+ # Postal code.
1488
+ attr_accessor :postal_code
1489
+ # Prefecture.
1490
+ attr_accessor :state
1491
+ # Town or cho-me.
1492
+ attr_accessor :town
1493
+
1494
+ def initialize(
1495
+ city: nil,
1496
+ country: nil,
1497
+ line1: nil,
1498
+ line2: nil,
1499
+ postal_code: nil,
1500
+ state: nil,
1501
+ town: nil
1502
+ )
1503
+ @city = city
1504
+ @country = country
1505
+ @line1 = line1
1506
+ @line2 = line2
1507
+ @postal_code = postal_code
1508
+ @state = state
1509
+ @town = town
1510
+ end
1511
+ end
1512
+
1513
+ class AddressKanji < Stripe::RequestParams
1514
+ # City or ward.
1515
+ attr_accessor :city
1516
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1517
+ attr_accessor :country
1518
+ # Block or building number.
1519
+ attr_accessor :line1
1520
+ # Building details.
1521
+ attr_accessor :line2
1522
+ # Postal code.
1523
+ attr_accessor :postal_code
1524
+ # Prefecture.
1525
+ attr_accessor :state
1526
+ # Town or cho-me.
1527
+ attr_accessor :town
1528
+
1529
+ def initialize(
1530
+ city: nil,
1531
+ country: nil,
1532
+ line1: nil,
1533
+ line2: nil,
1534
+ postal_code: nil,
1535
+ state: nil,
1536
+ town: nil
1537
+ )
1538
+ @city = city
1539
+ @country = country
1540
+ @line1 = line1
1541
+ @line2 = line2
1542
+ @postal_code = postal_code
1543
+ @state = state
1544
+ @town = town
1545
+ end
1546
+ end
1547
+
1548
+ class Dob < Stripe::RequestParams
1549
+ # The day of birth, between 1 and 31.
1550
+ attr_accessor :day
1551
+ # The month of birth, between 1 and 12.
1552
+ attr_accessor :month
1553
+ # The four-digit year of birth.
1554
+ attr_accessor :year
1555
+
1556
+ def initialize(day: nil, month: nil, year: nil)
1557
+ @day = day
1558
+ @month = month
1559
+ @year = year
1560
+ end
1561
+ end
1562
+
1563
+ class RegisteredAddress < Stripe::RequestParams
1564
+ # City, district, suburb, town, or village.
1565
+ attr_accessor :city
1566
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1567
+ attr_accessor :country
1568
+ # Address line 1 (e.g., street, PO Box, or company name).
1569
+ attr_accessor :line1
1570
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1571
+ attr_accessor :line2
1572
+ # ZIP or postal code.
1573
+ attr_accessor :postal_code
1574
+ # State, county, province, or region.
1575
+ attr_accessor :state
1576
+
1577
+ def initialize(
1578
+ city: nil,
1579
+ country: nil,
1580
+ line1: nil,
1581
+ line2: nil,
1582
+ postal_code: nil,
1583
+ state: nil
1584
+ )
1585
+ @city = city
1586
+ @country = country
1587
+ @line1 = line1
1588
+ @line2 = line2
1589
+ @postal_code = postal_code
1590
+ @state = state
1591
+ end
1592
+ end
1593
+
1594
+ class Relationship < Stripe::RequestParams
1595
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1596
+ attr_accessor :director
1597
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1598
+ attr_accessor :executive
1599
+ # Whether the person is an owner of the account’s legal entity.
1600
+ attr_accessor :owner
1601
+ # The percent owned by the person of the account's legal entity.
1602
+ attr_accessor :percent_ownership
1603
+ # The person's title (e.g., CEO, Support Engineer).
1604
+ attr_accessor :title
1605
+
1606
+ def initialize(
1607
+ director: nil,
1608
+ executive: nil,
1609
+ owner: nil,
1610
+ percent_ownership: nil,
1611
+ title: nil
1612
+ )
1613
+ @director = director
1614
+ @executive = executive
1615
+ @owner = owner
1616
+ @percent_ownership = percent_ownership
1617
+ @title = title
1618
+ end
1619
+ end
1620
+
1621
+ class Verification < Stripe::RequestParams
1622
+ class AdditionalDocument < Stripe::RequestParams
1623
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1624
+ attr_accessor :back
1625
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1626
+ attr_accessor :front
1627
+
1628
+ def initialize(back: nil, front: nil)
1629
+ @back = back
1630
+ @front = front
1631
+ end
1632
+ end
1633
+
1634
+ class Document < Stripe::RequestParams
1635
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1636
+ attr_accessor :back
1637
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1638
+ attr_accessor :front
1639
+
1640
+ def initialize(back: nil, front: nil)
1641
+ @back = back
1642
+ @front = front
1643
+ end
1644
+ end
1645
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1646
+ attr_accessor :additional_document
1647
+ # An identifying document, either a passport or local ID card.
1648
+ attr_accessor :document
1649
+
1650
+ def initialize(additional_document: nil, document: nil)
1651
+ @additional_document = additional_document
1652
+ @document = document
1653
+ end
1654
+ end
1655
+ # The individual's primary address.
1656
+ attr_accessor :address
1657
+ # The Kana variation of the individual's primary address (Japan only).
1658
+ attr_accessor :address_kana
1659
+ # The Kanji variation of the individual's primary address (Japan only).
1660
+ attr_accessor :address_kanji
1661
+ # The individual's date of birth.
1662
+ attr_accessor :dob
1663
+ # The individual's email address.
1664
+ attr_accessor :email
1665
+ # The individual's first name.
1666
+ attr_accessor :first_name
1667
+ # The Kana variation of the individual's first name (Japan only).
1668
+ attr_accessor :first_name_kana
1669
+ # The Kanji variation of the individual's first name (Japan only).
1670
+ attr_accessor :first_name_kanji
1671
+ # A list of alternate names or aliases that the individual is known by.
1672
+ attr_accessor :full_name_aliases
1673
+ # The individual's gender
1674
+ attr_accessor :gender
1675
+ # The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
1676
+ attr_accessor :id_number
1677
+ # The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
1678
+ attr_accessor :id_number_secondary
1679
+ # The individual's last name.
1680
+ attr_accessor :last_name
1681
+ # The Kana variation of the individual's last name (Japan only).
1682
+ attr_accessor :last_name_kana
1683
+ # The Kanji variation of the individual's last name (Japan only).
1684
+ attr_accessor :last_name_kanji
1685
+ # The individual's maiden name.
1686
+ attr_accessor :maiden_name
1687
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1688
+ attr_accessor :metadata
1689
+ # The individual's phone number.
1690
+ attr_accessor :phone
1691
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
1692
+ attr_accessor :political_exposure
1693
+ # The individual's registered address.
1694
+ attr_accessor :registered_address
1695
+ # Describes the person’s relationship to the account.
1696
+ attr_accessor :relationship
1697
+ # The last four digits of the individual's Social Security Number (U.S. only).
1698
+ attr_accessor :ssn_last_4
1699
+ # The individual's verification document information.
1700
+ attr_accessor :verification
1701
+
1702
+ def initialize(
1703
+ address: nil,
1704
+ address_kana: nil,
1705
+ address_kanji: nil,
1706
+ dob: nil,
1707
+ email: nil,
1708
+ first_name: nil,
1709
+ first_name_kana: nil,
1710
+ first_name_kanji: nil,
1711
+ full_name_aliases: nil,
1712
+ gender: nil,
1713
+ id_number: nil,
1714
+ id_number_secondary: nil,
1715
+ last_name: nil,
1716
+ last_name_kana: nil,
1717
+ last_name_kanji: nil,
1718
+ maiden_name: nil,
1719
+ metadata: nil,
1720
+ phone: nil,
1721
+ political_exposure: nil,
1722
+ registered_address: nil,
1723
+ relationship: nil,
1724
+ ssn_last_4: nil,
1725
+ verification: nil
1726
+ )
1727
+ @address = address
1728
+ @address_kana = address_kana
1729
+ @address_kanji = address_kanji
1730
+ @dob = dob
1731
+ @email = email
1732
+ @first_name = first_name
1733
+ @first_name_kana = first_name_kana
1734
+ @first_name_kanji = first_name_kanji
1735
+ @full_name_aliases = full_name_aliases
1736
+ @gender = gender
1737
+ @id_number = id_number
1738
+ @id_number_secondary = id_number_secondary
1739
+ @last_name = last_name
1740
+ @last_name_kana = last_name_kana
1741
+ @last_name_kanji = last_name_kanji
1742
+ @maiden_name = maiden_name
1743
+ @metadata = metadata
1744
+ @phone = phone
1745
+ @political_exposure = political_exposure
1746
+ @registered_address = registered_address
1747
+ @relationship = relationship
1748
+ @ssn_last_4 = ssn_last_4
1749
+ @verification = verification
1750
+ end
1751
+ end
1752
+
1753
+ class RiskControls < Stripe::RequestParams
1754
+ class Charges < Stripe::RequestParams
1755
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1756
+ # There can be a delay before the risk control is paused or unpaused.
1757
+ attr_accessor :pause_requested
1758
+
1759
+ def initialize(pause_requested: nil)
1760
+ @pause_requested = pause_requested
1761
+ end
1762
+ end
1763
+
1764
+ class Payouts < Stripe::RequestParams
1765
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1766
+ # There can be a delay before the risk control is paused or unpaused.
1767
+ attr_accessor :pause_requested
1768
+
1769
+ def initialize(pause_requested: nil)
1770
+ @pause_requested = pause_requested
1771
+ end
1772
+ end
1773
+ # Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
1774
+ attr_accessor :charges
1775
+ # Represents the risk control status of payouts. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
1776
+ attr_accessor :payouts
1777
+
1778
+ def initialize(charges: nil, payouts: nil)
1779
+ @charges = charges
1780
+ @payouts = payouts
1781
+ end
1782
+ end
1783
+
1784
+ class Settings < Stripe::RequestParams
1785
+ class BacsDebitPayments < Stripe::RequestParams
1786
+ # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
1787
+ attr_accessor :display_name
1788
+
1789
+ def initialize(display_name: nil)
1790
+ @display_name = display_name
1791
+ end
1792
+ end
1793
+
1794
+ class BankBcaOnboarding < Stripe::RequestParams
1795
+ # Bank BCA business account holder name
1796
+ attr_accessor :account_holder_name
1797
+ # Bank BCA business account number
1798
+ attr_accessor :business_account_number
1799
+
1800
+ def initialize(account_holder_name: nil, business_account_number: nil)
1801
+ @account_holder_name = account_holder_name
1802
+ @business_account_number = business_account_number
1803
+ end
1804
+ end
1805
+
1806
+ class Branding < Stripe::RequestParams
1807
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
1808
+ attr_accessor :icon
1809
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
1810
+ attr_accessor :logo
1811
+ # A CSS hex color value representing the primary branding color for this account.
1812
+ attr_accessor :primary_color
1813
+ # A CSS hex color value representing the secondary branding color for this account.
1814
+ attr_accessor :secondary_color
1815
+
1816
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
1817
+ @icon = icon
1818
+ @logo = logo
1819
+ @primary_color = primary_color
1820
+ @secondary_color = secondary_color
1821
+ end
1822
+ end
1823
+
1824
+ class Capital < Stripe::RequestParams
1825
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
1826
+ attr_accessor :payout_destination
1827
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
1828
+ attr_accessor :payout_destination_selector
1829
+
1830
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
1831
+ @payout_destination = payout_destination
1832
+ @payout_destination_selector = payout_destination_selector
1833
+ end
1834
+ end
1835
+
1836
+ class CardIssuing < Stripe::RequestParams
1837
+ class TosAcceptance < Stripe::RequestParams
1838
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1839
+ attr_accessor :date
1840
+ # The IP address from which the account representative accepted the service agreement.
1841
+ attr_accessor :ip
1842
+ # The user agent of the browser from which the account representative accepted the service agreement.
1843
+ attr_accessor :user_agent
1844
+
1845
+ def initialize(date: nil, ip: nil, user_agent: nil)
1846
+ @date = date
1847
+ @ip = ip
1848
+ @user_agent = user_agent
1849
+ end
1850
+ end
1851
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
1852
+ attr_accessor :tos_acceptance
1853
+
1854
+ def initialize(tos_acceptance: nil)
1855
+ @tos_acceptance = tos_acceptance
1856
+ end
1857
+ end
1858
+
1859
+ class CardPayments < Stripe::RequestParams
1860
+ class DeclineOn < Stripe::RequestParams
1861
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
1862
+ attr_accessor :avs_failure
1863
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
1864
+ attr_accessor :cvc_failure
1865
+
1866
+ def initialize(avs_failure: nil, cvc_failure: nil)
1867
+ @avs_failure = avs_failure
1868
+ @cvc_failure = cvc_failure
1869
+ end
1870
+ end
1871
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
1872
+ attr_accessor :decline_on
1873
+ # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
1874
+ attr_accessor :statement_descriptor_prefix
1875
+ # The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
1876
+ attr_accessor :statement_descriptor_prefix_kana
1877
+ # The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
1878
+ attr_accessor :statement_descriptor_prefix_kanji
1879
+
1880
+ def initialize(
1881
+ decline_on: nil,
1882
+ statement_descriptor_prefix: nil,
1883
+ statement_descriptor_prefix_kana: nil,
1884
+ statement_descriptor_prefix_kanji: nil
1885
+ )
1886
+ @decline_on = decline_on
1887
+ @statement_descriptor_prefix = statement_descriptor_prefix
1888
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
1889
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
1890
+ end
1891
+ end
1892
+
1893
+ class Invoices < Stripe::RequestParams
1894
+ # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
1895
+ attr_accessor :default_account_tax_ids
1896
+
1897
+ def initialize(default_account_tax_ids: nil)
1898
+ @default_account_tax_ids = default_account_tax_ids
1899
+ end
1900
+ end
1901
+
1902
+ class Payments < Stripe::RequestParams
1903
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
1904
+ attr_accessor :statement_descriptor
1905
+ # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1906
+ attr_accessor :statement_descriptor_kana
1907
+ # The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1908
+ attr_accessor :statement_descriptor_kanji
1909
+
1910
+ def initialize(
1911
+ statement_descriptor: nil,
1912
+ statement_descriptor_kana: nil,
1913
+ statement_descriptor_kanji: nil
1914
+ )
1915
+ @statement_descriptor = statement_descriptor
1916
+ @statement_descriptor_kana = statement_descriptor_kana
1917
+ @statement_descriptor_kanji = statement_descriptor_kanji
1918
+ end
1919
+ end
1920
+
1921
+ class Payouts < Stripe::RequestParams
1922
+ class Schedule < Stripe::RequestParams
1923
+ # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
1924
+ attr_accessor :delay_days
1925
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
1926
+ attr_accessor :interval
1927
+ # The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
1928
+ attr_accessor :monthly_anchor
1929
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
1930
+ attr_accessor :weekly_anchor
1931
+
1932
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
1933
+ @delay_days = delay_days
1934
+ @interval = interval
1935
+ @monthly_anchor = monthly_anchor
1936
+ @weekly_anchor = weekly_anchor
1937
+ end
1938
+ end
1939
+ # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
1940
+ attr_accessor :debit_negative_balances
1941
+ # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
1942
+ attr_accessor :schedule
1943
+ # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
1944
+ attr_accessor :statement_descriptor
1945
+
1946
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
1947
+ @debit_negative_balances = debit_negative_balances
1948
+ @schedule = schedule
1949
+ @statement_descriptor = statement_descriptor
1950
+ end
1951
+ end
1952
+
1953
+ class TaxForms < Stripe::RequestParams
1954
+ # Whether the account opted out of receiving their tax forms by postal delivery.
1955
+ attr_accessor :consented_to_paperless_delivery
1956
+
1957
+ def initialize(consented_to_paperless_delivery: nil)
1958
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
1959
+ end
1960
+ end
1961
+
1962
+ class Treasury < Stripe::RequestParams
1963
+ class TosAcceptance < Stripe::RequestParams
1964
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1965
+ attr_accessor :date
1966
+ # The IP address from which the account representative accepted the service agreement.
1967
+ attr_accessor :ip
1968
+ # The user agent of the browser from which the account representative accepted the service agreement.
1969
+ attr_accessor :user_agent
1970
+
1971
+ def initialize(date: nil, ip: nil, user_agent: nil)
1972
+ @date = date
1973
+ @ip = ip
1974
+ @user_agent = user_agent
1975
+ end
1976
+ end
1977
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
1978
+ attr_accessor :tos_acceptance
1979
+
1980
+ def initialize(tos_acceptance: nil)
1981
+ @tos_acceptance = tos_acceptance
1982
+ end
1983
+ end
1984
+ # Settings specific to Bacs Direct Debit payments.
1985
+ attr_accessor :bacs_debit_payments
1986
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
1987
+ attr_accessor :bank_bca_onboarding
1988
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
1989
+ attr_accessor :branding
1990
+ # Settings specific to the account's use of the Capital product.
1991
+ attr_accessor :capital
1992
+ # Settings specific to the account's use of the Card Issuing product.
1993
+ attr_accessor :card_issuing
1994
+ # Settings specific to card charging on the account.
1995
+ attr_accessor :card_payments
1996
+ # Settings specific to the account's use of Invoices.
1997
+ attr_accessor :invoices
1998
+ # Settings that apply across payment methods for charging on the account.
1999
+ attr_accessor :payments
2000
+ # Settings specific to the account's payouts.
2001
+ attr_accessor :payouts
2002
+ # Settings specific to the account's tax forms.
2003
+ attr_accessor :tax_forms
2004
+ # Settings specific to the account's Treasury FinancialAccounts.
2005
+ attr_accessor :treasury
2006
+
2007
+ def initialize(
2008
+ bacs_debit_payments: nil,
2009
+ bank_bca_onboarding: nil,
2010
+ branding: nil,
2011
+ capital: nil,
2012
+ card_issuing: nil,
2013
+ card_payments: nil,
2014
+ invoices: nil,
2015
+ payments: nil,
2016
+ payouts: nil,
2017
+ tax_forms: nil,
2018
+ treasury: nil
2019
+ )
2020
+ @bacs_debit_payments = bacs_debit_payments
2021
+ @bank_bca_onboarding = bank_bca_onboarding
2022
+ @branding = branding
2023
+ @capital = capital
2024
+ @card_issuing = card_issuing
2025
+ @card_payments = card_payments
2026
+ @invoices = invoices
2027
+ @payments = payments
2028
+ @payouts = payouts
2029
+ @tax_forms = tax_forms
2030
+ @treasury = treasury
2031
+ end
2032
+ end
2033
+
2034
+ class TosAcceptance < Stripe::RequestParams
2035
+ # The Unix timestamp marking when the account representative accepted their service agreement.
2036
+ attr_accessor :date
2037
+ # The IP address from which the account representative accepted their service agreement.
2038
+ attr_accessor :ip
2039
+ # The user's service agreement type.
2040
+ attr_accessor :service_agreement
2041
+ # The user agent of the browser from which the account representative accepted their service agreement.
2042
+ attr_accessor :user_agent
2043
+
2044
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
2045
+ @date = date
2046
+ @ip = ip
2047
+ @service_agreement = service_agreement
2048
+ @user_agent = user_agent
2049
+ end
2050
+ end
2051
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
2052
+ attr_accessor :account_token
2053
+ # Business information about the account.
2054
+ attr_accessor :business_profile
2055
+ # The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
2056
+ attr_accessor :business_type
2057
+ # Each key of the dictionary represents a capability, and each capability
2058
+ # maps to its settings (for example, whether it has been requested or not). Each
2059
+ # capability is inactive until you have provided its specific
2060
+ # requirements and Stripe has verified them. An account might have some
2061
+ # of its requested capabilities be active and some be inactive.
2062
+ #
2063
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
2064
+ # is `none`, which includes Custom accounts.
2065
+ attr_accessor :capabilities
2066
+ # Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
2067
+ attr_accessor :company
2068
+ # Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
2069
+ attr_accessor :default_currency
2070
+ # Documents that may be submitted to satisfy various informational requests.
2071
+ attr_accessor :documents
2072
+ # The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
2073
+ attr_accessor :email
2074
+ # Specifies which fields in the response should be expanded.
2075
+ attr_accessor :expand
2076
+ # A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
2077
+ attr_accessor :external_account
2078
+ # A hash of account group type to tokens. These are account groups this account should be added to.
2079
+ attr_accessor :groups
2080
+ # Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
2081
+ attr_accessor :individual
2082
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2083
+ attr_accessor :metadata
2084
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
2085
+ attr_accessor :risk_controls
2086
+ # Options for customizing how the account functions within Stripe.
2087
+ attr_accessor :settings
2088
+ # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
2089
+ attr_accessor :tos_acceptance
2090
+
2091
+ def initialize(
2092
+ account_token: nil,
2093
+ business_profile: nil,
2094
+ business_type: nil,
2095
+ capabilities: nil,
2096
+ company: nil,
2097
+ default_currency: nil,
2098
+ documents: nil,
2099
+ email: nil,
2100
+ expand: nil,
2101
+ external_account: nil,
2102
+ groups: nil,
2103
+ individual: nil,
2104
+ metadata: nil,
2105
+ risk_controls: nil,
2106
+ settings: nil,
2107
+ tos_acceptance: nil
2108
+ )
2109
+ @account_token = account_token
2110
+ @business_profile = business_profile
2111
+ @business_type = business_type
2112
+ @capabilities = capabilities
2113
+ @company = company
2114
+ @default_currency = default_currency
2115
+ @documents = documents
2116
+ @email = email
2117
+ @expand = expand
2118
+ @external_account = external_account
2119
+ @groups = groups
2120
+ @individual = individual
2121
+ @metadata = metadata
2122
+ @risk_controls = risk_controls
2123
+ @settings = settings
2124
+ @tos_acceptance = tos_acceptance
2125
+ end
2126
+ end
2127
+
2128
+ class RetrieveCurrentParams < Stripe::RequestParams
2129
+ # Specifies which fields in the response should be expanded.
2130
+ attr_accessor :expand
2131
+
2132
+ def initialize(expand: nil)
2133
+ @expand = expand
2134
+ end
2135
+ end
2136
+
2137
+ class ListParams < Stripe::RequestParams
2138
+ class Created < Stripe::RequestParams
2139
+ # Minimum value to filter by (exclusive)
2140
+ attr_accessor :gt
2141
+ # Minimum value to filter by (inclusive)
2142
+ attr_accessor :gte
2143
+ # Maximum value to filter by (exclusive)
2144
+ attr_accessor :lt
2145
+ # Maximum value to filter by (inclusive)
2146
+ attr_accessor :lte
2147
+
2148
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
2149
+ @gt = gt
2150
+ @gte = gte
2151
+ @lt = lt
2152
+ @lte = lte
2153
+ end
2154
+ end
2155
+ # Only return connected accounts that were created during the given date interval.
2156
+ attr_accessor :created
2157
+ # 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.
2158
+ attr_accessor :ending_before
2159
+ # Specifies which fields in the response should be expanded.
2160
+ attr_accessor :expand
2161
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
2162
+ attr_accessor :limit
2163
+ # 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.
2164
+ attr_accessor :starting_after
2165
+
2166
+ def initialize(created: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil)
2167
+ @created = created
2168
+ @ending_before = ending_before
2169
+ @expand = expand
2170
+ @limit = limit
2171
+ @starting_after = starting_after
2172
+ end
2173
+ end
2174
+
2175
+ class CreateParams < Stripe::RequestParams
2176
+ class BankAccount < Stripe::RequestParams
2177
+ # Attribute for param field object
2178
+ attr_accessor :object
2179
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
2180
+ attr_accessor :account_holder_name
2181
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
2182
+ attr_accessor :account_holder_type
2183
+ # The account number for the bank account, in string form. Must be a checking account.
2184
+ attr_accessor :account_number
2185
+ # The country in which the bank account is located.
2186
+ attr_accessor :country
2187
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
2188
+ attr_accessor :currency
2189
+ # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
2190
+ attr_accessor :routing_number
2191
+
2192
+ def initialize(
2193
+ object: nil,
2194
+ account_holder_name: nil,
2195
+ account_holder_type: nil,
2196
+ account_number: nil,
2197
+ country: nil,
2198
+ currency: nil,
2199
+ routing_number: nil
2200
+ )
2201
+ @object = object
2202
+ @account_holder_name = account_holder_name
2203
+ @account_holder_type = account_holder_type
2204
+ @account_number = account_number
2205
+ @country = country
2206
+ @currency = currency
2207
+ @routing_number = routing_number
2208
+ end
2209
+ end
2210
+
2211
+ class BusinessProfile < Stripe::RequestParams
2212
+ class AnnualRevenue < Stripe::RequestParams
2213
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
2214
+ attr_accessor :amount
2215
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2216
+ attr_accessor :currency
2217
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2218
+ attr_accessor :fiscal_year_end
2219
+
2220
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
2221
+ @amount = amount
2222
+ @currency = currency
2223
+ @fiscal_year_end = fiscal_year_end
2224
+ end
2225
+ end
2226
+
2227
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
2228
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
2229
+ attr_accessor :amount
2230
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2231
+ attr_accessor :currency
2232
+
2233
+ def initialize(amount: nil, currency: nil)
2234
+ @amount = amount
2235
+ @currency = currency
2236
+ end
2237
+ end
2238
+
2239
+ class SupportAddress < Stripe::RequestParams
2240
+ # City, district, suburb, town, or village.
2241
+ attr_accessor :city
2242
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2243
+ attr_accessor :country
2244
+ # Address line 1 (e.g., street, PO Box, or company name).
2245
+ attr_accessor :line1
2246
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2247
+ attr_accessor :line2
2248
+ # ZIP or postal code.
2249
+ attr_accessor :postal_code
2250
+ # State, county, province, or region.
2251
+ attr_accessor :state
2252
+
2253
+ def initialize(
2254
+ city: nil,
2255
+ country: nil,
2256
+ line1: nil,
2257
+ line2: nil,
2258
+ postal_code: nil,
2259
+ state: nil
2260
+ )
2261
+ @city = city
2262
+ @country = country
2263
+ @line1 = line1
2264
+ @line2 = line2
2265
+ @postal_code = postal_code
2266
+ @state = state
2267
+ end
2268
+ end
2269
+ # The applicant's gross annual revenue for its preceding fiscal year.
2270
+ attr_accessor :annual_revenue
2271
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2272
+ attr_accessor :estimated_worker_count
2273
+ # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2274
+ attr_accessor :mcc
2275
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2276
+ attr_accessor :monthly_estimated_revenue
2277
+ # The customer-facing business name.
2278
+ attr_accessor :name
2279
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
2280
+ attr_accessor :product_description
2281
+ # A publicly available mailing address for sending support issues to.
2282
+ attr_accessor :support_address
2283
+ # A publicly available email address for sending support issues to.
2284
+ attr_accessor :support_email
2285
+ # A publicly available phone number to call with support issues.
2286
+ attr_accessor :support_phone
2287
+ # A publicly available website for handling support issues.
2288
+ attr_accessor :support_url
2289
+ # The business's publicly available website.
2290
+ attr_accessor :url
2291
+
2292
+ def initialize(
2293
+ annual_revenue: nil,
2294
+ estimated_worker_count: nil,
2295
+ mcc: nil,
2296
+ monthly_estimated_revenue: nil,
2297
+ name: nil,
2298
+ product_description: nil,
2299
+ support_address: nil,
2300
+ support_email: nil,
2301
+ support_phone: nil,
2302
+ support_url: nil,
2303
+ url: nil
2304
+ )
2305
+ @annual_revenue = annual_revenue
2306
+ @estimated_worker_count = estimated_worker_count
2307
+ @mcc = mcc
2308
+ @monthly_estimated_revenue = monthly_estimated_revenue
2309
+ @name = name
2310
+ @product_description = product_description
2311
+ @support_address = support_address
2312
+ @support_email = support_email
2313
+ @support_phone = support_phone
2314
+ @support_url = support_url
2315
+ @url = url
2316
+ end
2317
+ end
2318
+
2319
+ class Capabilities < Stripe::RequestParams
2320
+ class AcssDebitPayments < Stripe::RequestParams
2321
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2322
+ attr_accessor :requested
2323
+
2324
+ def initialize(requested: nil)
2325
+ @requested = requested
2326
+ end
2327
+ end
2328
+
2329
+ class AffirmPayments < Stripe::RequestParams
2330
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2331
+ attr_accessor :requested
2332
+
2333
+ def initialize(requested: nil)
2334
+ @requested = requested
2335
+ end
2336
+ end
2337
+
2338
+ class AfterpayClearpayPayments < Stripe::RequestParams
2339
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2340
+ attr_accessor :requested
2341
+
2342
+ def initialize(requested: nil)
2343
+ @requested = requested
2344
+ end
2345
+ end
2346
+
2347
+ class AlmaPayments < Stripe::RequestParams
2348
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2349
+ attr_accessor :requested
2350
+
2351
+ def initialize(requested: nil)
2352
+ @requested = requested
2353
+ end
2354
+ end
2355
+
2356
+ class AmazonPayPayments < Stripe::RequestParams
2357
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2358
+ attr_accessor :requested
2359
+
2360
+ def initialize(requested: nil)
2361
+ @requested = requested
2362
+ end
2363
+ end
2364
+
2365
+ class AuBecsDebitPayments < Stripe::RequestParams
2366
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2367
+ attr_accessor :requested
2368
+
2369
+ def initialize(requested: nil)
2370
+ @requested = requested
2371
+ end
2372
+ end
2373
+
2374
+ class AutomaticIndirectTax < Stripe::RequestParams
2375
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2376
+ attr_accessor :requested
2377
+
2378
+ def initialize(requested: nil)
2379
+ @requested = requested
2380
+ end
2381
+ end
2382
+
2383
+ class BacsDebitPayments < Stripe::RequestParams
2384
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2385
+ attr_accessor :requested
2386
+
2387
+ def initialize(requested: nil)
2388
+ @requested = requested
2389
+ end
2390
+ end
2391
+
2392
+ class BancontactPayments < Stripe::RequestParams
2393
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2394
+ attr_accessor :requested
2395
+
2396
+ def initialize(requested: nil)
2397
+ @requested = requested
2398
+ end
2399
+ end
2400
+
2401
+ class BankTransferPayments < Stripe::RequestParams
2402
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2403
+ attr_accessor :requested
2404
+
2405
+ def initialize(requested: nil)
2406
+ @requested = requested
2407
+ end
2408
+ end
2409
+
2410
+ class BlikPayments < Stripe::RequestParams
2411
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2412
+ attr_accessor :requested
2413
+
2414
+ def initialize(requested: nil)
2415
+ @requested = requested
2416
+ end
2417
+ end
2418
+
2419
+ class BoletoPayments < Stripe::RequestParams
2420
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2421
+ attr_accessor :requested
2422
+
2423
+ def initialize(requested: nil)
2424
+ @requested = requested
2425
+ end
2426
+ end
2427
+
2428
+ class CardIssuing < Stripe::RequestParams
2429
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2430
+ attr_accessor :requested
2431
+
2432
+ def initialize(requested: nil)
2433
+ @requested = requested
2434
+ end
2435
+ end
2436
+
2437
+ class CardPayments < Stripe::RequestParams
2438
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2439
+ attr_accessor :requested
2440
+
2441
+ def initialize(requested: nil)
2442
+ @requested = requested
2443
+ end
2444
+ end
2445
+
2446
+ class CartesBancairesPayments < Stripe::RequestParams
2447
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2448
+ attr_accessor :requested
2449
+
2450
+ def initialize(requested: nil)
2451
+ @requested = requested
2452
+ end
2453
+ end
2454
+
2455
+ class CashappPayments < Stripe::RequestParams
2456
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2457
+ attr_accessor :requested
2458
+
2459
+ def initialize(requested: nil)
2460
+ @requested = requested
2461
+ end
2462
+ end
2463
+
2464
+ class EpsPayments < Stripe::RequestParams
2465
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2466
+ attr_accessor :requested
2467
+
2468
+ def initialize(requested: nil)
2469
+ @requested = requested
2470
+ end
2471
+ end
2472
+
2473
+ class FpxPayments < Stripe::RequestParams
2474
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2475
+ attr_accessor :requested
2476
+
2477
+ def initialize(requested: nil)
2478
+ @requested = requested
2479
+ end
2480
+ end
2481
+
2482
+ class GbBankTransferPayments < Stripe::RequestParams
2483
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2484
+ attr_accessor :requested
2485
+
2486
+ def initialize(requested: nil)
2487
+ @requested = requested
2488
+ end
2489
+ end
2490
+
2491
+ class GiropayPayments < Stripe::RequestParams
2492
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2493
+ attr_accessor :requested
2494
+
2495
+ def initialize(requested: nil)
2496
+ @requested = requested
2497
+ end
2498
+ end
2499
+
2500
+ class GopayPayments < Stripe::RequestParams
2501
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2502
+ attr_accessor :requested
2503
+
2504
+ def initialize(requested: nil)
2505
+ @requested = requested
2506
+ end
2507
+ end
2508
+
2509
+ class GrabpayPayments < Stripe::RequestParams
2510
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2511
+ attr_accessor :requested
2512
+
2513
+ def initialize(requested: nil)
2514
+ @requested = requested
2515
+ end
2516
+ end
2517
+
2518
+ class IdBankTransferPayments < Stripe::RequestParams
2519
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2520
+ attr_accessor :requested
2521
+
2522
+ def initialize(requested: nil)
2523
+ @requested = requested
2524
+ end
2525
+ end
2526
+
2527
+ class IdBankTransferPaymentsBca < Stripe::RequestParams
2528
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2529
+ attr_accessor :requested
2530
+
2531
+ def initialize(requested: nil)
2532
+ @requested = requested
2533
+ end
2534
+ end
2535
+
2536
+ class IdealPayments < Stripe::RequestParams
2537
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2538
+ attr_accessor :requested
2539
+
2540
+ def initialize(requested: nil)
2541
+ @requested = requested
2542
+ end
2543
+ end
2544
+
2545
+ class IndiaInternationalPayments < Stripe::RequestParams
2546
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2547
+ attr_accessor :requested
2548
+
2549
+ def initialize(requested: nil)
2550
+ @requested = requested
2551
+ end
2552
+ end
2553
+
2554
+ class JcbPayments < Stripe::RequestParams
2555
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2556
+ attr_accessor :requested
2557
+
2558
+ def initialize(requested: nil)
2559
+ @requested = requested
2560
+ end
2561
+ end
2562
+
2563
+ class JpBankTransferPayments < Stripe::RequestParams
2564
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2565
+ attr_accessor :requested
2566
+
2567
+ def initialize(requested: nil)
2568
+ @requested = requested
2569
+ end
2570
+ end
2571
+
2572
+ class KakaoPayPayments < Stripe::RequestParams
2573
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2574
+ attr_accessor :requested
2575
+
2576
+ def initialize(requested: nil)
2577
+ @requested = requested
2578
+ end
2579
+ end
2580
+
2581
+ class KlarnaPayments < Stripe::RequestParams
2582
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2583
+ attr_accessor :requested
2584
+
2585
+ def initialize(requested: nil)
2586
+ @requested = requested
2587
+ end
2588
+ end
2589
+
2590
+ class KonbiniPayments < Stripe::RequestParams
2591
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2592
+ attr_accessor :requested
2593
+
2594
+ def initialize(requested: nil)
2595
+ @requested = requested
2596
+ end
2597
+ end
2598
+
2599
+ class KrCardPayments < Stripe::RequestParams
2600
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2601
+ attr_accessor :requested
2602
+
2603
+ def initialize(requested: nil)
2604
+ @requested = requested
2605
+ end
2606
+ end
2607
+
2608
+ class LegacyPayments < Stripe::RequestParams
2609
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2610
+ attr_accessor :requested
2611
+
2612
+ def initialize(requested: nil)
2613
+ @requested = requested
2614
+ end
2615
+ end
2616
+
2617
+ class LinkPayments < Stripe::RequestParams
2618
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2619
+ attr_accessor :requested
2620
+
2621
+ def initialize(requested: nil)
2622
+ @requested = requested
2623
+ end
2624
+ end
2625
+
2626
+ class MbWayPayments < Stripe::RequestParams
2627
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2628
+ attr_accessor :requested
2629
+
2630
+ def initialize(requested: nil)
2631
+ @requested = requested
2632
+ end
2633
+ end
2634
+
2635
+ class MobilepayPayments < Stripe::RequestParams
2636
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2637
+ attr_accessor :requested
2638
+
2639
+ def initialize(requested: nil)
2640
+ @requested = requested
2641
+ end
2642
+ end
2643
+
2644
+ class MultibancoPayments < Stripe::RequestParams
2645
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2646
+ attr_accessor :requested
2647
+
2648
+ def initialize(requested: nil)
2649
+ @requested = requested
2650
+ end
2651
+ end
2652
+
2653
+ class MxBankTransferPayments < Stripe::RequestParams
2654
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2655
+ attr_accessor :requested
2656
+
2657
+ def initialize(requested: nil)
2658
+ @requested = requested
2659
+ end
2660
+ end
2661
+
2662
+ class NaverPayPayments < Stripe::RequestParams
2663
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2664
+ attr_accessor :requested
2665
+
2666
+ def initialize(requested: nil)
2667
+ @requested = requested
2668
+ end
2669
+ end
2670
+
2671
+ class OxxoPayments < Stripe::RequestParams
2672
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2673
+ attr_accessor :requested
2674
+
2675
+ def initialize(requested: nil)
2676
+ @requested = requested
2677
+ end
2678
+ end
2679
+
2680
+ class P24Payments < Stripe::RequestParams
2681
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2682
+ attr_accessor :requested
2683
+
2684
+ def initialize(requested: nil)
2685
+ @requested = requested
2686
+ end
2687
+ end
2688
+
2689
+ class PaycoPayments < Stripe::RequestParams
2690
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2691
+ attr_accessor :requested
2692
+
2693
+ def initialize(requested: nil)
2694
+ @requested = requested
2695
+ end
2696
+ end
2697
+
2698
+ class PaynowPayments < Stripe::RequestParams
2699
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2700
+ attr_accessor :requested
2701
+
2702
+ def initialize(requested: nil)
2703
+ @requested = requested
2704
+ end
2705
+ end
2706
+
2707
+ class PaypalPayments < Stripe::RequestParams
2708
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2709
+ attr_accessor :requested
2710
+
2711
+ def initialize(requested: nil)
2712
+ @requested = requested
2713
+ end
2714
+ end
2715
+
2716
+ class PaytoPayments < Stripe::RequestParams
2717
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2718
+ attr_accessor :requested
2719
+
2720
+ def initialize(requested: nil)
2721
+ @requested = requested
2722
+ end
2723
+ end
2724
+
2725
+ class PromptpayPayments < Stripe::RequestParams
2726
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2727
+ attr_accessor :requested
2728
+
2729
+ def initialize(requested: nil)
2730
+ @requested = requested
2731
+ end
2732
+ end
2733
+
2734
+ class QrisPayments < Stripe::RequestParams
2735
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2736
+ attr_accessor :requested
2737
+
2738
+ def initialize(requested: nil)
2739
+ @requested = requested
2740
+ end
2741
+ end
2742
+
2743
+ class RechnungPayments < Stripe::RequestParams
2744
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2745
+ attr_accessor :requested
2746
+
2747
+ def initialize(requested: nil)
2748
+ @requested = requested
2749
+ end
2750
+ end
2751
+
2752
+ class RevolutPayPayments < Stripe::RequestParams
2753
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2754
+ attr_accessor :requested
2755
+
2756
+ def initialize(requested: nil)
2757
+ @requested = requested
2758
+ end
2759
+ end
2760
+
2761
+ class SamsungPayPayments < Stripe::RequestParams
2762
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2763
+ attr_accessor :requested
2764
+
2765
+ def initialize(requested: nil)
2766
+ @requested = requested
2767
+ end
2768
+ end
2769
+
2770
+ class SepaBankTransferPayments < Stripe::RequestParams
2771
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2772
+ attr_accessor :requested
2773
+
2774
+ def initialize(requested: nil)
2775
+ @requested = requested
2776
+ end
2777
+ end
2778
+
2779
+ class SepaDebitPayments < Stripe::RequestParams
2780
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2781
+ attr_accessor :requested
2782
+
2783
+ def initialize(requested: nil)
2784
+ @requested = requested
2785
+ end
2786
+ end
2787
+
2788
+ class ShopeepayPayments < Stripe::RequestParams
2789
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2790
+ attr_accessor :requested
2791
+
2792
+ def initialize(requested: nil)
2793
+ @requested = requested
2794
+ end
2795
+ end
2796
+
2797
+ class SofortPayments < Stripe::RequestParams
2798
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2799
+ attr_accessor :requested
2800
+
2801
+ def initialize(requested: nil)
2802
+ @requested = requested
2803
+ end
2804
+ end
2805
+
2806
+ class SwishPayments < Stripe::RequestParams
2807
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2808
+ attr_accessor :requested
2809
+
2810
+ def initialize(requested: nil)
2811
+ @requested = requested
2812
+ end
2813
+ end
2814
+
2815
+ class TaxReportingUs1099K < Stripe::RequestParams
2816
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2817
+ attr_accessor :requested
2818
+
2819
+ def initialize(requested: nil)
2820
+ @requested = requested
2821
+ end
2822
+ end
2823
+
2824
+ class TaxReportingUs1099Misc < Stripe::RequestParams
2825
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2826
+ attr_accessor :requested
2827
+
2828
+ def initialize(requested: nil)
2829
+ @requested = requested
2830
+ end
2831
+ end
2832
+
2833
+ class Transfers < Stripe::RequestParams
2834
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2835
+ attr_accessor :requested
2836
+
2837
+ def initialize(requested: nil)
2838
+ @requested = requested
2839
+ end
2840
+ end
2841
+
2842
+ class Treasury < Stripe::RequestParams
2843
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2844
+ attr_accessor :requested
2845
+
2846
+ def initialize(requested: nil)
2847
+ @requested = requested
2848
+ end
2849
+ end
2850
+
2851
+ class TreasuryEvolve < Stripe::RequestParams
2852
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2853
+ attr_accessor :requested
2854
+
2855
+ def initialize(requested: nil)
2856
+ @requested = requested
2857
+ end
2858
+ end
2859
+
2860
+ class TreasuryFifthThird < Stripe::RequestParams
2861
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2862
+ attr_accessor :requested
2863
+
2864
+ def initialize(requested: nil)
2865
+ @requested = requested
2866
+ end
2867
+ end
2868
+
2869
+ class TreasuryGoldmanSachs < Stripe::RequestParams
2870
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2871
+ attr_accessor :requested
2872
+
2873
+ def initialize(requested: nil)
2874
+ @requested = requested
2875
+ end
2876
+ end
2877
+
2878
+ class TwintPayments < Stripe::RequestParams
2879
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2880
+ attr_accessor :requested
2881
+
2882
+ def initialize(requested: nil)
2883
+ @requested = requested
2884
+ end
2885
+ end
2886
+
2887
+ class UsBankAccountAchPayments < Stripe::RequestParams
2888
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2889
+ attr_accessor :requested
2890
+
2891
+ def initialize(requested: nil)
2892
+ @requested = requested
2893
+ end
2894
+ end
2895
+
2896
+ class UsBankTransferPayments < Stripe::RequestParams
2897
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2898
+ attr_accessor :requested
2899
+
2900
+ def initialize(requested: nil)
2901
+ @requested = requested
2902
+ end
2903
+ end
2904
+
2905
+ class ZipPayments < Stripe::RequestParams
2906
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2907
+ attr_accessor :requested
2908
+
2909
+ def initialize(requested: nil)
2910
+ @requested = requested
2911
+ end
2912
+ end
2913
+ # The acss_debit_payments capability.
2914
+ attr_accessor :acss_debit_payments
2915
+ # The affirm_payments capability.
2916
+ attr_accessor :affirm_payments
2917
+ # The afterpay_clearpay_payments capability.
2918
+ attr_accessor :afterpay_clearpay_payments
2919
+ # The alma_payments capability.
2920
+ attr_accessor :alma_payments
2921
+ # The amazon_pay_payments capability.
2922
+ attr_accessor :amazon_pay_payments
2923
+ # The au_becs_debit_payments capability.
2924
+ attr_accessor :au_becs_debit_payments
2925
+ # The automatic_indirect_tax capability.
2926
+ attr_accessor :automatic_indirect_tax
2927
+ # The bacs_debit_payments capability.
2928
+ attr_accessor :bacs_debit_payments
2929
+ # The bancontact_payments capability.
2930
+ attr_accessor :bancontact_payments
2931
+ # The bank_transfer_payments capability.
2932
+ attr_accessor :bank_transfer_payments
2933
+ # The blik_payments capability.
2934
+ attr_accessor :blik_payments
2935
+ # The boleto_payments capability.
2936
+ attr_accessor :boleto_payments
2937
+ # The card_issuing capability.
2938
+ attr_accessor :card_issuing
2939
+ # The card_payments capability.
2940
+ attr_accessor :card_payments
2941
+ # The cartes_bancaires_payments capability.
2942
+ attr_accessor :cartes_bancaires_payments
2943
+ # The cashapp_payments capability.
2944
+ attr_accessor :cashapp_payments
2945
+ # The eps_payments capability.
2946
+ attr_accessor :eps_payments
2947
+ # The fpx_payments capability.
2948
+ attr_accessor :fpx_payments
2949
+ # The gb_bank_transfer_payments capability.
2950
+ attr_accessor :gb_bank_transfer_payments
2951
+ # The giropay_payments capability.
2952
+ attr_accessor :giropay_payments
2953
+ # The gopay_payments capability.
2954
+ attr_accessor :gopay_payments
2955
+ # The grabpay_payments capability.
2956
+ attr_accessor :grabpay_payments
2957
+ # The id_bank_transfer_payments capability.
2958
+ attr_accessor :id_bank_transfer_payments
2959
+ # The id_bank_transfer_payments_bca capability.
2960
+ attr_accessor :id_bank_transfer_payments_bca
2961
+ # The ideal_payments capability.
2962
+ attr_accessor :ideal_payments
2963
+ # The india_international_payments capability.
2964
+ attr_accessor :india_international_payments
2965
+ # The jcb_payments capability.
2966
+ attr_accessor :jcb_payments
2967
+ # The jp_bank_transfer_payments capability.
2968
+ attr_accessor :jp_bank_transfer_payments
2969
+ # The kakao_pay_payments capability.
2970
+ attr_accessor :kakao_pay_payments
2971
+ # The klarna_payments capability.
2972
+ attr_accessor :klarna_payments
2973
+ # The konbini_payments capability.
2974
+ attr_accessor :konbini_payments
2975
+ # The kr_card_payments capability.
2976
+ attr_accessor :kr_card_payments
2977
+ # The legacy_payments capability.
2978
+ attr_accessor :legacy_payments
2979
+ # The link_payments capability.
2980
+ attr_accessor :link_payments
2981
+ # The mb_way_payments capability.
2982
+ attr_accessor :mb_way_payments
2983
+ # The mobilepay_payments capability.
2984
+ attr_accessor :mobilepay_payments
2985
+ # The multibanco_payments capability.
2986
+ attr_accessor :multibanco_payments
2987
+ # The mx_bank_transfer_payments capability.
2988
+ attr_accessor :mx_bank_transfer_payments
2989
+ # The naver_pay_payments capability.
2990
+ attr_accessor :naver_pay_payments
2991
+ # The oxxo_payments capability.
2992
+ attr_accessor :oxxo_payments
2993
+ # The p24_payments capability.
2994
+ attr_accessor :p24_payments
2995
+ # The payco_payments capability.
2996
+ attr_accessor :payco_payments
2997
+ # The paynow_payments capability.
2998
+ attr_accessor :paynow_payments
2999
+ # The paypal_payments capability.
3000
+ attr_accessor :paypal_payments
3001
+ # The payto_payments capability.
3002
+ attr_accessor :payto_payments
3003
+ # The promptpay_payments capability.
3004
+ attr_accessor :promptpay_payments
3005
+ # The qris_payments capability.
3006
+ attr_accessor :qris_payments
3007
+ # The rechnung_payments capability.
3008
+ attr_accessor :rechnung_payments
3009
+ # The revolut_pay_payments capability.
3010
+ attr_accessor :revolut_pay_payments
3011
+ # The samsung_pay_payments capability.
3012
+ attr_accessor :samsung_pay_payments
3013
+ # The sepa_bank_transfer_payments capability.
3014
+ attr_accessor :sepa_bank_transfer_payments
3015
+ # The sepa_debit_payments capability.
3016
+ attr_accessor :sepa_debit_payments
3017
+ # The shopeepay_payments capability.
3018
+ attr_accessor :shopeepay_payments
3019
+ # The sofort_payments capability.
3020
+ attr_accessor :sofort_payments
3021
+ # The swish_payments capability.
3022
+ attr_accessor :swish_payments
3023
+ # The tax_reporting_us_1099_k capability.
3024
+ attr_accessor :tax_reporting_us_1099_k
3025
+ # The tax_reporting_us_1099_misc capability.
3026
+ attr_accessor :tax_reporting_us_1099_misc
3027
+ # The transfers capability.
3028
+ attr_accessor :transfers
3029
+ # The treasury capability.
3030
+ attr_accessor :treasury
3031
+ # The treasury_evolve capability.
3032
+ attr_accessor :treasury_evolve
3033
+ # The treasury_fifth_third capability.
3034
+ attr_accessor :treasury_fifth_third
3035
+ # The treasury_goldman_sachs capability.
3036
+ attr_accessor :treasury_goldman_sachs
3037
+ # The twint_payments capability.
3038
+ attr_accessor :twint_payments
3039
+ # The us_bank_account_ach_payments capability.
3040
+ attr_accessor :us_bank_account_ach_payments
3041
+ # The us_bank_transfer_payments capability.
3042
+ attr_accessor :us_bank_transfer_payments
3043
+ # The zip_payments capability.
3044
+ attr_accessor :zip_payments
3045
+
3046
+ def initialize(
3047
+ acss_debit_payments: nil,
3048
+ affirm_payments: nil,
3049
+ afterpay_clearpay_payments: nil,
3050
+ alma_payments: nil,
3051
+ amazon_pay_payments: nil,
3052
+ au_becs_debit_payments: nil,
3053
+ automatic_indirect_tax: nil,
3054
+ bacs_debit_payments: nil,
3055
+ bancontact_payments: nil,
3056
+ bank_transfer_payments: nil,
3057
+ blik_payments: nil,
3058
+ boleto_payments: nil,
3059
+ card_issuing: nil,
3060
+ card_payments: nil,
3061
+ cartes_bancaires_payments: nil,
3062
+ cashapp_payments: nil,
3063
+ eps_payments: nil,
3064
+ fpx_payments: nil,
3065
+ gb_bank_transfer_payments: nil,
3066
+ giropay_payments: nil,
3067
+ gopay_payments: nil,
3068
+ grabpay_payments: nil,
3069
+ id_bank_transfer_payments: nil,
3070
+ id_bank_transfer_payments_bca: nil,
3071
+ ideal_payments: nil,
3072
+ india_international_payments: nil,
3073
+ jcb_payments: nil,
3074
+ jp_bank_transfer_payments: nil,
3075
+ kakao_pay_payments: nil,
3076
+ klarna_payments: nil,
3077
+ konbini_payments: nil,
3078
+ kr_card_payments: nil,
3079
+ legacy_payments: nil,
3080
+ link_payments: nil,
3081
+ mb_way_payments: nil,
3082
+ mobilepay_payments: nil,
3083
+ multibanco_payments: nil,
3084
+ mx_bank_transfer_payments: nil,
3085
+ naver_pay_payments: nil,
3086
+ oxxo_payments: nil,
3087
+ p24_payments: nil,
3088
+ payco_payments: nil,
3089
+ paynow_payments: nil,
3090
+ paypal_payments: nil,
3091
+ payto_payments: nil,
3092
+ promptpay_payments: nil,
3093
+ qris_payments: nil,
3094
+ rechnung_payments: nil,
3095
+ revolut_pay_payments: nil,
3096
+ samsung_pay_payments: nil,
3097
+ sepa_bank_transfer_payments: nil,
3098
+ sepa_debit_payments: nil,
3099
+ shopeepay_payments: nil,
3100
+ sofort_payments: nil,
3101
+ swish_payments: nil,
3102
+ tax_reporting_us_1099_k: nil,
3103
+ tax_reporting_us_1099_misc: nil,
3104
+ transfers: nil,
3105
+ treasury: nil,
3106
+ treasury_evolve: nil,
3107
+ treasury_fifth_third: nil,
3108
+ treasury_goldman_sachs: nil,
3109
+ twint_payments: nil,
3110
+ us_bank_account_ach_payments: nil,
3111
+ us_bank_transfer_payments: nil,
3112
+ zip_payments: nil
3113
+ )
3114
+ @acss_debit_payments = acss_debit_payments
3115
+ @affirm_payments = affirm_payments
3116
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
3117
+ @alma_payments = alma_payments
3118
+ @amazon_pay_payments = amazon_pay_payments
3119
+ @au_becs_debit_payments = au_becs_debit_payments
3120
+ @automatic_indirect_tax = automatic_indirect_tax
3121
+ @bacs_debit_payments = bacs_debit_payments
3122
+ @bancontact_payments = bancontact_payments
3123
+ @bank_transfer_payments = bank_transfer_payments
3124
+ @blik_payments = blik_payments
3125
+ @boleto_payments = boleto_payments
3126
+ @card_issuing = card_issuing
3127
+ @card_payments = card_payments
3128
+ @cartes_bancaires_payments = cartes_bancaires_payments
3129
+ @cashapp_payments = cashapp_payments
3130
+ @eps_payments = eps_payments
3131
+ @fpx_payments = fpx_payments
3132
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
3133
+ @giropay_payments = giropay_payments
3134
+ @gopay_payments = gopay_payments
3135
+ @grabpay_payments = grabpay_payments
3136
+ @id_bank_transfer_payments = id_bank_transfer_payments
3137
+ @id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
3138
+ @ideal_payments = ideal_payments
3139
+ @india_international_payments = india_international_payments
3140
+ @jcb_payments = jcb_payments
3141
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
3142
+ @kakao_pay_payments = kakao_pay_payments
3143
+ @klarna_payments = klarna_payments
3144
+ @konbini_payments = konbini_payments
3145
+ @kr_card_payments = kr_card_payments
3146
+ @legacy_payments = legacy_payments
3147
+ @link_payments = link_payments
3148
+ @mb_way_payments = mb_way_payments
3149
+ @mobilepay_payments = mobilepay_payments
3150
+ @multibanco_payments = multibanco_payments
3151
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
3152
+ @naver_pay_payments = naver_pay_payments
3153
+ @oxxo_payments = oxxo_payments
3154
+ @p24_payments = p24_payments
3155
+ @payco_payments = payco_payments
3156
+ @paynow_payments = paynow_payments
3157
+ @paypal_payments = paypal_payments
3158
+ @payto_payments = payto_payments
3159
+ @promptpay_payments = promptpay_payments
3160
+ @qris_payments = qris_payments
3161
+ @rechnung_payments = rechnung_payments
3162
+ @revolut_pay_payments = revolut_pay_payments
3163
+ @samsung_pay_payments = samsung_pay_payments
3164
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
3165
+ @sepa_debit_payments = sepa_debit_payments
3166
+ @shopeepay_payments = shopeepay_payments
3167
+ @sofort_payments = sofort_payments
3168
+ @swish_payments = swish_payments
3169
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
3170
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
3171
+ @transfers = transfers
3172
+ @treasury = treasury
3173
+ @treasury_evolve = treasury_evolve
3174
+ @treasury_fifth_third = treasury_fifth_third
3175
+ @treasury_goldman_sachs = treasury_goldman_sachs
3176
+ @twint_payments = twint_payments
3177
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
3178
+ @us_bank_transfer_payments = us_bank_transfer_payments
3179
+ @zip_payments = zip_payments
3180
+ end
3181
+ end
3182
+
3183
+ class Card < Stripe::RequestParams
3184
+ # Attribute for param field object
3185
+ attr_accessor :object
3186
+ # Attribute for param field address_city
3187
+ attr_accessor :address_city
3188
+ # Attribute for param field address_country
3189
+ attr_accessor :address_country
3190
+ # Attribute for param field address_line1
3191
+ attr_accessor :address_line1
3192
+ # Attribute for param field address_line2
3193
+ attr_accessor :address_line2
3194
+ # Attribute for param field address_state
3195
+ attr_accessor :address_state
3196
+ # Attribute for param field address_zip
3197
+ attr_accessor :address_zip
3198
+ # Attribute for param field currency
3199
+ attr_accessor :currency
3200
+ # Attribute for param field cvc
3201
+ attr_accessor :cvc
3202
+ # Attribute for param field exp_month
3203
+ attr_accessor :exp_month
3204
+ # Attribute for param field exp_year
3205
+ attr_accessor :exp_year
3206
+ # Attribute for param field name
3207
+ attr_accessor :name
3208
+ # Attribute for param field number
3209
+ attr_accessor :number
3210
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
3211
+ attr_accessor :metadata
3212
+ # Attribute for param field default_for_currency
3213
+ attr_accessor :default_for_currency
3214
+
3215
+ def initialize(
3216
+ object: nil,
3217
+ address_city: nil,
3218
+ address_country: nil,
3219
+ address_line1: nil,
3220
+ address_line2: nil,
3221
+ address_state: nil,
3222
+ address_zip: nil,
3223
+ currency: nil,
3224
+ cvc: nil,
3225
+ exp_month: nil,
3226
+ exp_year: nil,
3227
+ name: nil,
3228
+ number: nil,
3229
+ metadata: nil,
3230
+ default_for_currency: nil
3231
+ )
3232
+ @object = object
3233
+ @address_city = address_city
3234
+ @address_country = address_country
3235
+ @address_line1 = address_line1
3236
+ @address_line2 = address_line2
3237
+ @address_state = address_state
3238
+ @address_zip = address_zip
3239
+ @currency = currency
3240
+ @cvc = cvc
3241
+ @exp_month = exp_month
3242
+ @exp_year = exp_year
3243
+ @name = name
3244
+ @number = number
3245
+ @metadata = metadata
3246
+ @default_for_currency = default_for_currency
3247
+ end
3248
+ end
3249
+
3250
+ class CardToken < Stripe::RequestParams
3251
+ # Attribute for param field object
3252
+ attr_accessor :object
3253
+ # Attribute for param field currency
3254
+ attr_accessor :currency
3255
+ # Attribute for param field token
3256
+ attr_accessor :token
3257
+
3258
+ def initialize(object: nil, currency: nil, token: nil)
3259
+ @object = object
3260
+ @currency = currency
3261
+ @token = token
3262
+ end
3263
+ end
3264
+
3265
+ class Company < Stripe::RequestParams
3266
+ class Address < Stripe::RequestParams
3267
+ # City, district, suburb, town, or village.
3268
+ attr_accessor :city
3269
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3270
+ attr_accessor :country
3271
+ # Address line 1 (e.g., street, PO Box, or company name).
3272
+ attr_accessor :line1
3273
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3274
+ attr_accessor :line2
3275
+ # ZIP or postal code.
3276
+ attr_accessor :postal_code
3277
+ # State, county, province, or region.
3278
+ attr_accessor :state
3279
+
3280
+ def initialize(
3281
+ city: nil,
3282
+ country: nil,
3283
+ line1: nil,
3284
+ line2: nil,
3285
+ postal_code: nil,
3286
+ state: nil
3287
+ )
3288
+ @city = city
3289
+ @country = country
3290
+ @line1 = line1
3291
+ @line2 = line2
3292
+ @postal_code = postal_code
3293
+ @state = state
3294
+ end
3295
+ end
3296
+
3297
+ class AddressKana < Stripe::RequestParams
3298
+ # City or ward.
3299
+ attr_accessor :city
3300
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3301
+ attr_accessor :country
3302
+ # Block or building number.
3303
+ attr_accessor :line1
3304
+ # Building details.
3305
+ attr_accessor :line2
3306
+ # Postal code.
3307
+ attr_accessor :postal_code
3308
+ # Prefecture.
3309
+ attr_accessor :state
3310
+ # Town or cho-me.
3311
+ attr_accessor :town
3312
+
3313
+ def initialize(
3314
+ city: nil,
3315
+ country: nil,
3316
+ line1: nil,
3317
+ line2: nil,
3318
+ postal_code: nil,
3319
+ state: nil,
3320
+ town: nil
3321
+ )
3322
+ @city = city
3323
+ @country = country
3324
+ @line1 = line1
3325
+ @line2 = line2
3326
+ @postal_code = postal_code
3327
+ @state = state
3328
+ @town = town
3329
+ end
3330
+ end
3331
+
3332
+ class AddressKanji < Stripe::RequestParams
3333
+ # City or ward.
3334
+ attr_accessor :city
3335
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3336
+ attr_accessor :country
3337
+ # Block or building number.
3338
+ attr_accessor :line1
3339
+ # Building details.
3340
+ attr_accessor :line2
3341
+ # Postal code.
3342
+ attr_accessor :postal_code
3343
+ # Prefecture.
3344
+ attr_accessor :state
3345
+ # Town or cho-me.
3346
+ attr_accessor :town
3347
+
3348
+ def initialize(
3349
+ city: nil,
3350
+ country: nil,
3351
+ line1: nil,
3352
+ line2: nil,
3353
+ postal_code: nil,
3354
+ state: nil,
3355
+ town: nil
3356
+ )
3357
+ @city = city
3358
+ @country = country
3359
+ @line1 = line1
3360
+ @line2 = line2
3361
+ @postal_code = postal_code
3362
+ @state = state
3363
+ @town = town
3364
+ end
3365
+ end
3366
+
3367
+ class OwnershipDeclaration < Stripe::RequestParams
3368
+ # The Unix timestamp marking when the beneficial owner attestation was made.
3369
+ attr_accessor :date
3370
+ # The IP address from which the beneficial owner attestation was made.
3371
+ attr_accessor :ip
3372
+ # The user agent of the browser from which the beneficial owner attestation was made.
3373
+ attr_accessor :user_agent
3374
+
3375
+ def initialize(date: nil, ip: nil, user_agent: nil)
3376
+ @date = date
3377
+ @ip = ip
3378
+ @user_agent = user_agent
3379
+ end
3380
+ end
3381
+
3382
+ class Verification < Stripe::RequestParams
3383
+ class Document < Stripe::RequestParams
3384
+ # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3385
+ attr_accessor :back
3386
+ # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3387
+ attr_accessor :front
3388
+
3389
+ def initialize(back: nil, front: nil)
3390
+ @back = back
3391
+ @front = front
3392
+ end
3393
+ end
3394
+ # A document verifying the business.
3395
+ attr_accessor :document
3396
+
3397
+ def initialize(document: nil)
3398
+ @document = document
3399
+ end
3400
+ end
3401
+ # The company's primary address.
3402
+ attr_accessor :address
3403
+ # The Kana variation of the company's primary address (Japan only).
3404
+ attr_accessor :address_kana
3405
+ # The Kanji variation of the company's primary address (Japan only).
3406
+ attr_accessor :address_kanji
3407
+ # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
3408
+ attr_accessor :directors_provided
3409
+ # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
3410
+ attr_accessor :executives_provided
3411
+ # The export license ID number of the company, also referred as Import Export Code (India only).
3412
+ attr_accessor :export_license_id
3413
+ # The purpose code to use for export transactions (India only).
3414
+ attr_accessor :export_purpose_code
3415
+ # The company's legal name.
3416
+ attr_accessor :name
3417
+ # The Kana variation of the company's legal name (Japan only).
3418
+ attr_accessor :name_kana
3419
+ # The Kanji variation of the company's legal name (Japan only).
3420
+ attr_accessor :name_kanji
3421
+ # Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
3422
+ attr_accessor :owners_provided
3423
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3424
+ attr_accessor :ownership_declaration
3425
+ # Attribute for param field ownership_exemption_reason
3426
+ attr_accessor :ownership_exemption_reason
3427
+ # The company's phone number (used for verification).
3428
+ attr_accessor :phone
3429
+ # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
3430
+ attr_accessor :registration_number
3431
+ # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
3432
+ attr_accessor :structure
3433
+ # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
3434
+ attr_accessor :tax_id
3435
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
3436
+ attr_accessor :tax_id_registrar
3437
+ # The VAT number of the company.
3438
+ attr_accessor :vat_id
3439
+ # Information on the verification state of the company.
3440
+ attr_accessor :verification
3441
+
3442
+ def initialize(
3443
+ address: nil,
3444
+ address_kana: nil,
3445
+ address_kanji: nil,
3446
+ directors_provided: nil,
3447
+ executives_provided: nil,
3448
+ export_license_id: nil,
3449
+ export_purpose_code: nil,
3450
+ name: nil,
3451
+ name_kana: nil,
3452
+ name_kanji: nil,
3453
+ owners_provided: nil,
3454
+ ownership_declaration: nil,
3455
+ ownership_exemption_reason: nil,
3456
+ phone: nil,
3457
+ registration_number: nil,
3458
+ structure: nil,
3459
+ tax_id: nil,
3460
+ tax_id_registrar: nil,
3461
+ vat_id: nil,
3462
+ verification: nil
3463
+ )
3464
+ @address = address
3465
+ @address_kana = address_kana
3466
+ @address_kanji = address_kanji
3467
+ @directors_provided = directors_provided
3468
+ @executives_provided = executives_provided
3469
+ @export_license_id = export_license_id
3470
+ @export_purpose_code = export_purpose_code
3471
+ @name = name
3472
+ @name_kana = name_kana
3473
+ @name_kanji = name_kanji
3474
+ @owners_provided = owners_provided
3475
+ @ownership_declaration = ownership_declaration
3476
+ @ownership_exemption_reason = ownership_exemption_reason
3477
+ @phone = phone
3478
+ @registration_number = registration_number
3479
+ @structure = structure
3480
+ @tax_id = tax_id
3481
+ @tax_id_registrar = tax_id_registrar
3482
+ @vat_id = vat_id
3483
+ @verification = verification
3484
+ end
3485
+ end
3486
+
3487
+ class Controller < Stripe::RequestParams
3488
+ class Application < Stripe::RequestParams
3489
+ # Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances).
3490
+ attr_accessor :loss_liable
3491
+ # Whether the controller owns onboarding for this account.
3492
+ attr_accessor :onboarding_owner
3493
+ # Whether the controller has pricing controls for this account.
3494
+ attr_accessor :pricing_controls
3495
+
3496
+ def initialize(loss_liable: nil, onboarding_owner: nil, pricing_controls: nil)
3497
+ @loss_liable = loss_liable
3498
+ @onboarding_owner = onboarding_owner
3499
+ @pricing_controls = pricing_controls
3500
+ end
3501
+ end
3502
+
3503
+ class Dashboard < Stripe::RequestParams
3504
+ # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
3505
+ attr_accessor :type
3506
+
3507
+ def initialize(type: nil)
3508
+ @type = type
3509
+ end
3510
+ end
3511
+
3512
+ class Fees < Stripe::RequestParams
3513
+ # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
3514
+ attr_accessor :payer
3515
+
3516
+ def initialize(payer: nil)
3517
+ @payer = payer
3518
+ end
3519
+ end
3520
+
3521
+ class Losses < Stripe::RequestParams
3522
+ # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
3523
+ attr_accessor :payments
3524
+
3525
+ def initialize(payments: nil)
3526
+ @payments = payments
3527
+ end
3528
+ end
3529
+
3530
+ class StripeDashboard < Stripe::RequestParams
3531
+ # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
3532
+ attr_accessor :type
3533
+
3534
+ def initialize(type: nil)
3535
+ @type = type
3536
+ end
3537
+ end
3538
+ # A hash of configuration describing the Connect application that controls the account.
3539
+ attr_accessor :application
3540
+ # Properties of the account's dashboard.
3541
+ attr_accessor :dashboard
3542
+ # A hash of configuration for who pays Stripe fees for product usage on this account.
3543
+ attr_accessor :fees
3544
+ # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
3545
+ attr_accessor :losses
3546
+ # A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.
3547
+ attr_accessor :requirement_collection
3548
+ # A hash of configuration for Stripe-hosted dashboards.
3549
+ attr_accessor :stripe_dashboard
3550
+
3551
+ def initialize(
3552
+ application: nil,
3553
+ dashboard: nil,
3554
+ fees: nil,
3555
+ losses: nil,
3556
+ requirement_collection: nil,
3557
+ stripe_dashboard: nil
3558
+ )
3559
+ @application = application
3560
+ @dashboard = dashboard
3561
+ @fees = fees
3562
+ @losses = losses
3563
+ @requirement_collection = requirement_collection
3564
+ @stripe_dashboard = stripe_dashboard
3565
+ end
3566
+ end
3567
+
3568
+ class Documents < Stripe::RequestParams
3569
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3570
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3571
+ attr_accessor :files
3572
+
3573
+ def initialize(files: nil)
3574
+ @files = files
3575
+ end
3576
+ end
3577
+
3578
+ class CompanyLicense < Stripe::RequestParams
3579
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3580
+ attr_accessor :files
3581
+
3582
+ def initialize(files: nil)
3583
+ @files = files
3584
+ end
3585
+ end
3586
+
3587
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3588
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3589
+ attr_accessor :files
3590
+
3591
+ def initialize(files: nil)
3592
+ @files = files
3593
+ end
3594
+ end
3595
+
3596
+ class CompanyMinisterialDecree < Stripe::RequestParams
3597
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3598
+ attr_accessor :files
3599
+
3600
+ def initialize(files: nil)
3601
+ @files = files
3602
+ end
3603
+ end
3604
+
3605
+ class CompanyRegistrationVerification < Stripe::RequestParams
3606
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3607
+ attr_accessor :files
3608
+
3609
+ def initialize(files: nil)
3610
+ @files = files
3611
+ end
3612
+ end
3613
+
3614
+ class CompanyTaxIdVerification < Stripe::RequestParams
3615
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3616
+ attr_accessor :files
3617
+
3618
+ def initialize(files: nil)
3619
+ @files = files
3620
+ end
3621
+ end
3622
+
3623
+ class ProofOfRegistration < Stripe::RequestParams
3624
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3625
+ attr_accessor :files
3626
+
3627
+ def initialize(files: nil)
3628
+ @files = files
3629
+ end
3630
+ end
3631
+ # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
3632
+ attr_accessor :bank_account_ownership_verification
3633
+ # One or more documents that demonstrate proof of a company's license to operate.
3634
+ attr_accessor :company_license
3635
+ # One or more documents showing the company's Memorandum of Association.
3636
+ attr_accessor :company_memorandum_of_association
3637
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
3638
+ attr_accessor :company_ministerial_decree
3639
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
3640
+ attr_accessor :company_registration_verification
3641
+ # One or more documents that demonstrate proof of a company's tax ID.
3642
+ attr_accessor :company_tax_id_verification
3643
+ # One or more documents showing the company’s proof of registration with the national business registry.
3644
+ attr_accessor :proof_of_registration
3645
+
3646
+ def initialize(
3647
+ bank_account_ownership_verification: nil,
3648
+ company_license: nil,
3649
+ company_memorandum_of_association: nil,
3650
+ company_ministerial_decree: nil,
3651
+ company_registration_verification: nil,
3652
+ company_tax_id_verification: nil,
3653
+ proof_of_registration: nil
3654
+ )
3655
+ @bank_account_ownership_verification = bank_account_ownership_verification
3656
+ @company_license = company_license
3657
+ @company_memorandum_of_association = company_memorandum_of_association
3658
+ @company_ministerial_decree = company_ministerial_decree
3659
+ @company_registration_verification = company_registration_verification
3660
+ @company_tax_id_verification = company_tax_id_verification
3661
+ @proof_of_registration = proof_of_registration
3662
+ end
3663
+ end
3664
+
3665
+ class Groups < Stripe::RequestParams
3666
+ # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
3667
+ attr_accessor :payments_pricing
3668
+
3669
+ def initialize(payments_pricing: nil)
3670
+ @payments_pricing = payments_pricing
3671
+ end
3672
+ end
3673
+
3674
+ class Individual < Stripe::RequestParams
3675
+ class Address < Stripe::RequestParams
3676
+ # City, district, suburb, town, or village.
3677
+ attr_accessor :city
3678
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3679
+ attr_accessor :country
3680
+ # Address line 1 (e.g., street, PO Box, or company name).
3681
+ attr_accessor :line1
3682
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3683
+ attr_accessor :line2
3684
+ # ZIP or postal code.
3685
+ attr_accessor :postal_code
3686
+ # State, county, province, or region.
3687
+ attr_accessor :state
3688
+
3689
+ def initialize(
3690
+ city: nil,
3691
+ country: nil,
3692
+ line1: nil,
3693
+ line2: nil,
3694
+ postal_code: nil,
3695
+ state: nil
3696
+ )
3697
+ @city = city
3698
+ @country = country
3699
+ @line1 = line1
3700
+ @line2 = line2
3701
+ @postal_code = postal_code
3702
+ @state = state
3703
+ end
3704
+ end
3705
+
3706
+ class AddressKana < Stripe::RequestParams
3707
+ # City or ward.
3708
+ attr_accessor :city
3709
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3710
+ attr_accessor :country
3711
+ # Block or building number.
3712
+ attr_accessor :line1
3713
+ # Building details.
3714
+ attr_accessor :line2
3715
+ # Postal code.
3716
+ attr_accessor :postal_code
3717
+ # Prefecture.
3718
+ attr_accessor :state
3719
+ # Town or cho-me.
3720
+ attr_accessor :town
3721
+
3722
+ def initialize(
3723
+ city: nil,
3724
+ country: nil,
3725
+ line1: nil,
3726
+ line2: nil,
3727
+ postal_code: nil,
3728
+ state: nil,
3729
+ town: nil
3730
+ )
3731
+ @city = city
3732
+ @country = country
3733
+ @line1 = line1
3734
+ @line2 = line2
3735
+ @postal_code = postal_code
3736
+ @state = state
3737
+ @town = town
3738
+ end
3739
+ end
3740
+
3741
+ class AddressKanji < Stripe::RequestParams
3742
+ # City or ward.
3743
+ attr_accessor :city
3744
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3745
+ attr_accessor :country
3746
+ # Block or building number.
3747
+ attr_accessor :line1
3748
+ # Building details.
3749
+ attr_accessor :line2
3750
+ # Postal code.
3751
+ attr_accessor :postal_code
3752
+ # Prefecture.
3753
+ attr_accessor :state
3754
+ # Town or cho-me.
3755
+ attr_accessor :town
3756
+
3757
+ def initialize(
3758
+ city: nil,
3759
+ country: nil,
3760
+ line1: nil,
3761
+ line2: nil,
3762
+ postal_code: nil,
3763
+ state: nil,
3764
+ town: nil
3765
+ )
3766
+ @city = city
3767
+ @country = country
3768
+ @line1 = line1
3769
+ @line2 = line2
3770
+ @postal_code = postal_code
3771
+ @state = state
3772
+ @town = town
3773
+ end
3774
+ end
3775
+
3776
+ class Dob < Stripe::RequestParams
3777
+ # The day of birth, between 1 and 31.
3778
+ attr_accessor :day
3779
+ # The month of birth, between 1 and 12.
3780
+ attr_accessor :month
3781
+ # The four-digit year of birth.
3782
+ attr_accessor :year
3783
+
3784
+ def initialize(day: nil, month: nil, year: nil)
3785
+ @day = day
3786
+ @month = month
3787
+ @year = year
3788
+ end
3789
+ end
3790
+
3791
+ class RegisteredAddress < Stripe::RequestParams
3792
+ # City, district, suburb, town, or village.
3793
+ attr_accessor :city
3794
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3795
+ attr_accessor :country
3796
+ # Address line 1 (e.g., street, PO Box, or company name).
3797
+ attr_accessor :line1
3798
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3799
+ attr_accessor :line2
3800
+ # ZIP or postal code.
3801
+ attr_accessor :postal_code
3802
+ # State, county, province, or region.
3803
+ attr_accessor :state
3804
+
3805
+ def initialize(
3806
+ city: nil,
3807
+ country: nil,
3808
+ line1: nil,
3809
+ line2: nil,
3810
+ postal_code: nil,
3811
+ state: nil
3812
+ )
3813
+ @city = city
3814
+ @country = country
3815
+ @line1 = line1
3816
+ @line2 = line2
3817
+ @postal_code = postal_code
3818
+ @state = state
3819
+ end
3820
+ end
3821
+
3822
+ class Relationship < Stripe::RequestParams
3823
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
3824
+ attr_accessor :director
3825
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
3826
+ attr_accessor :executive
3827
+ # Whether the person is an owner of the account’s legal entity.
3828
+ attr_accessor :owner
3829
+ # The percent owned by the person of the account's legal entity.
3830
+ attr_accessor :percent_ownership
3831
+ # The person's title (e.g., CEO, Support Engineer).
3832
+ attr_accessor :title
3833
+
3834
+ def initialize(
3835
+ director: nil,
3836
+ executive: nil,
3837
+ owner: nil,
3838
+ percent_ownership: nil,
3839
+ title: nil
3840
+ )
3841
+ @director = director
3842
+ @executive = executive
3843
+ @owner = owner
3844
+ @percent_ownership = percent_ownership
3845
+ @title = title
3846
+ end
3847
+ end
3848
+
3849
+ class Verification < Stripe::RequestParams
3850
+ class AdditionalDocument < Stripe::RequestParams
3851
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3852
+ attr_accessor :back
3853
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3854
+ attr_accessor :front
3855
+
3856
+ def initialize(back: nil, front: nil)
3857
+ @back = back
3858
+ @front = front
3859
+ end
3860
+ end
3861
+
3862
+ class Document < Stripe::RequestParams
3863
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3864
+ attr_accessor :back
3865
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
3866
+ attr_accessor :front
3867
+
3868
+ def initialize(back: nil, front: nil)
3869
+ @back = back
3870
+ @front = front
3871
+ end
3872
+ end
3873
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3874
+ attr_accessor :additional_document
3875
+ # An identifying document, either a passport or local ID card.
3876
+ attr_accessor :document
3877
+
3878
+ def initialize(additional_document: nil, document: nil)
3879
+ @additional_document = additional_document
3880
+ @document = document
3881
+ end
3882
+ end
3883
+ # The individual's primary address.
3884
+ attr_accessor :address
3885
+ # The Kana variation of the individual's primary address (Japan only).
3886
+ attr_accessor :address_kana
3887
+ # The Kanji variation of the individual's primary address (Japan only).
3888
+ attr_accessor :address_kanji
3889
+ # The individual's date of birth.
3890
+ attr_accessor :dob
3891
+ # The individual's email address.
3892
+ attr_accessor :email
3893
+ # The individual's first name.
3894
+ attr_accessor :first_name
3895
+ # The Kana variation of the individual's first name (Japan only).
3896
+ attr_accessor :first_name_kana
3897
+ # The Kanji variation of the individual's first name (Japan only).
3898
+ attr_accessor :first_name_kanji
3899
+ # A list of alternate names or aliases that the individual is known by.
3900
+ attr_accessor :full_name_aliases
3901
+ # The individual's gender
3902
+ attr_accessor :gender
3903
+ # The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
3904
+ attr_accessor :id_number
3905
+ # The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
3906
+ attr_accessor :id_number_secondary
3907
+ # The individual's last name.
3908
+ attr_accessor :last_name
3909
+ # The Kana variation of the individual's last name (Japan only).
3910
+ attr_accessor :last_name_kana
3911
+ # The Kanji variation of the individual's last name (Japan only).
3912
+ attr_accessor :last_name_kanji
3913
+ # The individual's maiden name.
3914
+ attr_accessor :maiden_name
3915
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3916
+ attr_accessor :metadata
3917
+ # The individual's phone number.
3918
+ attr_accessor :phone
3919
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
3920
+ attr_accessor :political_exposure
3921
+ # The individual's registered address.
3922
+ attr_accessor :registered_address
3923
+ # Describes the person’s relationship to the account.
3924
+ attr_accessor :relationship
3925
+ # The last four digits of the individual's Social Security Number (U.S. only).
3926
+ attr_accessor :ssn_last_4
3927
+ # The individual's verification document information.
3928
+ attr_accessor :verification
3929
+
3930
+ def initialize(
3931
+ address: nil,
3932
+ address_kana: nil,
3933
+ address_kanji: nil,
3934
+ dob: nil,
3935
+ email: nil,
3936
+ first_name: nil,
3937
+ first_name_kana: nil,
3938
+ first_name_kanji: nil,
3939
+ full_name_aliases: nil,
3940
+ gender: nil,
3941
+ id_number: nil,
3942
+ id_number_secondary: nil,
3943
+ last_name: nil,
3944
+ last_name_kana: nil,
3945
+ last_name_kanji: nil,
3946
+ maiden_name: nil,
3947
+ metadata: nil,
3948
+ phone: nil,
3949
+ political_exposure: nil,
3950
+ registered_address: nil,
3951
+ relationship: nil,
3952
+ ssn_last_4: nil,
3953
+ verification: nil
3954
+ )
3955
+ @address = address
3956
+ @address_kana = address_kana
3957
+ @address_kanji = address_kanji
3958
+ @dob = dob
3959
+ @email = email
3960
+ @first_name = first_name
3961
+ @first_name_kana = first_name_kana
3962
+ @first_name_kanji = first_name_kanji
3963
+ @full_name_aliases = full_name_aliases
3964
+ @gender = gender
3965
+ @id_number = id_number
3966
+ @id_number_secondary = id_number_secondary
3967
+ @last_name = last_name
3968
+ @last_name_kana = last_name_kana
3969
+ @last_name_kanji = last_name_kanji
3970
+ @maiden_name = maiden_name
3971
+ @metadata = metadata
3972
+ @phone = phone
3973
+ @political_exposure = political_exposure
3974
+ @registered_address = registered_address
3975
+ @relationship = relationship
3976
+ @ssn_last_4 = ssn_last_4
3977
+ @verification = verification
3978
+ end
3979
+ end
3980
+
3981
+ class RiskControls < Stripe::RequestParams
3982
+ class Charges < Stripe::RequestParams
3983
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
3984
+ # There can be a delay before the risk control is paused or unpaused.
3985
+ attr_accessor :pause_requested
3986
+
3987
+ def initialize(pause_requested: nil)
3988
+ @pause_requested = pause_requested
3989
+ end
3990
+ end
3991
+
3992
+ class Payouts < Stripe::RequestParams
3993
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
3994
+ # There can be a delay before the risk control is paused or unpaused.
3995
+ attr_accessor :pause_requested
3996
+
3997
+ def initialize(pause_requested: nil)
3998
+ @pause_requested = pause_requested
3999
+ end
4000
+ end
4001
+ # Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
4002
+ attr_accessor :charges
4003
+ # Represents the risk control status of payouts. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
4004
+ attr_accessor :payouts
4005
+
4006
+ def initialize(charges: nil, payouts: nil)
4007
+ @charges = charges
4008
+ @payouts = payouts
4009
+ end
4010
+ end
4011
+
4012
+ class Settings < Stripe::RequestParams
4013
+ class BacsDebitPayments < Stripe::RequestParams
4014
+ # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
4015
+ attr_accessor :display_name
4016
+
4017
+ def initialize(display_name: nil)
4018
+ @display_name = display_name
4019
+ end
4020
+ end
4021
+
4022
+ class BankBcaOnboarding < Stripe::RequestParams
4023
+ # Bank BCA business account holder name
4024
+ attr_accessor :account_holder_name
4025
+ # Bank BCA business account number
4026
+ attr_accessor :business_account_number
4027
+
4028
+ def initialize(account_holder_name: nil, business_account_number: nil)
4029
+ @account_holder_name = account_holder_name
4030
+ @business_account_number = business_account_number
4031
+ end
4032
+ end
4033
+
4034
+ class Branding < Stripe::RequestParams
4035
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
4036
+ attr_accessor :icon
4037
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
4038
+ attr_accessor :logo
4039
+ # A CSS hex color value representing the primary branding color for this account.
4040
+ attr_accessor :primary_color
4041
+ # A CSS hex color value representing the secondary branding color for this account.
4042
+ attr_accessor :secondary_color
4043
+
4044
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
4045
+ @icon = icon
4046
+ @logo = logo
4047
+ @primary_color = primary_color
4048
+ @secondary_color = secondary_color
4049
+ end
4050
+ end
4051
+
4052
+ class Capital < Stripe::RequestParams
4053
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
4054
+ attr_accessor :payout_destination
4055
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
4056
+ attr_accessor :payout_destination_selector
4057
+
4058
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
4059
+ @payout_destination = payout_destination
4060
+ @payout_destination_selector = payout_destination_selector
4061
+ end
4062
+ end
4063
+
4064
+ class CardIssuing < Stripe::RequestParams
4065
+ class TosAcceptance < Stripe::RequestParams
4066
+ # The Unix timestamp marking when the account representative accepted the service agreement.
4067
+ attr_accessor :date
4068
+ # The IP address from which the account representative accepted the service agreement.
4069
+ attr_accessor :ip
4070
+ # The user agent of the browser from which the account representative accepted the service agreement.
4071
+ attr_accessor :user_agent
4072
+
4073
+ def initialize(date: nil, ip: nil, user_agent: nil)
4074
+ @date = date
4075
+ @ip = ip
4076
+ @user_agent = user_agent
4077
+ end
4078
+ end
4079
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
4080
+ attr_accessor :tos_acceptance
4081
+
4082
+ def initialize(tos_acceptance: nil)
4083
+ @tos_acceptance = tos_acceptance
4084
+ end
4085
+ end
4086
+
4087
+ class CardPayments < Stripe::RequestParams
4088
+ class DeclineOn < Stripe::RequestParams
4089
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
4090
+ attr_accessor :avs_failure
4091
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
4092
+ attr_accessor :cvc_failure
4093
+
4094
+ def initialize(avs_failure: nil, cvc_failure: nil)
4095
+ @avs_failure = avs_failure
4096
+ @cvc_failure = cvc_failure
4097
+ end
4098
+ end
4099
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
4100
+ attr_accessor :decline_on
4101
+ # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
4102
+ attr_accessor :statement_descriptor_prefix
4103
+ # The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
4104
+ attr_accessor :statement_descriptor_prefix_kana
4105
+ # The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
4106
+ attr_accessor :statement_descriptor_prefix_kanji
4107
+
4108
+ def initialize(
4109
+ decline_on: nil,
4110
+ statement_descriptor_prefix: nil,
4111
+ statement_descriptor_prefix_kana: nil,
4112
+ statement_descriptor_prefix_kanji: nil
4113
+ )
4114
+ @decline_on = decline_on
4115
+ @statement_descriptor_prefix = statement_descriptor_prefix
4116
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
4117
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
4118
+ end
4119
+ end
4120
+
4121
+ class Payments < Stripe::RequestParams
4122
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
4123
+ attr_accessor :statement_descriptor
4124
+ # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
4125
+ attr_accessor :statement_descriptor_kana
4126
+ # The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
4127
+ attr_accessor :statement_descriptor_kanji
4128
+
4129
+ def initialize(
4130
+ statement_descriptor: nil,
4131
+ statement_descriptor_kana: nil,
4132
+ statement_descriptor_kanji: nil
4133
+ )
4134
+ @statement_descriptor = statement_descriptor
4135
+ @statement_descriptor_kana = statement_descriptor_kana
4136
+ @statement_descriptor_kanji = statement_descriptor_kanji
4137
+ end
4138
+ end
4139
+
4140
+ class Payouts < Stripe::RequestParams
4141
+ class Schedule < Stripe::RequestParams
4142
+ # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
4143
+ attr_accessor :delay_days
4144
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
4145
+ attr_accessor :interval
4146
+ # The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
4147
+ attr_accessor :monthly_anchor
4148
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
4149
+ attr_accessor :weekly_anchor
4150
+
4151
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
4152
+ @delay_days = delay_days
4153
+ @interval = interval
4154
+ @monthly_anchor = monthly_anchor
4155
+ @weekly_anchor = weekly_anchor
4156
+ end
4157
+ end
4158
+ # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
4159
+ attr_accessor :debit_negative_balances
4160
+ # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
4161
+ attr_accessor :schedule
4162
+ # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
4163
+ attr_accessor :statement_descriptor
4164
+
4165
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
4166
+ @debit_negative_balances = debit_negative_balances
4167
+ @schedule = schedule
4168
+ @statement_descriptor = statement_descriptor
4169
+ end
4170
+ end
4171
+
4172
+ class TaxForms < Stripe::RequestParams
4173
+ # Whether the account opted out of receiving their tax forms by postal delivery.
4174
+ attr_accessor :consented_to_paperless_delivery
4175
+
4176
+ def initialize(consented_to_paperless_delivery: nil)
4177
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
4178
+ end
4179
+ end
4180
+
4181
+ class Treasury < Stripe::RequestParams
4182
+ class TosAcceptance < Stripe::RequestParams
4183
+ # The Unix timestamp marking when the account representative accepted the service agreement.
4184
+ attr_accessor :date
4185
+ # The IP address from which the account representative accepted the service agreement.
4186
+ attr_accessor :ip
4187
+ # The user agent of the browser from which the account representative accepted the service agreement.
4188
+ attr_accessor :user_agent
4189
+
4190
+ def initialize(date: nil, ip: nil, user_agent: nil)
4191
+ @date = date
4192
+ @ip = ip
4193
+ @user_agent = user_agent
4194
+ end
4195
+ end
4196
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
4197
+ attr_accessor :tos_acceptance
4198
+
4199
+ def initialize(tos_acceptance: nil)
4200
+ @tos_acceptance = tos_acceptance
4201
+ end
4202
+ end
4203
+ # Settings specific to Bacs Direct Debit.
4204
+ attr_accessor :bacs_debit_payments
4205
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
4206
+ attr_accessor :bank_bca_onboarding
4207
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
4208
+ attr_accessor :branding
4209
+ # Settings specific to the account's use of the Capital product.
4210
+ attr_accessor :capital
4211
+ # Settings specific to the account's use of the Card Issuing product.
4212
+ attr_accessor :card_issuing
4213
+ # Settings specific to card charging on the account.
4214
+ attr_accessor :card_payments
4215
+ # Settings that apply across payment methods for charging on the account.
4216
+ attr_accessor :payments
4217
+ # Settings specific to the account's payouts.
4218
+ attr_accessor :payouts
4219
+ # Settings specific to the account's tax forms.
4220
+ attr_accessor :tax_forms
4221
+ # Settings specific to the account's Treasury FinancialAccounts.
4222
+ attr_accessor :treasury
4223
+
4224
+ def initialize(
4225
+ bacs_debit_payments: nil,
4226
+ bank_bca_onboarding: nil,
4227
+ branding: nil,
4228
+ capital: nil,
4229
+ card_issuing: nil,
4230
+ card_payments: nil,
4231
+ payments: nil,
4232
+ payouts: nil,
4233
+ tax_forms: nil,
4234
+ treasury: nil
4235
+ )
4236
+ @bacs_debit_payments = bacs_debit_payments
4237
+ @bank_bca_onboarding = bank_bca_onboarding
4238
+ @branding = branding
4239
+ @capital = capital
4240
+ @card_issuing = card_issuing
4241
+ @card_payments = card_payments
4242
+ @payments = payments
4243
+ @payouts = payouts
4244
+ @tax_forms = tax_forms
4245
+ @treasury = treasury
4246
+ end
4247
+ end
4248
+
4249
+ class TosAcceptance < Stripe::RequestParams
4250
+ # The Unix timestamp marking when the account representative accepted their service agreement.
4251
+ attr_accessor :date
4252
+ # The IP address from which the account representative accepted their service agreement.
4253
+ attr_accessor :ip
4254
+ # The user's service agreement type.
4255
+ attr_accessor :service_agreement
4256
+ # The user agent of the browser from which the account representative accepted their service agreement.
4257
+ attr_accessor :user_agent
4258
+
4259
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
4260
+ @date = date
4261
+ @ip = ip
4262
+ @service_agreement = service_agreement
4263
+ @user_agent = user_agent
4264
+ end
4265
+ end
4266
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
4267
+ attr_accessor :account_token
4268
+ # Business information about the account.
4269
+ attr_accessor :business_profile
4270
+ # The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4271
+ attr_accessor :business_type
4272
+ # Each key of the dictionary represents a capability, and each capability
4273
+ # maps to its settings (for example, whether it has been requested or not). Each
4274
+ # capability is inactive until you have provided its specific
4275
+ # requirements and Stripe has verified them. An account might have some
4276
+ # of its requested capabilities be active and some be inactive.
4277
+ #
4278
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
4279
+ # is `none`, which includes Custom accounts.
4280
+ attr_accessor :capabilities
4281
+ # Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4282
+ attr_accessor :company
4283
+ # A hash of configuration describing the account controller's attributes.
4284
+ attr_accessor :controller
4285
+ # The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
4286
+ attr_accessor :country
4287
+ # Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
4288
+ attr_accessor :default_currency
4289
+ # Documents that may be submitted to satisfy various informational requests.
4290
+ attr_accessor :documents
4291
+ # The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
4292
+ attr_accessor :email
4293
+ # Specifies which fields in the response should be expanded.
4294
+ attr_accessor :expand
4295
+ # A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4296
+ attr_accessor :external_account
4297
+ # A hash of account group type to tokens. These are account groups this account should be added to.
4298
+ attr_accessor :groups
4299
+ # Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4300
+ attr_accessor :individual
4301
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
4302
+ attr_accessor :metadata
4303
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
4304
+ attr_accessor :risk_controls
4305
+ # Options for customizing how the account functions within Stripe.
4306
+ attr_accessor :settings
4307
+ # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
4308
+ attr_accessor :tos_acceptance
4309
+ # The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
4310
+ attr_accessor :type
4311
+
4312
+ def initialize(
4313
+ account_token: nil,
4314
+ business_profile: nil,
4315
+ business_type: nil,
4316
+ capabilities: nil,
4317
+ company: nil,
4318
+ controller: nil,
4319
+ country: nil,
4320
+ default_currency: nil,
4321
+ documents: nil,
4322
+ email: nil,
4323
+ expand: nil,
4324
+ external_account: nil,
4325
+ groups: nil,
4326
+ individual: nil,
4327
+ metadata: nil,
4328
+ risk_controls: nil,
4329
+ settings: nil,
4330
+ tos_acceptance: nil,
4331
+ type: nil
4332
+ )
4333
+ @account_token = account_token
4334
+ @business_profile = business_profile
4335
+ @business_type = business_type
4336
+ @capabilities = capabilities
4337
+ @company = company
4338
+ @controller = controller
4339
+ @country = country
4340
+ @default_currency = default_currency
4341
+ @documents = documents
4342
+ @email = email
4343
+ @expand = expand
4344
+ @external_account = external_account
4345
+ @groups = groups
4346
+ @individual = individual
4347
+ @metadata = metadata
4348
+ @risk_controls = risk_controls
4349
+ @settings = settings
4350
+ @tos_acceptance = tos_acceptance
4351
+ @type = type
4352
+ end
4353
+ end
4354
+
4355
+ class RejectParams < Stripe::RequestParams
4356
+ # Specifies which fields in the response should be expanded.
4357
+ attr_accessor :expand
4358
+ # The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
4359
+ attr_accessor :reason
4360
+
4361
+ def initialize(expand: nil, reason: nil)
4362
+ @expand = expand
4363
+ @reason = reason
4364
+ end
4365
+ end
4366
+
16
4367
  # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
17
4368
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
18
4369
  #