stripe 15.0.0 → 15.1.0.pre.beta.2

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 (617) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1559 -676
  3. data/Gemfile +1 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  7. data/lib/stripe/api_requestor.rb +29 -1
  8. data/lib/stripe/api_version.rb +1 -1
  9. data/lib/stripe/connection_manager.rb +1 -3
  10. data/lib/stripe/errors.rb +54 -0
  11. data/lib/stripe/event_types.rb +75 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_core_account_link_completed_event.rb +13 -0
  21. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  22. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  23. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  24. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  28. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  44. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  52. data/lib/stripe/oauth.rb +1 -1
  53. data/lib/stripe/object_types.rb +53 -0
  54. data/lib/stripe/resources/account.rb +714 -3
  55. data/lib/stripe/resources/account_notice.rb +123 -0
  56. data/lib/stripe/resources/account_session.rb +299 -1
  57. data/lib/stripe/resources/balance_settings.rb +105 -0
  58. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  59. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  60. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  61. data/lib/stripe/resources/billing/meter_error_report.rb +59 -0
  62. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  63. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  64. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  65. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  66. data/lib/stripe/resources/card.rb +2 -0
  67. data/lib/stripe/resources/cash_balance.rb +2 -0
  68. data/lib/stripe/resources/charge.rb +1472 -0
  69. data/lib/stripe/resources/checkout/session.rb +368 -9
  70. data/lib/stripe/resources/confirmation_token.rb +243 -4
  71. data/lib/stripe/resources/coupon.rb +31 -2
  72. data/lib/stripe/resources/credit_note.rb +10 -0
  73. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  74. data/lib/stripe/resources/customer.rb +2 -0
  75. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  76. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  77. data/lib/stripe/resources/customer_session.rb +6 -1
  78. data/lib/stripe/resources/discount.rb +2 -0
  79. data/lib/stripe/resources/event.rb +33 -0
  80. data/lib/stripe/resources/financial_connections/account.rb +20 -1
  81. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  82. data/lib/stripe/resources/financial_connections/institution.rb +90 -0
  83. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  84. data/lib/stripe/resources/funding_instructions.rb +1 -1
  85. data/lib/stripe/resources/fx_quote.rb +184 -0
  86. data/lib/stripe/resources/gift_cards/card.rb +208 -0
  87. data/lib/stripe/resources/gift_cards/transaction.rb +272 -0
  88. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  89. data/lib/stripe/resources/invoice.rb +1124 -16
  90. data/lib/stripe/resources/invoice_item.rb +78 -2
  91. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  92. data/lib/stripe/resources/invoice_payment.rb +2 -53
  93. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  94. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  95. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  96. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  97. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  98. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  99. data/lib/stripe/resources/line_item.rb +37 -0
  100. data/lib/stripe/resources/login_link.rb +2 -1
  101. data/lib/stripe/resources/mandate.rb +24 -0
  102. data/lib/stripe/resources/margin.rb +115 -0
  103. data/lib/stripe/resources/order.rb +2859 -0
  104. data/lib/stripe/resources/payment_attempt_record.rb +1078 -0
  105. data/lib/stripe/resources/payment_intent.rb +5540 -654
  106. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +65 -0
  107. data/lib/stripe/resources/payment_method.rb +209 -6
  108. data/lib/stripe/resources/payment_method_configuration.rb +354 -0
  109. data/lib/stripe/resources/payment_method_domain.rb +13 -0
  110. data/lib/stripe/resources/payment_record.rb +1607 -0
  111. data/lib/stripe/resources/payout.rb +6 -0
  112. data/lib/stripe/resources/person.rb +25 -1
  113. data/lib/stripe/resources/price.rb +30 -0
  114. data/lib/stripe/resources/privacy/redaction_job.rb +254 -0
  115. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +35 -0
  116. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +25 -0
  117. data/lib/stripe/resources/product.rb +59 -0
  118. data/lib/stripe/resources/promotion_code.rb +10 -0
  119. data/lib/stripe/resources/quote.rb +2042 -6
  120. data/lib/stripe/resources/quote_line.rb +274 -0
  121. data/lib/stripe/resources/quote_preview_invoice.rb +663 -0
  122. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +337 -0
  123. data/lib/stripe/resources/refund.rb +11 -0
  124. data/lib/stripe/resources/setup_attempt.rb +21 -0
  125. data/lib/stripe/resources/setup_intent.rb +617 -21
  126. data/lib/stripe/resources/source.rb +29 -0
  127. data/lib/stripe/resources/subscription.rb +292 -9
  128. data/lib/stripe/resources/subscription_item.rb +84 -3
  129. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  130. data/lib/stripe/resources/tax/association.rb +89 -0
  131. data/lib/stripe/resources/tax/form.rb +211 -0
  132. data/lib/stripe/resources/tax/registration.rb +180 -0
  133. data/lib/stripe/resources/tax_id.rb +12 -2
  134. data/lib/stripe/resources/terminal/reader.rb +406 -0
  135. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  136. data/lib/stripe/resources/token.rb +61 -0
  137. data/lib/stripe/resources/transfer.rb +6 -0
  138. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  139. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  140. data/lib/stripe/resources/treasury/outbound_payment.rb +4 -1
  141. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  142. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  143. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  144. data/lib/stripe/resources/v2/core/account.rb +1715 -0
  145. data/lib/stripe/resources/v2/core/account_link.rb +54 -0
  146. data/lib/stripe/resources/v2/core/person.rb +272 -0
  147. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +72 -0
  148. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +37 -0
  149. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +18 -0
  150. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +20 -0
  151. data/lib/stripe/resources/v2/money_management/adjustment.rb +49 -0
  152. data/lib/stripe/resources/v2/money_management/financial_account.rb +56 -0
  153. data/lib/stripe/resources/v2/money_management/financial_address.rb +66 -0
  154. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +92 -0
  155. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +127 -0
  156. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +74 -0
  157. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +43 -0
  158. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +115 -0
  159. data/lib/stripe/resources/v2/money_management/payout_method.rb +73 -0
  160. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +47 -0
  161. data/lib/stripe/resources/v2/money_management/received_credit.rb +134 -0
  162. data/lib/stripe/resources/v2/money_management/received_debit.rb +106 -0
  163. data/lib/stripe/resources/v2/money_management/transaction.rb +76 -0
  164. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +66 -0
  165. data/lib/stripe/resources.rb +90 -0
  166. data/lib/stripe/services/account_notice_service.rb +101 -0
  167. data/lib/stripe/services/account_person_service.rb +84 -0
  168. data/lib/stripe/services/account_service.rb +609 -2
  169. data/lib/stripe/services/account_session_service.rb +269 -1
  170. data/lib/stripe/services/application_fee_service.rb +1 -1
  171. data/lib/stripe/services/apps_service.rb +1 -1
  172. data/lib/stripe/services/balance_settings_service.rb +96 -0
  173. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  174. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  175. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  176. data/lib/stripe/services/billing/meter_service.rb +1 -1
  177. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  178. data/lib/stripe/services/billing_portal_service.rb +1 -1
  179. data/lib/stripe/services/billing_service.rb +1 -1
  180. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  181. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  182. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  183. data/lib/stripe/services/capital_service.rb +15 -0
  184. data/lib/stripe/services/charge_service.rb +1350 -0
  185. data/lib/stripe/services/checkout/session_service.rb +269 -7
  186. data/lib/stripe/services/checkout_service.rb +1 -1
  187. data/lib/stripe/services/climate_service.rb +1 -1
  188. data/lib/stripe/services/coupon_service.rb +17 -1
  189. data/lib/stripe/services/credit_note_service.rb +5 -1
  190. data/lib/stripe/services/customer_service.rb +1 -1
  191. data/lib/stripe/services/customer_session_service.rb +4 -1
  192. data/lib/stripe/services/entitlements_service.rb +1 -1
  193. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -123
  194. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  195. data/lib/stripe/services/financial_connections/account_service.rb +8 -3
  196. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  197. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  198. data/lib/stripe/services/financial_connections_service.rb +3 -2
  199. data/lib/stripe/services/forwarding_service.rb +1 -1
  200. data/lib/stripe/services/fx_quote_service.rb +123 -0
  201. data/lib/stripe/services/gift_cards/card_service.rb +170 -0
  202. data/lib/stripe/services/gift_cards/transaction_service.rb +209 -0
  203. data/lib/stripe/services/gift_cards_service.rb +14 -0
  204. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  205. data/lib/stripe/services/identity_service.rb +1 -1
  206. data/lib/stripe/services/invoice_item_service.rb +74 -2
  207. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  208. data/lib/stripe/services/invoice_service.rb +1053 -17
  209. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  210. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  211. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  212. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  213. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  214. data/lib/stripe/services/issuing_service.rb +6 -2
  215. data/lib/stripe/services/margin_service.rb +119 -0
  216. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  217. data/lib/stripe/services/order_service.rb +2268 -0
  218. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  219. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  220. data/lib/stripe/services/payment_intent_service.rb +4711 -278
  221. data/lib/stripe/services/payment_link_service.rb +1 -1
  222. data/lib/stripe/services/payment_method_configuration_service.rb +252 -0
  223. data/lib/stripe/services/payment_method_service.rb +137 -6
  224. data/lib/stripe/services/payment_record_service.rb +542 -0
  225. data/lib/stripe/services/payout_service.rb +4 -0
  226. data/lib/stripe/services/price_service.rb +19 -0
  227. data/lib/stripe/services/privacy/redaction_job_service.rb +231 -0
  228. data/{rbi/stripe/services/climate/product_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +36 -25
  229. data/lib/stripe/services/privacy_service.rb +13 -0
  230. data/lib/stripe/services/product_service.rb +39 -1
  231. data/lib/stripe/services/promotion_code_service.rb +8 -0
  232. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  233. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  234. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  235. data/lib/stripe/services/quote_service.rb +1727 -8
  236. data/lib/stripe/services/radar_service.rb +1 -1
  237. data/lib/stripe/services/reporting_service.rb +1 -1
  238. data/lib/stripe/services/setup_intent_service.rb +577 -21
  239. data/lib/stripe/services/sigma_service.rb +1 -1
  240. data/lib/stripe/services/source_service.rb +1 -1
  241. data/lib/stripe/services/subscription_item_service.rb +75 -3
  242. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  243. data/lib/stripe/services/subscription_service.rb +253 -9
  244. data/lib/stripe/services/tax/association_service.rb +31 -0
  245. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  246. data/lib/stripe/services/tax/form_service.rb +100 -0
  247. data/lib/stripe/services/tax/registration_service.rb +117 -0
  248. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  249. data/lib/stripe/services/tax_id_service.rb +8 -2
  250. data/lib/stripe/services/tax_service.rb +4 -2
  251. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  252. data/lib/stripe/services/terminal/reader_service.rb +180 -0
  253. data/lib/stripe/services/terminal_service.rb +3 -2
  254. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +155 -4
  255. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  256. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  257. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  258. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  259. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  260. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  261. data/lib/stripe/services/test_helpers_service.rb +1 -1
  262. data/lib/stripe/services/token_service.rb +61 -0
  263. data/lib/stripe/services/transfer_service.rb +5 -1
  264. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  265. data/lib/stripe/services/treasury/financial_account_service.rb +17 -3
  266. data/lib/stripe/services/treasury/outbound_payment_service.rb +4 -1
  267. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  268. data/lib/stripe/services/treasury_service.rb +1 -1
  269. data/lib/stripe/services/v1_services.rb +13 -3
  270. data/lib/stripe/services/v2/billing_service.rb +1 -1
  271. data/lib/stripe/services/v2/core/account_link_service.rb +76 -0
  272. data/lib/stripe/services/v2/core/account_service.rb +4130 -0
  273. data/lib/stripe/services/v2/core/accounts/person_service.rb +1040 -0
  274. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +135 -0
  275. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +109 -0
  276. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  277. data/lib/stripe/services/v2/core_service.rb +5 -2
  278. data/lib/stripe/services/v2/money_management/adjustment_service.rb +75 -0
  279. data/lib/stripe/services/v2/money_management/financial_account_service.rb +44 -0
  280. data/lib/stripe/services/v2/money_management/financial_address_service.rb +81 -0
  281. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +126 -0
  282. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +80 -0
  283. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +202 -0
  284. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +237 -0
  285. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +174 -0
  286. data/lib/stripe/services/v2/money_management/payout_method_service.rb +95 -0
  287. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  288. data/lib/stripe/services/v2/money_management/received_credit_service.rb +71 -0
  289. data/lib/stripe/services/v2/money_management/received_debit_service.rb +44 -0
  290. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +70 -0
  291. data/lib/stripe/services/v2/money_management/transaction_service.rb +74 -0
  292. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  293. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  294. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +50 -0
  295. data/lib/stripe/services/v2_services.rb +5 -3
  296. data/lib/stripe/services.rb +54 -1
  297. data/lib/stripe/stripe_configuration.rb +3 -1
  298. data/lib/stripe/stripe_object.rb +1 -1
  299. data/lib/stripe/util.rb +7 -1
  300. data/lib/stripe/version.rb +1 -1
  301. data/lib/stripe.rb +53 -0
  302. data/rbi/stripe.rbi +191592 -0
  303. data/stripe.gemspec +4 -1
  304. metadata +149 -325
  305. data/lib/stripe/services/invoice_payment_service.rb +0 -83
  306. data/rbi/stripe/resources/account.rbi +0 -4840
  307. data/rbi/stripe/resources/account_link.rbi +0 -74
  308. data/rbi/stripe/resources/account_session.rbi +0 -894
  309. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -90
  310. data/rbi/stripe/resources/application.rbi +0 -20
  311. data/rbi/stripe/resources/application_fee.rbi +0 -118
  312. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  313. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  314. data/rbi/stripe/resources/balance.rbi +0 -180
  315. data/rbi/stripe/resources/balance_transaction.rbi +0 -144
  316. data/rbi/stripe/resources/bank_account.rbi +0 -127
  317. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  318. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  319. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  320. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  321. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  322. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  323. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  324. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  325. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  326. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -645
  327. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  328. data/rbi/stripe/resources/capability.rbi +0 -125
  329. data/rbi/stripe/resources/card.rbi +0 -125
  330. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  331. data/rbi/stripe/resources/charge.rbi +0 -2054
  332. data/rbi/stripe/resources/checkout/session.rbi +0 -3951
  333. data/rbi/stripe/resources/climate/order.rbi +0 -245
  334. data/rbi/stripe/resources/climate/product.rbi +0 -75
  335. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  336. data/rbi/stripe/resources/confirmation_token.rbi +0 -1793
  337. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  338. data/rbi/stripe/resources/country_spec.rbi +0 -85
  339. data/rbi/stripe/resources/coupon.rbi +0 -252
  340. data/rbi/stripe/resources/credit_note.rbi +0 -747
  341. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  342. data/rbi/stripe/resources/customer.rbi +0 -1009
  343. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  344. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  345. data/rbi/stripe/resources/customer_session.rbi +0 -200
  346. data/rbi/stripe/resources/discount.rbi +0 -53
  347. data/rbi/stripe/resources/dispute.rbi +0 -761
  348. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  349. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  350. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  351. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  352. data/rbi/stripe/resources/event.rbi +0 -146
  353. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  354. data/rbi/stripe/resources/file.rbi +0 -143
  355. data/rbi/stripe/resources/file_link.rbi +0 -141
  356. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  357. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  358. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  359. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  360. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  361. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  362. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  363. data/rbi/stripe/resources/identity/verification_report.rbi +0 -351
  364. data/rbi/stripe/resources/identity/verification_session.rbi +0 -517
  365. data/rbi/stripe/resources/invoice.rbi +0 -3733
  366. data/rbi/stripe/resources/invoice_item.rbi +0 -475
  367. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  368. data/rbi/stripe/resources/invoice_payment.rbi +0 -114
  369. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  370. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  371. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  372. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  373. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  374. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  375. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  376. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  377. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  378. data/rbi/stripe/resources/line_item.rbi +0 -72
  379. data/rbi/stripe/resources/login_link.rbi +0 -18
  380. data/rbi/stripe/resources/mandate.rbi +0 -187
  381. data/rbi/stripe/resources/payment_intent.rbi +0 -9731
  382. data/rbi/stripe/resources/payment_link.rbi +0 -1801
  383. data/rbi/stripe/resources/payment_method.rbi +0 -1822
  384. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3154
  385. data/rbi/stripe/resources/payment_method_domain.rbi +0 -212
  386. data/rbi/stripe/resources/payout.rbi +0 -300
  387. data/rbi/stripe/resources/person.rbi +0 -371
  388. data/rbi/stripe/resources/plan.rbi +0 -373
  389. data/rbi/stripe/resources/price.rbi +0 -694
  390. data/rbi/stripe/resources/product.rbi +0 -557
  391. data/rbi/stripe/resources/product_feature.rbi +0 -26
  392. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  393. data/rbi/stripe/resources/quote.rbi +0 -1123
  394. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  395. data/rbi/stripe/resources/radar/value_list.rbi +0 -170
  396. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -131
  397. data/rbi/stripe/resources/refund.rbi +0 -516
  398. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  399. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  400. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  401. data/rbi/stripe/resources/reversal.rbi +0 -51
  402. data/rbi/stripe/resources/review.rbi +0 -154
  403. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  404. data/rbi/stripe/resources/setup_intent.rbi +0 -3860
  405. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  406. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  407. data/rbi/stripe/resources/source.rbi +0 -1496
  408. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  409. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  410. data/rbi/stripe/resources/subscription.rbi +0 -1964
  411. data/rbi/stripe/resources/subscription_item.rbi +0 -370
  412. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1495
  413. data/rbi/stripe/resources/tax/calculation.rbi +0 -474
  414. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -88
  415. data/rbi/stripe/resources/tax/registration.rbi +0 -2485
  416. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  417. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  418. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  419. data/rbi/stripe/resources/tax_code.rbi +0 -44
  420. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  421. data/rbi/stripe/resources/tax_id.rbi +0 -167
  422. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  423. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1388
  424. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  425. data/rbi/stripe/resources/terminal/location.rbi +0 -224
  426. data/rbi/stripe/resources/terminal/reader.rbi +0 -587
  427. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -134
  428. data/rbi/stripe/resources/token.rbi +0 -1217
  429. data/rbi/stripe/resources/topup.rbi +0 -222
  430. data/rbi/stripe/resources/transfer.rbi +0 -199
  431. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  432. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  433. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -865
  434. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  435. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  436. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  437. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  438. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  439. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  440. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  441. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  442. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  443. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  444. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  445. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  446. data/rbi/stripe/resources/v2/event.rbi +0 -48
  447. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  448. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -170
  449. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  450. data/rbi/stripe/services/account_link_service.rbi +0 -58
  451. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  452. data/rbi/stripe/services/account_person_service.rbi +0 -923
  453. data/rbi/stripe/services/account_service.rbi +0 -4143
  454. data/rbi/stripe/services/account_session_service.rbi +0 -572
  455. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -78
  456. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  457. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  458. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  459. data/rbi/stripe/services/apps_service.rbi +0 -9
  460. data/rbi/stripe/services/balance_service.rbi +0 -21
  461. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  462. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  463. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  464. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  465. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  466. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  467. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  468. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  469. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  470. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -511
  471. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  472. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  473. data/rbi/stripe/services/billing_service.rbi +0 -15
  474. data/rbi/stripe/services/charge_service.rbi +0 -448
  475. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  476. data/rbi/stripe/services/checkout/session_service.rbi +0 -2585
  477. data/rbi/stripe/services/checkout_service.rbi +0 -9
  478. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  479. data/rbi/stripe/services/climate_service.rbi +0 -11
  480. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  481. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  482. data/rbi/stripe/services/coupon_service.rbi +0 -196
  483. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  484. data/rbi/stripe/services/credit_note_service.rbi +0 -416
  485. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  486. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  487. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  488. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  489. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  490. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  491. data/rbi/stripe/services/customer_service.rbi +0 -651
  492. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  493. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -72
  494. data/rbi/stripe/services/dispute_service.rbi +0 -424
  495. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  496. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  497. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  498. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  499. data/rbi/stripe/services/event_service.rbi +0 -83
  500. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  501. data/rbi/stripe/services/file_link_service.rbi +0 -124
  502. data/rbi/stripe/services/file_service.rbi +0 -116
  503. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  504. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  505. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  506. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  507. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  508. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  509. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  510. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  511. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -323
  512. data/rbi/stripe/services/identity_service.rbi +0 -10
  513. data/rbi/stripe/services/invoice_item_service.rbi +0 -368
  514. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  515. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  516. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  517. data/rbi/stripe/services/invoice_service.rbi +0 -2920
  518. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  519. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  520. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  521. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  522. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  523. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  524. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  525. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  526. data/rbi/stripe/services/issuing_service.rbi +0 -16
  527. data/rbi/stripe/services/mandate_service.rbi +0 -20
  528. data/rbi/stripe/services/payment_intent_service.rbi +0 -7759
  529. data/rbi/stripe/services/payment_link_service.rbi +0 -1352
  530. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2211
  531. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  532. data/rbi/stripe/services/payment_method_service.rbi +0 -840
  533. data/rbi/stripe/services/payout_service.rbi +0 -205
  534. data/rbi/stripe/services/plan_service.rbi +0 -284
  535. data/rbi/stripe/services/price_service.rbi +0 -546
  536. data/rbi/stripe/services/product_feature_service.rbi +0 -69
  537. data/rbi/stripe/services/product_service.rbi +0 -479
  538. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  539. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  540. data/rbi/stripe/services/quote_service.rbi +0 -686
  541. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  542. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -111
  543. data/rbi/stripe/services/radar/value_list_service.rbi +0 -143
  544. data/rbi/stripe/services/radar_service.rbi +0 -11
  545. data/rbi/stripe/services/refund_service.rbi +0 -185
  546. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  547. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  548. data/rbi/stripe/services/reporting_service.rbi +0 -10
  549. data/rbi/stripe/services/review_service.rbi +0 -84
  550. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  551. data/rbi/stripe/services/setup_intent_service.rbi +0 -3596
  552. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  553. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  554. data/rbi/stripe/services/sigma_service.rbi +0 -9
  555. data/rbi/stripe/services/source_service.rbi +0 -663
  556. data/rbi/stripe/services/subscription_item_service.rbi +0 -324
  557. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1192
  558. data/rbi/stripe/services/subscription_service.rbi +0 -1596
  559. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -33
  560. data/rbi/stripe/services/tax/calculation_service.rbi +0 -230
  561. data/rbi/stripe/services/tax/registration_service.rbi +0 -1689
  562. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  563. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  564. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  565. data/rbi/stripe/services/tax_id_service.rbi +0 -112
  566. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  567. data/rbi/stripe/services/tax_service.rbi +0 -12
  568. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1120
  569. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  570. data/rbi/stripe/services/terminal/location_service.rbi +0 -184
  571. data/rbi/stripe/services/terminal/reader_service.rbi +0 -344
  572. data/rbi/stripe/services/terminal_service.rbi +0 -12
  573. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  574. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  575. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  576. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  577. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  578. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  579. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  580. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  581. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -62
  582. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  583. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -92
  584. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  585. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  586. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  587. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  588. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  589. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  590. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  591. data/rbi/stripe/services/token_service.rbi +0 -1189
  592. data/rbi/stripe/services/topup_service.rbi +0 -176
  593. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  594. data/rbi/stripe/services/transfer_service.rbi +0 -152
  595. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  596. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  597. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  598. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -562
  599. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  600. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  601. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  602. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  603. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  604. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  605. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  606. data/rbi/stripe/services/treasury_service.rbi +0 -18
  607. data/rbi/stripe/services/v1_services.rbi +0 -77
  608. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  609. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  610. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -20
  611. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  612. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  613. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -200
  614. data/rbi/stripe/services/v2/core/event_service.rbi +0 -38
  615. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  616. data/rbi/stripe/services/v2_services.rbi +0 -10
  617. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -131
@@ -0,0 +1,4130 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountService < StripeService
8
+ attr_reader :persons
9
+
10
+ def initialize(requestor)
11
+ super
12
+ @persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
13
+ end
14
+
15
+ class CloseParams < Stripe::RequestParams
16
+ # Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
17
+ attr_accessor :applied_configurations
18
+
19
+ def initialize(applied_configurations: nil)
20
+ @applied_configurations = applied_configurations
21
+ end
22
+ end
23
+
24
+ class CreateParams < Stripe::RequestParams
25
+ class Configuration < Stripe::RequestParams
26
+ class Customer < Stripe::RequestParams
27
+ class AutomaticIndirectTax < Stripe::RequestParams
28
+ # Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
29
+ attr_accessor :exempt
30
+ # A recent IP address of the customer used for tax reporting and tax location inference.
31
+ attr_accessor :ip_address
32
+ # The data source used by Stripe Tax to identify the customer's location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
33
+ attr_accessor :location_source
34
+
35
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
36
+ @exempt = exempt
37
+ @ip_address = ip_address
38
+ @location_source = location_source
39
+ end
40
+ end
41
+
42
+ class Billing < Stripe::RequestParams
43
+ class Invoice < Stripe::RequestParams
44
+ class CustomField < Stripe::RequestParams
45
+ # The name of the custom field. This may be up to 40 characters.
46
+ attr_accessor :name
47
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
48
+ attr_accessor :value
49
+
50
+ def initialize(name: nil, value: nil)
51
+ @name = name
52
+ @value = value
53
+ end
54
+ end
55
+
56
+ class Rendering < Stripe::RequestParams
57
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of exclude_tax or include_inclusive_tax. include_inclusive_tax will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. exclude_tax will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
58
+ attr_accessor :amount_tax_display
59
+ # ID of the invoice rendering template to use for future invoices.
60
+ attr_accessor :template
61
+
62
+ def initialize(amount_tax_display: nil, template: nil)
63
+ @amount_tax_display = amount_tax_display
64
+ @template = template
65
+ end
66
+ end
67
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
68
+ attr_accessor :custom_fields
69
+ # Default footer to be displayed on invoices for this customer.
70
+ attr_accessor :footer
71
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
72
+ attr_accessor :next_sequence
73
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
74
+ attr_accessor :prefix
75
+ # Default options for invoice PDF rendering for this customer.
76
+ attr_accessor :rendering
77
+
78
+ def initialize(
79
+ custom_fields: nil,
80
+ footer: nil,
81
+ next_sequence: nil,
82
+ prefix: nil,
83
+ rendering: nil
84
+ )
85
+ @custom_fields = custom_fields
86
+ @footer = footer
87
+ @next_sequence = next_sequence
88
+ @prefix = prefix
89
+ @rendering = rendering
90
+ end
91
+ end
92
+ # Default settings used on invoices for this customer.
93
+ attr_accessor :invoice
94
+
95
+ def initialize(invoice: nil)
96
+ @invoice = invoice
97
+ end
98
+ end
99
+
100
+ class Capabilities < Stripe::RequestParams
101
+ class AutomaticIndirectTax < Stripe::RequestParams
102
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
103
+ attr_accessor :requested
104
+
105
+ def initialize(requested: nil)
106
+ @requested = requested
107
+ end
108
+ end
109
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field.
110
+ attr_accessor :automatic_indirect_tax
111
+
112
+ def initialize(automatic_indirect_tax: nil)
113
+ @automatic_indirect_tax = automatic_indirect_tax
114
+ end
115
+ end
116
+
117
+ class Shipping < Stripe::RequestParams
118
+ class Address < Stripe::RequestParams
119
+ # City, district, suburb, town, or village.
120
+ attr_accessor :city
121
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
122
+ attr_accessor :country
123
+ # Address line 1 (e.g., street, PO Box, or company name).
124
+ attr_accessor :line1
125
+ # Address line 2 (e.g., apartment, suite, unit, or building).
126
+ attr_accessor :line2
127
+ # ZIP or postal code.
128
+ attr_accessor :postal_code
129
+ # State, county, province, or region.
130
+ attr_accessor :state
131
+
132
+ def initialize(
133
+ city: nil,
134
+ country: nil,
135
+ line1: nil,
136
+ line2: nil,
137
+ postal_code: nil,
138
+ state: nil
139
+ )
140
+ @city = city
141
+ @country = country
142
+ @line1 = line1
143
+ @line2 = line2
144
+ @postal_code = postal_code
145
+ @state = state
146
+ end
147
+ end
148
+ # Customer shipping address.
149
+ attr_accessor :address
150
+ # Customer name.
151
+ attr_accessor :name
152
+ # Customer phone (including extension).
153
+ attr_accessor :phone
154
+
155
+ def initialize(address: nil, name: nil, phone: nil)
156
+ @address = address
157
+ @name = name
158
+ @phone = phone
159
+ end
160
+ end
161
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
162
+ attr_accessor :automatic_indirect_tax
163
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
164
+ attr_accessor :billing
165
+ # Capabilities that have been requested on the Customer Configuration.
166
+ attr_accessor :capabilities
167
+ # The customer's shipping information. Appears on invoices emailed to this customer.
168
+ attr_accessor :shipping
169
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
170
+ attr_accessor :test_clock
171
+
172
+ def initialize(
173
+ automatic_indirect_tax: nil,
174
+ billing: nil,
175
+ capabilities: nil,
176
+ shipping: nil,
177
+ test_clock: nil
178
+ )
179
+ @automatic_indirect_tax = automatic_indirect_tax
180
+ @billing = billing
181
+ @capabilities = capabilities
182
+ @shipping = shipping
183
+ @test_clock = test_clock
184
+ end
185
+ end
186
+
187
+ class Merchant < Stripe::RequestParams
188
+ class BacsDebitPayments < Stripe::RequestParams
189
+ # Display name for Bacs debit payments.
190
+ attr_accessor :display_name
191
+
192
+ def initialize(display_name: nil)
193
+ @display_name = display_name
194
+ end
195
+ end
196
+
197
+ class Branding < Stripe::RequestParams
198
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
199
+ attr_accessor :icon
200
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
201
+ attr_accessor :logo
202
+ # A CSS hex color value representing the primary branding color for the merchant.
203
+ attr_accessor :primary_color
204
+ # A CSS hex color value representing the secondary branding color for the merchant.
205
+ attr_accessor :secondary_color
206
+
207
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
208
+ @icon = icon
209
+ @logo = logo
210
+ @primary_color = primary_color
211
+ @secondary_color = secondary_color
212
+ end
213
+ end
214
+
215
+ class Capabilities < Stripe::RequestParams
216
+ class AchDebitPayments < Stripe::RequestParams
217
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
218
+ attr_accessor :requested
219
+
220
+ def initialize(requested: nil)
221
+ @requested = requested
222
+ end
223
+ end
224
+
225
+ class AcssDebitPayments < Stripe::RequestParams
226
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
227
+ attr_accessor :requested
228
+
229
+ def initialize(requested: nil)
230
+ @requested = requested
231
+ end
232
+ end
233
+
234
+ class AffirmPayments < Stripe::RequestParams
235
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
236
+ attr_accessor :requested
237
+
238
+ def initialize(requested: nil)
239
+ @requested = requested
240
+ end
241
+ end
242
+
243
+ class AfterpayClearpayPayments < Stripe::RequestParams
244
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
245
+ attr_accessor :requested
246
+
247
+ def initialize(requested: nil)
248
+ @requested = requested
249
+ end
250
+ end
251
+
252
+ class AlmaPayments < Stripe::RequestParams
253
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
254
+ attr_accessor :requested
255
+
256
+ def initialize(requested: nil)
257
+ @requested = requested
258
+ end
259
+ end
260
+
261
+ class AmazonPayPayments < Stripe::RequestParams
262
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
263
+ attr_accessor :requested
264
+
265
+ def initialize(requested: nil)
266
+ @requested = requested
267
+ end
268
+ end
269
+
270
+ class AuBecsDebitPayments < Stripe::RequestParams
271
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
272
+ attr_accessor :requested
273
+
274
+ def initialize(requested: nil)
275
+ @requested = requested
276
+ end
277
+ end
278
+
279
+ class BacsDebitPayments < Stripe::RequestParams
280
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
281
+ attr_accessor :requested
282
+
283
+ def initialize(requested: nil)
284
+ @requested = requested
285
+ end
286
+ end
287
+
288
+ class BancontactPayments < Stripe::RequestParams
289
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
290
+ attr_accessor :requested
291
+
292
+ def initialize(requested: nil)
293
+ @requested = requested
294
+ end
295
+ end
296
+
297
+ class BlikPayments < Stripe::RequestParams
298
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
299
+ attr_accessor :requested
300
+
301
+ def initialize(requested: nil)
302
+ @requested = requested
303
+ end
304
+ end
305
+
306
+ class BoletoPayments < Stripe::RequestParams
307
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
308
+ attr_accessor :requested
309
+
310
+ def initialize(requested: nil)
311
+ @requested = requested
312
+ end
313
+ end
314
+
315
+ class CardPayments < Stripe::RequestParams
316
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
317
+ attr_accessor :requested
318
+
319
+ def initialize(requested: nil)
320
+ @requested = requested
321
+ end
322
+ end
323
+
324
+ class CartesBancairesPayments < Stripe::RequestParams
325
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
326
+ attr_accessor :requested
327
+
328
+ def initialize(requested: nil)
329
+ @requested = requested
330
+ end
331
+ end
332
+
333
+ class CashappPayments < Stripe::RequestParams
334
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
335
+ attr_accessor :requested
336
+
337
+ def initialize(requested: nil)
338
+ @requested = requested
339
+ end
340
+ end
341
+
342
+ class EpsPayments < Stripe::RequestParams
343
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
344
+ attr_accessor :requested
345
+
346
+ def initialize(requested: nil)
347
+ @requested = requested
348
+ end
349
+ end
350
+
351
+ class FpxPayments < Stripe::RequestParams
352
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
353
+ attr_accessor :requested
354
+
355
+ def initialize(requested: nil)
356
+ @requested = requested
357
+ end
358
+ end
359
+
360
+ class GbBankTransferPayments < Stripe::RequestParams
361
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
362
+ attr_accessor :requested
363
+
364
+ def initialize(requested: nil)
365
+ @requested = requested
366
+ end
367
+ end
368
+
369
+ class GrabpayPayments < Stripe::RequestParams
370
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
371
+ attr_accessor :requested
372
+
373
+ def initialize(requested: nil)
374
+ @requested = requested
375
+ end
376
+ end
377
+
378
+ class IdealPayments < Stripe::RequestParams
379
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
380
+ attr_accessor :requested
381
+
382
+ def initialize(requested: nil)
383
+ @requested = requested
384
+ end
385
+ end
386
+
387
+ class JcbPayments < Stripe::RequestParams
388
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
389
+ attr_accessor :requested
390
+
391
+ def initialize(requested: nil)
392
+ @requested = requested
393
+ end
394
+ end
395
+
396
+ class JpBankTransferPayments < Stripe::RequestParams
397
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
398
+ attr_accessor :requested
399
+
400
+ def initialize(requested: nil)
401
+ @requested = requested
402
+ end
403
+ end
404
+
405
+ class KakaoPayPayments < Stripe::RequestParams
406
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
407
+ attr_accessor :requested
408
+
409
+ def initialize(requested: nil)
410
+ @requested = requested
411
+ end
412
+ end
413
+
414
+ class KlarnaPayments < Stripe::RequestParams
415
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
416
+ attr_accessor :requested
417
+
418
+ def initialize(requested: nil)
419
+ @requested = requested
420
+ end
421
+ end
422
+
423
+ class KonbiniPayments < Stripe::RequestParams
424
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
425
+ attr_accessor :requested
426
+
427
+ def initialize(requested: nil)
428
+ @requested = requested
429
+ end
430
+ end
431
+
432
+ class KrCardPayments < Stripe::RequestParams
433
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
434
+ attr_accessor :requested
435
+
436
+ def initialize(requested: nil)
437
+ @requested = requested
438
+ end
439
+ end
440
+
441
+ class LinkPayments < Stripe::RequestParams
442
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
443
+ attr_accessor :requested
444
+
445
+ def initialize(requested: nil)
446
+ @requested = requested
447
+ end
448
+ end
449
+
450
+ class MobilepayPayments < Stripe::RequestParams
451
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
452
+ attr_accessor :requested
453
+
454
+ def initialize(requested: nil)
455
+ @requested = requested
456
+ end
457
+ end
458
+
459
+ class MultibancoPayments < Stripe::RequestParams
460
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
461
+ attr_accessor :requested
462
+
463
+ def initialize(requested: nil)
464
+ @requested = requested
465
+ end
466
+ end
467
+
468
+ class MxBankTransferPayments < Stripe::RequestParams
469
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
470
+ attr_accessor :requested
471
+
472
+ def initialize(requested: nil)
473
+ @requested = requested
474
+ end
475
+ end
476
+
477
+ class NaverPayPayments < Stripe::RequestParams
478
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
479
+ attr_accessor :requested
480
+
481
+ def initialize(requested: nil)
482
+ @requested = requested
483
+ end
484
+ end
485
+
486
+ class OxxoPayments < Stripe::RequestParams
487
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
488
+ attr_accessor :requested
489
+
490
+ def initialize(requested: nil)
491
+ @requested = requested
492
+ end
493
+ end
494
+
495
+ class P24Payments < Stripe::RequestParams
496
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
497
+ attr_accessor :requested
498
+
499
+ def initialize(requested: nil)
500
+ @requested = requested
501
+ end
502
+ end
503
+
504
+ class PayByBankPayments < Stripe::RequestParams
505
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
506
+ attr_accessor :requested
507
+
508
+ def initialize(requested: nil)
509
+ @requested = requested
510
+ end
511
+ end
512
+
513
+ class PaycoPayments < Stripe::RequestParams
514
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
515
+ attr_accessor :requested
516
+
517
+ def initialize(requested: nil)
518
+ @requested = requested
519
+ end
520
+ end
521
+
522
+ class PaynowPayments < Stripe::RequestParams
523
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
524
+ attr_accessor :requested
525
+
526
+ def initialize(requested: nil)
527
+ @requested = requested
528
+ end
529
+ end
530
+
531
+ class PromptpayPayments < Stripe::RequestParams
532
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
533
+ attr_accessor :requested
534
+
535
+ def initialize(requested: nil)
536
+ @requested = requested
537
+ end
538
+ end
539
+
540
+ class RevolutPayPayments < Stripe::RequestParams
541
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
542
+ attr_accessor :requested
543
+
544
+ def initialize(requested: nil)
545
+ @requested = requested
546
+ end
547
+ end
548
+
549
+ class SamsungPayPayments < Stripe::RequestParams
550
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
551
+ attr_accessor :requested
552
+
553
+ def initialize(requested: nil)
554
+ @requested = requested
555
+ end
556
+ end
557
+
558
+ class SepaBankTransferPayments < Stripe::RequestParams
559
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
560
+ attr_accessor :requested
561
+
562
+ def initialize(requested: nil)
563
+ @requested = requested
564
+ end
565
+ end
566
+
567
+ class SepaDebitPayments < Stripe::RequestParams
568
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
569
+ attr_accessor :requested
570
+
571
+ def initialize(requested: nil)
572
+ @requested = requested
573
+ end
574
+ end
575
+
576
+ class SwishPayments < Stripe::RequestParams
577
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
578
+ attr_accessor :requested
579
+
580
+ def initialize(requested: nil)
581
+ @requested = requested
582
+ end
583
+ end
584
+
585
+ class TwintPayments < Stripe::RequestParams
586
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
587
+ attr_accessor :requested
588
+
589
+ def initialize(requested: nil)
590
+ @requested = requested
591
+ end
592
+ end
593
+
594
+ class UsBankTransferPayments < Stripe::RequestParams
595
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
596
+ attr_accessor :requested
597
+
598
+ def initialize(requested: nil)
599
+ @requested = requested
600
+ end
601
+ end
602
+
603
+ class ZipPayments < Stripe::RequestParams
604
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
605
+ attr_accessor :requested
606
+
607
+ def initialize(requested: nil)
608
+ @requested = requested
609
+ end
610
+ end
611
+ # Allow the merchant to process ACH debit payments.
612
+ attr_accessor :ach_debit_payments
613
+ # Allow the merchant to process ACSS debit payments.
614
+ attr_accessor :acss_debit_payments
615
+ # Allow the merchant to process Affirm payments.
616
+ attr_accessor :affirm_payments
617
+ # Allow the merchant to process Afterpay/Clearpay payments.
618
+ attr_accessor :afterpay_clearpay_payments
619
+ # Allow the merchant to process Alma payments.
620
+ attr_accessor :alma_payments
621
+ # Allow the merchant to process Amazon Pay payments.
622
+ attr_accessor :amazon_pay_payments
623
+ # Allow the merchant to process Australian BECS Direct Debit payments.
624
+ attr_accessor :au_becs_debit_payments
625
+ # Allow the merchant to process BACS Direct Debit payments.
626
+ attr_accessor :bacs_debit_payments
627
+ # Allow the merchant to process Bancontact payments.
628
+ attr_accessor :bancontact_payments
629
+ # Allow the merchant to process BLIK payments.
630
+ attr_accessor :blik_payments
631
+ # Allow the merchant to process Boleto payments.
632
+ attr_accessor :boleto_payments
633
+ # Allow the merchant to collect card payments.
634
+ attr_accessor :card_payments
635
+ # Allow the merchant to process Cartes Bancaires payments.
636
+ attr_accessor :cartes_bancaires_payments
637
+ # Allow the merchant to process Cash App payments.
638
+ attr_accessor :cashapp_payments
639
+ # Allow the merchant to process EPS payments.
640
+ attr_accessor :eps_payments
641
+ # Allow the merchant to process FPX payments.
642
+ attr_accessor :fpx_payments
643
+ # Allow the merchant to process UK bank transfer payments.
644
+ attr_accessor :gb_bank_transfer_payments
645
+ # Allow the merchant to process GrabPay payments.
646
+ attr_accessor :grabpay_payments
647
+ # Allow the merchant to process iDEAL payments.
648
+ attr_accessor :ideal_payments
649
+ # Allow the merchant to process JCB card payments.
650
+ attr_accessor :jcb_payments
651
+ # Allow the merchant to process Japanese bank transfer payments.
652
+ attr_accessor :jp_bank_transfer_payments
653
+ # Allow the merchant to process Kakao Pay payments.
654
+ attr_accessor :kakao_pay_payments
655
+ # Allow the merchant to process Klarna payments.
656
+ attr_accessor :klarna_payments
657
+ # Allow the merchant to process Konbini convenience store payments.
658
+ attr_accessor :konbini_payments
659
+ # Allow the merchant to process Korean card payments.
660
+ attr_accessor :kr_card_payments
661
+ # Allow the merchant to process Link payments.
662
+ attr_accessor :link_payments
663
+ # Allow the merchant to process MobilePay payments.
664
+ attr_accessor :mobilepay_payments
665
+ # Allow the merchant to process Multibanco payments.
666
+ attr_accessor :multibanco_payments
667
+ # Allow the merchant to process Mexican bank transfer payments.
668
+ attr_accessor :mx_bank_transfer_payments
669
+ # Allow the merchant to process Naver Pay payments.
670
+ attr_accessor :naver_pay_payments
671
+ # Allow the merchant to process OXXO payments.
672
+ attr_accessor :oxxo_payments
673
+ # Allow the merchant to process Przelewy24 (P24) payments.
674
+ attr_accessor :p24_payments
675
+ # Allow the merchant to process Pay by Bank payments.
676
+ attr_accessor :pay_by_bank_payments
677
+ # Allow the merchant to process PAYCO payments.
678
+ attr_accessor :payco_payments
679
+ # Allow the merchant to process PayNow payments.
680
+ attr_accessor :paynow_payments
681
+ # Allow the merchant to process PromptPay payments.
682
+ attr_accessor :promptpay_payments
683
+ # Allow the merchant to process Revolut Pay payments.
684
+ attr_accessor :revolut_pay_payments
685
+ # Allow the merchant to process Samsung Pay payments.
686
+ attr_accessor :samsung_pay_payments
687
+ # Allow the merchant to process SEPA bank transfer payments.
688
+ attr_accessor :sepa_bank_transfer_payments
689
+ # Allow the merchant to process SEPA Direct Debit payments.
690
+ attr_accessor :sepa_debit_payments
691
+ # Allow the merchant to process Swish payments.
692
+ attr_accessor :swish_payments
693
+ # Allow the merchant to process TWINT payments.
694
+ attr_accessor :twint_payments
695
+ # Allow the merchant to process US bank transfer payments.
696
+ attr_accessor :us_bank_transfer_payments
697
+ # Allow the merchant to process Zip payments.
698
+ attr_accessor :zip_payments
699
+
700
+ def initialize(
701
+ ach_debit_payments: nil,
702
+ acss_debit_payments: nil,
703
+ affirm_payments: nil,
704
+ afterpay_clearpay_payments: nil,
705
+ alma_payments: nil,
706
+ amazon_pay_payments: nil,
707
+ au_becs_debit_payments: nil,
708
+ bacs_debit_payments: nil,
709
+ bancontact_payments: nil,
710
+ blik_payments: nil,
711
+ boleto_payments: nil,
712
+ card_payments: nil,
713
+ cartes_bancaires_payments: nil,
714
+ cashapp_payments: nil,
715
+ eps_payments: nil,
716
+ fpx_payments: nil,
717
+ gb_bank_transfer_payments: nil,
718
+ grabpay_payments: nil,
719
+ ideal_payments: nil,
720
+ jcb_payments: nil,
721
+ jp_bank_transfer_payments: nil,
722
+ kakao_pay_payments: nil,
723
+ klarna_payments: nil,
724
+ konbini_payments: nil,
725
+ kr_card_payments: nil,
726
+ link_payments: nil,
727
+ mobilepay_payments: nil,
728
+ multibanco_payments: nil,
729
+ mx_bank_transfer_payments: nil,
730
+ naver_pay_payments: nil,
731
+ oxxo_payments: nil,
732
+ p24_payments: nil,
733
+ pay_by_bank_payments: nil,
734
+ payco_payments: nil,
735
+ paynow_payments: nil,
736
+ promptpay_payments: nil,
737
+ revolut_pay_payments: nil,
738
+ samsung_pay_payments: nil,
739
+ sepa_bank_transfer_payments: nil,
740
+ sepa_debit_payments: nil,
741
+ swish_payments: nil,
742
+ twint_payments: nil,
743
+ us_bank_transfer_payments: nil,
744
+ zip_payments: nil
745
+ )
746
+ @ach_debit_payments = ach_debit_payments
747
+ @acss_debit_payments = acss_debit_payments
748
+ @affirm_payments = affirm_payments
749
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
750
+ @alma_payments = alma_payments
751
+ @amazon_pay_payments = amazon_pay_payments
752
+ @au_becs_debit_payments = au_becs_debit_payments
753
+ @bacs_debit_payments = bacs_debit_payments
754
+ @bancontact_payments = bancontact_payments
755
+ @blik_payments = blik_payments
756
+ @boleto_payments = boleto_payments
757
+ @card_payments = card_payments
758
+ @cartes_bancaires_payments = cartes_bancaires_payments
759
+ @cashapp_payments = cashapp_payments
760
+ @eps_payments = eps_payments
761
+ @fpx_payments = fpx_payments
762
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
763
+ @grabpay_payments = grabpay_payments
764
+ @ideal_payments = ideal_payments
765
+ @jcb_payments = jcb_payments
766
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
767
+ @kakao_pay_payments = kakao_pay_payments
768
+ @klarna_payments = klarna_payments
769
+ @konbini_payments = konbini_payments
770
+ @kr_card_payments = kr_card_payments
771
+ @link_payments = link_payments
772
+ @mobilepay_payments = mobilepay_payments
773
+ @multibanco_payments = multibanco_payments
774
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
775
+ @naver_pay_payments = naver_pay_payments
776
+ @oxxo_payments = oxxo_payments
777
+ @p24_payments = p24_payments
778
+ @pay_by_bank_payments = pay_by_bank_payments
779
+ @payco_payments = payco_payments
780
+ @paynow_payments = paynow_payments
781
+ @promptpay_payments = promptpay_payments
782
+ @revolut_pay_payments = revolut_pay_payments
783
+ @samsung_pay_payments = samsung_pay_payments
784
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
785
+ @sepa_debit_payments = sepa_debit_payments
786
+ @swish_payments = swish_payments
787
+ @twint_payments = twint_payments
788
+ @us_bank_transfer_payments = us_bank_transfer_payments
789
+ @zip_payments = zip_payments
790
+ end
791
+ end
792
+
793
+ class CardPayments < Stripe::RequestParams
794
+ class DeclineOn < Stripe::RequestParams
795
+ # 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.
796
+ attr_accessor :avs_failure
797
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
798
+ attr_accessor :cvc_failure
799
+
800
+ def initialize(avs_failure: nil, cvc_failure: nil)
801
+ @avs_failure = avs_failure
802
+ @cvc_failure = cvc_failure
803
+ end
804
+ end
805
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
806
+ attr_accessor :decline_on
807
+
808
+ def initialize(decline_on: nil)
809
+ @decline_on = decline_on
810
+ end
811
+ end
812
+
813
+ class StatementDescriptor < Stripe::RequestParams
814
+ # 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 Merchant Configuration settings documentation.
815
+ attr_accessor :descriptor
816
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
817
+ attr_accessor :prefix
818
+
819
+ def initialize(descriptor: nil, prefix: nil)
820
+ @descriptor = descriptor
821
+ @prefix = prefix
822
+ end
823
+ end
824
+
825
+ class Support < Stripe::RequestParams
826
+ class Address < Stripe::RequestParams
827
+ # City, district, suburb, town, or village.
828
+ attr_accessor :city
829
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
830
+ attr_accessor :country
831
+ # Address line 1 (e.g., street, PO Box, or company name).
832
+ attr_accessor :line1
833
+ # Address line 2 (e.g., apartment, suite, unit, or building).
834
+ attr_accessor :line2
835
+ # ZIP or postal code.
836
+ attr_accessor :postal_code
837
+ # State, county, province, or region.
838
+ attr_accessor :state
839
+ # Town or cho-me.
840
+ attr_accessor :town
841
+
842
+ def initialize(
843
+ city: nil,
844
+ country: nil,
845
+ line1: nil,
846
+ line2: nil,
847
+ postal_code: nil,
848
+ state: nil,
849
+ town: nil
850
+ )
851
+ @city = city
852
+ @country = country
853
+ @line1 = line1
854
+ @line2 = line2
855
+ @postal_code = postal_code
856
+ @state = state
857
+ @town = town
858
+ end
859
+ end
860
+ # A publicly available mailing address for sending support issues to.
861
+ attr_accessor :address
862
+ # A publicly available email address for sending support issues to.
863
+ attr_accessor :email
864
+ # A publicly available phone number to call with support issues.
865
+ attr_accessor :phone
866
+ # A publicly available website for handling support issues.
867
+ attr_accessor :url
868
+
869
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
870
+ @address = address
871
+ @email = email
872
+ @phone = phone
873
+ @url = url
874
+ end
875
+ end
876
+ # Settings used for Bacs debit payments.
877
+ attr_accessor :bacs_debit_payments
878
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
879
+ attr_accessor :branding
880
+ # Capabilities to request on the Merchant Configuration.
881
+ attr_accessor :capabilities
882
+ # Card payments settings.
883
+ attr_accessor :card_payments
884
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
885
+ attr_accessor :mcc
886
+ # Statement descriptor.
887
+ attr_accessor :statement_descriptor
888
+ # Publicly available contact information for sending support issues to.
889
+ attr_accessor :support
890
+
891
+ def initialize(
892
+ bacs_debit_payments: nil,
893
+ branding: nil,
894
+ capabilities: nil,
895
+ card_payments: nil,
896
+ mcc: nil,
897
+ statement_descriptor: nil,
898
+ support: nil
899
+ )
900
+ @bacs_debit_payments = bacs_debit_payments
901
+ @branding = branding
902
+ @capabilities = capabilities
903
+ @card_payments = card_payments
904
+ @mcc = mcc
905
+ @statement_descriptor = statement_descriptor
906
+ @support = support
907
+ end
908
+ end
909
+
910
+ class Recipient < Stripe::RequestParams
911
+ class Capabilities < Stripe::RequestParams
912
+ class BankAccounts < Stripe::RequestParams
913
+ class Local < Stripe::RequestParams
914
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
915
+ attr_accessor :requested
916
+
917
+ def initialize(requested: nil)
918
+ @requested = requested
919
+ end
920
+ end
921
+
922
+ class Wire < Stripe::RequestParams
923
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
924
+ attr_accessor :requested
925
+
926
+ def initialize(requested: nil)
927
+ @requested = requested
928
+ end
929
+ end
930
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
931
+ attr_accessor :local
932
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
933
+ attr_accessor :wire
934
+
935
+ def initialize(local: nil, wire: nil)
936
+ @local = local
937
+ @wire = wire
938
+ end
939
+ end
940
+
941
+ class Cards < Stripe::RequestParams
942
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
943
+ attr_accessor :requested
944
+
945
+ def initialize(requested: nil)
946
+ @requested = requested
947
+ end
948
+ end
949
+
950
+ class StripeBalance < Stripe::RequestParams
951
+ class StripeTransfers < Stripe::RequestParams
952
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
953
+ attr_accessor :requested
954
+
955
+ def initialize(requested: nil)
956
+ @requested = requested
957
+ end
958
+ end
959
+ # Allows the recipient to receive /v1/transfers into their Stripe Balance (/v1/balance).
960
+ attr_accessor :stripe_transfers
961
+
962
+ def initialize(stripe_transfers: nil)
963
+ @stripe_transfers = stripe_transfers
964
+ end
965
+ end
966
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
967
+ attr_accessor :bank_accounts
968
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
969
+ attr_accessor :cards
970
+ # Capabilities that enable the recipient to receive money into their Stripe Balance (/v1/balance).
971
+ attr_accessor :stripe_balance
972
+
973
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
974
+ @bank_accounts = bank_accounts
975
+ @cards = cards
976
+ @stripe_balance = stripe_balance
977
+ end
978
+ end
979
+ # Capabilities to be requested on the Recipient Configuration.
980
+ attr_accessor :capabilities
981
+
982
+ def initialize(capabilities: nil)
983
+ @capabilities = capabilities
984
+ end
985
+ end
986
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
987
+ attr_accessor :customer
988
+ # The Merchant configuration allows the Account to act as a connected account and collect payments facilitated by a Connect platform. You can add this configuration to your connected accounts only if you’ve completed onboarding as a Connect platform.
989
+ attr_accessor :merchant
990
+ # The Recipient Configuration allows the Account to receive funds.
991
+ attr_accessor :recipient
992
+
993
+ def initialize(customer: nil, merchant: nil, recipient: nil)
994
+ @customer = customer
995
+ @merchant = merchant
996
+ @recipient = recipient
997
+ end
998
+ end
999
+
1000
+ class Defaults < Stripe::RequestParams
1001
+ class Responsibilities < Stripe::RequestParams
1002
+ # A value indicating the party responsible for collecting fees from this account.
1003
+ attr_accessor :fees_collector
1004
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1005
+ attr_accessor :losses_collector
1006
+
1007
+ def initialize(fees_collector: nil, losses_collector: nil)
1008
+ @fees_collector = fees_collector
1009
+ @losses_collector = losses_collector
1010
+ end
1011
+ end
1012
+ # 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).
1013
+ attr_accessor :currency
1014
+ # The Account's preferred locales (languages), ordered by preference.
1015
+ attr_accessor :locales
1016
+ # Default responsibilities held by either Stripe or the platform.
1017
+ attr_accessor :responsibilities
1018
+
1019
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
1020
+ @currency = currency
1021
+ @locales = locales
1022
+ @responsibilities = responsibilities
1023
+ end
1024
+ end
1025
+
1026
+ class Identity < Stripe::RequestParams
1027
+ class Attestations < Stripe::RequestParams
1028
+ class DirectorshipDeclaration < Stripe::RequestParams
1029
+ # The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1030
+ attr_accessor :date
1031
+ # The IP address from which the director attestation was made.
1032
+ attr_accessor :ip
1033
+ # The user agent of the browser from which the director attestation was made.
1034
+ attr_accessor :user_agent
1035
+
1036
+ def initialize(date: nil, ip: nil, user_agent: nil)
1037
+ @date = date
1038
+ @ip = ip
1039
+ @user_agent = user_agent
1040
+ end
1041
+ end
1042
+
1043
+ class OwnershipDeclaration < Stripe::RequestParams
1044
+ # The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1045
+ attr_accessor :date
1046
+ # The IP address from which the beneficial owner attestation was made.
1047
+ attr_accessor :ip
1048
+ # The user agent of the browser from which the beneficial owner attestation was made.
1049
+ attr_accessor :user_agent
1050
+
1051
+ def initialize(date: nil, ip: nil, user_agent: nil)
1052
+ @date = date
1053
+ @ip = ip
1054
+ @user_agent = user_agent
1055
+ end
1056
+ end
1057
+
1058
+ class PersonsProvided < Stripe::RequestParams
1059
+ # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1060
+ attr_accessor :directors
1061
+ # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1062
+ attr_accessor :executives
1063
+ # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1064
+ attr_accessor :owners
1065
+ # Reason for why the company is exempt from providing ownership information.
1066
+ attr_accessor :ownership_exemption_reason
1067
+
1068
+ def initialize(
1069
+ directors: nil,
1070
+ executives: nil,
1071
+ owners: nil,
1072
+ ownership_exemption_reason: nil
1073
+ )
1074
+ @directors = directors
1075
+ @executives = executives
1076
+ @owners = owners
1077
+ @ownership_exemption_reason = ownership_exemption_reason
1078
+ end
1079
+ end
1080
+
1081
+ class TermsOfService < Stripe::RequestParams
1082
+ class Account < Stripe::RequestParams
1083
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1084
+ attr_accessor :date
1085
+ # The IP address from which the Account's representative accepted the terms of service.
1086
+ attr_accessor :ip
1087
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1088
+ attr_accessor :user_agent
1089
+
1090
+ def initialize(date: nil, ip: nil, user_agent: nil)
1091
+ @date = date
1092
+ @ip = ip
1093
+ @user_agent = user_agent
1094
+ end
1095
+ end
1096
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1097
+ attr_accessor :account
1098
+
1099
+ def initialize(account: nil)
1100
+ @account = account
1101
+ end
1102
+ end
1103
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1104
+ attr_accessor :directorship_declaration
1105
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1106
+ attr_accessor :ownership_declaration
1107
+ # Attestation that all Persons with a specific Relationship value have been provided.
1108
+ attr_accessor :persons_provided
1109
+ # Attestations of accepted terms of service agreements.
1110
+ attr_accessor :terms_of_service
1111
+
1112
+ def initialize(
1113
+ directorship_declaration: nil,
1114
+ ownership_declaration: nil,
1115
+ persons_provided: nil,
1116
+ terms_of_service: nil
1117
+ )
1118
+ @directorship_declaration = directorship_declaration
1119
+ @ownership_declaration = ownership_declaration
1120
+ @persons_provided = persons_provided
1121
+ @terms_of_service = terms_of_service
1122
+ end
1123
+ end
1124
+
1125
+ class BusinessDetails < Stripe::RequestParams
1126
+ class Address < Stripe::RequestParams
1127
+ # City, district, suburb, town, or village.
1128
+ attr_accessor :city
1129
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1130
+ attr_accessor :country
1131
+ # Address line 1 (e.g., street, PO Box, or company name).
1132
+ attr_accessor :line1
1133
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1134
+ attr_accessor :line2
1135
+ # ZIP or postal code.
1136
+ attr_accessor :postal_code
1137
+ # State, county, province, or region.
1138
+ attr_accessor :state
1139
+ # Town or cho-me.
1140
+ attr_accessor :town
1141
+
1142
+ def initialize(
1143
+ city: nil,
1144
+ country: nil,
1145
+ line1: nil,
1146
+ line2: nil,
1147
+ postal_code: nil,
1148
+ state: nil,
1149
+ town: nil
1150
+ )
1151
+ @city = city
1152
+ @country = country
1153
+ @line1 = line1
1154
+ @line2 = line2
1155
+ @postal_code = postal_code
1156
+ @state = state
1157
+ @town = town
1158
+ end
1159
+ end
1160
+
1161
+ class AnnualRevenue < Stripe::RequestParams
1162
+ # A non-negative integer representing the amount in the smallest currency unit.
1163
+ attr_accessor :amount
1164
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1165
+ attr_accessor :fiscal_year_end
1166
+
1167
+ def initialize(amount: nil, fiscal_year_end: nil)
1168
+ @amount = amount
1169
+ @fiscal_year_end = fiscal_year_end
1170
+ end
1171
+ end
1172
+
1173
+ class Documents < Stripe::RequestParams
1174
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1175
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1176
+ attr_accessor :files
1177
+ # The format of the document. Currently supports `files` only.
1178
+ attr_accessor :type
1179
+
1180
+ def initialize(files: nil, type: nil)
1181
+ @files = files
1182
+ @type = type
1183
+ end
1184
+ end
1185
+
1186
+ class CompanyLicense < Stripe::RequestParams
1187
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1188
+ attr_accessor :files
1189
+ # The format of the document. Currently supports `files` only.
1190
+ attr_accessor :type
1191
+
1192
+ def initialize(files: nil, type: nil)
1193
+ @files = files
1194
+ @type = type
1195
+ end
1196
+ end
1197
+
1198
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1199
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1200
+ attr_accessor :files
1201
+ # The format of the document. Currently supports `files` only.
1202
+ attr_accessor :type
1203
+
1204
+ def initialize(files: nil, type: nil)
1205
+ @files = files
1206
+ @type = type
1207
+ end
1208
+ end
1209
+
1210
+ class CompanyMinisterialDecree < Stripe::RequestParams
1211
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1212
+ attr_accessor :files
1213
+ # The format of the document. Currently supports `files` only.
1214
+ attr_accessor :type
1215
+
1216
+ def initialize(files: nil, type: nil)
1217
+ @files = files
1218
+ @type = type
1219
+ end
1220
+ end
1221
+
1222
+ class CompanyRegistrationVerification < Stripe::RequestParams
1223
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1224
+ attr_accessor :files
1225
+ # The format of the document. Currently supports `files` only.
1226
+ attr_accessor :type
1227
+
1228
+ def initialize(files: nil, type: nil)
1229
+ @files = files
1230
+ @type = type
1231
+ end
1232
+ end
1233
+
1234
+ class CompanyTaxIdVerification < Stripe::RequestParams
1235
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1236
+ attr_accessor :files
1237
+ # The format of the document. Currently supports `files` only.
1238
+ attr_accessor :type
1239
+
1240
+ def initialize(files: nil, type: nil)
1241
+ @files = files
1242
+ @type = type
1243
+ end
1244
+ end
1245
+
1246
+ class PrimaryVerification < Stripe::RequestParams
1247
+ class FrontBack < Stripe::RequestParams
1248
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
1249
+ attr_accessor :back
1250
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
1251
+ attr_accessor :front
1252
+
1253
+ def initialize(back: nil, front: nil)
1254
+ @back = back
1255
+ @front = front
1256
+ end
1257
+ end
1258
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1259
+ attr_accessor :front_back
1260
+ # The format of the verification document. Currently supports `front_back` only.
1261
+ attr_accessor :type
1262
+
1263
+ def initialize(front_back: nil, type: nil)
1264
+ @front_back = front_back
1265
+ @type = type
1266
+ end
1267
+ end
1268
+
1269
+ class ProofOfRegistration < Stripe::RequestParams
1270
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1271
+ attr_accessor :files
1272
+ # The format of the document. Currently supports `files` only.
1273
+ attr_accessor :type
1274
+
1275
+ def initialize(files: nil, type: nil)
1276
+ @files = files
1277
+ @type = type
1278
+ end
1279
+ end
1280
+
1281
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1282
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1283
+ attr_accessor :files
1284
+ # The format of the document. Currently supports `files` only.
1285
+ attr_accessor :type
1286
+
1287
+ def initialize(files: nil, type: nil)
1288
+ @files = files
1289
+ @type = type
1290
+ end
1291
+ end
1292
+ # One or more documents that support the 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.
1293
+ attr_accessor :bank_account_ownership_verification
1294
+ # One or more documents that demonstrate proof of a company’s license to operate.
1295
+ attr_accessor :company_license
1296
+ # One or more documents showing the company’s Memorandum of Association.
1297
+ attr_accessor :company_memorandum_of_association
1298
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1299
+ attr_accessor :company_ministerial_decree
1300
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1301
+ attr_accessor :company_registration_verification
1302
+ # One or more documents that demonstrate proof of a company’s tax ID.
1303
+ attr_accessor :company_tax_id_verification
1304
+ # A document verifying the business.
1305
+ attr_accessor :primary_verification
1306
+ # One or more documents showing the company’s proof of registration with the national business registry.
1307
+ attr_accessor :proof_of_registration
1308
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1309
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1310
+
1311
+ def initialize(
1312
+ bank_account_ownership_verification: nil,
1313
+ company_license: nil,
1314
+ company_memorandum_of_association: nil,
1315
+ company_ministerial_decree: nil,
1316
+ company_registration_verification: nil,
1317
+ company_tax_id_verification: nil,
1318
+ primary_verification: nil,
1319
+ proof_of_registration: nil,
1320
+ proof_of_ultimate_beneficial_ownership: nil
1321
+ )
1322
+ @bank_account_ownership_verification = bank_account_ownership_verification
1323
+ @company_license = company_license
1324
+ @company_memorandum_of_association = company_memorandum_of_association
1325
+ @company_ministerial_decree = company_ministerial_decree
1326
+ @company_registration_verification = company_registration_verification
1327
+ @company_tax_id_verification = company_tax_id_verification
1328
+ @primary_verification = primary_verification
1329
+ @proof_of_registration = proof_of_registration
1330
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1331
+ end
1332
+ end
1333
+
1334
+ class IdNumber < Stripe::RequestParams
1335
+ # The registrar of the ID number (Only valid for DE ID number types).
1336
+ attr_accessor :registrar
1337
+ # Open Enum. The ID number type of a business entity.
1338
+ attr_accessor :type
1339
+ # The value of the ID number.
1340
+ attr_accessor :value
1341
+
1342
+ def initialize(registrar: nil, type: nil, value: nil)
1343
+ @registrar = registrar
1344
+ @type = type
1345
+ @value = value
1346
+ end
1347
+ end
1348
+
1349
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
1350
+ # A non-negative integer representing the amount in the smallest currency unit.
1351
+ attr_accessor :amount
1352
+
1353
+ def initialize(amount: nil)
1354
+ @amount = amount
1355
+ end
1356
+ end
1357
+
1358
+ class ScriptAddresses < Stripe::RequestParams
1359
+ class Kana < Stripe::RequestParams
1360
+ # City, district, suburb, town, or village.
1361
+ attr_accessor :city
1362
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1363
+ attr_accessor :country
1364
+ # Address line 1 (e.g., street, PO Box, or company name).
1365
+ attr_accessor :line1
1366
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1367
+ attr_accessor :line2
1368
+ # ZIP or postal code.
1369
+ attr_accessor :postal_code
1370
+ # State, county, province, or region.
1371
+ attr_accessor :state
1372
+ # Town or cho-me.
1373
+ attr_accessor :town
1374
+
1375
+ def initialize(
1376
+ city: nil,
1377
+ country: nil,
1378
+ line1: nil,
1379
+ line2: nil,
1380
+ postal_code: nil,
1381
+ state: nil,
1382
+ town: nil
1383
+ )
1384
+ @city = city
1385
+ @country = country
1386
+ @line1 = line1
1387
+ @line2 = line2
1388
+ @postal_code = postal_code
1389
+ @state = state
1390
+ @town = town
1391
+ end
1392
+ end
1393
+
1394
+ class Kanji < Stripe::RequestParams
1395
+ # City, district, suburb, town, or village.
1396
+ attr_accessor :city
1397
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1398
+ attr_accessor :country
1399
+ # Address line 1 (e.g., street, PO Box, or company name).
1400
+ attr_accessor :line1
1401
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1402
+ attr_accessor :line2
1403
+ # ZIP or postal code.
1404
+ attr_accessor :postal_code
1405
+ # State, county, province, or region.
1406
+ attr_accessor :state
1407
+ # Town or cho-me.
1408
+ attr_accessor :town
1409
+
1410
+ def initialize(
1411
+ city: nil,
1412
+ country: nil,
1413
+ line1: nil,
1414
+ line2: nil,
1415
+ postal_code: nil,
1416
+ state: nil,
1417
+ town: nil
1418
+ )
1419
+ @city = city
1420
+ @country = country
1421
+ @line1 = line1
1422
+ @line2 = line2
1423
+ @postal_code = postal_code
1424
+ @state = state
1425
+ @town = town
1426
+ end
1427
+ end
1428
+ # Kana Address.
1429
+ attr_accessor :kana
1430
+ # Kanji Address.
1431
+ attr_accessor :kanji
1432
+
1433
+ def initialize(kana: nil, kanji: nil)
1434
+ @kana = kana
1435
+ @kanji = kanji
1436
+ end
1437
+ end
1438
+
1439
+ class ScriptNames < Stripe::RequestParams
1440
+ class Kana < Stripe::RequestParams
1441
+ # Registered name of the business.
1442
+ attr_accessor :registered_name
1443
+
1444
+ def initialize(registered_name: nil)
1445
+ @registered_name = registered_name
1446
+ end
1447
+ end
1448
+
1449
+ class Kanji < Stripe::RequestParams
1450
+ # Registered name of the business.
1451
+ attr_accessor :registered_name
1452
+
1453
+ def initialize(registered_name: nil)
1454
+ @registered_name = registered_name
1455
+ end
1456
+ end
1457
+ # Kana name.
1458
+ attr_accessor :kana
1459
+ # Kanji name.
1460
+ attr_accessor :kanji
1461
+
1462
+ def initialize(kana: nil, kanji: nil)
1463
+ @kana = kana
1464
+ @kanji = kanji
1465
+ end
1466
+ end
1467
+ # The business registration address of the business entity.
1468
+ attr_accessor :address
1469
+ # The business gross annual revenue for its preceding fiscal year.
1470
+ attr_accessor :annual_revenue
1471
+ # A document verifying the business.
1472
+ attr_accessor :documents
1473
+ # The name which is used by the business.
1474
+ attr_accessor :doing_business_as
1475
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1476
+ attr_accessor :estimated_worker_count
1477
+ # The ID numbers of a business entity.
1478
+ attr_accessor :id_numbers
1479
+ # An estimate of the monthly revenue of the business.
1480
+ attr_accessor :monthly_estimated_revenue
1481
+ # The phone number of the Business Entity.
1482
+ attr_accessor :phone
1483
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1484
+ attr_accessor :product_description
1485
+ # The business legal name.
1486
+ attr_accessor :registered_name
1487
+ # The business registration address of the business entity in non latin script.
1488
+ attr_accessor :script_addresses
1489
+ # The business legal name in non latin script.
1490
+ attr_accessor :script_names
1491
+ # The category identifying the legal structure of the business.
1492
+ attr_accessor :structure
1493
+ # The business's publicly available website.
1494
+ attr_accessor :url
1495
+
1496
+ def initialize(
1497
+ address: nil,
1498
+ annual_revenue: nil,
1499
+ documents: nil,
1500
+ doing_business_as: nil,
1501
+ estimated_worker_count: nil,
1502
+ id_numbers: nil,
1503
+ monthly_estimated_revenue: nil,
1504
+ phone: nil,
1505
+ product_description: nil,
1506
+ registered_name: nil,
1507
+ script_addresses: nil,
1508
+ script_names: nil,
1509
+ structure: nil,
1510
+ url: nil
1511
+ )
1512
+ @address = address
1513
+ @annual_revenue = annual_revenue
1514
+ @documents = documents
1515
+ @doing_business_as = doing_business_as
1516
+ @estimated_worker_count = estimated_worker_count
1517
+ @id_numbers = id_numbers
1518
+ @monthly_estimated_revenue = monthly_estimated_revenue
1519
+ @phone = phone
1520
+ @product_description = product_description
1521
+ @registered_name = registered_name
1522
+ @script_addresses = script_addresses
1523
+ @script_names = script_names
1524
+ @structure = structure
1525
+ @url = url
1526
+ end
1527
+ end
1528
+
1529
+ class Individual < Stripe::RequestParams
1530
+ class AdditionalAddress < Stripe::RequestParams
1531
+ # City, district, suburb, town, or village.
1532
+ attr_accessor :city
1533
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1534
+ attr_accessor :country
1535
+ # Address line 1 (e.g., street, PO Box, or company name).
1536
+ attr_accessor :line1
1537
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1538
+ attr_accessor :line2
1539
+ # ZIP or postal code.
1540
+ attr_accessor :postal_code
1541
+ # Purpose of additional address.
1542
+ attr_accessor :purpose
1543
+ # State, county, province, or region.
1544
+ attr_accessor :state
1545
+ # Town or cho-me.
1546
+ attr_accessor :town
1547
+
1548
+ def initialize(
1549
+ city: nil,
1550
+ country: nil,
1551
+ line1: nil,
1552
+ line2: nil,
1553
+ postal_code: nil,
1554
+ purpose: nil,
1555
+ state: nil,
1556
+ town: nil
1557
+ )
1558
+ @city = city
1559
+ @country = country
1560
+ @line1 = line1
1561
+ @line2 = line2
1562
+ @postal_code = postal_code
1563
+ @purpose = purpose
1564
+ @state = state
1565
+ @town = town
1566
+ end
1567
+ end
1568
+
1569
+ class AdditionalName < Stripe::RequestParams
1570
+ # The person's full name.
1571
+ attr_accessor :full_name
1572
+ # The person's first or given name.
1573
+ attr_accessor :given_name
1574
+ # The purpose or type of the additional name.
1575
+ attr_accessor :purpose
1576
+ # The person's last or family name.
1577
+ attr_accessor :surname
1578
+
1579
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1580
+ @full_name = full_name
1581
+ @given_name = given_name
1582
+ @purpose = purpose
1583
+ @surname = surname
1584
+ end
1585
+ end
1586
+
1587
+ class Address < Stripe::RequestParams
1588
+ # City, district, suburb, town, or village.
1589
+ attr_accessor :city
1590
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1591
+ attr_accessor :country
1592
+ # Address line 1 (e.g., street, PO Box, or company name).
1593
+ attr_accessor :line1
1594
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1595
+ attr_accessor :line2
1596
+ # ZIP or postal code.
1597
+ attr_accessor :postal_code
1598
+ # State, county, province, or region.
1599
+ attr_accessor :state
1600
+ # Town or cho-me.
1601
+ attr_accessor :town
1602
+
1603
+ def initialize(
1604
+ city: nil,
1605
+ country: nil,
1606
+ line1: nil,
1607
+ line2: nil,
1608
+ postal_code: nil,
1609
+ state: nil,
1610
+ town: nil
1611
+ )
1612
+ @city = city
1613
+ @country = country
1614
+ @line1 = line1
1615
+ @line2 = line2
1616
+ @postal_code = postal_code
1617
+ @state = state
1618
+ @town = town
1619
+ end
1620
+ end
1621
+
1622
+ class DateOfBirth < Stripe::RequestParams
1623
+ # The day of birth.
1624
+ attr_accessor :day
1625
+ # The month of birth.
1626
+ attr_accessor :month
1627
+ # The year of birth.
1628
+ attr_accessor :year
1629
+
1630
+ def initialize(day: nil, month: nil, year: nil)
1631
+ @day = day
1632
+ @month = month
1633
+ @year = year
1634
+ end
1635
+ end
1636
+
1637
+ class Documents < Stripe::RequestParams
1638
+ class CompanyAuthorization < Stripe::RequestParams
1639
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1640
+ attr_accessor :files
1641
+ # The format of the document. Currently supports `files` only.
1642
+ attr_accessor :type
1643
+
1644
+ def initialize(files: nil, type: nil)
1645
+ @files = files
1646
+ @type = type
1647
+ end
1648
+ end
1649
+
1650
+ class Passport < Stripe::RequestParams
1651
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1652
+ attr_accessor :files
1653
+ # The format of the document. Currently supports `files` only.
1654
+ attr_accessor :type
1655
+
1656
+ def initialize(files: nil, type: nil)
1657
+ @files = files
1658
+ @type = type
1659
+ end
1660
+ end
1661
+
1662
+ class PrimaryVerification < Stripe::RequestParams
1663
+ class FrontBack < Stripe::RequestParams
1664
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
1665
+ attr_accessor :back
1666
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
1667
+ attr_accessor :front
1668
+
1669
+ def initialize(back: nil, front: nil)
1670
+ @back = back
1671
+ @front = front
1672
+ end
1673
+ end
1674
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1675
+ attr_accessor :front_back
1676
+ # The format of the verification document. Currently supports `front_back` only.
1677
+ attr_accessor :type
1678
+
1679
+ def initialize(front_back: nil, type: nil)
1680
+ @front_back = front_back
1681
+ @type = type
1682
+ end
1683
+ end
1684
+
1685
+ class SecondaryVerification < Stripe::RequestParams
1686
+ class FrontBack < Stripe::RequestParams
1687
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
1688
+ attr_accessor :back
1689
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
1690
+ attr_accessor :front
1691
+
1692
+ def initialize(back: nil, front: nil)
1693
+ @back = back
1694
+ @front = front
1695
+ end
1696
+ end
1697
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1698
+ attr_accessor :front_back
1699
+ # The format of the verification document. Currently supports `front_back` only.
1700
+ attr_accessor :type
1701
+
1702
+ def initialize(front_back: nil, type: nil)
1703
+ @front_back = front_back
1704
+ @type = type
1705
+ end
1706
+ end
1707
+
1708
+ class Visa < Stripe::RequestParams
1709
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1710
+ attr_accessor :files
1711
+ # The format of the document. Currently supports `files` only.
1712
+ attr_accessor :type
1713
+
1714
+ def initialize(files: nil, type: nil)
1715
+ @files = files
1716
+ @type = type
1717
+ end
1718
+ end
1719
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1720
+ attr_accessor :company_authorization
1721
+ # One or more documents showing the person’s passport page with photo and personal data.
1722
+ attr_accessor :passport
1723
+ # An identifying document showing the person's name, either a passport or local ID card.
1724
+ attr_accessor :primary_verification
1725
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1726
+ attr_accessor :secondary_verification
1727
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1728
+ attr_accessor :visa
1729
+
1730
+ def initialize(
1731
+ company_authorization: nil,
1732
+ passport: nil,
1733
+ primary_verification: nil,
1734
+ secondary_verification: nil,
1735
+ visa: nil
1736
+ )
1737
+ @company_authorization = company_authorization
1738
+ @passport = passport
1739
+ @primary_verification = primary_verification
1740
+ @secondary_verification = secondary_verification
1741
+ @visa = visa
1742
+ end
1743
+ end
1744
+
1745
+ class IdNumber < Stripe::RequestParams
1746
+ # The ID number type of an individual.
1747
+ attr_accessor :type
1748
+ # The value of the ID number.
1749
+ attr_accessor :value
1750
+
1751
+ def initialize(type: nil, value: nil)
1752
+ @type = type
1753
+ @value = value
1754
+ end
1755
+ end
1756
+
1757
+ class Relationship < Stripe::RequestParams
1758
+ # Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1759
+ attr_accessor :director
1760
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1761
+ attr_accessor :executive
1762
+ # Whether the person is an owner of the account’s identity.
1763
+ attr_accessor :owner
1764
+ # The percent owned by the person of the account's legal entity.
1765
+ attr_accessor :percent_ownership
1766
+ # The person's title (e.g., CEO, Support Engineer).
1767
+ attr_accessor :title
1768
+
1769
+ def initialize(
1770
+ director: nil,
1771
+ executive: nil,
1772
+ owner: nil,
1773
+ percent_ownership: nil,
1774
+ title: nil
1775
+ )
1776
+ @director = director
1777
+ @executive = executive
1778
+ @owner = owner
1779
+ @percent_ownership = percent_ownership
1780
+ @title = title
1781
+ end
1782
+ end
1783
+
1784
+ class ScriptAddresses < Stripe::RequestParams
1785
+ class Kana < Stripe::RequestParams
1786
+ # City, district, suburb, town, or village.
1787
+ attr_accessor :city
1788
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1789
+ attr_accessor :country
1790
+ # Address line 1 (e.g., street, PO Box, or company name).
1791
+ attr_accessor :line1
1792
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1793
+ attr_accessor :line2
1794
+ # ZIP or postal code.
1795
+ attr_accessor :postal_code
1796
+ # State, county, province, or region.
1797
+ attr_accessor :state
1798
+ # Town or cho-me.
1799
+ attr_accessor :town
1800
+
1801
+ def initialize(
1802
+ city: nil,
1803
+ country: nil,
1804
+ line1: nil,
1805
+ line2: nil,
1806
+ postal_code: nil,
1807
+ state: nil,
1808
+ town: nil
1809
+ )
1810
+ @city = city
1811
+ @country = country
1812
+ @line1 = line1
1813
+ @line2 = line2
1814
+ @postal_code = postal_code
1815
+ @state = state
1816
+ @town = town
1817
+ end
1818
+ end
1819
+
1820
+ class Kanji < Stripe::RequestParams
1821
+ # City, district, suburb, town, or village.
1822
+ attr_accessor :city
1823
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1824
+ attr_accessor :country
1825
+ # Address line 1 (e.g., street, PO Box, or company name).
1826
+ attr_accessor :line1
1827
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1828
+ attr_accessor :line2
1829
+ # ZIP or postal code.
1830
+ attr_accessor :postal_code
1831
+ # State, county, province, or region.
1832
+ attr_accessor :state
1833
+ # Town or cho-me.
1834
+ attr_accessor :town
1835
+
1836
+ def initialize(
1837
+ city: nil,
1838
+ country: nil,
1839
+ line1: nil,
1840
+ line2: nil,
1841
+ postal_code: nil,
1842
+ state: nil,
1843
+ town: nil
1844
+ )
1845
+ @city = city
1846
+ @country = country
1847
+ @line1 = line1
1848
+ @line2 = line2
1849
+ @postal_code = postal_code
1850
+ @state = state
1851
+ @town = town
1852
+ end
1853
+ end
1854
+ # Kana Address.
1855
+ attr_accessor :kana
1856
+ # Kanji Address.
1857
+ attr_accessor :kanji
1858
+
1859
+ def initialize(kana: nil, kanji: nil)
1860
+ @kana = kana
1861
+ @kanji = kanji
1862
+ end
1863
+ end
1864
+
1865
+ class ScriptNames < Stripe::RequestParams
1866
+ class Kana < Stripe::RequestParams
1867
+ # The person's first or given name.
1868
+ attr_accessor :given_name
1869
+ # The person's last or family name.
1870
+ attr_accessor :surname
1871
+
1872
+ def initialize(given_name: nil, surname: nil)
1873
+ @given_name = given_name
1874
+ @surname = surname
1875
+ end
1876
+ end
1877
+
1878
+ class Kanji < Stripe::RequestParams
1879
+ # The person's first or given name.
1880
+ attr_accessor :given_name
1881
+ # The person's last or family name.
1882
+ attr_accessor :surname
1883
+
1884
+ def initialize(given_name: nil, surname: nil)
1885
+ @given_name = given_name
1886
+ @surname = surname
1887
+ end
1888
+ end
1889
+ # Persons name in kana script.
1890
+ attr_accessor :kana
1891
+ # Persons name in kanji script.
1892
+ attr_accessor :kanji
1893
+
1894
+ def initialize(kana: nil, kanji: nil)
1895
+ @kana = kana
1896
+ @kanji = kanji
1897
+ end
1898
+ end
1899
+ # Additional addresses associated with the individual.
1900
+ attr_accessor :additional_addresses
1901
+ # Additional names (e.g. aliases) associated with the individual.
1902
+ attr_accessor :additional_names
1903
+ # The individual's residential address.
1904
+ attr_accessor :address
1905
+ # The individual's date of birth.
1906
+ attr_accessor :date_of_birth
1907
+ # Documents that may be submitted to satisfy various informational requests.
1908
+ attr_accessor :documents
1909
+ # The individual's email address.
1910
+ attr_accessor :email
1911
+ # The individual's first name.
1912
+ attr_accessor :given_name
1913
+ # The identification numbers (e.g., SSN) associated with the individual.
1914
+ attr_accessor :id_numbers
1915
+ # The individual's gender (International regulations require either "male" or "female").
1916
+ attr_accessor :legal_gender
1917
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1918
+ attr_accessor :metadata
1919
+ # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1920
+ attr_accessor :nationalities
1921
+ # The individual's phone number.
1922
+ attr_accessor :phone
1923
+ # The individual's political exposure.
1924
+ attr_accessor :political_exposure
1925
+ # The relationship that this individual has with the account's identity.
1926
+ attr_accessor :relationship
1927
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
1928
+ attr_accessor :script_addresses
1929
+ # The individuals primary name in non latin script.
1930
+ attr_accessor :script_names
1931
+ # The individual's last name.
1932
+ attr_accessor :surname
1933
+
1934
+ def initialize(
1935
+ additional_addresses: nil,
1936
+ additional_names: nil,
1937
+ address: nil,
1938
+ date_of_birth: nil,
1939
+ documents: nil,
1940
+ email: nil,
1941
+ given_name: nil,
1942
+ id_numbers: nil,
1943
+ legal_gender: nil,
1944
+ metadata: nil,
1945
+ nationalities: nil,
1946
+ phone: nil,
1947
+ political_exposure: nil,
1948
+ relationship: nil,
1949
+ script_addresses: nil,
1950
+ script_names: nil,
1951
+ surname: nil
1952
+ )
1953
+ @additional_addresses = additional_addresses
1954
+ @additional_names = additional_names
1955
+ @address = address
1956
+ @date_of_birth = date_of_birth
1957
+ @documents = documents
1958
+ @email = email
1959
+ @given_name = given_name
1960
+ @id_numbers = id_numbers
1961
+ @legal_gender = legal_gender
1962
+ @metadata = metadata
1963
+ @nationalities = nationalities
1964
+ @phone = phone
1965
+ @political_exposure = political_exposure
1966
+ @relationship = relationship
1967
+ @script_addresses = script_addresses
1968
+ @script_names = script_names
1969
+ @surname = surname
1970
+ end
1971
+ end
1972
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
1973
+ attr_accessor :attestations
1974
+ # Information about the company or business.
1975
+ attr_accessor :business_details
1976
+ # 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](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
1977
+ attr_accessor :country
1978
+ # The entity type.
1979
+ attr_accessor :entity_type
1980
+ # Information about the person represented by the account.
1981
+ attr_accessor :individual
1982
+
1983
+ def initialize(
1984
+ attestations: nil,
1985
+ business_details: nil,
1986
+ country: nil,
1987
+ entity_type: nil,
1988
+ individual: nil
1989
+ )
1990
+ @attestations = attestations
1991
+ @business_details = business_details
1992
+ @country = country
1993
+ @entity_type = entity_type
1994
+ @individual = individual
1995
+ end
1996
+ end
1997
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
1998
+ attr_accessor :configuration
1999
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2000
+ attr_accessor :contact_email
2001
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2002
+ attr_accessor :dashboard
2003
+ # Default values to be used on Account Configurations.
2004
+ attr_accessor :defaults
2005
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2006
+ attr_accessor :display_name
2007
+ # Information about the company, individual, and business represented by the Account.
2008
+ attr_accessor :identity
2009
+ # Additional fields to include in the response.
2010
+ attr_accessor :include
2011
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
2012
+ attr_accessor :metadata
2013
+
2014
+ def initialize(
2015
+ configuration: nil,
2016
+ contact_email: nil,
2017
+ dashboard: nil,
2018
+ defaults: nil,
2019
+ display_name: nil,
2020
+ identity: nil,
2021
+ include: nil,
2022
+ metadata: nil
2023
+ )
2024
+ @configuration = configuration
2025
+ @contact_email = contact_email
2026
+ @dashboard = dashboard
2027
+ @defaults = defaults
2028
+ @display_name = display_name
2029
+ @identity = identity
2030
+ @include = include
2031
+ @metadata = metadata
2032
+ end
2033
+ end
2034
+
2035
+ class ListParams < Stripe::RequestParams
2036
+ # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
2037
+ attr_accessor :applied_configurations
2038
+ # The upper limit on the number of accounts returned by the List Account request.
2039
+ attr_accessor :limit
2040
+
2041
+ def initialize(applied_configurations: nil, limit: nil)
2042
+ @applied_configurations = applied_configurations
2043
+ @limit = limit
2044
+ end
2045
+ end
2046
+
2047
+ class RetrieveParams < Stripe::RequestParams
2048
+ # Additional fields to include in the response.
2049
+ attr_accessor :include
2050
+
2051
+ def initialize(include: nil)
2052
+ @include = include
2053
+ end
2054
+ end
2055
+
2056
+ class UpdateParams < Stripe::RequestParams
2057
+ class Configuration < Stripe::RequestParams
2058
+ class Customer < Stripe::RequestParams
2059
+ class AutomaticIndirectTax < Stripe::RequestParams
2060
+ # Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
2061
+ attr_accessor :exempt
2062
+ # A recent IP address of the customer used for tax reporting and tax location inference.
2063
+ attr_accessor :ip_address
2064
+ # The data source used by Stripe Tax to identify the customer's location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
2065
+ attr_accessor :location_source
2066
+
2067
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
2068
+ @exempt = exempt
2069
+ @ip_address = ip_address
2070
+ @location_source = location_source
2071
+ end
2072
+ end
2073
+
2074
+ class Billing < Stripe::RequestParams
2075
+ class Invoice < Stripe::RequestParams
2076
+ class CustomField < Stripe::RequestParams
2077
+ # The name of the custom field. This may be up to 40 characters.
2078
+ attr_accessor :name
2079
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
2080
+ attr_accessor :value
2081
+
2082
+ def initialize(name: nil, value: nil)
2083
+ @name = name
2084
+ @value = value
2085
+ end
2086
+ end
2087
+
2088
+ class Rendering < Stripe::RequestParams
2089
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of exclude_tax or include_inclusive_tax. include_inclusive_tax will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. exclude_tax will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
2090
+ attr_accessor :amount_tax_display
2091
+ # ID of the invoice rendering template to use for future invoices.
2092
+ attr_accessor :template
2093
+
2094
+ def initialize(amount_tax_display: nil, template: nil)
2095
+ @amount_tax_display = amount_tax_display
2096
+ @template = template
2097
+ end
2098
+ end
2099
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
2100
+ attr_accessor :custom_fields
2101
+ # Default footer to be displayed on invoices for this customer.
2102
+ attr_accessor :footer
2103
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
2104
+ attr_accessor :next_sequence
2105
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
2106
+ attr_accessor :prefix
2107
+ # Default options for invoice PDF rendering for this customer.
2108
+ attr_accessor :rendering
2109
+
2110
+ def initialize(
2111
+ custom_fields: nil,
2112
+ footer: nil,
2113
+ next_sequence: nil,
2114
+ prefix: nil,
2115
+ rendering: nil
2116
+ )
2117
+ @custom_fields = custom_fields
2118
+ @footer = footer
2119
+ @next_sequence = next_sequence
2120
+ @prefix = prefix
2121
+ @rendering = rendering
2122
+ end
2123
+ end
2124
+ # ID of a payment method that’s attached to the customer, to be used as the customer’s default payment method for invoices and subscriptions.
2125
+ attr_accessor :default_payment_method
2126
+ # Default settings used on invoices for this customer.
2127
+ attr_accessor :invoice
2128
+
2129
+ def initialize(default_payment_method: nil, invoice: nil)
2130
+ @default_payment_method = default_payment_method
2131
+ @invoice = invoice
2132
+ end
2133
+ end
2134
+
2135
+ class Capabilities < Stripe::RequestParams
2136
+ class AutomaticIndirectTax < Stripe::RequestParams
2137
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2138
+ attr_accessor :requested
2139
+
2140
+ def initialize(requested: nil)
2141
+ @requested = requested
2142
+ end
2143
+ end
2144
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field.
2145
+ attr_accessor :automatic_indirect_tax
2146
+
2147
+ def initialize(automatic_indirect_tax: nil)
2148
+ @automatic_indirect_tax = automatic_indirect_tax
2149
+ end
2150
+ end
2151
+
2152
+ class Shipping < Stripe::RequestParams
2153
+ class Address < Stripe::RequestParams
2154
+ # City, district, suburb, town, or village.
2155
+ attr_accessor :city
2156
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2157
+ attr_accessor :country
2158
+ # Address line 1 (e.g., street, PO Box, or company name).
2159
+ attr_accessor :line1
2160
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2161
+ attr_accessor :line2
2162
+ # ZIP or postal code.
2163
+ attr_accessor :postal_code
2164
+ # State, county, province, or region.
2165
+ attr_accessor :state
2166
+
2167
+ def initialize(
2168
+ city: nil,
2169
+ country: nil,
2170
+ line1: nil,
2171
+ line2: nil,
2172
+ postal_code: nil,
2173
+ state: nil
2174
+ )
2175
+ @city = city
2176
+ @country = country
2177
+ @line1 = line1
2178
+ @line2 = line2
2179
+ @postal_code = postal_code
2180
+ @state = state
2181
+ end
2182
+ end
2183
+ # Customer shipping address.
2184
+ attr_accessor :address
2185
+ # Customer name.
2186
+ attr_accessor :name
2187
+ # Customer phone (including extension).
2188
+ attr_accessor :phone
2189
+
2190
+ def initialize(address: nil, name: nil, phone: nil)
2191
+ @address = address
2192
+ @name = name
2193
+ @phone = phone
2194
+ end
2195
+ end
2196
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
2197
+ attr_accessor :automatic_indirect_tax
2198
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
2199
+ attr_accessor :billing
2200
+ # Capabilities that have been requested on the Customer Configuration.
2201
+ attr_accessor :capabilities
2202
+ # The customer's shipping information. Appears on invoices emailed to this customer.
2203
+ attr_accessor :shipping
2204
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
2205
+ attr_accessor :test_clock
2206
+
2207
+ def initialize(
2208
+ automatic_indirect_tax: nil,
2209
+ billing: nil,
2210
+ capabilities: nil,
2211
+ shipping: nil,
2212
+ test_clock: nil
2213
+ )
2214
+ @automatic_indirect_tax = automatic_indirect_tax
2215
+ @billing = billing
2216
+ @capabilities = capabilities
2217
+ @shipping = shipping
2218
+ @test_clock = test_clock
2219
+ end
2220
+ end
2221
+
2222
+ class Merchant < Stripe::RequestParams
2223
+ class BacsDebitPayments < Stripe::RequestParams
2224
+ # Display name for Bacs debit payments.
2225
+ attr_accessor :display_name
2226
+
2227
+ def initialize(display_name: nil)
2228
+ @display_name = display_name
2229
+ end
2230
+ end
2231
+
2232
+ class Branding < Stripe::RequestParams
2233
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
2234
+ attr_accessor :icon
2235
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
2236
+ attr_accessor :logo
2237
+ # A CSS hex color value representing the primary branding color for the merchant.
2238
+ attr_accessor :primary_color
2239
+ # A CSS hex color value representing the secondary branding color for the merchant.
2240
+ attr_accessor :secondary_color
2241
+
2242
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
2243
+ @icon = icon
2244
+ @logo = logo
2245
+ @primary_color = primary_color
2246
+ @secondary_color = secondary_color
2247
+ end
2248
+ end
2249
+
2250
+ class Capabilities < Stripe::RequestParams
2251
+ class AchDebitPayments < Stripe::RequestParams
2252
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2253
+ attr_accessor :requested
2254
+
2255
+ def initialize(requested: nil)
2256
+ @requested = requested
2257
+ end
2258
+ end
2259
+
2260
+ class AcssDebitPayments < Stripe::RequestParams
2261
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2262
+ attr_accessor :requested
2263
+
2264
+ def initialize(requested: nil)
2265
+ @requested = requested
2266
+ end
2267
+ end
2268
+
2269
+ class AffirmPayments < Stripe::RequestParams
2270
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2271
+ attr_accessor :requested
2272
+
2273
+ def initialize(requested: nil)
2274
+ @requested = requested
2275
+ end
2276
+ end
2277
+
2278
+ class AfterpayClearpayPayments < Stripe::RequestParams
2279
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2280
+ attr_accessor :requested
2281
+
2282
+ def initialize(requested: nil)
2283
+ @requested = requested
2284
+ end
2285
+ end
2286
+
2287
+ class AlmaPayments < Stripe::RequestParams
2288
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2289
+ attr_accessor :requested
2290
+
2291
+ def initialize(requested: nil)
2292
+ @requested = requested
2293
+ end
2294
+ end
2295
+
2296
+ class AmazonPayPayments < Stripe::RequestParams
2297
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2298
+ attr_accessor :requested
2299
+
2300
+ def initialize(requested: nil)
2301
+ @requested = requested
2302
+ end
2303
+ end
2304
+
2305
+ class AuBecsDebitPayments < Stripe::RequestParams
2306
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2307
+ attr_accessor :requested
2308
+
2309
+ def initialize(requested: nil)
2310
+ @requested = requested
2311
+ end
2312
+ end
2313
+
2314
+ class BacsDebitPayments < Stripe::RequestParams
2315
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2316
+ attr_accessor :requested
2317
+
2318
+ def initialize(requested: nil)
2319
+ @requested = requested
2320
+ end
2321
+ end
2322
+
2323
+ class BancontactPayments < Stripe::RequestParams
2324
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2325
+ attr_accessor :requested
2326
+
2327
+ def initialize(requested: nil)
2328
+ @requested = requested
2329
+ end
2330
+ end
2331
+
2332
+ class BlikPayments < Stripe::RequestParams
2333
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2334
+ attr_accessor :requested
2335
+
2336
+ def initialize(requested: nil)
2337
+ @requested = requested
2338
+ end
2339
+ end
2340
+
2341
+ class BoletoPayments < Stripe::RequestParams
2342
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2343
+ attr_accessor :requested
2344
+
2345
+ def initialize(requested: nil)
2346
+ @requested = requested
2347
+ end
2348
+ end
2349
+
2350
+ class CardPayments < Stripe::RequestParams
2351
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2352
+ attr_accessor :requested
2353
+
2354
+ def initialize(requested: nil)
2355
+ @requested = requested
2356
+ end
2357
+ end
2358
+
2359
+ class CartesBancairesPayments < Stripe::RequestParams
2360
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2361
+ attr_accessor :requested
2362
+
2363
+ def initialize(requested: nil)
2364
+ @requested = requested
2365
+ end
2366
+ end
2367
+
2368
+ class CashappPayments < Stripe::RequestParams
2369
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2370
+ attr_accessor :requested
2371
+
2372
+ def initialize(requested: nil)
2373
+ @requested = requested
2374
+ end
2375
+ end
2376
+
2377
+ class EpsPayments < Stripe::RequestParams
2378
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2379
+ attr_accessor :requested
2380
+
2381
+ def initialize(requested: nil)
2382
+ @requested = requested
2383
+ end
2384
+ end
2385
+
2386
+ class FpxPayments < Stripe::RequestParams
2387
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2388
+ attr_accessor :requested
2389
+
2390
+ def initialize(requested: nil)
2391
+ @requested = requested
2392
+ end
2393
+ end
2394
+
2395
+ class GbBankTransferPayments < Stripe::RequestParams
2396
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2397
+ attr_accessor :requested
2398
+
2399
+ def initialize(requested: nil)
2400
+ @requested = requested
2401
+ end
2402
+ end
2403
+
2404
+ class GrabpayPayments < Stripe::RequestParams
2405
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2406
+ attr_accessor :requested
2407
+
2408
+ def initialize(requested: nil)
2409
+ @requested = requested
2410
+ end
2411
+ end
2412
+
2413
+ class IdealPayments < Stripe::RequestParams
2414
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2415
+ attr_accessor :requested
2416
+
2417
+ def initialize(requested: nil)
2418
+ @requested = requested
2419
+ end
2420
+ end
2421
+
2422
+ class JcbPayments < Stripe::RequestParams
2423
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2424
+ attr_accessor :requested
2425
+
2426
+ def initialize(requested: nil)
2427
+ @requested = requested
2428
+ end
2429
+ end
2430
+
2431
+ class JpBankTransferPayments < Stripe::RequestParams
2432
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2433
+ attr_accessor :requested
2434
+
2435
+ def initialize(requested: nil)
2436
+ @requested = requested
2437
+ end
2438
+ end
2439
+
2440
+ class KakaoPayPayments < Stripe::RequestParams
2441
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2442
+ attr_accessor :requested
2443
+
2444
+ def initialize(requested: nil)
2445
+ @requested = requested
2446
+ end
2447
+ end
2448
+
2449
+ class KlarnaPayments < Stripe::RequestParams
2450
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2451
+ attr_accessor :requested
2452
+
2453
+ def initialize(requested: nil)
2454
+ @requested = requested
2455
+ end
2456
+ end
2457
+
2458
+ class KonbiniPayments < Stripe::RequestParams
2459
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2460
+ attr_accessor :requested
2461
+
2462
+ def initialize(requested: nil)
2463
+ @requested = requested
2464
+ end
2465
+ end
2466
+
2467
+ class KrCardPayments < Stripe::RequestParams
2468
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2469
+ attr_accessor :requested
2470
+
2471
+ def initialize(requested: nil)
2472
+ @requested = requested
2473
+ end
2474
+ end
2475
+
2476
+ class LinkPayments < Stripe::RequestParams
2477
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2478
+ attr_accessor :requested
2479
+
2480
+ def initialize(requested: nil)
2481
+ @requested = requested
2482
+ end
2483
+ end
2484
+
2485
+ class MobilepayPayments < Stripe::RequestParams
2486
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2487
+ attr_accessor :requested
2488
+
2489
+ def initialize(requested: nil)
2490
+ @requested = requested
2491
+ end
2492
+ end
2493
+
2494
+ class MultibancoPayments < Stripe::RequestParams
2495
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2496
+ attr_accessor :requested
2497
+
2498
+ def initialize(requested: nil)
2499
+ @requested = requested
2500
+ end
2501
+ end
2502
+
2503
+ class MxBankTransferPayments < Stripe::RequestParams
2504
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2505
+ attr_accessor :requested
2506
+
2507
+ def initialize(requested: nil)
2508
+ @requested = requested
2509
+ end
2510
+ end
2511
+
2512
+ class NaverPayPayments < Stripe::RequestParams
2513
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2514
+ attr_accessor :requested
2515
+
2516
+ def initialize(requested: nil)
2517
+ @requested = requested
2518
+ end
2519
+ end
2520
+
2521
+ class OxxoPayments < Stripe::RequestParams
2522
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2523
+ attr_accessor :requested
2524
+
2525
+ def initialize(requested: nil)
2526
+ @requested = requested
2527
+ end
2528
+ end
2529
+
2530
+ class P24Payments < Stripe::RequestParams
2531
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2532
+ attr_accessor :requested
2533
+
2534
+ def initialize(requested: nil)
2535
+ @requested = requested
2536
+ end
2537
+ end
2538
+
2539
+ class PayByBankPayments < Stripe::RequestParams
2540
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2541
+ attr_accessor :requested
2542
+
2543
+ def initialize(requested: nil)
2544
+ @requested = requested
2545
+ end
2546
+ end
2547
+
2548
+ class PaycoPayments < Stripe::RequestParams
2549
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2550
+ attr_accessor :requested
2551
+
2552
+ def initialize(requested: nil)
2553
+ @requested = requested
2554
+ end
2555
+ end
2556
+
2557
+ class PaynowPayments < Stripe::RequestParams
2558
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2559
+ attr_accessor :requested
2560
+
2561
+ def initialize(requested: nil)
2562
+ @requested = requested
2563
+ end
2564
+ end
2565
+
2566
+ class PromptpayPayments < Stripe::RequestParams
2567
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2568
+ attr_accessor :requested
2569
+
2570
+ def initialize(requested: nil)
2571
+ @requested = requested
2572
+ end
2573
+ end
2574
+
2575
+ class RevolutPayPayments < Stripe::RequestParams
2576
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2577
+ attr_accessor :requested
2578
+
2579
+ def initialize(requested: nil)
2580
+ @requested = requested
2581
+ end
2582
+ end
2583
+
2584
+ class SamsungPayPayments < Stripe::RequestParams
2585
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2586
+ attr_accessor :requested
2587
+
2588
+ def initialize(requested: nil)
2589
+ @requested = requested
2590
+ end
2591
+ end
2592
+
2593
+ class SepaBankTransferPayments < Stripe::RequestParams
2594
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2595
+ attr_accessor :requested
2596
+
2597
+ def initialize(requested: nil)
2598
+ @requested = requested
2599
+ end
2600
+ end
2601
+
2602
+ class SepaDebitPayments < Stripe::RequestParams
2603
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2604
+ attr_accessor :requested
2605
+
2606
+ def initialize(requested: nil)
2607
+ @requested = requested
2608
+ end
2609
+ end
2610
+
2611
+ class SwishPayments < Stripe::RequestParams
2612
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2613
+ attr_accessor :requested
2614
+
2615
+ def initialize(requested: nil)
2616
+ @requested = requested
2617
+ end
2618
+ end
2619
+
2620
+ class TwintPayments < Stripe::RequestParams
2621
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2622
+ attr_accessor :requested
2623
+
2624
+ def initialize(requested: nil)
2625
+ @requested = requested
2626
+ end
2627
+ end
2628
+
2629
+ class UsBankTransferPayments < Stripe::RequestParams
2630
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2631
+ attr_accessor :requested
2632
+
2633
+ def initialize(requested: nil)
2634
+ @requested = requested
2635
+ end
2636
+ end
2637
+
2638
+ class ZipPayments < Stripe::RequestParams
2639
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2640
+ attr_accessor :requested
2641
+
2642
+ def initialize(requested: nil)
2643
+ @requested = requested
2644
+ end
2645
+ end
2646
+ # Allow the merchant to process ACH debit payments.
2647
+ attr_accessor :ach_debit_payments
2648
+ # Allow the merchant to process ACSS debit payments.
2649
+ attr_accessor :acss_debit_payments
2650
+ # Allow the merchant to process Affirm payments.
2651
+ attr_accessor :affirm_payments
2652
+ # Allow the merchant to process Afterpay/Clearpay payments.
2653
+ attr_accessor :afterpay_clearpay_payments
2654
+ # Allow the merchant to process Alma payments.
2655
+ attr_accessor :alma_payments
2656
+ # Allow the merchant to process Amazon Pay payments.
2657
+ attr_accessor :amazon_pay_payments
2658
+ # Allow the merchant to process Australian BECS Direct Debit payments.
2659
+ attr_accessor :au_becs_debit_payments
2660
+ # Allow the merchant to process BACS Direct Debit payments.
2661
+ attr_accessor :bacs_debit_payments
2662
+ # Allow the merchant to process Bancontact payments.
2663
+ attr_accessor :bancontact_payments
2664
+ # Allow the merchant to process BLIK payments.
2665
+ attr_accessor :blik_payments
2666
+ # Allow the merchant to process Boleto payments.
2667
+ attr_accessor :boleto_payments
2668
+ # Allow the merchant to collect card payments.
2669
+ attr_accessor :card_payments
2670
+ # Allow the merchant to process Cartes Bancaires payments.
2671
+ attr_accessor :cartes_bancaires_payments
2672
+ # Allow the merchant to process Cash App payments.
2673
+ attr_accessor :cashapp_payments
2674
+ # Allow the merchant to process EPS payments.
2675
+ attr_accessor :eps_payments
2676
+ # Allow the merchant to process FPX payments.
2677
+ attr_accessor :fpx_payments
2678
+ # Allow the merchant to process UK bank transfer payments.
2679
+ attr_accessor :gb_bank_transfer_payments
2680
+ # Allow the merchant to process GrabPay payments.
2681
+ attr_accessor :grabpay_payments
2682
+ # Allow the merchant to process iDEAL payments.
2683
+ attr_accessor :ideal_payments
2684
+ # Allow the merchant to process JCB card payments.
2685
+ attr_accessor :jcb_payments
2686
+ # Allow the merchant to process Japanese bank transfer payments.
2687
+ attr_accessor :jp_bank_transfer_payments
2688
+ # Allow the merchant to process Kakao Pay payments.
2689
+ attr_accessor :kakao_pay_payments
2690
+ # Allow the merchant to process Klarna payments.
2691
+ attr_accessor :klarna_payments
2692
+ # Allow the merchant to process Konbini convenience store payments.
2693
+ attr_accessor :konbini_payments
2694
+ # Allow the merchant to process Korean card payments.
2695
+ attr_accessor :kr_card_payments
2696
+ # Allow the merchant to process Link payments.
2697
+ attr_accessor :link_payments
2698
+ # Allow the merchant to process MobilePay payments.
2699
+ attr_accessor :mobilepay_payments
2700
+ # Allow the merchant to process Multibanco payments.
2701
+ attr_accessor :multibanco_payments
2702
+ # Allow the merchant to process Mexican bank transfer payments.
2703
+ attr_accessor :mx_bank_transfer_payments
2704
+ # Allow the merchant to process Naver Pay payments.
2705
+ attr_accessor :naver_pay_payments
2706
+ # Allow the merchant to process OXXO payments.
2707
+ attr_accessor :oxxo_payments
2708
+ # Allow the merchant to process Przelewy24 (P24) payments.
2709
+ attr_accessor :p24_payments
2710
+ # Allow the merchant to process Pay by Bank payments.
2711
+ attr_accessor :pay_by_bank_payments
2712
+ # Allow the merchant to process PAYCO payments.
2713
+ attr_accessor :payco_payments
2714
+ # Allow the merchant to process PayNow payments.
2715
+ attr_accessor :paynow_payments
2716
+ # Allow the merchant to process PromptPay payments.
2717
+ attr_accessor :promptpay_payments
2718
+ # Allow the merchant to process Revolut Pay payments.
2719
+ attr_accessor :revolut_pay_payments
2720
+ # Allow the merchant to process Samsung Pay payments.
2721
+ attr_accessor :samsung_pay_payments
2722
+ # Allow the merchant to process SEPA bank transfer payments.
2723
+ attr_accessor :sepa_bank_transfer_payments
2724
+ # Allow the merchant to process SEPA Direct Debit payments.
2725
+ attr_accessor :sepa_debit_payments
2726
+ # Allow the merchant to process Swish payments.
2727
+ attr_accessor :swish_payments
2728
+ # Allow the merchant to process TWINT payments.
2729
+ attr_accessor :twint_payments
2730
+ # Allow the merchant to process US bank transfer payments.
2731
+ attr_accessor :us_bank_transfer_payments
2732
+ # Allow the merchant to process Zip payments.
2733
+ attr_accessor :zip_payments
2734
+
2735
+ def initialize(
2736
+ ach_debit_payments: nil,
2737
+ acss_debit_payments: nil,
2738
+ affirm_payments: nil,
2739
+ afterpay_clearpay_payments: nil,
2740
+ alma_payments: nil,
2741
+ amazon_pay_payments: nil,
2742
+ au_becs_debit_payments: nil,
2743
+ bacs_debit_payments: nil,
2744
+ bancontact_payments: nil,
2745
+ blik_payments: nil,
2746
+ boleto_payments: nil,
2747
+ card_payments: nil,
2748
+ cartes_bancaires_payments: nil,
2749
+ cashapp_payments: nil,
2750
+ eps_payments: nil,
2751
+ fpx_payments: nil,
2752
+ gb_bank_transfer_payments: nil,
2753
+ grabpay_payments: nil,
2754
+ ideal_payments: nil,
2755
+ jcb_payments: nil,
2756
+ jp_bank_transfer_payments: nil,
2757
+ kakao_pay_payments: nil,
2758
+ klarna_payments: nil,
2759
+ konbini_payments: nil,
2760
+ kr_card_payments: nil,
2761
+ link_payments: nil,
2762
+ mobilepay_payments: nil,
2763
+ multibanco_payments: nil,
2764
+ mx_bank_transfer_payments: nil,
2765
+ naver_pay_payments: nil,
2766
+ oxxo_payments: nil,
2767
+ p24_payments: nil,
2768
+ pay_by_bank_payments: nil,
2769
+ payco_payments: nil,
2770
+ paynow_payments: nil,
2771
+ promptpay_payments: nil,
2772
+ revolut_pay_payments: nil,
2773
+ samsung_pay_payments: nil,
2774
+ sepa_bank_transfer_payments: nil,
2775
+ sepa_debit_payments: nil,
2776
+ swish_payments: nil,
2777
+ twint_payments: nil,
2778
+ us_bank_transfer_payments: nil,
2779
+ zip_payments: nil
2780
+ )
2781
+ @ach_debit_payments = ach_debit_payments
2782
+ @acss_debit_payments = acss_debit_payments
2783
+ @affirm_payments = affirm_payments
2784
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
2785
+ @alma_payments = alma_payments
2786
+ @amazon_pay_payments = amazon_pay_payments
2787
+ @au_becs_debit_payments = au_becs_debit_payments
2788
+ @bacs_debit_payments = bacs_debit_payments
2789
+ @bancontact_payments = bancontact_payments
2790
+ @blik_payments = blik_payments
2791
+ @boleto_payments = boleto_payments
2792
+ @card_payments = card_payments
2793
+ @cartes_bancaires_payments = cartes_bancaires_payments
2794
+ @cashapp_payments = cashapp_payments
2795
+ @eps_payments = eps_payments
2796
+ @fpx_payments = fpx_payments
2797
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
2798
+ @grabpay_payments = grabpay_payments
2799
+ @ideal_payments = ideal_payments
2800
+ @jcb_payments = jcb_payments
2801
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
2802
+ @kakao_pay_payments = kakao_pay_payments
2803
+ @klarna_payments = klarna_payments
2804
+ @konbini_payments = konbini_payments
2805
+ @kr_card_payments = kr_card_payments
2806
+ @link_payments = link_payments
2807
+ @mobilepay_payments = mobilepay_payments
2808
+ @multibanco_payments = multibanco_payments
2809
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
2810
+ @naver_pay_payments = naver_pay_payments
2811
+ @oxxo_payments = oxxo_payments
2812
+ @p24_payments = p24_payments
2813
+ @pay_by_bank_payments = pay_by_bank_payments
2814
+ @payco_payments = payco_payments
2815
+ @paynow_payments = paynow_payments
2816
+ @promptpay_payments = promptpay_payments
2817
+ @revolut_pay_payments = revolut_pay_payments
2818
+ @samsung_pay_payments = samsung_pay_payments
2819
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
2820
+ @sepa_debit_payments = sepa_debit_payments
2821
+ @swish_payments = swish_payments
2822
+ @twint_payments = twint_payments
2823
+ @us_bank_transfer_payments = us_bank_transfer_payments
2824
+ @zip_payments = zip_payments
2825
+ end
2826
+ end
2827
+
2828
+ class CardPayments < Stripe::RequestParams
2829
+ class DeclineOn < Stripe::RequestParams
2830
+ # 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.
2831
+ attr_accessor :avs_failure
2832
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
2833
+ attr_accessor :cvc_failure
2834
+
2835
+ def initialize(avs_failure: nil, cvc_failure: nil)
2836
+ @avs_failure = avs_failure
2837
+ @cvc_failure = cvc_failure
2838
+ end
2839
+ end
2840
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
2841
+ attr_accessor :decline_on
2842
+
2843
+ def initialize(decline_on: nil)
2844
+ @decline_on = decline_on
2845
+ end
2846
+ end
2847
+
2848
+ class StatementDescriptor < Stripe::RequestParams
2849
+ # 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 Merchant Configuration settings documentation.
2850
+ attr_accessor :descriptor
2851
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
2852
+ attr_accessor :prefix
2853
+
2854
+ def initialize(descriptor: nil, prefix: nil)
2855
+ @descriptor = descriptor
2856
+ @prefix = prefix
2857
+ end
2858
+ end
2859
+
2860
+ class Support < Stripe::RequestParams
2861
+ class Address < Stripe::RequestParams
2862
+ # City, district, suburb, town, or village.
2863
+ attr_accessor :city
2864
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2865
+ attr_accessor :country
2866
+ # Address line 1 (e.g., street, PO Box, or company name).
2867
+ attr_accessor :line1
2868
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2869
+ attr_accessor :line2
2870
+ # ZIP or postal code.
2871
+ attr_accessor :postal_code
2872
+ # State, county, province, or region.
2873
+ attr_accessor :state
2874
+ # Town or cho-me.
2875
+ attr_accessor :town
2876
+
2877
+ def initialize(
2878
+ city: nil,
2879
+ country: nil,
2880
+ line1: nil,
2881
+ line2: nil,
2882
+ postal_code: nil,
2883
+ state: nil,
2884
+ town: nil
2885
+ )
2886
+ @city = city
2887
+ @country = country
2888
+ @line1 = line1
2889
+ @line2 = line2
2890
+ @postal_code = postal_code
2891
+ @state = state
2892
+ @town = town
2893
+ end
2894
+ end
2895
+ # A publicly available mailing address for sending support issues to.
2896
+ attr_accessor :address
2897
+ # A publicly available email address for sending support issues to.
2898
+ attr_accessor :email
2899
+ # A publicly available phone number to call with support issues.
2900
+ attr_accessor :phone
2901
+ # A publicly available website for handling support issues.
2902
+ attr_accessor :url
2903
+
2904
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
2905
+ @address = address
2906
+ @email = email
2907
+ @phone = phone
2908
+ @url = url
2909
+ end
2910
+ end
2911
+ # Settings used for Bacs debit payments.
2912
+ attr_accessor :bacs_debit_payments
2913
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
2914
+ attr_accessor :branding
2915
+ # Capabilities to request on the Merchant Configuration.
2916
+ attr_accessor :capabilities
2917
+ # Card payments settings.
2918
+ attr_accessor :card_payments
2919
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
2920
+ attr_accessor :mcc
2921
+ # Statement descriptor.
2922
+ attr_accessor :statement_descriptor
2923
+ # Publicly available contact information for sending support issues to.
2924
+ attr_accessor :support
2925
+
2926
+ def initialize(
2927
+ bacs_debit_payments: nil,
2928
+ branding: nil,
2929
+ capabilities: nil,
2930
+ card_payments: nil,
2931
+ mcc: nil,
2932
+ statement_descriptor: nil,
2933
+ support: nil
2934
+ )
2935
+ @bacs_debit_payments = bacs_debit_payments
2936
+ @branding = branding
2937
+ @capabilities = capabilities
2938
+ @card_payments = card_payments
2939
+ @mcc = mcc
2940
+ @statement_descriptor = statement_descriptor
2941
+ @support = support
2942
+ end
2943
+ end
2944
+
2945
+ class Recipient < Stripe::RequestParams
2946
+ class Capabilities < Stripe::RequestParams
2947
+ class BankAccounts < Stripe::RequestParams
2948
+ class Local < Stripe::RequestParams
2949
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2950
+ attr_accessor :requested
2951
+
2952
+ def initialize(requested: nil)
2953
+ @requested = requested
2954
+ end
2955
+ end
2956
+
2957
+ class Wire < Stripe::RequestParams
2958
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2959
+ attr_accessor :requested
2960
+
2961
+ def initialize(requested: nil)
2962
+ @requested = requested
2963
+ end
2964
+ end
2965
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
2966
+ attr_accessor :local
2967
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
2968
+ attr_accessor :wire
2969
+
2970
+ def initialize(local: nil, wire: nil)
2971
+ @local = local
2972
+ @wire = wire
2973
+ end
2974
+ end
2975
+
2976
+ class Cards < Stripe::RequestParams
2977
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2978
+ attr_accessor :requested
2979
+
2980
+ def initialize(requested: nil)
2981
+ @requested = requested
2982
+ end
2983
+ end
2984
+
2985
+ class StripeBalance < Stripe::RequestParams
2986
+ class StripeTransfers < Stripe::RequestParams
2987
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2988
+ attr_accessor :requested
2989
+
2990
+ def initialize(requested: nil)
2991
+ @requested = requested
2992
+ end
2993
+ end
2994
+ # Allows the recipient to receive /v1/transfers into their Stripe Balance (/v1/balance).
2995
+ attr_accessor :stripe_transfers
2996
+
2997
+ def initialize(stripe_transfers: nil)
2998
+ @stripe_transfers = stripe_transfers
2999
+ end
3000
+ end
3001
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
3002
+ attr_accessor :bank_accounts
3003
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
3004
+ attr_accessor :cards
3005
+ # Capabilities that enable the recipient to receive money into their Stripe Balance (/v1/balance).
3006
+ attr_accessor :stripe_balance
3007
+
3008
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
3009
+ @bank_accounts = bank_accounts
3010
+ @cards = cards
3011
+ @stripe_balance = stripe_balance
3012
+ end
3013
+ end
3014
+ # Capabilities to request on the Recipient Configuration.
3015
+ attr_accessor :capabilities
3016
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination.
3017
+ attr_accessor :default_outbound_destination
3018
+
3019
+ def initialize(capabilities: nil, default_outbound_destination: nil)
3020
+ @capabilities = capabilities
3021
+ @default_outbound_destination = default_outbound_destination
3022
+ end
3023
+ end
3024
+ # The Customer Configuration allows the Account to be charged.
3025
+ attr_accessor :customer
3026
+ # The Merchant configuration allows the Account to act as a connected account and collect payments facilitated by a Connect platform. You can add this configuration to your connected accounts only if you’ve completed onboarding as a Connect platform.
3027
+ attr_accessor :merchant
3028
+ # The Recipient Configuration allows the Account to receive funds.
3029
+ attr_accessor :recipient
3030
+
3031
+ def initialize(customer: nil, merchant: nil, recipient: nil)
3032
+ @customer = customer
3033
+ @merchant = merchant
3034
+ @recipient = recipient
3035
+ end
3036
+ end
3037
+
3038
+ class Defaults < Stripe::RequestParams
3039
+ class Responsibilities < Stripe::RequestParams
3040
+ # A value indicating the party responsible for collecting fees from this account.
3041
+ attr_accessor :fees_collector
3042
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
3043
+ attr_accessor :losses_collector
3044
+
3045
+ def initialize(fees_collector: nil, losses_collector: nil)
3046
+ @fees_collector = fees_collector
3047
+ @losses_collector = losses_collector
3048
+ end
3049
+ end
3050
+ # 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).
3051
+ attr_accessor :currency
3052
+ # The Account's preferred locales (languages), ordered by preference.
3053
+ attr_accessor :locales
3054
+ # Default responsibilities held by either Stripe or the platform.
3055
+ attr_accessor :responsibilities
3056
+
3057
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
3058
+ @currency = currency
3059
+ @locales = locales
3060
+ @responsibilities = responsibilities
3061
+ end
3062
+ end
3063
+
3064
+ class Identity < Stripe::RequestParams
3065
+ class Attestations < Stripe::RequestParams
3066
+ class DirectorshipDeclaration < Stripe::RequestParams
3067
+ # The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
3068
+ attr_accessor :date
3069
+ # The IP address from which the director attestation was made.
3070
+ attr_accessor :ip
3071
+ # The user agent of the browser from which the director attestation was made.
3072
+ attr_accessor :user_agent
3073
+
3074
+ def initialize(date: nil, ip: nil, user_agent: nil)
3075
+ @date = date
3076
+ @ip = ip
3077
+ @user_agent = user_agent
3078
+ end
3079
+ end
3080
+
3081
+ class OwnershipDeclaration < Stripe::RequestParams
3082
+ # The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
3083
+ attr_accessor :date
3084
+ # The IP address from which the beneficial owner attestation was made.
3085
+ attr_accessor :ip
3086
+ # The user agent of the browser from which the beneficial owner attestation was made.
3087
+ attr_accessor :user_agent
3088
+
3089
+ def initialize(date: nil, ip: nil, user_agent: nil)
3090
+ @date = date
3091
+ @ip = ip
3092
+ @user_agent = user_agent
3093
+ end
3094
+ end
3095
+
3096
+ class PersonsProvided < Stripe::RequestParams
3097
+ # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
3098
+ attr_accessor :directors
3099
+ # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
3100
+ attr_accessor :executives
3101
+ # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
3102
+ attr_accessor :owners
3103
+ # Reason for why the company is exempt from providing ownership information.
3104
+ attr_accessor :ownership_exemption_reason
3105
+
3106
+ def initialize(
3107
+ directors: nil,
3108
+ executives: nil,
3109
+ owners: nil,
3110
+ ownership_exemption_reason: nil
3111
+ )
3112
+ @directors = directors
3113
+ @executives = executives
3114
+ @owners = owners
3115
+ @ownership_exemption_reason = ownership_exemption_reason
3116
+ end
3117
+ end
3118
+
3119
+ class TermsOfService < Stripe::RequestParams
3120
+ class Account < Stripe::RequestParams
3121
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
3122
+ attr_accessor :date
3123
+ # The IP address from which the Account's representative accepted the terms of service.
3124
+ attr_accessor :ip
3125
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
3126
+ attr_accessor :user_agent
3127
+
3128
+ def initialize(date: nil, ip: nil, user_agent: nil)
3129
+ @date = date
3130
+ @ip = ip
3131
+ @user_agent = user_agent
3132
+ end
3133
+ end
3134
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
3135
+ attr_accessor :account
3136
+
3137
+ def initialize(account: nil)
3138
+ @account = account
3139
+ end
3140
+ end
3141
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3142
+ attr_accessor :directorship_declaration
3143
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3144
+ attr_accessor :ownership_declaration
3145
+ # Attestation that all Persons with a specific Relationship value have been provided.
3146
+ attr_accessor :persons_provided
3147
+ # Attestations of accepted terms of service agreements.
3148
+ attr_accessor :terms_of_service
3149
+
3150
+ def initialize(
3151
+ directorship_declaration: nil,
3152
+ ownership_declaration: nil,
3153
+ persons_provided: nil,
3154
+ terms_of_service: nil
3155
+ )
3156
+ @directorship_declaration = directorship_declaration
3157
+ @ownership_declaration = ownership_declaration
3158
+ @persons_provided = persons_provided
3159
+ @terms_of_service = terms_of_service
3160
+ end
3161
+ end
3162
+
3163
+ class BusinessDetails < Stripe::RequestParams
3164
+ class Address < Stripe::RequestParams
3165
+ # City, district, suburb, town, or village.
3166
+ attr_accessor :city
3167
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3168
+ attr_accessor :country
3169
+ # Address line 1 (e.g., street, PO Box, or company name).
3170
+ attr_accessor :line1
3171
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3172
+ attr_accessor :line2
3173
+ # ZIP or postal code.
3174
+ attr_accessor :postal_code
3175
+ # State, county, province, or region.
3176
+ attr_accessor :state
3177
+ # Town or cho-me.
3178
+ attr_accessor :town
3179
+
3180
+ def initialize(
3181
+ city: nil,
3182
+ country: nil,
3183
+ line1: nil,
3184
+ line2: nil,
3185
+ postal_code: nil,
3186
+ state: nil,
3187
+ town: nil
3188
+ )
3189
+ @city = city
3190
+ @country = country
3191
+ @line1 = line1
3192
+ @line2 = line2
3193
+ @postal_code = postal_code
3194
+ @state = state
3195
+ @town = town
3196
+ end
3197
+ end
3198
+
3199
+ class AnnualRevenue < Stripe::RequestParams
3200
+ # A non-negative integer representing the amount in the smallest currency unit.
3201
+ attr_accessor :amount
3202
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
3203
+ attr_accessor :fiscal_year_end
3204
+
3205
+ def initialize(amount: nil, fiscal_year_end: nil)
3206
+ @amount = amount
3207
+ @fiscal_year_end = fiscal_year_end
3208
+ end
3209
+ end
3210
+
3211
+ class Documents < Stripe::RequestParams
3212
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3213
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3214
+ attr_accessor :files
3215
+ # The format of the document. Currently supports `files` only.
3216
+ attr_accessor :type
3217
+
3218
+ def initialize(files: nil, type: nil)
3219
+ @files = files
3220
+ @type = type
3221
+ end
3222
+ end
3223
+
3224
+ class CompanyLicense < Stripe::RequestParams
3225
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3226
+ attr_accessor :files
3227
+ # The format of the document. Currently supports `files` only.
3228
+ attr_accessor :type
3229
+
3230
+ def initialize(files: nil, type: nil)
3231
+ @files = files
3232
+ @type = type
3233
+ end
3234
+ end
3235
+
3236
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3237
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3238
+ attr_accessor :files
3239
+ # The format of the document. Currently supports `files` only.
3240
+ attr_accessor :type
3241
+
3242
+ def initialize(files: nil, type: nil)
3243
+ @files = files
3244
+ @type = type
3245
+ end
3246
+ end
3247
+
3248
+ class CompanyMinisterialDecree < Stripe::RequestParams
3249
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3250
+ attr_accessor :files
3251
+ # The format of the document. Currently supports `files` only.
3252
+ attr_accessor :type
3253
+
3254
+ def initialize(files: nil, type: nil)
3255
+ @files = files
3256
+ @type = type
3257
+ end
3258
+ end
3259
+
3260
+ class CompanyRegistrationVerification < Stripe::RequestParams
3261
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3262
+ attr_accessor :files
3263
+ # The format of the document. Currently supports `files` only.
3264
+ attr_accessor :type
3265
+
3266
+ def initialize(files: nil, type: nil)
3267
+ @files = files
3268
+ @type = type
3269
+ end
3270
+ end
3271
+
3272
+ class CompanyTaxIdVerification < Stripe::RequestParams
3273
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3274
+ attr_accessor :files
3275
+ # The format of the document. Currently supports `files` only.
3276
+ attr_accessor :type
3277
+
3278
+ def initialize(files: nil, type: nil)
3279
+ @files = files
3280
+ @type = type
3281
+ end
3282
+ end
3283
+
3284
+ class PrimaryVerification < Stripe::RequestParams
3285
+ class FrontBack < Stripe::RequestParams
3286
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
3287
+ attr_accessor :back
3288
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
3289
+ attr_accessor :front
3290
+
3291
+ def initialize(back: nil, front: nil)
3292
+ @back = back
3293
+ @front = front
3294
+ end
3295
+ end
3296
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3297
+ attr_accessor :front_back
3298
+ # The format of the verification document. Currently supports `front_back` only.
3299
+ attr_accessor :type
3300
+
3301
+ def initialize(front_back: nil, type: nil)
3302
+ @front_back = front_back
3303
+ @type = type
3304
+ end
3305
+ end
3306
+
3307
+ class ProofOfRegistration < Stripe::RequestParams
3308
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3309
+ attr_accessor :files
3310
+ # The format of the document. Currently supports `files` only.
3311
+ attr_accessor :type
3312
+
3313
+ def initialize(files: nil, type: nil)
3314
+ @files = files
3315
+ @type = type
3316
+ end
3317
+ end
3318
+
3319
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3320
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3321
+ attr_accessor :files
3322
+ # The format of the document. Currently supports `files` only.
3323
+ attr_accessor :type
3324
+
3325
+ def initialize(files: nil, type: nil)
3326
+ @files = files
3327
+ @type = type
3328
+ end
3329
+ end
3330
+ # One or more documents that support the 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.
3331
+ attr_accessor :bank_account_ownership_verification
3332
+ # One or more documents that demonstrate proof of a company’s license to operate.
3333
+ attr_accessor :company_license
3334
+ # One or more documents showing the company’s Memorandum of Association.
3335
+ attr_accessor :company_memorandum_of_association
3336
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
3337
+ attr_accessor :company_ministerial_decree
3338
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
3339
+ attr_accessor :company_registration_verification
3340
+ # One or more documents that demonstrate proof of a company’s tax ID.
3341
+ attr_accessor :company_tax_id_verification
3342
+ # A document verifying the business.
3343
+ attr_accessor :primary_verification
3344
+ # One or more documents showing the company’s proof of registration with the national business registry.
3345
+ attr_accessor :proof_of_registration
3346
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3347
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3348
+
3349
+ def initialize(
3350
+ bank_account_ownership_verification: nil,
3351
+ company_license: nil,
3352
+ company_memorandum_of_association: nil,
3353
+ company_ministerial_decree: nil,
3354
+ company_registration_verification: nil,
3355
+ company_tax_id_verification: nil,
3356
+ primary_verification: nil,
3357
+ proof_of_registration: nil,
3358
+ proof_of_ultimate_beneficial_ownership: nil
3359
+ )
3360
+ @bank_account_ownership_verification = bank_account_ownership_verification
3361
+ @company_license = company_license
3362
+ @company_memorandum_of_association = company_memorandum_of_association
3363
+ @company_ministerial_decree = company_ministerial_decree
3364
+ @company_registration_verification = company_registration_verification
3365
+ @company_tax_id_verification = company_tax_id_verification
3366
+ @primary_verification = primary_verification
3367
+ @proof_of_registration = proof_of_registration
3368
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3369
+ end
3370
+ end
3371
+
3372
+ class IdNumber < Stripe::RequestParams
3373
+ # The registrar of the ID number (Only valid for DE ID number types).
3374
+ attr_accessor :registrar
3375
+ # Open Enum. The ID number type of a business entity.
3376
+ attr_accessor :type
3377
+ # The value of the ID number.
3378
+ attr_accessor :value
3379
+
3380
+ def initialize(registrar: nil, type: nil, value: nil)
3381
+ @registrar = registrar
3382
+ @type = type
3383
+ @value = value
3384
+ end
3385
+ end
3386
+
3387
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
3388
+ # A non-negative integer representing the amount in the smallest currency unit.
3389
+ attr_accessor :amount
3390
+
3391
+ def initialize(amount: nil)
3392
+ @amount = amount
3393
+ end
3394
+ end
3395
+
3396
+ class ScriptAddresses < Stripe::RequestParams
3397
+ class Kana < Stripe::RequestParams
3398
+ # City, district, suburb, town, or village.
3399
+ attr_accessor :city
3400
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3401
+ attr_accessor :country
3402
+ # Address line 1 (e.g., street, PO Box, or company name).
3403
+ attr_accessor :line1
3404
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3405
+ attr_accessor :line2
3406
+ # ZIP or postal code.
3407
+ attr_accessor :postal_code
3408
+ # State, county, province, or region.
3409
+ attr_accessor :state
3410
+ # Town or cho-me.
3411
+ attr_accessor :town
3412
+
3413
+ def initialize(
3414
+ city: nil,
3415
+ country: nil,
3416
+ line1: nil,
3417
+ line2: nil,
3418
+ postal_code: nil,
3419
+ state: nil,
3420
+ town: nil
3421
+ )
3422
+ @city = city
3423
+ @country = country
3424
+ @line1 = line1
3425
+ @line2 = line2
3426
+ @postal_code = postal_code
3427
+ @state = state
3428
+ @town = town
3429
+ end
3430
+ end
3431
+
3432
+ class Kanji < Stripe::RequestParams
3433
+ # City, district, suburb, town, or village.
3434
+ attr_accessor :city
3435
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3436
+ attr_accessor :country
3437
+ # Address line 1 (e.g., street, PO Box, or company name).
3438
+ attr_accessor :line1
3439
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3440
+ attr_accessor :line2
3441
+ # ZIP or postal code.
3442
+ attr_accessor :postal_code
3443
+ # State, county, province, or region.
3444
+ attr_accessor :state
3445
+ # Town or cho-me.
3446
+ attr_accessor :town
3447
+
3448
+ def initialize(
3449
+ city: nil,
3450
+ country: nil,
3451
+ line1: nil,
3452
+ line2: nil,
3453
+ postal_code: nil,
3454
+ state: nil,
3455
+ town: nil
3456
+ )
3457
+ @city = city
3458
+ @country = country
3459
+ @line1 = line1
3460
+ @line2 = line2
3461
+ @postal_code = postal_code
3462
+ @state = state
3463
+ @town = town
3464
+ end
3465
+ end
3466
+ # Kana Address.
3467
+ attr_accessor :kana
3468
+ # Kanji Address.
3469
+ attr_accessor :kanji
3470
+
3471
+ def initialize(kana: nil, kanji: nil)
3472
+ @kana = kana
3473
+ @kanji = kanji
3474
+ end
3475
+ end
3476
+
3477
+ class ScriptNames < Stripe::RequestParams
3478
+ class Kana < Stripe::RequestParams
3479
+ # Registered name of the business.
3480
+ attr_accessor :registered_name
3481
+
3482
+ def initialize(registered_name: nil)
3483
+ @registered_name = registered_name
3484
+ end
3485
+ end
3486
+
3487
+ class Kanji < Stripe::RequestParams
3488
+ # Registered name of the business.
3489
+ attr_accessor :registered_name
3490
+
3491
+ def initialize(registered_name: nil)
3492
+ @registered_name = registered_name
3493
+ end
3494
+ end
3495
+ # Kana name.
3496
+ attr_accessor :kana
3497
+ # Kanji name.
3498
+ attr_accessor :kanji
3499
+
3500
+ def initialize(kana: nil, kanji: nil)
3501
+ @kana = kana
3502
+ @kanji = kanji
3503
+ end
3504
+ end
3505
+ # The business registration address of the business entity.
3506
+ attr_accessor :address
3507
+ # The business gross annual revenue for its preceding fiscal year.
3508
+ attr_accessor :annual_revenue
3509
+ # A document verifying the business.
3510
+ attr_accessor :documents
3511
+ # The name which is used by the business.
3512
+ attr_accessor :doing_business_as
3513
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
3514
+ attr_accessor :estimated_worker_count
3515
+ # The ID numbers of a business entity.
3516
+ attr_accessor :id_numbers
3517
+ # An estimate of the monthly revenue of the business.
3518
+ attr_accessor :monthly_estimated_revenue
3519
+ # The phone number of the Business Entity.
3520
+ attr_accessor :phone
3521
+ # Internal-only description of the product sold or service provided by the business. It’s used by Stripe for risk and underwriting purposes.
3522
+ attr_accessor :product_description
3523
+ # The business legal name.
3524
+ attr_accessor :registered_name
3525
+ # The business registration address of the business entity in non latin script.
3526
+ attr_accessor :script_addresses
3527
+ # The business legal name in non latin script.
3528
+ attr_accessor :script_names
3529
+ # The category identifying the legal structure of the business.
3530
+ attr_accessor :structure
3531
+ # The business's publicly available website.
3532
+ attr_accessor :url
3533
+
3534
+ def initialize(
3535
+ address: nil,
3536
+ annual_revenue: nil,
3537
+ documents: nil,
3538
+ doing_business_as: nil,
3539
+ estimated_worker_count: nil,
3540
+ id_numbers: nil,
3541
+ monthly_estimated_revenue: nil,
3542
+ phone: nil,
3543
+ product_description: nil,
3544
+ registered_name: nil,
3545
+ script_addresses: nil,
3546
+ script_names: nil,
3547
+ structure: nil,
3548
+ url: nil
3549
+ )
3550
+ @address = address
3551
+ @annual_revenue = annual_revenue
3552
+ @documents = documents
3553
+ @doing_business_as = doing_business_as
3554
+ @estimated_worker_count = estimated_worker_count
3555
+ @id_numbers = id_numbers
3556
+ @monthly_estimated_revenue = monthly_estimated_revenue
3557
+ @phone = phone
3558
+ @product_description = product_description
3559
+ @registered_name = registered_name
3560
+ @script_addresses = script_addresses
3561
+ @script_names = script_names
3562
+ @structure = structure
3563
+ @url = url
3564
+ end
3565
+ end
3566
+
3567
+ class Individual < Stripe::RequestParams
3568
+ class AdditionalAddress < Stripe::RequestParams
3569
+ # City, district, suburb, town, or village.
3570
+ attr_accessor :city
3571
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3572
+ attr_accessor :country
3573
+ # Address line 1 (e.g., street, PO Box, or company name).
3574
+ attr_accessor :line1
3575
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3576
+ attr_accessor :line2
3577
+ # ZIP or postal code.
3578
+ attr_accessor :postal_code
3579
+ # Purpose of additional address.
3580
+ attr_accessor :purpose
3581
+ # State, county, province, or region.
3582
+ attr_accessor :state
3583
+ # Town or cho-me.
3584
+ attr_accessor :town
3585
+
3586
+ def initialize(
3587
+ city: nil,
3588
+ country: nil,
3589
+ line1: nil,
3590
+ line2: nil,
3591
+ postal_code: nil,
3592
+ purpose: nil,
3593
+ state: nil,
3594
+ town: nil
3595
+ )
3596
+ @city = city
3597
+ @country = country
3598
+ @line1 = line1
3599
+ @line2 = line2
3600
+ @postal_code = postal_code
3601
+ @purpose = purpose
3602
+ @state = state
3603
+ @town = town
3604
+ end
3605
+ end
3606
+
3607
+ class AdditionalName < Stripe::RequestParams
3608
+ # The person's full name.
3609
+ attr_accessor :full_name
3610
+ # The person's first or given name.
3611
+ attr_accessor :given_name
3612
+ # The purpose or type of the additional name.
3613
+ attr_accessor :purpose
3614
+ # The person's last or family name.
3615
+ attr_accessor :surname
3616
+
3617
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
3618
+ @full_name = full_name
3619
+ @given_name = given_name
3620
+ @purpose = purpose
3621
+ @surname = surname
3622
+ end
3623
+ end
3624
+
3625
+ class Address < Stripe::RequestParams
3626
+ # City, district, suburb, town, or village.
3627
+ attr_accessor :city
3628
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3629
+ attr_accessor :country
3630
+ # Address line 1 (e.g., street, PO Box, or company name).
3631
+ attr_accessor :line1
3632
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3633
+ attr_accessor :line2
3634
+ # ZIP or postal code.
3635
+ attr_accessor :postal_code
3636
+ # State, county, province, or region.
3637
+ attr_accessor :state
3638
+ # Town or cho-me.
3639
+ attr_accessor :town
3640
+
3641
+ def initialize(
3642
+ city: nil,
3643
+ country: nil,
3644
+ line1: nil,
3645
+ line2: nil,
3646
+ postal_code: nil,
3647
+ state: nil,
3648
+ town: nil
3649
+ )
3650
+ @city = city
3651
+ @country = country
3652
+ @line1 = line1
3653
+ @line2 = line2
3654
+ @postal_code = postal_code
3655
+ @state = state
3656
+ @town = town
3657
+ end
3658
+ end
3659
+
3660
+ class DateOfBirth < Stripe::RequestParams
3661
+ # The day of the birth.
3662
+ attr_accessor :day
3663
+ # The month of birth.
3664
+ attr_accessor :month
3665
+ # The year of birth.
3666
+ attr_accessor :year
3667
+
3668
+ def initialize(day: nil, month: nil, year: nil)
3669
+ @day = day
3670
+ @month = month
3671
+ @year = year
3672
+ end
3673
+ end
3674
+
3675
+ class Documents < Stripe::RequestParams
3676
+ class CompanyAuthorization < Stripe::RequestParams
3677
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3678
+ attr_accessor :files
3679
+ # The format of the document. Currently supports `files` only.
3680
+ attr_accessor :type
3681
+
3682
+ def initialize(files: nil, type: nil)
3683
+ @files = files
3684
+ @type = type
3685
+ end
3686
+ end
3687
+
3688
+ class Passport < Stripe::RequestParams
3689
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3690
+ attr_accessor :files
3691
+ # The format of the document. Currently supports `files` only.
3692
+ attr_accessor :type
3693
+
3694
+ def initialize(files: nil, type: nil)
3695
+ @files = files
3696
+ @type = type
3697
+ end
3698
+ end
3699
+
3700
+ class PrimaryVerification < Stripe::RequestParams
3701
+ class FrontBack < Stripe::RequestParams
3702
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
3703
+ attr_accessor :back
3704
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
3705
+ attr_accessor :front
3706
+
3707
+ def initialize(back: nil, front: nil)
3708
+ @back = back
3709
+ @front = front
3710
+ end
3711
+ end
3712
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3713
+ attr_accessor :front_back
3714
+ # The format of the verification document. Currently supports `front_back` only.
3715
+ attr_accessor :type
3716
+
3717
+ def initialize(front_back: nil, type: nil)
3718
+ @front_back = front_back
3719
+ @type = type
3720
+ end
3721
+ end
3722
+
3723
+ class SecondaryVerification < Stripe::RequestParams
3724
+ class FrontBack < Stripe::RequestParams
3725
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
3726
+ attr_accessor :back
3727
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
3728
+ attr_accessor :front
3729
+
3730
+ def initialize(back: nil, front: nil)
3731
+ @back = back
3732
+ @front = front
3733
+ end
3734
+ end
3735
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3736
+ attr_accessor :front_back
3737
+ # The format of the verification document. Currently supports `front_back` only.
3738
+ attr_accessor :type
3739
+
3740
+ def initialize(front_back: nil, type: nil)
3741
+ @front_back = front_back
3742
+ @type = type
3743
+ end
3744
+ end
3745
+
3746
+ class Visa < Stripe::RequestParams
3747
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
3748
+ attr_accessor :files
3749
+ # The format of the document. Currently supports `files` only.
3750
+ attr_accessor :type
3751
+
3752
+ def initialize(files: nil, type: nil)
3753
+ @files = files
3754
+ @type = type
3755
+ end
3756
+ end
3757
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
3758
+ attr_accessor :company_authorization
3759
+ # One or more documents showing the person’s passport page with photo and personal data.
3760
+ attr_accessor :passport
3761
+ # An identifying document showing the person's name, either a passport or local ID card.
3762
+ attr_accessor :primary_verification
3763
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3764
+ attr_accessor :secondary_verification
3765
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
3766
+ attr_accessor :visa
3767
+
3768
+ def initialize(
3769
+ company_authorization: nil,
3770
+ passport: nil,
3771
+ primary_verification: nil,
3772
+ secondary_verification: nil,
3773
+ visa: nil
3774
+ )
3775
+ @company_authorization = company_authorization
3776
+ @passport = passport
3777
+ @primary_verification = primary_verification
3778
+ @secondary_verification = secondary_verification
3779
+ @visa = visa
3780
+ end
3781
+ end
3782
+
3783
+ class IdNumber < Stripe::RequestParams
3784
+ # The ID number type of an individual.
3785
+ attr_accessor :type
3786
+ # The value of the ID number.
3787
+ attr_accessor :value
3788
+
3789
+ def initialize(type: nil, value: nil)
3790
+ @type = type
3791
+ @value = value
3792
+ end
3793
+ end
3794
+
3795
+ class Relationship < Stripe::RequestParams
3796
+ # Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
3797
+ attr_accessor :director
3798
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
3799
+ attr_accessor :executive
3800
+ # Whether the person is an owner of the account’s identity.
3801
+ attr_accessor :owner
3802
+ # The percent owned by the person of the account's legal entity.
3803
+ attr_accessor :percent_ownership
3804
+ # The person's title (e.g., CEO, Support Engineer).
3805
+ attr_accessor :title
3806
+
3807
+ def initialize(
3808
+ director: nil,
3809
+ executive: nil,
3810
+ owner: nil,
3811
+ percent_ownership: nil,
3812
+ title: nil
3813
+ )
3814
+ @director = director
3815
+ @executive = executive
3816
+ @owner = owner
3817
+ @percent_ownership = percent_ownership
3818
+ @title = title
3819
+ end
3820
+ end
3821
+
3822
+ class ScriptAddresses < Stripe::RequestParams
3823
+ class Kana < Stripe::RequestParams
3824
+ # City, district, suburb, town, or village.
3825
+ attr_accessor :city
3826
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3827
+ attr_accessor :country
3828
+ # Address line 1 (e.g., street, PO Box, or company name).
3829
+ attr_accessor :line1
3830
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3831
+ attr_accessor :line2
3832
+ # ZIP or postal code.
3833
+ attr_accessor :postal_code
3834
+ # State, county, province, or region.
3835
+ attr_accessor :state
3836
+ # Town or cho-me.
3837
+ attr_accessor :town
3838
+
3839
+ def initialize(
3840
+ city: nil,
3841
+ country: nil,
3842
+ line1: nil,
3843
+ line2: nil,
3844
+ postal_code: nil,
3845
+ state: nil,
3846
+ town: nil
3847
+ )
3848
+ @city = city
3849
+ @country = country
3850
+ @line1 = line1
3851
+ @line2 = line2
3852
+ @postal_code = postal_code
3853
+ @state = state
3854
+ @town = town
3855
+ end
3856
+ end
3857
+
3858
+ class Kanji < Stripe::RequestParams
3859
+ # City, district, suburb, town, or village.
3860
+ attr_accessor :city
3861
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3862
+ attr_accessor :country
3863
+ # Address line 1 (e.g., street, PO Box, or company name).
3864
+ attr_accessor :line1
3865
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3866
+ attr_accessor :line2
3867
+ # ZIP or postal code.
3868
+ attr_accessor :postal_code
3869
+ # State, county, province, or region.
3870
+ attr_accessor :state
3871
+ # Town or cho-me.
3872
+ attr_accessor :town
3873
+
3874
+ def initialize(
3875
+ city: nil,
3876
+ country: nil,
3877
+ line1: nil,
3878
+ line2: nil,
3879
+ postal_code: nil,
3880
+ state: nil,
3881
+ town: nil
3882
+ )
3883
+ @city = city
3884
+ @country = country
3885
+ @line1 = line1
3886
+ @line2 = line2
3887
+ @postal_code = postal_code
3888
+ @state = state
3889
+ @town = town
3890
+ end
3891
+ end
3892
+ # Kana Address.
3893
+ attr_accessor :kana
3894
+ # Kanji Address.
3895
+ attr_accessor :kanji
3896
+
3897
+ def initialize(kana: nil, kanji: nil)
3898
+ @kana = kana
3899
+ @kanji = kanji
3900
+ end
3901
+ end
3902
+
3903
+ class ScriptNames < Stripe::RequestParams
3904
+ class Kana < Stripe::RequestParams
3905
+ # The person's first or given name.
3906
+ attr_accessor :given_name
3907
+ # The person's last or family name.
3908
+ attr_accessor :surname
3909
+
3910
+ def initialize(given_name: nil, surname: nil)
3911
+ @given_name = given_name
3912
+ @surname = surname
3913
+ end
3914
+ end
3915
+
3916
+ class Kanji < Stripe::RequestParams
3917
+ # The person's first or given name.
3918
+ attr_accessor :given_name
3919
+ # The person's last or family name.
3920
+ attr_accessor :surname
3921
+
3922
+ def initialize(given_name: nil, surname: nil)
3923
+ @given_name = given_name
3924
+ @surname = surname
3925
+ end
3926
+ end
3927
+ # Persons name in kana script.
3928
+ attr_accessor :kana
3929
+ # Persons name in kanji script.
3930
+ attr_accessor :kanji
3931
+
3932
+ def initialize(kana: nil, kanji: nil)
3933
+ @kana = kana
3934
+ @kanji = kanji
3935
+ end
3936
+ end
3937
+ # Additional addresses associated with the individual.
3938
+ attr_accessor :additional_addresses
3939
+ # Additional names (e.g. aliases) associated with the individual.
3940
+ attr_accessor :additional_names
3941
+ # The individual's residential address.
3942
+ attr_accessor :address
3943
+ # The individual's date of birth.
3944
+ attr_accessor :date_of_birth
3945
+ # Documents that may be submitted to satisfy various informational requests.
3946
+ attr_accessor :documents
3947
+ # The individual's email address.
3948
+ attr_accessor :email
3949
+ # The individual's first name.
3950
+ attr_accessor :given_name
3951
+ # The identification numbers (e.g., SSN) associated with the individual.
3952
+ attr_accessor :id_numbers
3953
+ # The individual's gender (International regulations require either "male" or "female").
3954
+ attr_accessor :legal_gender
3955
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
3956
+ attr_accessor :metadata
3957
+ # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3958
+ attr_accessor :nationalities
3959
+ # The individual's phone number.
3960
+ attr_accessor :phone
3961
+ # The individual's political exposure.
3962
+ attr_accessor :political_exposure
3963
+ # The relationship that this individual has with the account's identity.
3964
+ attr_accessor :relationship
3965
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
3966
+ attr_accessor :script_addresses
3967
+ # The individuals primary name in non latin script.
3968
+ attr_accessor :script_names
3969
+ # The individual's last name.
3970
+ attr_accessor :surname
3971
+
3972
+ def initialize(
3973
+ additional_addresses: nil,
3974
+ additional_names: nil,
3975
+ address: nil,
3976
+ date_of_birth: nil,
3977
+ documents: nil,
3978
+ email: nil,
3979
+ given_name: nil,
3980
+ id_numbers: nil,
3981
+ legal_gender: nil,
3982
+ metadata: nil,
3983
+ nationalities: nil,
3984
+ phone: nil,
3985
+ political_exposure: nil,
3986
+ relationship: nil,
3987
+ script_addresses: nil,
3988
+ script_names: nil,
3989
+ surname: nil
3990
+ )
3991
+ @additional_addresses = additional_addresses
3992
+ @additional_names = additional_names
3993
+ @address = address
3994
+ @date_of_birth = date_of_birth
3995
+ @documents = documents
3996
+ @email = email
3997
+ @given_name = given_name
3998
+ @id_numbers = id_numbers
3999
+ @legal_gender = legal_gender
4000
+ @metadata = metadata
4001
+ @nationalities = nationalities
4002
+ @phone = phone
4003
+ @political_exposure = political_exposure
4004
+ @relationship = relationship
4005
+ @script_addresses = script_addresses
4006
+ @script_names = script_names
4007
+ @surname = surname
4008
+ end
4009
+ end
4010
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
4011
+ attr_accessor :attestations
4012
+ # Information about the company or business.
4013
+ attr_accessor :business_details
4014
+ # 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](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
4015
+ attr_accessor :country
4016
+ # The entity type.
4017
+ attr_accessor :entity_type
4018
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
4019
+ attr_accessor :individual
4020
+
4021
+ def initialize(
4022
+ attestations: nil,
4023
+ business_details: nil,
4024
+ country: nil,
4025
+ entity_type: nil,
4026
+ individual: nil
4027
+ )
4028
+ @attestations = attestations
4029
+ @business_details = business_details
4030
+ @country = country
4031
+ @entity_type = entity_type
4032
+ @individual = individual
4033
+ end
4034
+ end
4035
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
4036
+ attr_accessor :configuration
4037
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
4038
+ attr_accessor :contact_email
4039
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
4040
+ attr_accessor :dashboard
4041
+ # Default values to be used on Account Configurations.
4042
+ attr_accessor :defaults
4043
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
4044
+ attr_accessor :display_name
4045
+ # Information about the company, individual, and business represented by the Account.
4046
+ attr_accessor :identity
4047
+ # Additional fields to include in the response.
4048
+ attr_accessor :include
4049
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
4050
+ attr_accessor :metadata
4051
+
4052
+ def initialize(
4053
+ configuration: nil,
4054
+ contact_email: nil,
4055
+ dashboard: nil,
4056
+ defaults: nil,
4057
+ display_name: nil,
4058
+ identity: nil,
4059
+ include: nil,
4060
+ metadata: nil
4061
+ )
4062
+ @configuration = configuration
4063
+ @contact_email = contact_email
4064
+ @dashboard = dashboard
4065
+ @defaults = defaults
4066
+ @display_name = display_name
4067
+ @identity = identity
4068
+ @include = include
4069
+ @metadata = metadata
4070
+ end
4071
+ end
4072
+
4073
+ # Removes access to the Account and its associated resources.
4074
+ def close(id, params = {}, opts = {})
4075
+ request(
4076
+ method: :post,
4077
+ path: format("/v2/core/accounts/%<id>s/close", { id: CGI.escape(id) }),
4078
+ params: params,
4079
+ opts: opts,
4080
+ base_address: :api
4081
+ )
4082
+ end
4083
+
4084
+ # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
4085
+ def create(params = {}, opts = {})
4086
+ request(
4087
+ method: :post,
4088
+ path: "/v2/core/accounts",
4089
+ params: params,
4090
+ opts: opts,
4091
+ base_address: :api
4092
+ )
4093
+ end
4094
+
4095
+ # Returns a list of Accounts.
4096
+ def list(params = {}, opts = {})
4097
+ request(
4098
+ method: :get,
4099
+ path: "/v2/core/accounts",
4100
+ params: params,
4101
+ opts: opts,
4102
+ base_address: :api
4103
+ )
4104
+ end
4105
+
4106
+ # Retrieves the details of an Account.
4107
+ def retrieve(id, params = {}, opts = {})
4108
+ request(
4109
+ method: :get,
4110
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4111
+ params: params,
4112
+ opts: opts,
4113
+ base_address: :api
4114
+ )
4115
+ end
4116
+
4117
+ # Updates the details of an Account.
4118
+ def update(id, params = {}, opts = {})
4119
+ request(
4120
+ method: :post,
4121
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4122
+ params: params,
4123
+ opts: opts,
4124
+ base_address: :api
4125
+ )
4126
+ end
4127
+ end
4128
+ end
4129
+ end
4130
+ end