stripe 13.5.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (641) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -3
  3. data/Gemfile +4 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +29 -0
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_operations/request.rb +1 -0
  8. data/lib/stripe/api_requestor.rb +3 -0
  9. data/lib/stripe/api_version.rb +1 -1
  10. data/lib/stripe/errors.rb +0 -7
  11. data/lib/stripe/object_types.rb +8 -2
  12. data/lib/stripe/request_params.rb +24 -0
  13. data/lib/stripe/resources/account.rb +4634 -0
  14. data/lib/stripe/resources/account_link.rb +54 -0
  15. data/lib/stripe/resources/account_session.rb +739 -0
  16. data/lib/stripe/resources/apple_pay_domain.rb +54 -0
  17. data/lib/stripe/resources/application.rb +20 -0
  18. data/lib/stripe/resources/application_fee.rb +87 -0
  19. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  20. data/lib/stripe/resources/apps/secret.rb +141 -0
  21. data/lib/stripe/resources/balance.rb +122 -0
  22. data/lib/stripe/resources/balance_transaction.rb +103 -0
  23. data/lib/stripe/resources/bank_account.rb +84 -2
  24. data/lib/stripe/resources/billing/alert.rb +135 -0
  25. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  26. data/lib/stripe/resources/billing/credit_balance_summary.rb +40 -0
  27. data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
  28. data/lib/stripe/resources/billing/credit_grant.rb +217 -0
  29. data/lib/stripe/resources/billing/meter.rb +169 -0
  30. data/lib/stripe/resources/billing/meter_event.rb +35 -0
  31. data/lib/stripe/resources/billing/meter_event_adjustment.rb +43 -0
  32. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  33. data/lib/stripe/resources/billing_portal/configuration.rb +553 -0
  34. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  35. data/lib/stripe/resources/capability.rb +84 -0
  36. data/lib/stripe/resources/card.rb +77 -0
  37. data/lib/stripe/resources/cash_balance.rb +17 -0
  38. data/lib/stripe/resources/charge.rb +1612 -0
  39. data/lib/stripe/resources/checkout/session.rb +3530 -6
  40. data/lib/stripe/resources/climate/order.rb +167 -0
  41. data/lib/stripe/resources/climate/product.rb +47 -0
  42. data/lib/stripe/resources/climate/supplier.rb +45 -0
  43. data/lib/stripe/resources/confirmation_token.rb +1448 -0
  44. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  45. data/lib/stripe/resources/country_spec.rb +54 -0
  46. data/lib/stripe/resources/coupon.rb +189 -0
  47. data/lib/stripe/resources/credit_note.rb +639 -0
  48. data/lib/stripe/resources/credit_note_line_item.rb +67 -0
  49. data/lib/stripe/resources/customer.rb +824 -0
  50. data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
  51. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  52. data/lib/stripe/resources/customer_session.rb +159 -0
  53. data/lib/stripe/resources/discount.rb +29 -0
  54. data/lib/stripe/resources/dispute.rb +610 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement.rb +37 -0
  56. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  57. data/lib/stripe/resources/entitlements/feature.rb +81 -0
  58. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  59. data/lib/stripe/resources/event.rb +90 -0
  60. data/lib/stripe/resources/exchange_rate.rb +24 -0
  61. data/lib/stripe/resources/file.rb +102 -0
  62. data/lib/stripe/resources/file_link.rb +103 -0
  63. data/lib/stripe/resources/financial_connections/account.rb +237 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/session.rb +95 -0
  67. data/lib/stripe/resources/financial_connections/transaction.rb +92 -0
  68. data/lib/stripe/resources/forwarding/request.rb +156 -0
  69. data/lib/stripe/resources/funding_instructions.rb +308 -0
  70. data/lib/stripe/resources/identity/verification_report.rb +257 -0
  71. data/lib/stripe/resources/identity/verification_session.rb +352 -0
  72. data/lib/stripe/resources/invoice.rb +3204 -21
  73. data/lib/stripe/resources/invoice_item.rb +400 -0
  74. data/lib/stripe/resources/invoice_line_item.rb +350 -0
  75. data/lib/stripe/resources/invoice_payment.rb +105 -0
  76. data/lib/stripe/resources/invoice_rendering_template.rb +55 -0
  77. data/lib/stripe/resources/issuing/authorization.rb +1104 -0
  78. data/lib/stripe/resources/issuing/card.rb +657 -0
  79. data/lib/stripe/resources/issuing/cardholder.rb +648 -0
  80. data/lib/stripe/resources/issuing/dispute.rb +781 -0
  81. data/lib/stripe/resources/issuing/personalization_design.rb +276 -0
  82. data/lib/stripe/resources/issuing/physical_bundle.rb +54 -0
  83. data/lib/stripe/resources/issuing/token.rb +166 -0
  84. data/lib/stripe/resources/issuing/transaction.rb +912 -0
  85. data/lib/stripe/resources/line_item.rb +47 -0
  86. data/lib/stripe/resources/login_link.rb +7 -0
  87. data/lib/stripe/resources/mandate.rb +142 -0
  88. data/lib/stripe/resources/payment_intent.rb +8650 -0
  89. data/lib/stripe/resources/payment_link.rb +1632 -0
  90. data/lib/stripe/resources/payment_method.rb +1542 -0
  91. data/lib/stripe/resources/payment_method_configuration.rb +2776 -0
  92. data/lib/stripe/resources/payment_method_domain.rb +150 -6
  93. data/lib/stripe/resources/payout.rb +209 -0
  94. data/lib/stripe/resources/person.rb +264 -1
  95. data/lib/stripe/resources/plan.rb +302 -0
  96. data/lib/stripe/resources/price.rb +605 -1
  97. data/lib/stripe/resources/product.rb +472 -0
  98. data/lib/stripe/resources/product_feature.rb +12 -0
  99. data/lib/stripe/resources/promotion_code.rb +212 -0
  100. data/lib/stripe/resources/quote.rb +917 -0
  101. data/lib/stripe/resources/radar/early_fraud_warning.rb +68 -0
  102. data/lib/stripe/resources/radar/value_list.rb +116 -0
  103. data/lib/stripe/resources/radar/value_list_item.rb +86 -0
  104. data/lib/stripe/resources/refund.rb +392 -0
  105. data/lib/stripe/resources/reporting/report_run.rb +141 -0
  106. data/lib/stripe/resources/reporting/report_type.rb +27 -0
  107. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  108. data/lib/stripe/resources/reversal.rb +21 -0
  109. data/lib/stripe/resources/review.rb +99 -0
  110. data/lib/stripe/resources/setup_attempt.rb +368 -0
  111. data/lib/stripe/resources/setup_intent.rb +3473 -0
  112. data/lib/stripe/resources/shipping_rate.rb +250 -0
  113. data/lib/stripe/resources/sigma/scheduled_query_run.rb +45 -0
  114. data/lib/stripe/resources/source.rb +1198 -0
  115. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  116. data/lib/stripe/resources/source_transaction.rb +85 -0
  117. data/lib/stripe/resources/subscription.rb +1686 -0
  118. data/lib/stripe/resources/subscription_item.rb +313 -5
  119. data/lib/stripe/resources/subscription_schedule.rb +1281 -0
  120. data/lib/stripe/resources/tax/calculation.rb +378 -0
  121. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  122. data/lib/stripe/resources/tax/registration.rb +2373 -0
  123. data/lib/stripe/resources/tax/settings.rb +117 -0
  124. data/lib/stripe/resources/tax/transaction.rb +258 -0
  125. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  126. data/lib/stripe/resources/tax_code.rb +26 -0
  127. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  128. data/lib/stripe/resources/tax_id.rb +112 -0
  129. data/lib/stripe/resources/tax_rate.rb +191 -0
  130. data/lib/stripe/resources/terminal/configuration.rb +1260 -0
  131. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  132. data/lib/stripe/resources/terminal/location.rb +166 -0
  133. data/lib/stripe/resources/terminal/reader.rb +427 -0
  134. data/lib/stripe/resources/test_helpers/test_clock.rb +77 -0
  135. data/lib/stripe/resources/token.rb +1159 -0
  136. data/lib/stripe/resources/topup.rb +165 -0
  137. data/lib/stripe/resources/transfer.rb +144 -0
  138. data/lib/stripe/resources/treasury/credit_reversal.rb +83 -0
  139. data/lib/stripe/resources/treasury/debit_reversal.rb +94 -0
  140. data/lib/stripe/resources/treasury/financial_account.rb +725 -1
  141. data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
  142. data/lib/stripe/resources/treasury/inbound_transfer.rb +226 -0
  143. data/lib/stripe/resources/treasury/outbound_payment.rb +486 -0
  144. data/lib/stripe/resources/treasury/outbound_transfer.rb +341 -0
  145. data/lib/stripe/resources/treasury/received_credit.rb +237 -0
  146. data/lib/stripe/resources/treasury/received_debit.rb +196 -0
  147. data/lib/stripe/resources/treasury/transaction.rb +167 -0
  148. data/lib/stripe/resources/treasury/transaction_entry.rb +148 -0
  149. data/lib/stripe/resources/v2/amount.rb +9 -0
  150. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  151. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +21 -0
  152. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  153. data/lib/stripe/resources/v2/event.rb +28 -0
  154. data/lib/stripe/resources/v2/event_destination.rb +60 -0
  155. data/lib/stripe/resources/webhook_endpoint.rb +113 -0
  156. data/lib/stripe/resources.rb +8 -2
  157. data/lib/stripe/services/account_capability_service.rb +32 -0
  158. data/lib/stripe/services/account_external_account_service.rb +250 -0
  159. data/lib/stripe/services/account_link_service.rb +46 -0
  160. data/lib/stripe/services/account_login_link_service.rb +9 -0
  161. data/lib/stripe/services/account_person_service.rb +875 -0
  162. data/lib/stripe/services/account_service.rb +4000 -0
  163. data/lib/stripe/services/account_session_service.rb +484 -0
  164. data/lib/stripe/services/apple_pay_domain_service.rb +51 -0
  165. data/lib/stripe/services/application_fee_refund_service.rb +54 -0
  166. data/lib/stripe/services/application_fee_service.rb +57 -0
  167. data/lib/stripe/services/apps/secret_service.rb +116 -0
  168. data/lib/stripe/services/balance_service.rb +9 -0
  169. data/lib/stripe/services/balance_transaction_service.rb +69 -0
  170. data/lib/stripe/services/billing/alert_service.rb +113 -0
  171. data/lib/stripe/services/billing/credit_balance_summary_service.rb +48 -0
  172. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +40 -0
  173. data/lib/stripe/services/billing/credit_grant_service.rb +166 -0
  174. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +26 -0
  175. data/lib/stripe/services/billing/meter_event_service.rb +21 -0
  176. data/lib/stripe/services/billing/meter_event_summary_service.rb +39 -0
  177. data/lib/stripe/services/billing/meter_service.rb +130 -0
  178. data/lib/stripe/services/billing_portal/configuration_service.rb +444 -0
  179. data/lib/stripe/services/billing_portal/session_service.rb +173 -0
  180. data/lib/stripe/services/charge_service.rb +402 -0
  181. data/lib/stripe/services/checkout/session_line_item_service.rb +18 -0
  182. data/lib/stripe/services/checkout/session_service.rb +2399 -5
  183. data/lib/stripe/services/climate/order_service.rb +102 -0
  184. data/lib/stripe/services/climate/product_service.rb +27 -0
  185. data/lib/stripe/services/climate/supplier_service.rb +27 -0
  186. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  187. data/lib/stripe/services/country_spec_service.rb +27 -0
  188. data/lib/stripe/services/coupon_service.rb +152 -0
  189. data/lib/stripe/services/credit_note_line_item_service.rb +18 -0
  190. data/lib/stripe/services/credit_note_preview_lines_service.rb +152 -0
  191. data/lib/stripe/services/credit_note_service.rb +365 -0
  192. data/lib/stripe/services/customer_balance_transaction_service.rb +63 -0
  193. data/lib/stripe/services/customer_cash_balance_service.rb +29 -0
  194. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +27 -0
  195. data/lib/stripe/services/customer_funding_instructions_service.rb +42 -0
  196. data/lib/stripe/services/customer_payment_method_service.rb +40 -0
  197. data/lib/stripe/services/customer_payment_source_service.rb +179 -0
  198. data/lib/stripe/services/customer_service.rb +577 -0
  199. data/lib/stripe/services/customer_session_service.rb +96 -0
  200. data/lib/stripe/services/customer_tax_id_service.rb +45 -0
  201. data/lib/stripe/services/dispute_service.rb +374 -0
  202. data/lib/stripe/services/entitlements/active_entitlement_service.rb +36 -0
  203. data/lib/stripe/services/entitlements/feature_service.rb +76 -0
  204. data/lib/stripe/services/ephemeral_key_service.rb +36 -0
  205. data/lib/stripe/services/event_service.rb +65 -0
  206. data/lib/stripe/services/exchange_rate_service.rb +27 -0
  207. data/lib/stripe/services/file_link_service.rb +94 -0
  208. data/lib/stripe/services/file_service.rb +89 -0
  209. data/lib/stripe/services/financial_connections/account_owner_service.rb +27 -0
  210. data/lib/stripe/services/financial_connections/account_service.rb +96 -0
  211. data/lib/stripe/services/financial_connections/session_service.rb +68 -0
  212. data/lib/stripe/services/financial_connections/transaction_service.rb +70 -0
  213. data/lib/stripe/services/forwarding/request_service.rb +106 -0
  214. data/lib/stripe/services/identity/verification_report_service.rb +65 -0
  215. data/lib/stripe/services/identity/verification_session_service.rb +231 -0
  216. data/lib/stripe/services/invoice_item_service.rb +334 -0
  217. data/lib/stripe/services/invoice_line_item_service.rb +221 -0
  218. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  219. data/lib/stripe/services/invoice_rendering_template_service.rb +51 -0
  220. data/lib/stripe/services/invoice_service.rb +2648 -19
  221. data/lib/stripe/services/issuing/authorization_service.rb +104 -0
  222. data/lib/stripe/services/issuing/card_service.rb +455 -0
  223. data/lib/stripe/services/issuing/cardholder_service.rb +525 -0
  224. data/lib/stripe/services/issuing/dispute_service.rb +633 -0
  225. data/lib/stripe/services/issuing/personalization_design_service.rb +193 -0
  226. data/lib/stripe/services/issuing/physical_bundle_service.rb +40 -0
  227. data/lib/stripe/services/issuing/token_service.rb +73 -0
  228. data/lib/stripe/services/issuing/transaction_service.rb +77 -0
  229. data/lib/stripe/services/mandate_service.rb +9 -0
  230. data/lib/stripe/services/payment_intent_service.rb +7054 -0
  231. data/lib/stripe/services/payment_link_line_item_service.rb +18 -0
  232. data/lib/stripe/services/payment_link_service.rb +1276 -0
  233. data/lib/stripe/services/payment_method_configuration_service.rb +2004 -0
  234. data/lib/stripe/services/payment_method_domain_service.rb +79 -3
  235. data/lib/stripe/services/payment_method_service.rb +808 -0
  236. data/lib/stripe/services/payout_service.rb +159 -0
  237. data/lib/stripe/services/plan_service.rb +249 -0
  238. data/lib/stripe/services/price_service.rb +494 -1
  239. data/lib/stripe/services/product_feature_service.rb +42 -0
  240. data/lib/stripe/services/product_service.rb +425 -0
  241. data/lib/stripe/services/promotion_code_service.rb +178 -0
  242. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +18 -0
  243. data/lib/stripe/services/quote_line_item_service.rb +18 -0
  244. data/lib/stripe/services/quote_service.rb +611 -0
  245. data/lib/stripe/services/radar/early_fraud_warning_service.rb +61 -0
  246. data/lib/stripe/services/radar/value_list_item_service.rb +79 -0
  247. data/lib/stripe/services/radar/value_list_service.rb +103 -0
  248. data/lib/stripe/services/refund_service.rb +137 -0
  249. data/lib/stripe/services/reporting/report_run_service.rb +106 -0
  250. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  251. data/lib/stripe/services/review_service.rb +56 -0
  252. data/lib/stripe/services/setup_attempt_service.rb +51 -0
  253. data/lib/stripe/services/setup_intent_service.rb +3163 -0
  254. data/lib/stripe/services/shipping_rate_service.rb +200 -0
  255. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +27 -0
  256. data/lib/stripe/services/source_service.rb +601 -0
  257. data/lib/stripe/services/source_transaction_service.rb +18 -0
  258. data/lib/stripe/services/subscription_item_service.rb +282 -5
  259. data/lib/stripe/services/subscription_schedule_service.rb +1062 -0
  260. data/lib/stripe/services/subscription_service.rb +1412 -0
  261. data/lib/stripe/services/tax/calculation_line_item_service.rb +18 -0
  262. data/lib/stripe/services/tax/calculation_service.rb +205 -0
  263. data/lib/stripe/services/tax/registration_service.rb +1564 -0
  264. data/lib/stripe/services/tax/settings_service.rb +74 -0
  265. data/lib/stripe/services/tax/transaction_line_item_service.rb +18 -0
  266. data/lib/stripe/services/tax/transaction_service.rb +111 -0
  267. data/lib/stripe/services/tax_code_service.rb +27 -0
  268. data/lib/stripe/services/tax_id_service.rb +79 -0
  269. data/lib/stripe/services/tax_rate_service.rb +155 -0
  270. data/lib/stripe/services/terminal/configuration_service.rb +997 -0
  271. data/lib/stripe/services/terminal/connection_token_service.rb +12 -0
  272. data/lib/stripe/services/terminal/location_service.rb +144 -0
  273. data/lib/stripe/services/terminal/reader_service.rb +266 -0
  274. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +642 -0
  275. data/lib/stripe/services/test_helpers/customer_service.rb +18 -0
  276. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +745 -0
  277. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  278. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +41 -0
  279. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +632 -0
  280. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  281. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +44 -0
  282. data/lib/stripe/services/test_helpers/test_clock_service.rb +57 -0
  283. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +38 -0
  284. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +87 -0
  285. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +87 -0
  286. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +60 -0
  287. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +60 -0
  288. data/lib/stripe/services/token_service.rb +1140 -0
  289. data/lib/stripe/services/topup_service.rb +142 -0
  290. data/lib/stripe/services/transfer_reversal_service.rb +66 -0
  291. data/lib/stripe/services/transfer_service.rb +119 -0
  292. data/lib/stripe/services/treasury/credit_reversal_service.rb +59 -0
  293. data/lib/stripe/services/treasury/debit_reversal_service.rb +63 -0
  294. data/lib/stripe/services/treasury/financial_account_features_service.rb +166 -0
  295. data/lib/stripe/services/treasury/financial_account_service.rb +485 -1
  296. data/lib/stripe/services/treasury/inbound_transfer_service.rb +88 -0
  297. data/lib/stripe/services/treasury/outbound_payment_service.rb +258 -0
  298. data/lib/stripe/services/treasury/outbound_transfer_service.rb +124 -0
  299. data/lib/stripe/services/treasury/received_credit_service.rb +52 -0
  300. data/lib/stripe/services/treasury/received_debit_service.rb +40 -0
  301. data/lib/stripe/services/treasury/transaction_entry_service.rb +87 -0
  302. data/lib/stripe/services/treasury/transaction_service.rb +95 -0
  303. data/lib/stripe/services/v1_services.rb +2 -1
  304. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +23 -0
  305. data/lib/stripe/services/v2/billing/meter_event_service.rb +25 -0
  306. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  307. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +33 -0
  308. data/lib/stripe/services/v2/core/event_destination_service.rb +143 -0
  309. data/lib/stripe/services/v2/core/event_service.rb +15 -0
  310. data/lib/stripe/services/webhook_endpoint_service.rb +96 -0
  311. data/lib/stripe/services.rb +1 -3
  312. data/lib/stripe/stripe_client.rb +2 -1
  313. data/lib/stripe/stripe_object.rb +5 -0
  314. data/lib/stripe/version.rb +1 -1
  315. data/lib/stripe.rb +1 -0
  316. data/rbi/stripe/resources/account.rbi +4840 -0
  317. data/rbi/stripe/resources/account_link.rbi +74 -0
  318. data/rbi/stripe/resources/account_session.rbi +894 -0
  319. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  320. data/rbi/stripe/resources/application.rbi +20 -0
  321. data/rbi/stripe/resources/application_fee.rbi +118 -0
  322. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  323. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  324. data/rbi/stripe/resources/balance.rbi +180 -0
  325. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  326. data/rbi/stripe/resources/bank_account.rbi +127 -0
  327. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  328. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  329. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  330. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  331. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  332. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  333. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  334. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  335. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  336. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  337. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  338. data/rbi/stripe/resources/capability.rbi +125 -0
  339. data/rbi/stripe/resources/card.rbi +125 -0
  340. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  341. data/rbi/stripe/resources/charge.rbi +2054 -0
  342. data/rbi/stripe/resources/checkout/session.rbi +3951 -0
  343. data/rbi/stripe/resources/climate/order.rbi +245 -0
  344. data/rbi/stripe/resources/climate/product.rbi +75 -0
  345. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  346. data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
  347. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  348. data/rbi/stripe/resources/country_spec.rbi +85 -0
  349. data/rbi/stripe/resources/coupon.rbi +252 -0
  350. data/rbi/stripe/resources/credit_note.rbi +747 -0
  351. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  352. data/rbi/stripe/resources/customer.rbi +1009 -0
  353. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  354. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  355. data/rbi/stripe/resources/customer_session.rbi +200 -0
  356. data/rbi/stripe/resources/discount.rbi +53 -0
  357. data/rbi/stripe/resources/dispute.rbi +761 -0
  358. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  359. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  360. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  361. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  362. data/rbi/stripe/resources/event.rbi +146 -0
  363. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  364. data/rbi/stripe/resources/file.rbi +143 -0
  365. data/rbi/stripe/resources/file_link.rbi +141 -0
  366. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  367. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  368. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  369. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  370. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  371. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  372. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  373. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  374. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  375. data/rbi/stripe/resources/invoice.rbi +3733 -0
  376. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  377. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  378. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  379. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  380. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  381. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  382. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  383. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  384. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  385. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  386. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  387. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  388. data/rbi/stripe/resources/line_item.rbi +72 -0
  389. data/rbi/stripe/resources/login_link.rbi +18 -0
  390. data/rbi/stripe/resources/mandate.rbi +187 -0
  391. data/rbi/stripe/resources/payment_intent.rbi +9731 -0
  392. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  393. data/rbi/stripe/resources/payment_method.rbi +1822 -0
  394. data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
  395. data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
  396. data/rbi/stripe/resources/payout.rbi +300 -0
  397. data/rbi/stripe/resources/person.rbi +371 -0
  398. data/rbi/stripe/resources/plan.rbi +373 -0
  399. data/rbi/stripe/resources/price.rbi +694 -0
  400. data/rbi/stripe/resources/product.rbi +557 -0
  401. data/rbi/stripe/resources/product_feature.rbi +26 -0
  402. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  403. data/rbi/stripe/resources/quote.rbi +1123 -0
  404. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  405. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  406. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  407. data/rbi/stripe/resources/refund.rbi +516 -0
  408. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  409. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  410. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  411. data/rbi/stripe/resources/reversal.rbi +51 -0
  412. data/rbi/stripe/resources/review.rbi +154 -0
  413. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  414. data/rbi/stripe/resources/setup_intent.rbi +3860 -0
  415. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  416. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  417. data/rbi/stripe/resources/source.rbi +1496 -0
  418. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  419. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  420. data/rbi/stripe/resources/subscription.rbi +1964 -0
  421. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  422. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  423. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  424. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  425. data/rbi/stripe/resources/tax/registration.rbi +2485 -0
  426. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  427. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  428. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  429. data/rbi/stripe/resources/tax_code.rbi +44 -0
  430. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  431. data/rbi/stripe/resources/tax_id.rbi +167 -0
  432. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  433. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  434. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  435. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  436. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  437. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  438. data/rbi/stripe/resources/token.rbi +1217 -0
  439. data/rbi/stripe/resources/topup.rbi +222 -0
  440. data/rbi/stripe/resources/transfer.rbi +199 -0
  441. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  442. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  443. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  444. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  445. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  446. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  447. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  448. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  449. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  450. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  451. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  452. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  453. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  454. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  455. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  456. data/rbi/stripe/resources/v2/event.rbi +48 -0
  457. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  458. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  459. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  460. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  461. data/rbi/stripe/services/account_link_service.rbi +58 -0
  462. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  463. data/rbi/stripe/services/account_person_service.rbi +923 -0
  464. data/rbi/stripe/services/account_service.rbi +4143 -0
  465. data/rbi/stripe/services/account_session_service.rbi +572 -0
  466. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  467. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  468. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  469. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  470. data/rbi/stripe/services/apps_service.rbi +9 -0
  471. data/rbi/stripe/services/balance_service.rbi +21 -0
  472. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  473. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  474. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  475. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  476. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  477. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  478. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  479. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  480. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  481. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  482. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  483. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  484. data/rbi/stripe/services/billing_service.rbi +15 -0
  485. data/rbi/stripe/services/charge_service.rbi +448 -0
  486. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  487. data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
  488. data/rbi/stripe/services/checkout_service.rbi +9 -0
  489. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  490. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  491. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  492. data/rbi/stripe/services/climate_service.rbi +11 -0
  493. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  494. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  495. data/rbi/stripe/services/coupon_service.rbi +196 -0
  496. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  497. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  498. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  499. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  500. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  501. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  502. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  503. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  504. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  505. data/rbi/stripe/services/customer_service.rbi +651 -0
  506. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  507. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  508. data/rbi/stripe/services/dispute_service.rbi +424 -0
  509. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  510. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  511. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  512. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  513. data/rbi/stripe/services/event_service.rbi +83 -0
  514. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  515. data/rbi/stripe/services/file_link_service.rbi +124 -0
  516. data/rbi/stripe/services/file_service.rbi +116 -0
  517. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  518. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  519. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  520. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  521. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  522. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  523. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  524. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  525. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  526. data/rbi/stripe/services/identity_service.rbi +10 -0
  527. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  528. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  529. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  530. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  531. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  532. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  533. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  534. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  535. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  536. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  537. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  538. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  539. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  540. data/rbi/stripe/services/issuing_service.rbi +16 -0
  541. data/rbi/stripe/services/mandate_service.rbi +20 -0
  542. data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
  543. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  544. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  545. data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
  546. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  547. data/rbi/stripe/services/payment_method_service.rbi +840 -0
  548. data/rbi/stripe/services/payout_service.rbi +205 -0
  549. data/rbi/stripe/services/plan_service.rbi +284 -0
  550. data/rbi/stripe/services/price_service.rbi +546 -0
  551. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  552. data/rbi/stripe/services/product_service.rbi +479 -0
  553. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  554. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  555. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  556. data/rbi/stripe/services/quote_service.rbi +686 -0
  557. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  558. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  559. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  560. data/rbi/stripe/services/radar_service.rbi +11 -0
  561. data/rbi/stripe/services/refund_service.rbi +185 -0
  562. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  563. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  564. data/rbi/stripe/services/reporting_service.rbi +10 -0
  565. data/rbi/stripe/services/review_service.rbi +84 -0
  566. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  567. data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
  568. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  569. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  570. data/rbi/stripe/services/sigma_service.rbi +9 -0
  571. data/rbi/stripe/services/source_service.rbi +663 -0
  572. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  573. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  574. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  575. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  576. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  577. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  578. data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
  579. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  580. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  581. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  582. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  583. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  584. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  585. data/rbi/stripe/services/tax_service.rbi +12 -0
  586. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  587. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  588. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  589. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  590. data/rbi/stripe/services/terminal_service.rbi +12 -0
  591. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  592. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  593. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  594. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  595. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  596. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  597. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  598. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  599. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  600. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  601. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  602. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  603. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  604. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  605. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  606. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  607. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  608. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  609. data/rbi/stripe/services/token_service.rbi +1189 -0
  610. data/rbi/stripe/services/topup_service.rbi +176 -0
  611. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  612. data/rbi/stripe/services/transfer_service.rbi +152 -0
  613. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  614. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  615. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  616. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  617. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  618. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  619. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  620. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  621. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  622. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  623. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  624. data/rbi/stripe/services/treasury_service.rbi +18 -0
  625. data/rbi/stripe/services/v1_services.rbi +77 -0
  626. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  627. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  628. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  629. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  630. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  631. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  632. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  633. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  634. data/rbi/stripe/services/v2_services.rbi +10 -0
  635. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  636. metadata +333 -7
  637. data/lib/stripe/resources/usage_record.rb +0 -17
  638. data/lib/stripe/resources/usage_record_summary.rb +0 -12
  639. data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
  640. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
  641. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
