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