stripe 18.0.0 → 18.1.0.pre.beta.1

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