@@ -13,6 +13,4006 @@ 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 BacsDebitPayments < 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 BancontactPayments < 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 BankTransferPayments < 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 BilliePayments < 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 GrabpayPayments < 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 IdealPayments < 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 IndiaInternationalPayments < 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 JcbPayments < 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 JpBankTransferPayments < 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 KakaoPayPayments < 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 KlarnaPayments < 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 KonbiniPayments < 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 KrCardPayments < 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 LegacyPayments < 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 LinkPayments < 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 MobilepayPayments < 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 MultibancoPayments < 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 MxBankTransferPayments < 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 NaverPayPayments < 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 NzBankAccountBecsDebitPayments < 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 OxxoPayments < 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 P24Payments < 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 PayByBankPayments < 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 PaycoPayments < 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 PaynowPayments < 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 PromptpayPayments < 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 RevolutPayPayments < 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 SamsungPayPayments < 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 SatispayPayments < 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 SepaBankTransferPayments < 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 SepaDebitPayments < 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 SofortPayments < 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 SwishPayments < 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 TaxReportingUs1099K < 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 TaxReportingUs1099Misc < 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 Transfers < 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 Treasury < 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 TwintPayments < 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 UsBankAccountAchPayments < 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 UsBankTransferPayments < 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 ZipPayments < 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
+ # The acss_debit_payments capability.
686
+ attr_accessor :acss_debit_payments
687
+ # The affirm_payments capability.
688
+ attr_accessor :affirm_payments
689
+ # The afterpay_clearpay_payments capability.
690
+ attr_accessor :afterpay_clearpay_payments
691
+ # The alma_payments capability.
692
+ attr_accessor :alma_payments
693
+ # The amazon_pay_payments capability.
694
+ attr_accessor :amazon_pay_payments
695
+ # The au_becs_debit_payments capability.
696
+ attr_accessor :au_becs_debit_payments
697
+ # The bacs_debit_payments capability.
698
+ attr_accessor :bacs_debit_payments
699
+ # The bancontact_payments capability.
700
+ attr_accessor :bancontact_payments
701
+ # The bank_transfer_payments capability.
702
+ attr_accessor :bank_transfer_payments
703
+ # The billie_payments capability.
704
+ attr_accessor :billie_payments
705
+ # The blik_payments capability.
706
+ attr_accessor :blik_payments
707
+ # The boleto_payments capability.
708
+ attr_accessor :boleto_payments
709
+ # The card_issuing capability.
710
+ attr_accessor :card_issuing
711
+ # The card_payments capability.
712
+ attr_accessor :card_payments
713
+ # The cartes_bancaires_payments capability.
714
+ attr_accessor :cartes_bancaires_payments
715
+ # The cashapp_payments capability.
716
+ attr_accessor :cashapp_payments
717
+ # The eps_payments capability.
718
+ attr_accessor :eps_payments
719
+ # The fpx_payments capability.
720
+ attr_accessor :fpx_payments
721
+ # The gb_bank_transfer_payments capability.
722
+ attr_accessor :gb_bank_transfer_payments
723
+ # The giropay_payments capability.
724
+ attr_accessor :giropay_payments
725
+ # The grabpay_payments capability.
726
+ attr_accessor :grabpay_payments
727
+ # The ideal_payments capability.
728
+ attr_accessor :ideal_payments
729
+ # The india_international_payments capability.
730
+ attr_accessor :india_international_payments
731
+ # The jcb_payments capability.
732
+ attr_accessor :jcb_payments
733
+ # The jp_bank_transfer_payments capability.
734
+ attr_accessor :jp_bank_transfer_payments
735
+ # The kakao_pay_payments capability.
736
+ attr_accessor :kakao_pay_payments
737
+ # The klarna_payments capability.
738
+ attr_accessor :klarna_payments
739
+ # The konbini_payments capability.
740
+ attr_accessor :konbini_payments
741
+ # The kr_card_payments capability.
742
+ attr_accessor :kr_card_payments
743
+ # The legacy_payments capability.
744
+ attr_accessor :legacy_payments
745
+ # The link_payments capability.
746
+ attr_accessor :link_payments
747
+ # The mobilepay_payments capability.
748
+ attr_accessor :mobilepay_payments
749
+ # The multibanco_payments capability.
750
+ attr_accessor :multibanco_payments
751
+ # The mx_bank_transfer_payments capability.
752
+ attr_accessor :mx_bank_transfer_payments
753
+ # The naver_pay_payments capability.
754
+ attr_accessor :naver_pay_payments
755
+ # The nz_bank_account_becs_debit_payments capability.
756
+ attr_accessor :nz_bank_account_becs_debit_payments
757
+ # The oxxo_payments capability.
758
+ attr_accessor :oxxo_payments
759
+ # The p24_payments capability.
760
+ attr_accessor :p24_payments
761
+ # The pay_by_bank_payments capability.
762
+ attr_accessor :pay_by_bank_payments
763
+ # The payco_payments capability.
764
+ attr_accessor :payco_payments
765
+ # The paynow_payments capability.
766
+ attr_accessor :paynow_payments
767
+ # The promptpay_payments capability.
768
+ attr_accessor :promptpay_payments
769
+ # The revolut_pay_payments capability.
770
+ attr_accessor :revolut_pay_payments
771
+ # The samsung_pay_payments capability.
772
+ attr_accessor :samsung_pay_payments
773
+ # The satispay_payments capability.
774
+ attr_accessor :satispay_payments
775
+ # The sepa_bank_transfer_payments capability.
776
+ attr_accessor :sepa_bank_transfer_payments
777
+ # The sepa_debit_payments capability.
778
+ attr_accessor :sepa_debit_payments
779
+ # The sofort_payments capability.
780
+ attr_accessor :sofort_payments
781
+ # The swish_payments capability.
782
+ attr_accessor :swish_payments
783
+ # The tax_reporting_us_1099_k capability.
784
+ attr_accessor :tax_reporting_us_1099_k
785
+ # The tax_reporting_us_1099_misc capability.
786
+ attr_accessor :tax_reporting_us_1099_misc
787
+ # The transfers capability.
788
+ attr_accessor :transfers
789
+ # The treasury capability.
790
+ attr_accessor :treasury
791
+ # The twint_payments capability.
792
+ attr_accessor :twint_payments
793
+ # The us_bank_account_ach_payments capability.
794
+ attr_accessor :us_bank_account_ach_payments
795
+ # The us_bank_transfer_payments capability.
796
+ attr_accessor :us_bank_transfer_payments
797
+ # The zip_payments capability.
798
+ attr_accessor :zip_payments
799
+
800
+ def initialize(
801
+ acss_debit_payments: nil,
802
+ affirm_payments: nil,
803
+ afterpay_clearpay_payments: nil,
804
+ alma_payments: nil,
805
+ amazon_pay_payments: nil,
806
+ au_becs_debit_payments: nil,
807
+ bacs_debit_payments: nil,
808
+ bancontact_payments: nil,
809
+ bank_transfer_payments: nil,
810
+ billie_payments: nil,
811
+ blik_payments: nil,
812
+ boleto_payments: nil,
813
+ card_issuing: nil,
814
+ card_payments: nil,
815
+ cartes_bancaires_payments: nil,
816
+ cashapp_payments: nil,
817
+ eps_payments: nil,
818
+ fpx_payments: nil,
819
+ gb_bank_transfer_payments: nil,
820
+ giropay_payments: nil,
821
+ grabpay_payments: nil,
822
+ ideal_payments: nil,
823
+ india_international_payments: nil,
824
+ jcb_payments: nil,
825
+ jp_bank_transfer_payments: nil,
826
+ kakao_pay_payments: nil,
827
+ klarna_payments: nil,
828
+ konbini_payments: nil,
829
+ kr_card_payments: nil,
830
+ legacy_payments: nil,
831
+ link_payments: nil,
832
+ mobilepay_payments: nil,
833
+ multibanco_payments: nil,
834
+ mx_bank_transfer_payments: nil,
835
+ naver_pay_payments: nil,
836
+ nz_bank_account_becs_debit_payments: nil,
837
+ oxxo_payments: nil,
838
+ p24_payments: nil,
839
+ pay_by_bank_payments: nil,
840
+ payco_payments: nil,
841
+ paynow_payments: nil,
842
+ promptpay_payments: nil,
843
+ revolut_pay_payments: nil,
844
+ samsung_pay_payments: nil,
845
+ satispay_payments: nil,
846
+ sepa_bank_transfer_payments: nil,
847
+ sepa_debit_payments: nil,
848
+ sofort_payments: nil,
849
+ swish_payments: nil,
850
+ tax_reporting_us_1099_k: nil,
851
+ tax_reporting_us_1099_misc: nil,
852
+ transfers: nil,
853
+ treasury: nil,
854
+ twint_payments: nil,
855
+ us_bank_account_ach_payments: nil,
856
+ us_bank_transfer_payments: nil,
857
+ zip_payments: nil
858
+ )
859
+ @acss_debit_payments = acss_debit_payments
860
+ @affirm_payments = affirm_payments
861
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
862
+ @alma_payments = alma_payments
863
+ @amazon_pay_payments = amazon_pay_payments
864
+ @au_becs_debit_payments = au_becs_debit_payments
865
+ @bacs_debit_payments = bacs_debit_payments
866
+ @bancontact_payments = bancontact_payments
867
+ @bank_transfer_payments = bank_transfer_payments
868
+ @billie_payments = billie_payments
869
+ @blik_payments = blik_payments
870
+ @boleto_payments = boleto_payments
871
+ @card_issuing = card_issuing
872
+ @card_payments = card_payments
873
+ @cartes_bancaires_payments = cartes_bancaires_payments
874
+ @cashapp_payments = cashapp_payments
875
+ @eps_payments = eps_payments
876
+ @fpx_payments = fpx_payments
877
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
878
+ @giropay_payments = giropay_payments
879
+ @grabpay_payments = grabpay_payments
880
+ @ideal_payments = ideal_payments
881
+ @india_international_payments = india_international_payments
882
+ @jcb_payments = jcb_payments
883
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
884
+ @kakao_pay_payments = kakao_pay_payments
885
+ @klarna_payments = klarna_payments
886
+ @konbini_payments = konbini_payments
887
+ @kr_card_payments = kr_card_payments
888
+ @legacy_payments = legacy_payments
889
+ @link_payments = link_payments
890
+ @mobilepay_payments = mobilepay_payments
891
+ @multibanco_payments = multibanco_payments
892
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
893
+ @naver_pay_payments = naver_pay_payments
894
+ @nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
895
+ @oxxo_payments = oxxo_payments
896
+ @p24_payments = p24_payments
897
+ @pay_by_bank_payments = pay_by_bank_payments
898
+ @payco_payments = payco_payments
899
+ @paynow_payments = paynow_payments
900
+ @promptpay_payments = promptpay_payments
901
+ @revolut_pay_payments = revolut_pay_payments
902
+ @samsung_pay_payments = samsung_pay_payments
903
+ @satispay_payments = satispay_payments
904
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
905
+ @sepa_debit_payments = sepa_debit_payments
906
+ @sofort_payments = sofort_payments
907
+ @swish_payments = swish_payments
908
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
909
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
910
+ @transfers = transfers
911
+ @treasury = treasury
912
+ @twint_payments = twint_payments
913
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
914
+ @us_bank_transfer_payments = us_bank_transfer_payments
915
+ @zip_payments = zip_payments
916
+ end
917
+ end
918
+
919
+ class Card < Stripe::RequestParams
920
+ # Attribute for param field object
921
+ attr_accessor :object
922
+ # Attribute for param field address_city
923
+ attr_accessor :address_city
924
+ # Attribute for param field address_country
925
+ attr_accessor :address_country
926
+ # Attribute for param field address_line1
927
+ attr_accessor :address_line1
928
+ # Attribute for param field address_line2
929
+ attr_accessor :address_line2
930
+ # Attribute for param field address_state
931
+ attr_accessor :address_state
932
+ # Attribute for param field address_zip
933
+ attr_accessor :address_zip
934
+ # Attribute for param field currency
935
+ attr_accessor :currency
936
+ # Attribute for param field cvc
937
+ attr_accessor :cvc
938
+ # Attribute for param field exp_month
939
+ attr_accessor :exp_month
940
+ # Attribute for param field exp_year
941
+ attr_accessor :exp_year
942
+ # Attribute for param field name
943
+ attr_accessor :name
944
+ # Attribute for param field number
945
+ attr_accessor :number
946
+ # 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.
947
+ attr_accessor :metadata
948
+ # Attribute for param field default_for_currency
949
+ attr_accessor :default_for_currency
950
+
951
+ def initialize(
952
+ object: nil,
953
+ address_city: nil,
954
+ address_country: nil,
955
+ address_line1: nil,
956
+ address_line2: nil,
957
+ address_state: nil,
958
+ address_zip: nil,
959
+ currency: nil,
960
+ cvc: nil,
961
+ exp_month: nil,
962
+ exp_year: nil,
963
+ name: nil,
964
+ number: nil,
965
+ metadata: nil,
966
+ default_for_currency: nil
967
+ )
968
+ @object = object
969
+ @address_city = address_city
970
+ @address_country = address_country
971
+ @address_line1 = address_line1
972
+ @address_line2 = address_line2
973
+ @address_state = address_state
974
+ @address_zip = address_zip
975
+ @currency = currency
976
+ @cvc = cvc
977
+ @exp_month = exp_month
978
+ @exp_year = exp_year
979
+ @name = name
980
+ @number = number
981
+ @metadata = metadata
982
+ @default_for_currency = default_for_currency
983
+ end
984
+ end
985
+
986
+ class CardToken < Stripe::RequestParams
987
+ # Attribute for param field object
988
+ attr_accessor :object
989
+ # Attribute for param field currency
990
+ attr_accessor :currency
991
+ # Attribute for param field token
992
+ attr_accessor :token
993
+
994
+ def initialize(object: nil, currency: nil, token: nil)
995
+ @object = object
996
+ @currency = currency
997
+ @token = token
998
+ end
999
+ end
1000
+
1001
+ class Company < Stripe::RequestParams
1002
+ class Address < Stripe::RequestParams
1003
+ # City, district, suburb, town, or village.
1004
+ attr_accessor :city
1005
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1006
+ attr_accessor :country
1007
+ # Address line 1 (e.g., street, PO Box, or company name).
1008
+ attr_accessor :line1
1009
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1010
+ attr_accessor :line2
1011
+ # ZIP or postal code.
1012
+ attr_accessor :postal_code
1013
+ # State, county, province, or region.
1014
+ attr_accessor :state
1015
+
1016
+ def initialize(
1017
+ city: nil,
1018
+ country: nil,
1019
+ line1: nil,
1020
+ line2: nil,
1021
+ postal_code: nil,
1022
+ state: nil
1023
+ )
1024
+ @city = city
1025
+ @country = country
1026
+ @line1 = line1
1027
+ @line2 = line2
1028
+ @postal_code = postal_code
1029
+ @state = state
1030
+ end
1031
+ end
1032
+
1033
+ class AddressKana < Stripe::RequestParams
1034
+ # City or ward.
1035
+ attr_accessor :city
1036
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1037
+ attr_accessor :country
1038
+ # Block or building number.
1039
+ attr_accessor :line1
1040
+ # Building details.
1041
+ attr_accessor :line2
1042
+ # Postal code.
1043
+ attr_accessor :postal_code
1044
+ # Prefecture.
1045
+ attr_accessor :state
1046
+ # Town or cho-me.
1047
+ attr_accessor :town
1048
+
1049
+ def initialize(
1050
+ city: nil,
1051
+ country: nil,
1052
+ line1: nil,
1053
+ line2: nil,
1054
+ postal_code: nil,
1055
+ state: nil,
1056
+ town: nil
1057
+ )
1058
+ @city = city
1059
+ @country = country
1060
+ @line1 = line1
1061
+ @line2 = line2
1062
+ @postal_code = postal_code
1063
+ @state = state
1064
+ @town = town
1065
+ end
1066
+ end
1067
+
1068
+ class AddressKanji < Stripe::RequestParams
1069
+ # City or ward.
1070
+ attr_accessor :city
1071
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1072
+ attr_accessor :country
1073
+ # Block or building number.
1074
+ attr_accessor :line1
1075
+ # Building details.
1076
+ attr_accessor :line2
1077
+ # Postal code.
1078
+ attr_accessor :postal_code
1079
+ # Prefecture.
1080
+ attr_accessor :state
1081
+ # Town or cho-me.
1082
+ attr_accessor :town
1083
+
1084
+ def initialize(
1085
+ city: nil,
1086
+ country: nil,
1087
+ line1: nil,
1088
+ line2: nil,
1089
+ postal_code: nil,
1090
+ state: nil,
1091
+ town: nil
1092
+ )
1093
+ @city = city
1094
+ @country = country
1095
+ @line1 = line1
1096
+ @line2 = line2
1097
+ @postal_code = postal_code
1098
+ @state = state
1099
+ @town = town
1100
+ end
1101
+ end
1102
+
1103
+ class DirectorshipDeclaration < Stripe::RequestParams
1104
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1105
+ attr_accessor :date
1106
+ # The IP address from which the directorship declaration attestation was made.
1107
+ attr_accessor :ip
1108
+ # The user agent of the browser from which the directorship declaration attestation was made.
1109
+ attr_accessor :user_agent
1110
+
1111
+ def initialize(date: nil, ip: nil, user_agent: nil)
1112
+ @date = date
1113
+ @ip = ip
1114
+ @user_agent = user_agent
1115
+ end
1116
+ end
1117
+
1118
+ class OwnershipDeclaration < Stripe::RequestParams
1119
+ # The Unix timestamp marking when the beneficial owner attestation was made.
1120
+ attr_accessor :date
1121
+ # The IP address from which the beneficial owner attestation was made.
1122
+ attr_accessor :ip
1123
+ # The user agent of the browser from which the beneficial owner attestation was made.
1124
+ attr_accessor :user_agent
1125
+
1126
+ def initialize(date: nil, ip: nil, user_agent: nil)
1127
+ @date = date
1128
+ @ip = ip
1129
+ @user_agent = user_agent
1130
+ end
1131
+ end
1132
+
1133
+ class Verification < Stripe::RequestParams
1134
+ class Document < Stripe::RequestParams
1135
+ # 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.
1136
+ attr_accessor :back
1137
+ # 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.
1138
+ attr_accessor :front
1139
+
1140
+ def initialize(back: nil, front: nil)
1141
+ @back = back
1142
+ @front = front
1143
+ end
1144
+ end
1145
+ # A document verifying the business.
1146
+ attr_accessor :document
1147
+
1148
+ def initialize(document: nil)
1149
+ @document = document
1150
+ end
1151
+ end
1152
+ # The company's primary address.
1153
+ attr_accessor :address
1154
+ # The Kana variation of the company's primary address (Japan only).
1155
+ attr_accessor :address_kana
1156
+ # The Kanji variation of the company's primary address (Japan only).
1157
+ attr_accessor :address_kanji
1158
+ # 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.
1159
+ attr_accessor :directors_provided
1160
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1161
+ attr_accessor :directorship_declaration
1162
+ # 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.
1163
+ attr_accessor :executives_provided
1164
+ # The export license ID number of the company, also referred as Import Export Code (India only).
1165
+ attr_accessor :export_license_id
1166
+ # The purpose code to use for export transactions (India only).
1167
+ attr_accessor :export_purpose_code
1168
+ # The company's legal name.
1169
+ attr_accessor :name
1170
+ # The Kana variation of the company's legal name (Japan only).
1171
+ attr_accessor :name_kana
1172
+ # The Kanji variation of the company's legal name (Japan only).
1173
+ attr_accessor :name_kanji
1174
+ # 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.
1175
+ attr_accessor :owners_provided
1176
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1177
+ attr_accessor :ownership_declaration
1178
+ # This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
1179
+ attr_accessor :ownership_exemption_reason
1180
+ # The company's phone number (used for verification).
1181
+ attr_accessor :phone
1182
+ # 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).
1183
+ attr_accessor :registration_number
1184
+ # 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.
1185
+ attr_accessor :structure
1186
+ # 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.)
1187
+ attr_accessor :tax_id
1188
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1189
+ attr_accessor :tax_id_registrar
1190
+ # The VAT number of the company.
1191
+ attr_accessor :vat_id
1192
+ # Information on the verification state of the company.
1193
+ attr_accessor :verification
1194
+
1195
+ def initialize(
1196
+ address: nil,
1197
+ address_kana: nil,
1198
+ address_kanji: nil,
1199
+ directors_provided: nil,
1200
+ directorship_declaration: nil,
1201
+ executives_provided: nil,
1202
+ export_license_id: nil,
1203
+ export_purpose_code: nil,
1204
+ name: nil,
1205
+ name_kana: nil,
1206
+ name_kanji: nil,
1207
+ owners_provided: nil,
1208
+ ownership_declaration: nil,
1209
+ ownership_exemption_reason: nil,
1210
+ phone: nil,
1211
+ registration_number: nil,
1212
+ structure: nil,
1213
+ tax_id: nil,
1214
+ tax_id_registrar: nil,
1215
+ vat_id: nil,
1216
+ verification: nil
1217
+ )
1218
+ @address = address
1219
+ @address_kana = address_kana
1220
+ @address_kanji = address_kanji
1221
+ @directors_provided = directors_provided
1222
+ @directorship_declaration = directorship_declaration
1223
+ @executives_provided = executives_provided
1224
+ @export_license_id = export_license_id
1225
+ @export_purpose_code = export_purpose_code
1226
+ @name = name
1227
+ @name_kana = name_kana
1228
+ @name_kanji = name_kanji
1229
+ @owners_provided = owners_provided
1230
+ @ownership_declaration = ownership_declaration
1231
+ @ownership_exemption_reason = ownership_exemption_reason
1232
+ @phone = phone
1233
+ @registration_number = registration_number
1234
+ @structure = structure
1235
+ @tax_id = tax_id
1236
+ @tax_id_registrar = tax_id_registrar
1237
+ @vat_id = vat_id
1238
+ @verification = verification
1239
+ end
1240
+ end
1241
+
1242
+ class Documents < Stripe::RequestParams
1243
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1244
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1245
+ attr_accessor :files
1246
+
1247
+ def initialize(files: nil)
1248
+ @files = files
1249
+ end
1250
+ end
1251
+
1252
+ class CompanyLicense < Stripe::RequestParams
1253
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1254
+ attr_accessor :files
1255
+
1256
+ def initialize(files: nil)
1257
+ @files = files
1258
+ end
1259
+ end
1260
+
1261
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1262
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1263
+ attr_accessor :files
1264
+
1265
+ def initialize(files: nil)
1266
+ @files = files
1267
+ end
1268
+ end
1269
+
1270
+ class CompanyMinisterialDecree < Stripe::RequestParams
1271
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1272
+ attr_accessor :files
1273
+
1274
+ def initialize(files: nil)
1275
+ @files = files
1276
+ end
1277
+ end
1278
+
1279
+ class CompanyRegistrationVerification < Stripe::RequestParams
1280
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1281
+ attr_accessor :files
1282
+
1283
+ def initialize(files: nil)
1284
+ @files = files
1285
+ end
1286
+ end
1287
+
1288
+ class CompanyTaxIdVerification < Stripe::RequestParams
1289
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1290
+ attr_accessor :files
1291
+
1292
+ def initialize(files: nil)
1293
+ @files = files
1294
+ end
1295
+ end
1296
+
1297
+ class ProofOfRegistration < Stripe::RequestParams
1298
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1299
+ attr_accessor :files
1300
+
1301
+ def initialize(files: nil)
1302
+ @files = files
1303
+ end
1304
+ end
1305
+
1306
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1307
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1308
+ attr_accessor :files
1309
+
1310
+ def initialize(files: nil)
1311
+ @files = files
1312
+ end
1313
+ end
1314
+ # 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.
1315
+ attr_accessor :bank_account_ownership_verification
1316
+ # One or more documents that demonstrate proof of a company's license to operate.
1317
+ attr_accessor :company_license
1318
+ # One or more documents showing the company's Memorandum of Association.
1319
+ attr_accessor :company_memorandum_of_association
1320
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1321
+ attr_accessor :company_ministerial_decree
1322
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
1323
+ attr_accessor :company_registration_verification
1324
+ # One or more documents that demonstrate proof of a company's tax ID.
1325
+ attr_accessor :company_tax_id_verification
1326
+ # One or more documents showing the company’s proof of registration with the national business registry.
1327
+ attr_accessor :proof_of_registration
1328
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1329
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1330
+
1331
+ def initialize(
1332
+ bank_account_ownership_verification: nil,
1333
+ company_license: nil,
1334
+ company_memorandum_of_association: nil,
1335
+ company_ministerial_decree: nil,
1336
+ company_registration_verification: nil,
1337
+ company_tax_id_verification: nil,
1338
+ proof_of_registration: nil,
1339
+ proof_of_ultimate_beneficial_ownership: nil
1340
+ )
1341
+ @bank_account_ownership_verification = bank_account_ownership_verification
1342
+ @company_license = company_license
1343
+ @company_memorandum_of_association = company_memorandum_of_association
1344
+ @company_ministerial_decree = company_ministerial_decree
1345
+ @company_registration_verification = company_registration_verification
1346
+ @company_tax_id_verification = company_tax_id_verification
1347
+ @proof_of_registration = proof_of_registration
1348
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1349
+ end
1350
+ end
1351
+
1352
+ class Groups < Stripe::RequestParams
1353
+ # 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.
1354
+ attr_accessor :payments_pricing
1355
+
1356
+ def initialize(payments_pricing: nil)
1357
+ @payments_pricing = payments_pricing
1358
+ end
1359
+ end
1360
+
1361
+ class Individual < Stripe::RequestParams
1362
+ class Address < Stripe::RequestParams
1363
+ # City, district, suburb, town, or village.
1364
+ attr_accessor :city
1365
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1366
+ attr_accessor :country
1367
+ # Address line 1 (e.g., street, PO Box, or company name).
1368
+ attr_accessor :line1
1369
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1370
+ attr_accessor :line2
1371
+ # ZIP or postal code.
1372
+ attr_accessor :postal_code
1373
+ # State, county, province, or region.
1374
+ attr_accessor :state
1375
+
1376
+ def initialize(
1377
+ city: nil,
1378
+ country: nil,
1379
+ line1: nil,
1380
+ line2: nil,
1381
+ postal_code: nil,
1382
+ state: nil
1383
+ )
1384
+ @city = city
1385
+ @country = country
1386
+ @line1 = line1
1387
+ @line2 = line2
1388
+ @postal_code = postal_code
1389
+ @state = state
1390
+ end
1391
+ end
1392
+
1393
+ class AddressKana < Stripe::RequestParams
1394
+ # City or ward.
1395
+ attr_accessor :city
1396
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1397
+ attr_accessor :country
1398
+ # Block or building number.
1399
+ attr_accessor :line1
1400
+ # Building details.
1401
+ attr_accessor :line2
1402
+ # Postal code.
1403
+ attr_accessor :postal_code
1404
+ # Prefecture.
1405
+ attr_accessor :state
1406
+ # Town or cho-me.
1407
+ attr_accessor :town
1408
+
1409
+ def initialize(
1410
+ city: nil,
1411
+ country: nil,
1412
+ line1: nil,
1413
+ line2: nil,
1414
+ postal_code: nil,
1415
+ state: nil,
1416
+ town: nil
1417
+ )
1418
+ @city = city
1419
+ @country = country
1420
+ @line1 = line1
1421
+ @line2 = line2
1422
+ @postal_code = postal_code
1423
+ @state = state
1424
+ @town = town
1425
+ end
1426
+ end
1427
+
1428
+ class AddressKanji < Stripe::RequestParams
1429
+ # City or ward.
1430
+ attr_accessor :city
1431
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1432
+ attr_accessor :country
1433
+ # Block or building number.
1434
+ attr_accessor :line1
1435
+ # Building details.
1436
+ attr_accessor :line2
1437
+ # Postal code.
1438
+ attr_accessor :postal_code
1439
+ # Prefecture.
1440
+ attr_accessor :state
1441
+ # Town or cho-me.
1442
+ attr_accessor :town
1443
+
1444
+ def initialize(
1445
+ city: nil,
1446
+ country: nil,
1447
+ line1: nil,
1448
+ line2: nil,
1449
+ postal_code: nil,
1450
+ state: nil,
1451
+ town: nil
1452
+ )
1453
+ @city = city
1454
+ @country = country
1455
+ @line1 = line1
1456
+ @line2 = line2
1457
+ @postal_code = postal_code
1458
+ @state = state
1459
+ @town = town
1460
+ end
1461
+ end
1462
+
1463
+ class Dob < Stripe::RequestParams
1464
+ # The day of birth, between 1 and 31.
1465
+ attr_accessor :day
1466
+ # The month of birth, between 1 and 12.
1467
+ attr_accessor :month
1468
+ # The four-digit year of birth.
1469
+ attr_accessor :year
1470
+
1471
+ def initialize(day: nil, month: nil, year: nil)
1472
+ @day = day
1473
+ @month = month
1474
+ @year = year
1475
+ end
1476
+ end
1477
+
1478
+ class RegisteredAddress < Stripe::RequestParams
1479
+ # City, district, suburb, town, or village.
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
+ # Address line 1 (e.g., street, PO Box, or company name).
1484
+ attr_accessor :line1
1485
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1486
+ attr_accessor :line2
1487
+ # ZIP or postal code.
1488
+ attr_accessor :postal_code
1489
+ # State, county, province, or region.
1490
+ attr_accessor :state
1491
+
1492
+ def initialize(
1493
+ city: nil,
1494
+ country: nil,
1495
+ line1: nil,
1496
+ line2: nil,
1497
+ postal_code: nil,
1498
+ state: nil
1499
+ )
1500
+ @city = city
1501
+ @country = country
1502
+ @line1 = line1
1503
+ @line2 = line2
1504
+ @postal_code = postal_code
1505
+ @state = state
1506
+ end
1507
+ end
1508
+
1509
+ class Relationship < Stripe::RequestParams
1510
+ # 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.
1511
+ attr_accessor :director
1512
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1513
+ attr_accessor :executive
1514
+ # Whether the person is an owner of the account’s legal entity.
1515
+ attr_accessor :owner
1516
+ # The percent owned by the person of the account's legal entity.
1517
+ attr_accessor :percent_ownership
1518
+ # The person's title (e.g., CEO, Support Engineer).
1519
+ attr_accessor :title
1520
+
1521
+ def initialize(
1522
+ director: nil,
1523
+ executive: nil,
1524
+ owner: nil,
1525
+ percent_ownership: nil,
1526
+ title: nil
1527
+ )
1528
+ @director = director
1529
+ @executive = executive
1530
+ @owner = owner
1531
+ @percent_ownership = percent_ownership
1532
+ @title = title
1533
+ end
1534
+ end
1535
+
1536
+ class Verification < Stripe::RequestParams
1537
+ class AdditionalDocument < Stripe::RequestParams
1538
+ # 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.
1539
+ attr_accessor :back
1540
+ # 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.
1541
+ attr_accessor :front
1542
+
1543
+ def initialize(back: nil, front: nil)
1544
+ @back = back
1545
+ @front = front
1546
+ end
1547
+ end
1548
+
1549
+ class Document < Stripe::RequestParams
1550
+ # 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.
1551
+ attr_accessor :back
1552
+ # 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.
1553
+ attr_accessor :front
1554
+
1555
+ def initialize(back: nil, front: nil)
1556
+ @back = back
1557
+ @front = front
1558
+ end
1559
+ end
1560
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1561
+ attr_accessor :additional_document
1562
+ # An identifying document, either a passport or local ID card.
1563
+ attr_accessor :document
1564
+
1565
+ def initialize(additional_document: nil, document: nil)
1566
+ @additional_document = additional_document
1567
+ @document = document
1568
+ end
1569
+ end
1570
+ # The individual's primary address.
1571
+ attr_accessor :address
1572
+ # The Kana variation of the individual's primary address (Japan only).
1573
+ attr_accessor :address_kana
1574
+ # The Kanji variation of the individual's primary address (Japan only).
1575
+ attr_accessor :address_kanji
1576
+ # The individual's date of birth.
1577
+ attr_accessor :dob
1578
+ # The individual's email address.
1579
+ attr_accessor :email
1580
+ # The individual's first name.
1581
+ attr_accessor :first_name
1582
+ # The Kana variation of the individual's first name (Japan only).
1583
+ attr_accessor :first_name_kana
1584
+ # The Kanji variation of the individual's first name (Japan only).
1585
+ attr_accessor :first_name_kanji
1586
+ # A list of alternate names or aliases that the individual is known by.
1587
+ attr_accessor :full_name_aliases
1588
+ # The individual's gender
1589
+ attr_accessor :gender
1590
+ # 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).
1591
+ attr_accessor :id_number
1592
+ # 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).
1593
+ attr_accessor :id_number_secondary
1594
+ # The individual's last name.
1595
+ attr_accessor :last_name
1596
+ # The Kana variation of the individual's last name (Japan only).
1597
+ attr_accessor :last_name_kana
1598
+ # The Kanji variation of the individual's last name (Japan only).
1599
+ attr_accessor :last_name_kanji
1600
+ # The individual's maiden name.
1601
+ attr_accessor :maiden_name
1602
+ # 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`.
1603
+ attr_accessor :metadata
1604
+ # The individual's phone number.
1605
+ attr_accessor :phone
1606
+ # 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.
1607
+ attr_accessor :political_exposure
1608
+ # The individual's registered address.
1609
+ attr_accessor :registered_address
1610
+ # Describes the person’s relationship to the account.
1611
+ attr_accessor :relationship
1612
+ # The last four digits of the individual's Social Security Number (U.S. only).
1613
+ attr_accessor :ssn_last_4
1614
+ # The individual's verification document information.
1615
+ attr_accessor :verification
1616
+
1617
+ def initialize(
1618
+ address: nil,
1619
+ address_kana: nil,
1620
+ address_kanji: nil,
1621
+ dob: nil,
1622
+ email: nil,
1623
+ first_name: nil,
1624
+ first_name_kana: nil,
1625
+ first_name_kanji: nil,
1626
+ full_name_aliases: nil,
1627
+ gender: nil,
1628
+ id_number: nil,
1629
+ id_number_secondary: nil,
1630
+ last_name: nil,
1631
+ last_name_kana: nil,
1632
+ last_name_kanji: nil,
1633
+ maiden_name: nil,
1634
+ metadata: nil,
1635
+ phone: nil,
1636
+ political_exposure: nil,
1637
+ registered_address: nil,
1638
+ relationship: nil,
1639
+ ssn_last_4: nil,
1640
+ verification: nil
1641
+ )
1642
+ @address = address
1643
+ @address_kana = address_kana
1644
+ @address_kanji = address_kanji
1645
+ @dob = dob
1646
+ @email = email
1647
+ @first_name = first_name
1648
+ @first_name_kana = first_name_kana
1649
+ @first_name_kanji = first_name_kanji
1650
+ @full_name_aliases = full_name_aliases
1651
+ @gender = gender
1652
+ @id_number = id_number
1653
+ @id_number_secondary = id_number_secondary
1654
+ @last_name = last_name
1655
+ @last_name_kana = last_name_kana
1656
+ @last_name_kanji = last_name_kanji
1657
+ @maiden_name = maiden_name
1658
+ @metadata = metadata
1659
+ @phone = phone
1660
+ @political_exposure = political_exposure
1661
+ @registered_address = registered_address
1662
+ @relationship = relationship
1663
+ @ssn_last_4 = ssn_last_4
1664
+ @verification = verification
1665
+ end
1666
+ end
1667
+
1668
+ class Settings < Stripe::RequestParams
1669
+ class BacsDebitPayments < Stripe::RequestParams
1670
+ # 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.
1671
+ attr_accessor :display_name
1672
+
1673
+ def initialize(display_name: nil)
1674
+ @display_name = display_name
1675
+ end
1676
+ end
1677
+
1678
+ class Branding < Stripe::RequestParams
1679
+ # (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.
1680
+ attr_accessor :icon
1681
+ # (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.
1682
+ attr_accessor :logo
1683
+ # A CSS hex color value representing the primary branding color for this account.
1684
+ attr_accessor :primary_color
1685
+ # A CSS hex color value representing the secondary branding color for this account.
1686
+ attr_accessor :secondary_color
1687
+
1688
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
1689
+ @icon = icon
1690
+ @logo = logo
1691
+ @primary_color = primary_color
1692
+ @secondary_color = secondary_color
1693
+ end
1694
+ end
1695
+
1696
+ class CardIssuing < Stripe::RequestParams
1697
+ class TosAcceptance < Stripe::RequestParams
1698
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1699
+ attr_accessor :date
1700
+ # The IP address from which the account representative accepted the service agreement.
1701
+ attr_accessor :ip
1702
+ # The user agent of the browser from which the account representative accepted the service agreement.
1703
+ attr_accessor :user_agent
1704
+
1705
+ def initialize(date: nil, ip: nil, user_agent: nil)
1706
+ @date = date
1707
+ @ip = ip
1708
+ @user_agent = user_agent
1709
+ end
1710
+ end
1711
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
1712
+ attr_accessor :tos_acceptance
1713
+
1714
+ def initialize(tos_acceptance: nil)
1715
+ @tos_acceptance = tos_acceptance
1716
+ end
1717
+ end
1718
+
1719
+ class CardPayments < Stripe::RequestParams
1720
+ class DeclineOn < Stripe::RequestParams
1721
+ # 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.
1722
+ attr_accessor :avs_failure
1723
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
1724
+ attr_accessor :cvc_failure
1725
+
1726
+ def initialize(avs_failure: nil, cvc_failure: nil)
1727
+ @avs_failure = avs_failure
1728
+ @cvc_failure = cvc_failure
1729
+ end
1730
+ end
1731
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
1732
+ attr_accessor :decline_on
1733
+ # 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.
1734
+ attr_accessor :statement_descriptor_prefix
1735
+ # 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.
1736
+ attr_accessor :statement_descriptor_prefix_kana
1737
+ # 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.
1738
+ attr_accessor :statement_descriptor_prefix_kanji
1739
+
1740
+ def initialize(
1741
+ decline_on: nil,
1742
+ statement_descriptor_prefix: nil,
1743
+ statement_descriptor_prefix_kana: nil,
1744
+ statement_descriptor_prefix_kanji: nil
1745
+ )
1746
+ @decline_on = decline_on
1747
+ @statement_descriptor_prefix = statement_descriptor_prefix
1748
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
1749
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
1750
+ end
1751
+ end
1752
+
1753
+ class Invoices < Stripe::RequestParams
1754
+ # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
1755
+ attr_accessor :default_account_tax_ids
1756
+ # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1757
+ attr_accessor :hosted_payment_method_save
1758
+
1759
+ def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
1760
+ @default_account_tax_ids = default_account_tax_ids
1761
+ @hosted_payment_method_save = hosted_payment_method_save
1762
+ end
1763
+ end
1764
+
1765
+ class Payments < Stripe::RequestParams
1766
+ # 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).
1767
+ attr_accessor :statement_descriptor
1768
+ # 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).
1769
+ attr_accessor :statement_descriptor_kana
1770
+ # 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).
1771
+ attr_accessor :statement_descriptor_kanji
1772
+
1773
+ def initialize(
1774
+ statement_descriptor: nil,
1775
+ statement_descriptor_kana: nil,
1776
+ statement_descriptor_kanji: nil
1777
+ )
1778
+ @statement_descriptor = statement_descriptor
1779
+ @statement_descriptor_kana = statement_descriptor_kana
1780
+ @statement_descriptor_kanji = statement_descriptor_kanji
1781
+ end
1782
+ end
1783
+
1784
+ class Payouts < Stripe::RequestParams
1785
+ class Schedule < Stripe::RequestParams
1786
+ # 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).
1787
+ attr_accessor :delay_days
1788
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
1789
+ attr_accessor :interval
1790
+ # 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`.
1791
+ attr_accessor :monthly_anchor
1792
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
1793
+ attr_accessor :weekly_anchor
1794
+
1795
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
1796
+ @delay_days = delay_days
1797
+ @interval = interval
1798
+ @monthly_anchor = monthly_anchor
1799
+ @weekly_anchor = weekly_anchor
1800
+ end
1801
+ end
1802
+ # 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).
1803
+ attr_accessor :debit_negative_balances
1804
+ # 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.
1805
+ attr_accessor :schedule
1806
+ # 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.
1807
+ attr_accessor :statement_descriptor
1808
+
1809
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
1810
+ @debit_negative_balances = debit_negative_balances
1811
+ @schedule = schedule
1812
+ @statement_descriptor = statement_descriptor
1813
+ end
1814
+ end
1815
+
1816
+ class Treasury < Stripe::RequestParams
1817
+ class TosAcceptance < Stripe::RequestParams
1818
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1819
+ attr_accessor :date
1820
+ # The IP address from which the account representative accepted the service agreement.
1821
+ attr_accessor :ip
1822
+ # The user agent of the browser from which the account representative accepted the service agreement.
1823
+ attr_accessor :user_agent
1824
+
1825
+ def initialize(date: nil, ip: nil, user_agent: nil)
1826
+ @date = date
1827
+ @ip = ip
1828
+ @user_agent = user_agent
1829
+ end
1830
+ end
1831
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
1832
+ attr_accessor :tos_acceptance
1833
+
1834
+ def initialize(tos_acceptance: nil)
1835
+ @tos_acceptance = tos_acceptance
1836
+ end
1837
+ end
1838
+ # Settings specific to Bacs Direct Debit payments.
1839
+ attr_accessor :bacs_debit_payments
1840
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
1841
+ attr_accessor :branding
1842
+ # Settings specific to the account's use of the Card Issuing product.
1843
+ attr_accessor :card_issuing
1844
+ # Settings specific to card charging on the account.
1845
+ attr_accessor :card_payments
1846
+ # Settings specific to the account's use of Invoices.
1847
+ attr_accessor :invoices
1848
+ # Settings that apply across payment methods for charging on the account.
1849
+ attr_accessor :payments
1850
+ # Settings specific to the account's payouts.
1851
+ attr_accessor :payouts
1852
+ # Settings specific to the account's Treasury FinancialAccounts.
1853
+ attr_accessor :treasury
1854
+
1855
+ def initialize(
1856
+ bacs_debit_payments: nil,
1857
+ branding: nil,
1858
+ card_issuing: nil,
1859
+ card_payments: nil,
1860
+ invoices: nil,
1861
+ payments: nil,
1862
+ payouts: nil,
1863
+ treasury: nil
1864
+ )
1865
+ @bacs_debit_payments = bacs_debit_payments
1866
+ @branding = branding
1867
+ @card_issuing = card_issuing
1868
+ @card_payments = card_payments
1869
+ @invoices = invoices
1870
+ @payments = payments
1871
+ @payouts = payouts
1872
+ @treasury = treasury
1873
+ end
1874
+ end
1875
+
1876
+ class TosAcceptance < Stripe::RequestParams
1877
+ # The Unix timestamp marking when the account representative accepted their service agreement.
1878
+ attr_accessor :date
1879
+ # The IP address from which the account representative accepted their service agreement.
1880
+ attr_accessor :ip
1881
+ # The user's service agreement type.
1882
+ attr_accessor :service_agreement
1883
+ # The user agent of the browser from which the account representative accepted their service agreement.
1884
+ attr_accessor :user_agent
1885
+
1886
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
1887
+ @date = date
1888
+ @ip = ip
1889
+ @service_agreement = service_agreement
1890
+ @user_agent = user_agent
1891
+ end
1892
+ end
1893
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
1894
+ attr_accessor :account_token
1895
+ # Business information about the account.
1896
+ attr_accessor :business_profile
1897
+ # 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.
1898
+ attr_accessor :business_type
1899
+ # Each key of the dictionary represents a capability, and each capability
1900
+ # maps to its settings (for example, whether it has been requested or not). Each
1901
+ # capability is inactive until you have provided its specific
1902
+ # requirements and Stripe has verified them. An account might have some
1903
+ # of its requested capabilities be active and some be inactive.
1904
+ #
1905
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
1906
+ # is `none`, which includes Custom accounts.
1907
+ attr_accessor :capabilities
1908
+ # 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.
1909
+ attr_accessor :company
1910
+ # 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).
1911
+ attr_accessor :default_currency
1912
+ # Documents that may be submitted to satisfy various informational requests.
1913
+ attr_accessor :documents
1914
+ # 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.
1915
+ attr_accessor :email
1916
+ # Specifies which fields in the response should be expanded.
1917
+ attr_accessor :expand
1918
+ # 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.
1919
+ attr_accessor :external_account
1920
+ # A hash of account group type to tokens. These are account groups this account should be added to.
1921
+ attr_accessor :groups
1922
+ # 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.
1923
+ attr_accessor :individual
1924
+ # 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`.
1925
+ attr_accessor :metadata
1926
+ # Options for customizing how the account functions within Stripe.
1927
+ attr_accessor :settings
1928
+ # 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.
1929
+ attr_accessor :tos_acceptance
1930
+
1931
+ def initialize(
1932
+ account_token: nil,
1933
+ business_profile: nil,
1934
+ business_type: nil,
1935
+ capabilities: nil,
1936
+ company: nil,
1937
+ default_currency: nil,
1938
+ documents: nil,
1939
+ email: nil,
1940
+ expand: nil,
1941
+ external_account: nil,
1942
+ groups: nil,
1943
+ individual: nil,
1944
+ metadata: nil,
1945
+ settings: nil,
1946
+ tos_acceptance: nil
1947
+ )
1948
+ @account_token = account_token
1949
+ @business_profile = business_profile
1950
+ @business_type = business_type
1951
+ @capabilities = capabilities
1952
+ @company = company
1953
+ @default_currency = default_currency
1954
+ @documents = documents
1955
+ @email = email
1956
+ @expand = expand
1957
+ @external_account = external_account
1958
+ @groups = groups
1959
+ @individual = individual
1960
+ @metadata = metadata
1961
+ @settings = settings
1962
+ @tos_acceptance = tos_acceptance
1963
+ end
1964
+ end
1965
+
1966
+ class RetrieveCurrentParams < Stripe::RequestParams
1967
+ # Specifies which fields in the response should be expanded.
1968
+ attr_accessor :expand
1969
+
1970
+ def initialize(expand: nil)
1971
+ @expand = expand
1972
+ end
1973
+ end
1974
+
1975
+ class ListParams < Stripe::RequestParams
1976
+ class Created < Stripe::RequestParams
1977
+ # Minimum value to filter by (exclusive)
1978
+ attr_accessor :gt
1979
+ # Minimum value to filter by (inclusive)
1980
+ attr_accessor :gte
1981
+ # Maximum value to filter by (exclusive)
1982
+ attr_accessor :lt
1983
+ # Maximum value to filter by (inclusive)
1984
+ attr_accessor :lte
1985
+
1986
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
1987
+ @gt = gt
1988
+ @gte = gte
1989
+ @lt = lt
1990
+ @lte = lte
1991
+ end
1992
+ end
1993
+ # Only return connected accounts that were created during the given date interval.
1994
+ attr_accessor :created
1995
+ # 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.
1996
+ attr_accessor :ending_before
1997
+ # Specifies which fields in the response should be expanded.
1998
+ attr_accessor :expand
1999
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
2000
+ attr_accessor :limit
2001
+ # 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.
2002
+ attr_accessor :starting_after
2003
+
2004
+ def initialize(created: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil)
2005
+ @created = created
2006
+ @ending_before = ending_before
2007
+ @expand = expand
2008
+ @limit = limit
2009
+ @starting_after = starting_after
2010
+ end
2011
+ end
2012
+
2013
+ class CreateParams < Stripe::RequestParams
2014
+ class BankAccount < Stripe::RequestParams
2015
+ # Attribute for param field object
2016
+ attr_accessor :object
2017
+ # 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.
2018
+ attr_accessor :account_holder_name
2019
+ # 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.
2020
+ attr_accessor :account_holder_type
2021
+ # The account number for the bank account, in string form. Must be a checking account.
2022
+ attr_accessor :account_number
2023
+ # The country in which the bank account is located.
2024
+ attr_accessor :country
2025
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
2026
+ attr_accessor :currency
2027
+ # 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.
2028
+ attr_accessor :routing_number
2029
+
2030
+ def initialize(
2031
+ object: nil,
2032
+ account_holder_name: nil,
2033
+ account_holder_type: nil,
2034
+ account_number: nil,
2035
+ country: nil,
2036
+ currency: nil,
2037
+ routing_number: nil
2038
+ )
2039
+ @object = object
2040
+ @account_holder_name = account_holder_name
2041
+ @account_holder_type = account_holder_type
2042
+ @account_number = account_number
2043
+ @country = country
2044
+ @currency = currency
2045
+ @routing_number = routing_number
2046
+ end
2047
+ end
2048
+
2049
+ class BusinessProfile < Stripe::RequestParams
2050
+ class AnnualRevenue < Stripe::RequestParams
2051
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
2052
+ attr_accessor :amount
2053
+ # 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).
2054
+ attr_accessor :currency
2055
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2056
+ attr_accessor :fiscal_year_end
2057
+
2058
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
2059
+ @amount = amount
2060
+ @currency = currency
2061
+ @fiscal_year_end = fiscal_year_end
2062
+ end
2063
+ end
2064
+
2065
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
2066
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
2067
+ attr_accessor :amount
2068
+ # 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).
2069
+ attr_accessor :currency
2070
+
2071
+ def initialize(amount: nil, currency: nil)
2072
+ @amount = amount
2073
+ @currency = currency
2074
+ end
2075
+ end
2076
+
2077
+ class SupportAddress < Stripe::RequestParams
2078
+ # City, district, suburb, town, or village.
2079
+ attr_accessor :city
2080
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2081
+ attr_accessor :country
2082
+ # Address line 1 (e.g., street, PO Box, or company name).
2083
+ attr_accessor :line1
2084
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2085
+ attr_accessor :line2
2086
+ # ZIP or postal code.
2087
+ attr_accessor :postal_code
2088
+ # State, county, province, or region.
2089
+ attr_accessor :state
2090
+
2091
+ def initialize(
2092
+ city: nil,
2093
+ country: nil,
2094
+ line1: nil,
2095
+ line2: nil,
2096
+ postal_code: nil,
2097
+ state: nil
2098
+ )
2099
+ @city = city
2100
+ @country = country
2101
+ @line1 = line1
2102
+ @line2 = line2
2103
+ @postal_code = postal_code
2104
+ @state = state
2105
+ end
2106
+ end
2107
+ # The applicant's gross annual revenue for its preceding fiscal year.
2108
+ attr_accessor :annual_revenue
2109
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2110
+ attr_accessor :estimated_worker_count
2111
+ # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2112
+ attr_accessor :mcc
2113
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2114
+ attr_accessor :monthly_estimated_revenue
2115
+ # The customer-facing business name.
2116
+ attr_accessor :name
2117
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
2118
+ attr_accessor :product_description
2119
+ # A publicly available mailing address for sending support issues to.
2120
+ attr_accessor :support_address
2121
+ # A publicly available email address for sending support issues to.
2122
+ attr_accessor :support_email
2123
+ # A publicly available phone number to call with support issues.
2124
+ attr_accessor :support_phone
2125
+ # A publicly available website for handling support issues.
2126
+ attr_accessor :support_url
2127
+ # The business's publicly available website.
2128
+ attr_accessor :url
2129
+
2130
+ def initialize(
2131
+ annual_revenue: nil,
2132
+ estimated_worker_count: nil,
2133
+ mcc: nil,
2134
+ monthly_estimated_revenue: nil,
2135
+ name: nil,
2136
+ product_description: nil,
2137
+ support_address: nil,
2138
+ support_email: nil,
2139
+ support_phone: nil,
2140
+ support_url: nil,
2141
+ url: nil
2142
+ )
2143
+ @annual_revenue = annual_revenue
2144
+ @estimated_worker_count = estimated_worker_count
2145
+ @mcc = mcc
2146
+ @monthly_estimated_revenue = monthly_estimated_revenue
2147
+ @name = name
2148
+ @product_description = product_description
2149
+ @support_address = support_address
2150
+ @support_email = support_email
2151
+ @support_phone = support_phone
2152
+ @support_url = support_url
2153
+ @url = url
2154
+ end
2155
+ end
2156
+
2157
+ class Capabilities < Stripe::RequestParams
2158
+ class AcssDebitPayments < Stripe::RequestParams
2159
+ # 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.
2160
+ attr_accessor :requested
2161
+
2162
+ def initialize(requested: nil)
2163
+ @requested = requested
2164
+ end
2165
+ end
2166
+
2167
+ class AffirmPayments < Stripe::RequestParams
2168
+ # 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.
2169
+ attr_accessor :requested
2170
+
2171
+ def initialize(requested: nil)
2172
+ @requested = requested
2173
+ end
2174
+ end
2175
+
2176
+ class AfterpayClearpayPayments < Stripe::RequestParams
2177
+ # 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.
2178
+ attr_accessor :requested
2179
+
2180
+ def initialize(requested: nil)
2181
+ @requested = requested
2182
+ end
2183
+ end
2184
+
2185
+ class AlmaPayments < Stripe::RequestParams
2186
+ # 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.
2187
+ attr_accessor :requested
2188
+
2189
+ def initialize(requested: nil)
2190
+ @requested = requested
2191
+ end
2192
+ end
2193
+
2194
+ class AmazonPayPayments < Stripe::RequestParams
2195
+ # 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.
2196
+ attr_accessor :requested
2197
+
2198
+ def initialize(requested: nil)
2199
+ @requested = requested
2200
+ end
2201
+ end
2202
+
2203
+ class AuBecsDebitPayments < Stripe::RequestParams
2204
+ # 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.
2205
+ attr_accessor :requested
2206
+
2207
+ def initialize(requested: nil)
2208
+ @requested = requested
2209
+ end
2210
+ end
2211
+
2212
+ class BacsDebitPayments < Stripe::RequestParams
2213
+ # 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.
2214
+ attr_accessor :requested
2215
+
2216
+ def initialize(requested: nil)
2217
+ @requested = requested
2218
+ end
2219
+ end
2220
+
2221
+ class BancontactPayments < Stripe::RequestParams
2222
+ # 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.
2223
+ attr_accessor :requested
2224
+
2225
+ def initialize(requested: nil)
2226
+ @requested = requested
2227
+ end
2228
+ end
2229
+
2230
+ class BankTransferPayments < Stripe::RequestParams
2231
+ # 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.
2232
+ attr_accessor :requested
2233
+
2234
+ def initialize(requested: nil)
2235
+ @requested = requested
2236
+ end
2237
+ end
2238
+
2239
+ class BilliePayments < Stripe::RequestParams
2240
+ # 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.
2241
+ attr_accessor :requested
2242
+
2243
+ def initialize(requested: nil)
2244
+ @requested = requested
2245
+ end
2246
+ end
2247
+
2248
+ class BlikPayments < Stripe::RequestParams
2249
+ # 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.
2250
+ attr_accessor :requested
2251
+
2252
+ def initialize(requested: nil)
2253
+ @requested = requested
2254
+ end
2255
+ end
2256
+
2257
+ class BoletoPayments < Stripe::RequestParams
2258
+ # 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.
2259
+ attr_accessor :requested
2260
+
2261
+ def initialize(requested: nil)
2262
+ @requested = requested
2263
+ end
2264
+ end
2265
+
2266
+ class CardIssuing < Stripe::RequestParams
2267
+ # 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.
2268
+ attr_accessor :requested
2269
+
2270
+ def initialize(requested: nil)
2271
+ @requested = requested
2272
+ end
2273
+ end
2274
+
2275
+ class CardPayments < Stripe::RequestParams
2276
+ # 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.
2277
+ attr_accessor :requested
2278
+
2279
+ def initialize(requested: nil)
2280
+ @requested = requested
2281
+ end
2282
+ end
2283
+
2284
+ class CartesBancairesPayments < Stripe::RequestParams
2285
+ # 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.
2286
+ attr_accessor :requested
2287
+
2288
+ def initialize(requested: nil)
2289
+ @requested = requested
2290
+ end
2291
+ end
2292
+
2293
+ class CashappPayments < Stripe::RequestParams
2294
+ # 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.
2295
+ attr_accessor :requested
2296
+
2297
+ def initialize(requested: nil)
2298
+ @requested = requested
2299
+ end
2300
+ end
2301
+
2302
+ class EpsPayments < Stripe::RequestParams
2303
+ # 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.
2304
+ attr_accessor :requested
2305
+
2306
+ def initialize(requested: nil)
2307
+ @requested = requested
2308
+ end
2309
+ end
2310
+
2311
+ class FpxPayments < Stripe::RequestParams
2312
+ # 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.
2313
+ attr_accessor :requested
2314
+
2315
+ def initialize(requested: nil)
2316
+ @requested = requested
2317
+ end
2318
+ end
2319
+
2320
+ class GbBankTransferPayments < 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 GiropayPayments < 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 GrabpayPayments < 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 IdealPayments < 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 IndiaInternationalPayments < 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 JcbPayments < 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 JpBankTransferPayments < 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 KakaoPayPayments < 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 KlarnaPayments < 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 KonbiniPayments < 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 KrCardPayments < 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 LegacyPayments < 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 LinkPayments < 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 MobilepayPayments < 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 MultibancoPayments < 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 MxBankTransferPayments < 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 NaverPayPayments < 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 NzBankAccountBecsDebitPayments < 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 OxxoPayments < 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 P24Payments < 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 PayByBankPayments < 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 PaycoPayments < 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 PaynowPayments < 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 PromptpayPayments < 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 RevolutPayPayments < 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 SamsungPayPayments < 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 SatispayPayments < 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 SepaBankTransferPayments < 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 SepaDebitPayments < 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 SofortPayments < 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 SwishPayments < 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 TaxReportingUs1099K < 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 TaxReportingUs1099Misc < 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 Transfers < 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 Treasury < 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 TwintPayments < 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 UsBankAccountAchPayments < 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 UsBankTransferPayments < 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 ZipPayments < 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
+ # The acss_debit_payments capability.
2671
+ attr_accessor :acss_debit_payments
2672
+ # The affirm_payments capability.
2673
+ attr_accessor :affirm_payments
2674
+ # The afterpay_clearpay_payments capability.
2675
+ attr_accessor :afterpay_clearpay_payments
2676
+ # The alma_payments capability.
2677
+ attr_accessor :alma_payments
2678
+ # The amazon_pay_payments capability.
2679
+ attr_accessor :amazon_pay_payments
2680
+ # The au_becs_debit_payments capability.
2681
+ attr_accessor :au_becs_debit_payments
2682
+ # The bacs_debit_payments capability.
2683
+ attr_accessor :bacs_debit_payments
2684
+ # The bancontact_payments capability.
2685
+ attr_accessor :bancontact_payments
2686
+ # The bank_transfer_payments capability.
2687
+ attr_accessor :bank_transfer_payments
2688
+ # The billie_payments capability.
2689
+ attr_accessor :billie_payments
2690
+ # The blik_payments capability.
2691
+ attr_accessor :blik_payments
2692
+ # The boleto_payments capability.
2693
+ attr_accessor :boleto_payments
2694
+ # The card_issuing capability.
2695
+ attr_accessor :card_issuing
2696
+ # The card_payments capability.
2697
+ attr_accessor :card_payments
2698
+ # The cartes_bancaires_payments capability.
2699
+ attr_accessor :cartes_bancaires_payments
2700
+ # The cashapp_payments capability.
2701
+ attr_accessor :cashapp_payments
2702
+ # The eps_payments capability.
2703
+ attr_accessor :eps_payments
2704
+ # The fpx_payments capability.
2705
+ attr_accessor :fpx_payments
2706
+ # The gb_bank_transfer_payments capability.
2707
+ attr_accessor :gb_bank_transfer_payments
2708
+ # The giropay_payments capability.
2709
+ attr_accessor :giropay_payments
2710
+ # The grabpay_payments capability.
2711
+ attr_accessor :grabpay_payments
2712
+ # The ideal_payments capability.
2713
+ attr_accessor :ideal_payments
2714
+ # The india_international_payments capability.
2715
+ attr_accessor :india_international_payments
2716
+ # The jcb_payments capability.
2717
+ attr_accessor :jcb_payments
2718
+ # The jp_bank_transfer_payments capability.
2719
+ attr_accessor :jp_bank_transfer_payments
2720
+ # The kakao_pay_payments capability.
2721
+ attr_accessor :kakao_pay_payments
2722
+ # The klarna_payments capability.
2723
+ attr_accessor :klarna_payments
2724
+ # The konbini_payments capability.
2725
+ attr_accessor :konbini_payments
2726
+ # The kr_card_payments capability.
2727
+ attr_accessor :kr_card_payments
2728
+ # The legacy_payments capability.
2729
+ attr_accessor :legacy_payments
2730
+ # The link_payments capability.
2731
+ attr_accessor :link_payments
2732
+ # The mobilepay_payments capability.
2733
+ attr_accessor :mobilepay_payments
2734
+ # The multibanco_payments capability.
2735
+ attr_accessor :multibanco_payments
2736
+ # The mx_bank_transfer_payments capability.
2737
+ attr_accessor :mx_bank_transfer_payments
2738
+ # The naver_pay_payments capability.
2739
+ attr_accessor :naver_pay_payments
2740
+ # The nz_bank_account_becs_debit_payments capability.
2741
+ attr_accessor :nz_bank_account_becs_debit_payments
2742
+ # The oxxo_payments capability.
2743
+ attr_accessor :oxxo_payments
2744
+ # The p24_payments capability.
2745
+ attr_accessor :p24_payments
2746
+ # The pay_by_bank_payments capability.
2747
+ attr_accessor :pay_by_bank_payments
2748
+ # The payco_payments capability.
2749
+ attr_accessor :payco_payments
2750
+ # The paynow_payments capability.
2751
+ attr_accessor :paynow_payments
2752
+ # The promptpay_payments capability.
2753
+ attr_accessor :promptpay_payments
2754
+ # The revolut_pay_payments capability.
2755
+ attr_accessor :revolut_pay_payments
2756
+ # The samsung_pay_payments capability.
2757
+ attr_accessor :samsung_pay_payments
2758
+ # The satispay_payments capability.
2759
+ attr_accessor :satispay_payments
2760
+ # The sepa_bank_transfer_payments capability.
2761
+ attr_accessor :sepa_bank_transfer_payments
2762
+ # The sepa_debit_payments capability.
2763
+ attr_accessor :sepa_debit_payments
2764
+ # The sofort_payments capability.
2765
+ attr_accessor :sofort_payments
2766
+ # The swish_payments capability.
2767
+ attr_accessor :swish_payments
2768
+ # The tax_reporting_us_1099_k capability.
2769
+ attr_accessor :tax_reporting_us_1099_k
2770
+ # The tax_reporting_us_1099_misc capability.
2771
+ attr_accessor :tax_reporting_us_1099_misc
2772
+ # The transfers capability.
2773
+ attr_accessor :transfers
2774
+ # The treasury capability.
2775
+ attr_accessor :treasury
2776
+ # The twint_payments capability.
2777
+ attr_accessor :twint_payments
2778
+ # The us_bank_account_ach_payments capability.
2779
+ attr_accessor :us_bank_account_ach_payments
2780
+ # The us_bank_transfer_payments capability.
2781
+ attr_accessor :us_bank_transfer_payments
2782
+ # The zip_payments capability.
2783
+ attr_accessor :zip_payments
2784
+
2785
+ def initialize(
2786
+ acss_debit_payments: nil,
2787
+ affirm_payments: nil,
2788
+ afterpay_clearpay_payments: nil,
2789
+ alma_payments: nil,
2790
+ amazon_pay_payments: nil,
2791
+ au_becs_debit_payments: nil,
2792
+ bacs_debit_payments: nil,
2793
+ bancontact_payments: nil,
2794
+ bank_transfer_payments: nil,
2795
+ billie_payments: nil,
2796
+ blik_payments: nil,
2797
+ boleto_payments: nil,
2798
+ card_issuing: nil,
2799
+ card_payments: nil,
2800
+ cartes_bancaires_payments: nil,
2801
+ cashapp_payments: nil,
2802
+ eps_payments: nil,
2803
+ fpx_payments: nil,
2804
+ gb_bank_transfer_payments: nil,
2805
+ giropay_payments: nil,
2806
+ grabpay_payments: nil,
2807
+ ideal_payments: nil,
2808
+ india_international_payments: nil,
2809
+ jcb_payments: nil,
2810
+ jp_bank_transfer_payments: nil,
2811
+ kakao_pay_payments: nil,
2812
+ klarna_payments: nil,
2813
+ konbini_payments: nil,
2814
+ kr_card_payments: nil,
2815
+ legacy_payments: nil,
2816
+ link_payments: nil,
2817
+ mobilepay_payments: nil,
2818
+ multibanco_payments: nil,
2819
+ mx_bank_transfer_payments: nil,
2820
+ naver_pay_payments: nil,
2821
+ nz_bank_account_becs_debit_payments: nil,
2822
+ oxxo_payments: nil,
2823
+ p24_payments: nil,
2824
+ pay_by_bank_payments: nil,
2825
+ payco_payments: nil,
2826
+ paynow_payments: nil,
2827
+ promptpay_payments: nil,
2828
+ revolut_pay_payments: nil,
2829
+ samsung_pay_payments: nil,
2830
+ satispay_payments: nil,
2831
+ sepa_bank_transfer_payments: nil,
2832
+ sepa_debit_payments: nil,
2833
+ sofort_payments: nil,
2834
+ swish_payments: nil,
2835
+ tax_reporting_us_1099_k: nil,
2836
+ tax_reporting_us_1099_misc: nil,
2837
+ transfers: nil,
2838
+ treasury: nil,
2839
+ twint_payments: nil,
2840
+ us_bank_account_ach_payments: nil,
2841
+ us_bank_transfer_payments: nil,
2842
+ zip_payments: nil
2843
+ )
2844
+ @acss_debit_payments = acss_debit_payments
2845
+ @affirm_payments = affirm_payments
2846
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
2847
+ @alma_payments = alma_payments
2848
+ @amazon_pay_payments = amazon_pay_payments
2849
+ @au_becs_debit_payments = au_becs_debit_payments
2850
+ @bacs_debit_payments = bacs_debit_payments
2851
+ @bancontact_payments = bancontact_payments
2852
+ @bank_transfer_payments = bank_transfer_payments
2853
+ @billie_payments = billie_payments
2854
+ @blik_payments = blik_payments
2855
+ @boleto_payments = boleto_payments
2856
+ @card_issuing = card_issuing
2857
+ @card_payments = card_payments
2858
+ @cartes_bancaires_payments = cartes_bancaires_payments
2859
+ @cashapp_payments = cashapp_payments
2860
+ @eps_payments = eps_payments
2861
+ @fpx_payments = fpx_payments
2862
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
2863
+ @giropay_payments = giropay_payments
2864
+ @grabpay_payments = grabpay_payments
2865
+ @ideal_payments = ideal_payments
2866
+ @india_international_payments = india_international_payments
2867
+ @jcb_payments = jcb_payments
2868
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
2869
+ @kakao_pay_payments = kakao_pay_payments
2870
+ @klarna_payments = klarna_payments
2871
+ @konbini_payments = konbini_payments
2872
+ @kr_card_payments = kr_card_payments
2873
+ @legacy_payments = legacy_payments
2874
+ @link_payments = link_payments
2875
+ @mobilepay_payments = mobilepay_payments
2876
+ @multibanco_payments = multibanco_payments
2877
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
2878
+ @naver_pay_payments = naver_pay_payments
2879
+ @nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
2880
+ @oxxo_payments = oxxo_payments
2881
+ @p24_payments = p24_payments
2882
+ @pay_by_bank_payments = pay_by_bank_payments
2883
+ @payco_payments = payco_payments
2884
+ @paynow_payments = paynow_payments
2885
+ @promptpay_payments = promptpay_payments
2886
+ @revolut_pay_payments = revolut_pay_payments
2887
+ @samsung_pay_payments = samsung_pay_payments
2888
+ @satispay_payments = satispay_payments
2889
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
2890
+ @sepa_debit_payments = sepa_debit_payments
2891
+ @sofort_payments = sofort_payments
2892
+ @swish_payments = swish_payments
2893
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
2894
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
2895
+ @transfers = transfers
2896
+ @treasury = treasury
2897
+ @twint_payments = twint_payments
2898
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
2899
+ @us_bank_transfer_payments = us_bank_transfer_payments
2900
+ @zip_payments = zip_payments
2901
+ end
2902
+ end
2903
+
2904
+ class Card < Stripe::RequestParams
2905
+ # Attribute for param field object
2906
+ attr_accessor :object
2907
+ # Attribute for param field address_city
2908
+ attr_accessor :address_city
2909
+ # Attribute for param field address_country
2910
+ attr_accessor :address_country
2911
+ # Attribute for param field address_line1
2912
+ attr_accessor :address_line1
2913
+ # Attribute for param field address_line2
2914
+ attr_accessor :address_line2
2915
+ # Attribute for param field address_state
2916
+ attr_accessor :address_state
2917
+ # Attribute for param field address_zip
2918
+ attr_accessor :address_zip
2919
+ # Attribute for param field currency
2920
+ attr_accessor :currency
2921
+ # Attribute for param field cvc
2922
+ attr_accessor :cvc
2923
+ # Attribute for param field exp_month
2924
+ attr_accessor :exp_month
2925
+ # Attribute for param field exp_year
2926
+ attr_accessor :exp_year
2927
+ # Attribute for param field name
2928
+ attr_accessor :name
2929
+ # Attribute for param field number
2930
+ attr_accessor :number
2931
+ # 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.
2932
+ attr_accessor :metadata
2933
+ # Attribute for param field default_for_currency
2934
+ attr_accessor :default_for_currency
2935
+
2936
+ def initialize(
2937
+ object: nil,
2938
+ address_city: nil,
2939
+ address_country: nil,
2940
+ address_line1: nil,
2941
+ address_line2: nil,
2942
+ address_state: nil,
2943
+ address_zip: nil,
2944
+ currency: nil,
2945
+ cvc: nil,
2946
+ exp_month: nil,
2947
+ exp_year: nil,
2948
+ name: nil,
2949
+ number: nil,
2950
+ metadata: nil,
2951
+ default_for_currency: nil
2952
+ )
2953
+ @object = object
2954
+ @address_city = address_city
2955
+ @address_country = address_country
2956
+ @address_line1 = address_line1
2957
+ @address_line2 = address_line2
2958
+ @address_state = address_state
2959
+ @address_zip = address_zip
2960
+ @currency = currency
2961
+ @cvc = cvc
2962
+ @exp_month = exp_month
2963
+ @exp_year = exp_year
2964
+ @name = name
2965
+ @number = number
2966
+ @metadata = metadata
2967
+ @default_for_currency = default_for_currency
2968
+ end
2969
+ end
2970
+
2971
+ class CardToken < Stripe::RequestParams
2972
+ # Attribute for param field object
2973
+ attr_accessor :object
2974
+ # Attribute for param field currency
2975
+ attr_accessor :currency
2976
+ # Attribute for param field token
2977
+ attr_accessor :token
2978
+
2979
+ def initialize(object: nil, currency: nil, token: nil)
2980
+ @object = object
2981
+ @currency = currency
2982
+ @token = token
2983
+ end
2984
+ end
2985
+
2986
+ class Company < Stripe::RequestParams
2987
+ class Address < Stripe::RequestParams
2988
+ # City, district, suburb, town, or village.
2989
+ attr_accessor :city
2990
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2991
+ attr_accessor :country
2992
+ # Address line 1 (e.g., street, PO Box, or company name).
2993
+ attr_accessor :line1
2994
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2995
+ attr_accessor :line2
2996
+ # ZIP or postal code.
2997
+ attr_accessor :postal_code
2998
+ # State, county, province, or region.
2999
+ attr_accessor :state
3000
+
3001
+ def initialize(
3002
+ city: nil,
3003
+ country: nil,
3004
+ line1: nil,
3005
+ line2: nil,
3006
+ postal_code: nil,
3007
+ state: nil
3008
+ )
3009
+ @city = city
3010
+ @country = country
3011
+ @line1 = line1
3012
+ @line2 = line2
3013
+ @postal_code = postal_code
3014
+ @state = state
3015
+ end
3016
+ end
3017
+
3018
+ class AddressKana < Stripe::RequestParams
3019
+ # City or ward.
3020
+ attr_accessor :city
3021
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3022
+ attr_accessor :country
3023
+ # Block or building number.
3024
+ attr_accessor :line1
3025
+ # Building details.
3026
+ attr_accessor :line2
3027
+ # Postal code.
3028
+ attr_accessor :postal_code
3029
+ # Prefecture.
3030
+ attr_accessor :state
3031
+ # Town or cho-me.
3032
+ attr_accessor :town
3033
+
3034
+ def initialize(
3035
+ city: nil,
3036
+ country: nil,
3037
+ line1: nil,
3038
+ line2: nil,
3039
+ postal_code: nil,
3040
+ state: nil,
3041
+ town: nil
3042
+ )
3043
+ @city = city
3044
+ @country = country
3045
+ @line1 = line1
3046
+ @line2 = line2
3047
+ @postal_code = postal_code
3048
+ @state = state
3049
+ @town = town
3050
+ end
3051
+ end
3052
+
3053
+ class AddressKanji < Stripe::RequestParams
3054
+ # City or ward.
3055
+ attr_accessor :city
3056
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3057
+ attr_accessor :country
3058
+ # Block or building number.
3059
+ attr_accessor :line1
3060
+ # Building details.
3061
+ attr_accessor :line2
3062
+ # Postal code.
3063
+ attr_accessor :postal_code
3064
+ # Prefecture.
3065
+ attr_accessor :state
3066
+ # Town or cho-me.
3067
+ attr_accessor :town
3068
+
3069
+ def initialize(
3070
+ city: nil,
3071
+ country: nil,
3072
+ line1: nil,
3073
+ line2: nil,
3074
+ postal_code: nil,
3075
+ state: nil,
3076
+ town: nil
3077
+ )
3078
+ @city = city
3079
+ @country = country
3080
+ @line1 = line1
3081
+ @line2 = line2
3082
+ @postal_code = postal_code
3083
+ @state = state
3084
+ @town = town
3085
+ end
3086
+ end
3087
+
3088
+ class DirectorshipDeclaration < Stripe::RequestParams
3089
+ # The Unix timestamp marking when the directorship declaration attestation was made.
3090
+ attr_accessor :date
3091
+ # The IP address from which the directorship declaration attestation was made.
3092
+ attr_accessor :ip
3093
+ # The user agent of the browser from which the directorship declaration attestation was made.
3094
+ attr_accessor :user_agent
3095
+
3096
+ def initialize(date: nil, ip: nil, user_agent: nil)
3097
+ @date = date
3098
+ @ip = ip
3099
+ @user_agent = user_agent
3100
+ end
3101
+ end
3102
+
3103
+ class OwnershipDeclaration < Stripe::RequestParams
3104
+ # The Unix timestamp marking when the beneficial owner attestation was made.
3105
+ attr_accessor :date
3106
+ # The IP address from which the beneficial owner attestation was made.
3107
+ attr_accessor :ip
3108
+ # The user agent of the browser from which the beneficial owner attestation was made.
3109
+ attr_accessor :user_agent
3110
+
3111
+ def initialize(date: nil, ip: nil, user_agent: nil)
3112
+ @date = date
3113
+ @ip = ip
3114
+ @user_agent = user_agent
3115
+ end
3116
+ end
3117
+
3118
+ class Verification < Stripe::RequestParams
3119
+ class Document < Stripe::RequestParams
3120
+ # 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.
3121
+ attr_accessor :back
3122
+ # 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.
3123
+ attr_accessor :front
3124
+
3125
+ def initialize(back: nil, front: nil)
3126
+ @back = back
3127
+ @front = front
3128
+ end
3129
+ end
3130
+ # A document verifying the business.
3131
+ attr_accessor :document
3132
+
3133
+ def initialize(document: nil)
3134
+ @document = document
3135
+ end
3136
+ end
3137
+ # The company's primary address.
3138
+ attr_accessor :address
3139
+ # The Kana variation of the company's primary address (Japan only).
3140
+ attr_accessor :address_kana
3141
+ # The Kanji variation of the company's primary address (Japan only).
3142
+ attr_accessor :address_kanji
3143
+ # 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.
3144
+ attr_accessor :directors_provided
3145
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3146
+ attr_accessor :directorship_declaration
3147
+ # 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.
3148
+ attr_accessor :executives_provided
3149
+ # The export license ID number of the company, also referred as Import Export Code (India only).
3150
+ attr_accessor :export_license_id
3151
+ # The purpose code to use for export transactions (India only).
3152
+ attr_accessor :export_purpose_code
3153
+ # The company's legal name.
3154
+ attr_accessor :name
3155
+ # The Kana variation of the company's legal name (Japan only).
3156
+ attr_accessor :name_kana
3157
+ # The Kanji variation of the company's legal name (Japan only).
3158
+ attr_accessor :name_kanji
3159
+ # 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.
3160
+ attr_accessor :owners_provided
3161
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3162
+ attr_accessor :ownership_declaration
3163
+ # This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
3164
+ attr_accessor :ownership_exemption_reason
3165
+ # The company's phone number (used for verification).
3166
+ attr_accessor :phone
3167
+ # 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).
3168
+ attr_accessor :registration_number
3169
+ # 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.
3170
+ attr_accessor :structure
3171
+ # 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.)
3172
+ attr_accessor :tax_id
3173
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
3174
+ attr_accessor :tax_id_registrar
3175
+ # The VAT number of the company.
3176
+ attr_accessor :vat_id
3177
+ # Information on the verification state of the company.
3178
+ attr_accessor :verification
3179
+
3180
+ def initialize(
3181
+ address: nil,
3182
+ address_kana: nil,
3183
+ address_kanji: nil,
3184
+ directors_provided: nil,
3185
+ directorship_declaration: nil,
3186
+ executives_provided: nil,
3187
+ export_license_id: nil,
3188
+ export_purpose_code: nil,
3189
+ name: nil,
3190
+ name_kana: nil,
3191
+ name_kanji: nil,
3192
+ owners_provided: nil,
3193
+ ownership_declaration: nil,
3194
+ ownership_exemption_reason: nil,
3195
+ phone: nil,
3196
+ registration_number: nil,
3197
+ structure: nil,
3198
+ tax_id: nil,
3199
+ tax_id_registrar: nil,
3200
+ vat_id: nil,
3201
+ verification: nil
3202
+ )
3203
+ @address = address
3204
+ @address_kana = address_kana
3205
+ @address_kanji = address_kanji
3206
+ @directors_provided = directors_provided
3207
+ @directorship_declaration = directorship_declaration
3208
+ @executives_provided = executives_provided
3209
+ @export_license_id = export_license_id
3210
+ @export_purpose_code = export_purpose_code
3211
+ @name = name
3212
+ @name_kana = name_kana
3213
+ @name_kanji = name_kanji
3214
+ @owners_provided = owners_provided
3215
+ @ownership_declaration = ownership_declaration
3216
+ @ownership_exemption_reason = ownership_exemption_reason
3217
+ @phone = phone
3218
+ @registration_number = registration_number
3219
+ @structure = structure
3220
+ @tax_id = tax_id
3221
+ @tax_id_registrar = tax_id_registrar
3222
+ @vat_id = vat_id
3223
+ @verification = verification
3224
+ end
3225
+ end
3226
+
3227
+ class Controller < Stripe::RequestParams
3228
+ class Fees < Stripe::RequestParams
3229
+ # 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).
3230
+ attr_accessor :payer
3231
+
3232
+ def initialize(payer: nil)
3233
+ @payer = payer
3234
+ end
3235
+ end
3236
+
3237
+ class Losses < Stripe::RequestParams
3238
+ # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
3239
+ attr_accessor :payments
3240
+
3241
+ def initialize(payments: nil)
3242
+ @payments = payments
3243
+ end
3244
+ end
3245
+
3246
+ class StripeDashboard < Stripe::RequestParams
3247
+ # 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`.
3248
+ attr_accessor :type
3249
+
3250
+ def initialize(type: nil)
3251
+ @type = type
3252
+ end
3253
+ end
3254
+ # A hash of configuration for who pays Stripe fees for product usage on this account.
3255
+ attr_accessor :fees
3256
+ # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
3257
+ attr_accessor :losses
3258
+ # A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.
3259
+ attr_accessor :requirement_collection
3260
+ # A hash of configuration for Stripe-hosted dashboards.
3261
+ attr_accessor :stripe_dashboard
3262
+
3263
+ def initialize(fees: nil, losses: nil, requirement_collection: nil, stripe_dashboard: nil)
3264
+ @fees = fees
3265
+ @losses = losses
3266
+ @requirement_collection = requirement_collection
3267
+ @stripe_dashboard = stripe_dashboard
3268
+ end
3269
+ end
3270
+
3271
+ class Documents < Stripe::RequestParams
3272
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3273
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3274
+ attr_accessor :files
3275
+
3276
+ def initialize(files: nil)
3277
+ @files = files
3278
+ end
3279
+ end
3280
+
3281
+ class CompanyLicense < Stripe::RequestParams
3282
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3283
+ attr_accessor :files
3284
+
3285
+ def initialize(files: nil)
3286
+ @files = files
3287
+ end
3288
+ end
3289
+
3290
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3291
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3292
+ attr_accessor :files
3293
+
3294
+ def initialize(files: nil)
3295
+ @files = files
3296
+ end
3297
+ end
3298
+
3299
+ class CompanyMinisterialDecree < Stripe::RequestParams
3300
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3301
+ attr_accessor :files
3302
+
3303
+ def initialize(files: nil)
3304
+ @files = files
3305
+ end
3306
+ end
3307
+
3308
+ class CompanyRegistrationVerification < Stripe::RequestParams
3309
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3310
+ attr_accessor :files
3311
+
3312
+ def initialize(files: nil)
3313
+ @files = files
3314
+ end
3315
+ end
3316
+
3317
+ class CompanyTaxIdVerification < Stripe::RequestParams
3318
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3319
+ attr_accessor :files
3320
+
3321
+ def initialize(files: nil)
3322
+ @files = files
3323
+ end
3324
+ end
3325
+
3326
+ class ProofOfRegistration < Stripe::RequestParams
3327
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3328
+ attr_accessor :files
3329
+
3330
+ def initialize(files: nil)
3331
+ @files = files
3332
+ end
3333
+ end
3334
+
3335
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3336
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3337
+ attr_accessor :files
3338
+
3339
+ def initialize(files: nil)
3340
+ @files = files
3341
+ end
3342
+ end
3343
+ # 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.
3344
+ attr_accessor :bank_account_ownership_verification
3345
+ # One or more documents that demonstrate proof of a company's license to operate.
3346
+ attr_accessor :company_license
3347
+ # One or more documents showing the company's Memorandum of Association.
3348
+ attr_accessor :company_memorandum_of_association
3349
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
3350
+ attr_accessor :company_ministerial_decree
3351
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
3352
+ attr_accessor :company_registration_verification
3353
+ # One or more documents that demonstrate proof of a company's tax ID.
3354
+ attr_accessor :company_tax_id_verification
3355
+ # One or more documents showing the company’s proof of registration with the national business registry.
3356
+ attr_accessor :proof_of_registration
3357
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3358
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3359
+
3360
+ def initialize(
3361
+ bank_account_ownership_verification: nil,
3362
+ company_license: nil,
3363
+ company_memorandum_of_association: nil,
3364
+ company_ministerial_decree: nil,
3365
+ company_registration_verification: nil,
3366
+ company_tax_id_verification: nil,
3367
+ proof_of_registration: nil,
3368
+ proof_of_ultimate_beneficial_ownership: nil
3369
+ )
3370
+ @bank_account_ownership_verification = bank_account_ownership_verification
3371
+ @company_license = company_license
3372
+ @company_memorandum_of_association = company_memorandum_of_association
3373
+ @company_ministerial_decree = company_ministerial_decree
3374
+ @company_registration_verification = company_registration_verification
3375
+ @company_tax_id_verification = company_tax_id_verification
3376
+ @proof_of_registration = proof_of_registration
3377
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3378
+ end
3379
+ end
3380
+
3381
+ class Groups < Stripe::RequestParams
3382
+ # 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.
3383
+ attr_accessor :payments_pricing
3384
+
3385
+ def initialize(payments_pricing: nil)
3386
+ @payments_pricing = payments_pricing
3387
+ end
3388
+ end
3389
+
3390
+ class Individual < Stripe::RequestParams
3391
+ class Address < Stripe::RequestParams
3392
+ # City, district, suburb, town, or village.
3393
+ attr_accessor :city
3394
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3395
+ attr_accessor :country
3396
+ # Address line 1 (e.g., street, PO Box, or company name).
3397
+ attr_accessor :line1
3398
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3399
+ attr_accessor :line2
3400
+ # ZIP or postal code.
3401
+ attr_accessor :postal_code
3402
+ # State, county, province, or region.
3403
+ attr_accessor :state
3404
+
3405
+ def initialize(
3406
+ city: nil,
3407
+ country: nil,
3408
+ line1: nil,
3409
+ line2: nil,
3410
+ postal_code: nil,
3411
+ state: nil
3412
+ )
3413
+ @city = city
3414
+ @country = country
3415
+ @line1 = line1
3416
+ @line2 = line2
3417
+ @postal_code = postal_code
3418
+ @state = state
3419
+ end
3420
+ end
3421
+
3422
+ class AddressKana < Stripe::RequestParams
3423
+ # City or ward.
3424
+ attr_accessor :city
3425
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3426
+ attr_accessor :country
3427
+ # Block or building number.
3428
+ attr_accessor :line1
3429
+ # Building details.
3430
+ attr_accessor :line2
3431
+ # Postal code.
3432
+ attr_accessor :postal_code
3433
+ # Prefecture.
3434
+ attr_accessor :state
3435
+ # Town or cho-me.
3436
+ attr_accessor :town
3437
+
3438
+ def initialize(
3439
+ city: nil,
3440
+ country: nil,
3441
+ line1: nil,
3442
+ line2: nil,
3443
+ postal_code: nil,
3444
+ state: nil,
3445
+ town: nil
3446
+ )
3447
+ @city = city
3448
+ @country = country
3449
+ @line1 = line1
3450
+ @line2 = line2
3451
+ @postal_code = postal_code
3452
+ @state = state
3453
+ @town = town
3454
+ end
3455
+ end
3456
+
3457
+ class AddressKanji < Stripe::RequestParams
3458
+ # City or ward.
3459
+ attr_accessor :city
3460
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3461
+ attr_accessor :country
3462
+ # Block or building number.
3463
+ attr_accessor :line1
3464
+ # Building details.
3465
+ attr_accessor :line2
3466
+ # Postal code.
3467
+ attr_accessor :postal_code
3468
+ # Prefecture.
3469
+ attr_accessor :state
3470
+ # Town or cho-me.
3471
+ attr_accessor :town
3472
+
3473
+ def initialize(
3474
+ city: nil,
3475
+ country: nil,
3476
+ line1: nil,
3477
+ line2: nil,
3478
+ postal_code: nil,
3479
+ state: nil,
3480
+ town: nil
3481
+ )
3482
+ @city = city
3483
+ @country = country
3484
+ @line1 = line1
3485
+ @line2 = line2
3486
+ @postal_code = postal_code
3487
+ @state = state
3488
+ @town = town
3489
+ end
3490
+ end
3491
+
3492
+ class Dob < Stripe::RequestParams
3493
+ # The day of birth, between 1 and 31.
3494
+ attr_accessor :day
3495
+ # The month of birth, between 1 and 12.
3496
+ attr_accessor :month
3497
+ # The four-digit year of birth.
3498
+ attr_accessor :year
3499
+
3500
+ def initialize(day: nil, month: nil, year: nil)
3501
+ @day = day
3502
+ @month = month
3503
+ @year = year
3504
+ end
3505
+ end
3506
+
3507
+ class RegisteredAddress < Stripe::RequestParams
3508
+ # City, district, suburb, town, or village.
3509
+ attr_accessor :city
3510
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3511
+ attr_accessor :country
3512
+ # Address line 1 (e.g., street, PO Box, or company name).
3513
+ attr_accessor :line1
3514
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3515
+ attr_accessor :line2
3516
+ # ZIP or postal code.
3517
+ attr_accessor :postal_code
3518
+ # State, county, province, or region.
3519
+ attr_accessor :state
3520
+
3521
+ def initialize(
3522
+ city: nil,
3523
+ country: nil,
3524
+ line1: nil,
3525
+ line2: nil,
3526
+ postal_code: nil,
3527
+ state: nil
3528
+ )
3529
+ @city = city
3530
+ @country = country
3531
+ @line1 = line1
3532
+ @line2 = line2
3533
+ @postal_code = postal_code
3534
+ @state = state
3535
+ end
3536
+ end
3537
+
3538
+ class Relationship < Stripe::RequestParams
3539
+ # 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.
3540
+ attr_accessor :director
3541
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
3542
+ attr_accessor :executive
3543
+ # Whether the person is an owner of the account’s legal entity.
3544
+ attr_accessor :owner
3545
+ # The percent owned by the person of the account's legal entity.
3546
+ attr_accessor :percent_ownership
3547
+ # The person's title (e.g., CEO, Support Engineer).
3548
+ attr_accessor :title
3549
+
3550
+ def initialize(
3551
+ director: nil,
3552
+ executive: nil,
3553
+ owner: nil,
3554
+ percent_ownership: nil,
3555
+ title: nil
3556
+ )
3557
+ @director = director
3558
+ @executive = executive
3559
+ @owner = owner
3560
+ @percent_ownership = percent_ownership
3561
+ @title = title
3562
+ end
3563
+ end
3564
+
3565
+ class Verification < Stripe::RequestParams
3566
+ class AdditionalDocument < Stripe::RequestParams
3567
+ # 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.
3568
+ attr_accessor :back
3569
+ # 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.
3570
+ attr_accessor :front
3571
+
3572
+ def initialize(back: nil, front: nil)
3573
+ @back = back
3574
+ @front = front
3575
+ end
3576
+ end
3577
+
3578
+ class Document < Stripe::RequestParams
3579
+ # 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.
3580
+ attr_accessor :back
3581
+ # 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.
3582
+ attr_accessor :front
3583
+
3584
+ def initialize(back: nil, front: nil)
3585
+ @back = back
3586
+ @front = front
3587
+ end
3588
+ end
3589
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3590
+ attr_accessor :additional_document
3591
+ # An identifying document, either a passport or local ID card.
3592
+ attr_accessor :document
3593
+
3594
+ def initialize(additional_document: nil, document: nil)
3595
+ @additional_document = additional_document
3596
+ @document = document
3597
+ end
3598
+ end
3599
+ # The individual's primary address.
3600
+ attr_accessor :address
3601
+ # The Kana variation of the individual's primary address (Japan only).
3602
+ attr_accessor :address_kana
3603
+ # The Kanji variation of the individual's primary address (Japan only).
3604
+ attr_accessor :address_kanji
3605
+ # The individual's date of birth.
3606
+ attr_accessor :dob
3607
+ # The individual's email address.
3608
+ attr_accessor :email
3609
+ # The individual's first name.
3610
+ attr_accessor :first_name
3611
+ # The Kana variation of the individual's first name (Japan only).
3612
+ attr_accessor :first_name_kana
3613
+ # The Kanji variation of the individual's first name (Japan only).
3614
+ attr_accessor :first_name_kanji
3615
+ # A list of alternate names or aliases that the individual is known by.
3616
+ attr_accessor :full_name_aliases
3617
+ # The individual's gender
3618
+ attr_accessor :gender
3619
+ # 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).
3620
+ attr_accessor :id_number
3621
+ # 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).
3622
+ attr_accessor :id_number_secondary
3623
+ # The individual's last name.
3624
+ attr_accessor :last_name
3625
+ # The Kana variation of the individual's last name (Japan only).
3626
+ attr_accessor :last_name_kana
3627
+ # The Kanji variation of the individual's last name (Japan only).
3628
+ attr_accessor :last_name_kanji
3629
+ # The individual's maiden name.
3630
+ attr_accessor :maiden_name
3631
+ # 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`.
3632
+ attr_accessor :metadata
3633
+ # The individual's phone number.
3634
+ attr_accessor :phone
3635
+ # 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.
3636
+ attr_accessor :political_exposure
3637
+ # The individual's registered address.
3638
+ attr_accessor :registered_address
3639
+ # Describes the person’s relationship to the account.
3640
+ attr_accessor :relationship
3641
+ # The last four digits of the individual's Social Security Number (U.S. only).
3642
+ attr_accessor :ssn_last_4
3643
+ # The individual's verification document information.
3644
+ attr_accessor :verification
3645
+
3646
+ def initialize(
3647
+ address: nil,
3648
+ address_kana: nil,
3649
+ address_kanji: nil,
3650
+ dob: nil,
3651
+ email: nil,
3652
+ first_name: nil,
3653
+ first_name_kana: nil,
3654
+ first_name_kanji: nil,
3655
+ full_name_aliases: nil,
3656
+ gender: nil,
3657
+ id_number: nil,
3658
+ id_number_secondary: nil,
3659
+ last_name: nil,
3660
+ last_name_kana: nil,
3661
+ last_name_kanji: nil,
3662
+ maiden_name: nil,
3663
+ metadata: nil,
3664
+ phone: nil,
3665
+ political_exposure: nil,
3666
+ registered_address: nil,
3667
+ relationship: nil,
3668
+ ssn_last_4: nil,
3669
+ verification: nil
3670
+ )
3671
+ @address = address
3672
+ @address_kana = address_kana
3673
+ @address_kanji = address_kanji
3674
+ @dob = dob
3675
+ @email = email
3676
+ @first_name = first_name
3677
+ @first_name_kana = first_name_kana
3678
+ @first_name_kanji = first_name_kanji
3679
+ @full_name_aliases = full_name_aliases
3680
+ @gender = gender
3681
+ @id_number = id_number
3682
+ @id_number_secondary = id_number_secondary
3683
+ @last_name = last_name
3684
+ @last_name_kana = last_name_kana
3685
+ @last_name_kanji = last_name_kanji
3686
+ @maiden_name = maiden_name
3687
+ @metadata = metadata
3688
+ @phone = phone
3689
+ @political_exposure = political_exposure
3690
+ @registered_address = registered_address
3691
+ @relationship = relationship
3692
+ @ssn_last_4 = ssn_last_4
3693
+ @verification = verification
3694
+ end
3695
+ end
3696
+
3697
+ class Settings < Stripe::RequestParams
3698
+ class BacsDebitPayments < Stripe::RequestParams
3699
+ # 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.
3700
+ attr_accessor :display_name
3701
+
3702
+ def initialize(display_name: nil)
3703
+ @display_name = display_name
3704
+ end
3705
+ end
3706
+
3707
+ class Branding < Stripe::RequestParams
3708
+ # (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.
3709
+ attr_accessor :icon
3710
+ # (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.
3711
+ attr_accessor :logo
3712
+ # A CSS hex color value representing the primary branding color for this account.
3713
+ attr_accessor :primary_color
3714
+ # A CSS hex color value representing the secondary branding color for this account.
3715
+ attr_accessor :secondary_color
3716
+
3717
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
3718
+ @icon = icon
3719
+ @logo = logo
3720
+ @primary_color = primary_color
3721
+ @secondary_color = secondary_color
3722
+ end
3723
+ end
3724
+
3725
+ class CardIssuing < Stripe::RequestParams
3726
+ class TosAcceptance < Stripe::RequestParams
3727
+ # The Unix timestamp marking when the account representative accepted the service agreement.
3728
+ attr_accessor :date
3729
+ # The IP address from which the account representative accepted the service agreement.
3730
+ attr_accessor :ip
3731
+ # The user agent of the browser from which the account representative accepted the service agreement.
3732
+ attr_accessor :user_agent
3733
+
3734
+ def initialize(date: nil, ip: nil, user_agent: nil)
3735
+ @date = date
3736
+ @ip = ip
3737
+ @user_agent = user_agent
3738
+ end
3739
+ end
3740
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
3741
+ attr_accessor :tos_acceptance
3742
+
3743
+ def initialize(tos_acceptance: nil)
3744
+ @tos_acceptance = tos_acceptance
3745
+ end
3746
+ end
3747
+
3748
+ class CardPayments < Stripe::RequestParams
3749
+ class DeclineOn < Stripe::RequestParams
3750
+ # 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.
3751
+ attr_accessor :avs_failure
3752
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
3753
+ attr_accessor :cvc_failure
3754
+
3755
+ def initialize(avs_failure: nil, cvc_failure: nil)
3756
+ @avs_failure = avs_failure
3757
+ @cvc_failure = cvc_failure
3758
+ end
3759
+ end
3760
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
3761
+ attr_accessor :decline_on
3762
+ # 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.
3763
+ attr_accessor :statement_descriptor_prefix
3764
+ # 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.
3765
+ attr_accessor :statement_descriptor_prefix_kana
3766
+ # 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.
3767
+ attr_accessor :statement_descriptor_prefix_kanji
3768
+
3769
+ def initialize(
3770
+ decline_on: nil,
3771
+ statement_descriptor_prefix: nil,
3772
+ statement_descriptor_prefix_kana: nil,
3773
+ statement_descriptor_prefix_kanji: nil
3774
+ )
3775
+ @decline_on = decline_on
3776
+ @statement_descriptor_prefix = statement_descriptor_prefix
3777
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
3778
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
3779
+ end
3780
+ end
3781
+
3782
+ class Invoices < Stripe::RequestParams
3783
+ # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
3784
+ attr_accessor :hosted_payment_method_save
3785
+
3786
+ def initialize(hosted_payment_method_save: nil)
3787
+ @hosted_payment_method_save = hosted_payment_method_save
3788
+ end
3789
+ end
3790
+
3791
+ class Payments < Stripe::RequestParams
3792
+ # 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).
3793
+ attr_accessor :statement_descriptor
3794
+ # 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).
3795
+ attr_accessor :statement_descriptor_kana
3796
+ # 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).
3797
+ attr_accessor :statement_descriptor_kanji
3798
+
3799
+ def initialize(
3800
+ statement_descriptor: nil,
3801
+ statement_descriptor_kana: nil,
3802
+ statement_descriptor_kanji: nil
3803
+ )
3804
+ @statement_descriptor = statement_descriptor
3805
+ @statement_descriptor_kana = statement_descriptor_kana
3806
+ @statement_descriptor_kanji = statement_descriptor_kanji
3807
+ end
3808
+ end
3809
+
3810
+ class Payouts < Stripe::RequestParams
3811
+ class Schedule < Stripe::RequestParams
3812
+ # 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).
3813
+ attr_accessor :delay_days
3814
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
3815
+ attr_accessor :interval
3816
+ # 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`.
3817
+ attr_accessor :monthly_anchor
3818
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
3819
+ attr_accessor :weekly_anchor
3820
+
3821
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
3822
+ @delay_days = delay_days
3823
+ @interval = interval
3824
+ @monthly_anchor = monthly_anchor
3825
+ @weekly_anchor = weekly_anchor
3826
+ end
3827
+ end
3828
+ # 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).
3829
+ attr_accessor :debit_negative_balances
3830
+ # 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.
3831
+ attr_accessor :schedule
3832
+ # 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.
3833
+ attr_accessor :statement_descriptor
3834
+
3835
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
3836
+ @debit_negative_balances = debit_negative_balances
3837
+ @schedule = schedule
3838
+ @statement_descriptor = statement_descriptor
3839
+ end
3840
+ end
3841
+
3842
+ class Treasury < Stripe::RequestParams
3843
+ class TosAcceptance < Stripe::RequestParams
3844
+ # The Unix timestamp marking when the account representative accepted the service agreement.
3845
+ attr_accessor :date
3846
+ # The IP address from which the account representative accepted the service agreement.
3847
+ attr_accessor :ip
3848
+ # The user agent of the browser from which the account representative accepted the service agreement.
3849
+ attr_accessor :user_agent
3850
+
3851
+ def initialize(date: nil, ip: nil, user_agent: nil)
3852
+ @date = date
3853
+ @ip = ip
3854
+ @user_agent = user_agent
3855
+ end
3856
+ end
3857
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
3858
+ attr_accessor :tos_acceptance
3859
+
3860
+ def initialize(tos_acceptance: nil)
3861
+ @tos_acceptance = tos_acceptance
3862
+ end
3863
+ end
3864
+ # Settings specific to Bacs Direct Debit.
3865
+ attr_accessor :bacs_debit_payments
3866
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
3867
+ attr_accessor :branding
3868
+ # Settings specific to the account's use of the Card Issuing product.
3869
+ attr_accessor :card_issuing
3870
+ # Settings specific to card charging on the account.
3871
+ attr_accessor :card_payments
3872
+ # Settings specific to the account’s use of Invoices.
3873
+ attr_accessor :invoices
3874
+ # Settings that apply across payment methods for charging on the account.
3875
+ attr_accessor :payments
3876
+ # Settings specific to the account's payouts.
3877
+ attr_accessor :payouts
3878
+ # Settings specific to the account's Treasury FinancialAccounts.
3879
+ attr_accessor :treasury
3880
+
3881
+ def initialize(
3882
+ bacs_debit_payments: nil,
3883
+ branding: nil,
3884
+ card_issuing: nil,
3885
+ card_payments: nil,
3886
+ invoices: nil,
3887
+ payments: nil,
3888
+ payouts: nil,
3889
+ treasury: nil
3890
+ )
3891
+ @bacs_debit_payments = bacs_debit_payments
3892
+ @branding = branding
3893
+ @card_issuing = card_issuing
3894
+ @card_payments = card_payments
3895
+ @invoices = invoices
3896
+ @payments = payments
3897
+ @payouts = payouts
3898
+ @treasury = treasury
3899
+ end
3900
+ end
3901
+
3902
+ class TosAcceptance < Stripe::RequestParams
3903
+ # The Unix timestamp marking when the account representative accepted their service agreement.
3904
+ attr_accessor :date
3905
+ # The IP address from which the account representative accepted their service agreement.
3906
+ attr_accessor :ip
3907
+ # The user's service agreement type.
3908
+ attr_accessor :service_agreement
3909
+ # The user agent of the browser from which the account representative accepted their service agreement.
3910
+ attr_accessor :user_agent
3911
+
3912
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
3913
+ @date = date
3914
+ @ip = ip
3915
+ @service_agreement = service_agreement
3916
+ @user_agent = user_agent
3917
+ end
3918
+ end
3919
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
3920
+ attr_accessor :account_token
3921
+ # Business information about the account.
3922
+ attr_accessor :business_profile
3923
+ # 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.
3924
+ attr_accessor :business_type
3925
+ # Each key of the dictionary represents a capability, and each capability
3926
+ # maps to its settings (for example, whether it has been requested or not). Each
3927
+ # capability is inactive until you have provided its specific
3928
+ # requirements and Stripe has verified them. An account might have some
3929
+ # of its requested capabilities be active and some be inactive.
3930
+ #
3931
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
3932
+ # is `none`, which includes Custom accounts.
3933
+ attr_accessor :capabilities
3934
+ # 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.
3935
+ attr_accessor :company
3936
+ # A hash of configuration describing the account controller's attributes.
3937
+ attr_accessor :controller
3938
+ # 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.
3939
+ attr_accessor :country
3940
+ # 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).
3941
+ attr_accessor :default_currency
3942
+ # Documents that may be submitted to satisfy various informational requests.
3943
+ attr_accessor :documents
3944
+ # 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.
3945
+ attr_accessor :email
3946
+ # Specifies which fields in the response should be expanded.
3947
+ attr_accessor :expand
3948
+ # 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.
3949
+ attr_accessor :external_account
3950
+ # A hash of account group type to tokens. These are account groups this account should be added to.
3951
+ attr_accessor :groups
3952
+ # 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.
3953
+ attr_accessor :individual
3954
+ # 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`.
3955
+ attr_accessor :metadata
3956
+ # Options for customizing how the account functions within Stripe.
3957
+ attr_accessor :settings
3958
+ # 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.
3959
+ attr_accessor :tos_acceptance
3960
+ # The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
3961
+ attr_accessor :type
3962
+
3963
+ def initialize(
3964
+ account_token: nil,
3965
+ business_profile: nil,
3966
+ business_type: nil,
3967
+ capabilities: nil,
3968
+ company: nil,
3969
+ controller: nil,
3970
+ country: nil,
3971
+ default_currency: nil,
3972
+ documents: nil,
3973
+ email: nil,
3974
+ expand: nil,
3975
+ external_account: nil,
3976
+ groups: nil,
3977
+ individual: nil,
3978
+ metadata: nil,
3979
+ settings: nil,
3980
+ tos_acceptance: nil,
3981
+ type: nil
3982
+ )
3983
+ @account_token = account_token
3984
+ @business_profile = business_profile
3985
+ @business_type = business_type
3986
+ @capabilities = capabilities
3987
+ @company = company
3988
+ @controller = controller
3989
+ @country = country
3990
+ @default_currency = default_currency
3991
+ @documents = documents
3992
+ @email = email
3993
+ @expand = expand
3994
+ @external_account = external_account
3995
+ @groups = groups
3996
+ @individual = individual
3997
+ @metadata = metadata
3998
+ @settings = settings
3999
+ @tos_acceptance = tos_acceptance
4000
+ @type = type
4001
+ end
4002
+ end
4003
+
4004
+ class RejectParams < Stripe::RequestParams
4005
+ # Specifies which fields in the response should be expanded.
4006
+ attr_accessor :expand
4007
+ # The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
4008
+ attr_accessor :reason
4009
+
4010
+ def initialize(expand: nil, reason: nil)
4011
+ @expand = expand
4012
+ @reason = reason
4013
+ end
4014
+ end
4015
+
16
4016
  # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
17
4017
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
18
4018
  #