stripe 17.1.0 → 17.2.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 (497) 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 +233 -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_money_management_adjustment_created_event.rb +44 -0
  25. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  58. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  60. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  66. data/lib/stripe/object_types.rb +55 -0
  67. data/lib/stripe/params/account_create_params.rb +300 -1
  68. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  69. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  70. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  71. data/lib/stripe/params/account_session_create_params.rb +226 -1
  72. data/lib/stripe/params/account_update_params.rb +262 -0
  73. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  74. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  75. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  76. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  77. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  78. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  79. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  80. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  81. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  82. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  83. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  84. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  85. data/lib/stripe/params/charge_capture_params.rb +715 -0
  86. data/lib/stripe/params/charge_update_params.rb +715 -0
  87. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  88. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  89. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  90. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  91. data/lib/stripe/params/coupon_create_params.rb +17 -1
  92. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  93. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  94. data/lib/stripe/params/dispute_update_params.rb +10 -1
  95. data/lib/stripe/params/external_account_create_params.rb +134 -0
  96. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  97. data/lib/stripe/params/external_account_list_params.rb +25 -0
  98. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  99. data/lib/stripe/params/external_account_update_params.rb +91 -0
  100. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  101. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  102. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  103. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  104. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  105. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  106. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  107. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  109. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  110. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  111. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  112. data/lib/stripe/params/invoice_create_params.rb +112 -2
  113. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  114. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  115. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  116. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  117. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  118. data/lib/stripe/params/invoice_list_params.rb +4 -0
  119. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  120. data/lib/stripe/params/invoice_update_params.rb +108 -2
  121. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  122. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  123. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  124. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  125. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  126. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  127. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  128. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  129. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  130. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  131. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  132. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  133. data/lib/stripe/params/mandate_list_params.rb +39 -0
  134. data/lib/stripe/params/margin_create_params.rb +25 -0
  135. data/lib/stripe/params/margin_list_params.rb +25 -0
  136. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  137. data/lib/stripe/params/margin_update_params.rb +22 -0
  138. data/lib/stripe/params/order_cancel_params.rb +13 -0
  139. data/lib/stripe/params/order_create_params.rb +1124 -0
  140. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  141. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  142. data/lib/stripe/params/order_list_params.rb +25 -0
  143. data/lib/stripe/params/order_reopen_params.rb +13 -0
  144. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  145. data/lib/stripe/params/order_submit_params.rb +16 -0
  146. data/lib/stripe/params/order_update_params.rb +1128 -0
  147. data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
  148. data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
  149. data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
  150. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  151. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
  152. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  153. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  154. data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
  155. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  156. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  157. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  158. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  159. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  160. data/lib/stripe/params/price_update_params.rb +19 -0
  161. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  162. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  163. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  164. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  166. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  167. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  168. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  169. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  170. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  171. data/lib/stripe/params/quote_create_params.rb +805 -3
  172. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  173. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  174. data/lib/stripe/params/quote_list_params.rb +8 -0
  175. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  176. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  177. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  178. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  179. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  180. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  181. data/lib/stripe/params/quote_update_params.rb +813 -4
  182. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  183. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  184. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  185. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  186. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  187. data/lib/stripe/params/subscription_create_params.rb +259 -5
  188. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  189. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  190. data/lib/stripe/params/subscription_list_params.rb +4 -0
  191. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  192. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  193. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  194. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  195. data/lib/stripe/params/subscription_update_params.rb +238 -4
  196. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  197. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  198. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  199. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  200. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  201. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  202. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  203. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  204. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  205. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  206. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  207. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  208. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  209. data/lib/stripe/params/transfer_create_params.rb +4 -0
  210. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  211. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  212. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  213. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  214. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  215. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  216. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  217. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  218. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  219. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  220. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  221. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  222. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  223. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  225. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  226. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  227. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  228. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  229. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  230. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  231. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  232. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  233. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  234. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  235. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  236. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  237. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  238. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  239. data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
  240. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  241. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  242. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  243. data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
  244. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  245. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  246. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  247. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  248. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  249. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  250. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  251. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  252. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  253. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  254. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  255. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  256. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  257. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  258. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  259. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  260. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  261. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  262. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  263. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  264. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  265. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  266. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  269. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  270. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  271. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  272. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  273. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  274. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  276. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  277. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  278. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  279. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  280. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  283. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  284. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  285. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  286. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  288. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  289. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  290. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  291. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  292. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  293. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  295. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  296. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  297. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  298. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  299. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  300. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  301. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  302. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  303. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  304. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  305. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  306. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  307. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  308. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  309. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  310. data/lib/stripe/params.rb +164 -0
  311. data/lib/stripe/resources/account.rb +166 -1
  312. data/lib/stripe/resources/account_notice.rb +94 -0
  313. data/lib/stripe/resources/account_session.rb +81 -0
  314. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  315. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  316. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  317. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  318. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  319. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  320. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  321. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  322. data/lib/stripe/resources/card.rb +2 -0
  323. data/lib/stripe/resources/cash_balance.rb +2 -0
  324. data/lib/stripe/resources/charge.rb +237 -1
  325. data/lib/stripe/resources/checkout/session.rb +154 -4
  326. data/lib/stripe/resources/confirmation_token.rb +155 -0
  327. data/lib/stripe/resources/coupon.rb +26 -1
  328. data/lib/stripe/resources/credit_note.rb +2 -0
  329. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  330. data/lib/stripe/resources/customer.rb +2 -0
  331. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  332. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  333. data/lib/stripe/resources/customer_session.rb +38 -0
  334. data/lib/stripe/resources/discount.rb +2 -0
  335. data/lib/stripe/resources/dispute.rb +22 -0
  336. data/lib/stripe/resources/event.rb +64 -1
  337. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  338. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  339. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  340. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  341. data/lib/stripe/resources/fx_quote.rb +147 -0
  342. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  343. data/lib/stripe/resources/invoice.rb +152 -1
  344. data/lib/stripe/resources/invoice_item.rb +4 -0
  345. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  346. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  347. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  348. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  349. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  350. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  351. data/lib/stripe/resources/line_item.rb +68 -1
  352. data/lib/stripe/resources/mandate.rb +71 -0
  353. data/lib/stripe/resources/margin.rb +64 -0
  354. data/lib/stripe/resources/order.rb +987 -0
  355. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  356. data/lib/stripe/resources/payment_intent.rb +789 -4
  357. data/lib/stripe/resources/payment_method.rb +157 -0
  358. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  359. data/lib/stripe/resources/payment_record.rb +203 -1
  360. data/lib/stripe/resources/price.rb +20 -0
  361. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  362. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  363. data/lib/stripe/resources/promotion_code.rb +2 -0
  364. data/lib/stripe/resources/quote.rb +571 -2
  365. data/lib/stripe/resources/quote_line.rb +521 -0
  366. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  367. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  368. data/lib/stripe/resources/refund.rb +18 -0
  369. data/lib/stripe/resources/setup_attempt.rb +63 -0
  370. data/lib/stripe/resources/setup_intent.rb +132 -1
  371. data/lib/stripe/resources/source.rb +38 -0
  372. data/lib/stripe/resources/subscription.rb +232 -0
  373. data/lib/stripe/resources/subscription_item.rb +20 -1
  374. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  375. data/lib/stripe/resources/tax/association.rb +86 -0
  376. data/lib/stripe/resources/tax/form.rb +264 -0
  377. data/lib/stripe/resources/tax_id.rb +4 -0
  378. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  379. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  380. data/lib/stripe/resources/terminal/reader.rb +8 -0
  381. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  382. data/lib/stripe/resources/transfer.rb +2 -0
  383. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  384. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  385. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  386. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  387. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  388. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  389. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  390. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  391. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  392. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  393. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  394. data/lib/stripe/resources/v2/core/account.rb +3906 -0
  395. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  396. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  397. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  398. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  399. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  400. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  401. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  402. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  403. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  404. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  405. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  406. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  407. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  408. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  409. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  410. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  411. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  412. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  413. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  414. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  415. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  416. data/lib/stripe/resources.rb +112 -0
  417. data/lib/stripe/services/account_notice_service.rb +39 -0
  418. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  419. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  420. data/lib/stripe/services/billing_service.rb +2 -1
  421. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  422. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  423. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  424. data/lib/stripe/services/capital_service.rb +15 -0
  425. data/lib/stripe/services/external_account_service.rb +68 -0
  426. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  427. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  428. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  429. data/lib/stripe/services/financial_connections_service.rb +2 -1
  430. data/lib/stripe/services/fx_quote_service.rb +27 -0
  431. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  432. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  433. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  434. data/lib/stripe/services/issuing_service.rb +5 -1
  435. data/lib/stripe/services/mandate_service.rb +5 -0
  436. data/lib/stripe/services/margin_service.rb +50 -0
  437. data/lib/stripe/services/order_line_item_service.rb +17 -0
  438. data/lib/stripe/services/order_service.rb +78 -0
  439. data/lib/stripe/services/payment_intent_service.rb +37 -0
  440. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  441. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  442. data/lib/stripe/services/privacy_service.rb +13 -0
  443. data/lib/stripe/services/quote_line_service.rb +17 -0
  444. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  445. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  446. data/lib/stripe/services/quote_service.rb +49 -1
  447. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  448. data/lib/stripe/services/subscription_service.rb +11 -0
  449. data/lib/stripe/services/tax/association_service.rb +19 -0
  450. data/lib/stripe/services/tax/form_service.rb +37 -0
  451. data/lib/stripe/services/tax_service.rb +3 -1
  452. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +3 -1
  455. data/lib/stripe/services/v1_services.rb +8 -1
  456. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  457. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  458. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  459. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  462. data/lib/stripe/services/v2/billing_service.rb +5 -1
  463. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  464. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  465. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  466. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  467. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  468. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  469. data/lib/stripe/services/v2/core_service.rb +4 -1
  470. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  471. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  472. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  473. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  474. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  475. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  476. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  477. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  478. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  479. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  480. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  481. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  482. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  483. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  484. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  485. data/lib/stripe/services/v2/payment_service.rb +15 -0
  486. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  487. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  488. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  489. data/lib/stripe/services/v2_services.rb +4 -1
  490. data/lib/stripe/services.rb +58 -0
  491. data/lib/stripe/stripe_configuration.rb +3 -1
  492. data/lib/stripe/stripe_object.rb +1 -1
  493. data/lib/stripe/util.rb +7 -1
  494. data/lib/stripe/version.rb +1 -1
  495. data/lib/stripe.rb +53 -0
  496. data/rbi/stripe.rbi +145086 -86712
  497. metadata +337 -3
@@ -0,0 +1,3906 @@
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 customer’s identified tax location - uses `location_source`. 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 - defaults to 'identity_address'. 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. Uses the `location_source` field.
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 SepaDebitPayments < ::Stripe::StripeObject
1837
+ # Creditor ID for SEPA debit payments.
1838
+ attr_reader :creditor_id
1839
+
1840
+ def self.inner_class_types
1841
+ @inner_class_types = {}
1842
+ end
1843
+
1844
+ def self.field_remappings
1845
+ @field_remappings = {}
1846
+ end
1847
+ end
1848
+
1849
+ class StatementDescriptor < ::Stripe::StripeObject
1850
+ # 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.
1851
+ attr_reader :descriptor
1852
+ # 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.
1853
+ attr_reader :prefix
1854
+
1855
+ def self.inner_class_types
1856
+ @inner_class_types = {}
1857
+ end
1858
+
1859
+ def self.field_remappings
1860
+ @field_remappings = {}
1861
+ end
1862
+ end
1863
+
1864
+ class Support < ::Stripe::StripeObject
1865
+ class Address < ::Stripe::StripeObject
1866
+ # City, district, suburb, town, or village.
1867
+ attr_reader :city
1868
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1869
+ attr_reader :country
1870
+ # Address line 1 (e.g., street, PO Box, or company name).
1871
+ attr_reader :line1
1872
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1873
+ attr_reader :line2
1874
+ # ZIP or postal code.
1875
+ attr_reader :postal_code
1876
+ # State, county, province, or region.
1877
+ attr_reader :state
1878
+ # Town or cho-me.
1879
+ attr_reader :town
1880
+
1881
+ def self.inner_class_types
1882
+ @inner_class_types = {}
1883
+ end
1884
+
1885
+ def self.field_remappings
1886
+ @field_remappings = {}
1887
+ end
1888
+ end
1889
+ # A publicly available mailing address for sending support issues to.
1890
+ attr_reader :address
1891
+ # A publicly available email address for sending support issues to.
1892
+ attr_reader :email
1893
+ # A publicly available phone number to call with support issues.
1894
+ attr_reader :phone
1895
+ # A publicly available website for handling support issues.
1896
+ attr_reader :url
1897
+
1898
+ def self.inner_class_types
1899
+ @inner_class_types = { address: Address }
1900
+ end
1901
+
1902
+ def self.field_remappings
1903
+ @field_remappings = {}
1904
+ end
1905
+ end
1906
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1907
+ attr_reader :applied
1908
+ # Settings used for Bacs debit payments.
1909
+ attr_reader :bacs_debit_payments
1910
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
1911
+ attr_reader :branding
1912
+ # Capabilities that have been requested on the Merchant Configuration.
1913
+ attr_reader :capabilities
1914
+ # Card payments settings.
1915
+ attr_reader :card_payments
1916
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
1917
+ attr_reader :mcc
1918
+ # Settings used for SEPA debit payments.
1919
+ attr_reader :sepa_debit_payments
1920
+ # Statement descriptor.
1921
+ attr_reader :statement_descriptor
1922
+ # Publicly available contact information for sending support issues to.
1923
+ attr_reader :support
1924
+
1925
+ def self.inner_class_types
1926
+ @inner_class_types = {
1927
+ bacs_debit_payments: BacsDebitPayments,
1928
+ branding: Branding,
1929
+ capabilities: Capabilities,
1930
+ card_payments: CardPayments,
1931
+ sepa_debit_payments: SepaDebitPayments,
1932
+ statement_descriptor: StatementDescriptor,
1933
+ support: Support,
1934
+ }
1935
+ end
1936
+
1937
+ def self.field_remappings
1938
+ @field_remappings = {}
1939
+ end
1940
+ end
1941
+
1942
+ class Recipient < ::Stripe::StripeObject
1943
+ class Capabilities < ::Stripe::StripeObject
1944
+ class BankAccounts < ::Stripe::StripeObject
1945
+ class Local < ::Stripe::StripeObject
1946
+ class StatusDetail < ::Stripe::StripeObject
1947
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1948
+ attr_reader :code
1949
+ # Machine-readable code explaining how to make the Capability active.
1950
+ attr_reader :resolution
1951
+
1952
+ def self.inner_class_types
1953
+ @inner_class_types = {}
1954
+ end
1955
+
1956
+ def self.field_remappings
1957
+ @field_remappings = {}
1958
+ end
1959
+ end
1960
+ # Whether the Capability has been requested.
1961
+ attr_reader :requested
1962
+ # The status of the Capability.
1963
+ attr_reader :status
1964
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1965
+ attr_reader :status_details
1966
+
1967
+ def self.inner_class_types
1968
+ @inner_class_types = { status_details: StatusDetail }
1969
+ end
1970
+
1971
+ def self.field_remappings
1972
+ @field_remappings = {}
1973
+ end
1974
+ end
1975
+
1976
+ class Wire < ::Stripe::StripeObject
1977
+ class StatusDetail < ::Stripe::StripeObject
1978
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1979
+ attr_reader :code
1980
+ # Machine-readable code explaining how to make the Capability active.
1981
+ attr_reader :resolution
1982
+
1983
+ def self.inner_class_types
1984
+ @inner_class_types = {}
1985
+ end
1986
+
1987
+ def self.field_remappings
1988
+ @field_remappings = {}
1989
+ end
1990
+ end
1991
+ # Whether the Capability has been requested.
1992
+ attr_reader :requested
1993
+ # The status of the Capability.
1994
+ attr_reader :status
1995
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1996
+ attr_reader :status_details
1997
+
1998
+ def self.inner_class_types
1999
+ @inner_class_types = { status_details: StatusDetail }
2000
+ end
2001
+
2002
+ def self.field_remappings
2003
+ @field_remappings = {}
2004
+ end
2005
+ end
2006
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
2007
+ attr_reader :local
2008
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
2009
+ attr_reader :wire
2010
+
2011
+ def self.inner_class_types
2012
+ @inner_class_types = { local: Local, wire: Wire }
2013
+ end
2014
+
2015
+ def self.field_remappings
2016
+ @field_remappings = {}
2017
+ end
2018
+ end
2019
+
2020
+ class Cards < ::Stripe::StripeObject
2021
+ class StatusDetail < ::Stripe::StripeObject
2022
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2023
+ attr_reader :code
2024
+ # Machine-readable code explaining how to make the Capability active.
2025
+ attr_reader :resolution
2026
+
2027
+ def self.inner_class_types
2028
+ @inner_class_types = {}
2029
+ end
2030
+
2031
+ def self.field_remappings
2032
+ @field_remappings = {}
2033
+ end
2034
+ end
2035
+ # Whether the Capability has been requested.
2036
+ attr_reader :requested
2037
+ # The status of the Capability.
2038
+ attr_reader :status
2039
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2040
+ attr_reader :status_details
2041
+
2042
+ def self.inner_class_types
2043
+ @inner_class_types = { status_details: StatusDetail }
2044
+ end
2045
+
2046
+ def self.field_remappings
2047
+ @field_remappings = {}
2048
+ end
2049
+ end
2050
+
2051
+ class StripeBalance < ::Stripe::StripeObject
2052
+ class Payouts < ::Stripe::StripeObject
2053
+ class StatusDetail < ::Stripe::StripeObject
2054
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2055
+ attr_reader :code
2056
+ # Machine-readable code explaining how to make the Capability active.
2057
+ attr_reader :resolution
2058
+
2059
+ def self.inner_class_types
2060
+ @inner_class_types = {}
2061
+ end
2062
+
2063
+ def self.field_remappings
2064
+ @field_remappings = {}
2065
+ end
2066
+ end
2067
+ # Whether the Capability has been requested.
2068
+ attr_reader :requested
2069
+ # The status of the Capability.
2070
+ attr_reader :status
2071
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2072
+ attr_reader :status_details
2073
+
2074
+ def self.inner_class_types
2075
+ @inner_class_types = { status_details: StatusDetail }
2076
+ end
2077
+
2078
+ def self.field_remappings
2079
+ @field_remappings = {}
2080
+ end
2081
+ end
2082
+
2083
+ class StripeTransfers < ::Stripe::StripeObject
2084
+ class StatusDetail < ::Stripe::StripeObject
2085
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2086
+ attr_reader :code
2087
+ # Machine-readable code explaining how to make the Capability active.
2088
+ attr_reader :resolution
2089
+
2090
+ def self.inner_class_types
2091
+ @inner_class_types = {}
2092
+ end
2093
+
2094
+ def self.field_remappings
2095
+ @field_remappings = {}
2096
+ end
2097
+ end
2098
+ # Whether the Capability has been requested.
2099
+ attr_reader :requested
2100
+ # The status of the Capability.
2101
+ attr_reader :status
2102
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2103
+ attr_reader :status_details
2104
+
2105
+ def self.inner_class_types
2106
+ @inner_class_types = { status_details: StatusDetail }
2107
+ end
2108
+
2109
+ def self.field_remappings
2110
+ @field_remappings = {}
2111
+ end
2112
+ end
2113
+ # Allows the account to do payouts using their Stripe Balance (/v1/balance).
2114
+ attr_reader :payouts
2115
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
2116
+ attr_reader :stripe_transfers
2117
+
2118
+ def self.inner_class_types
2119
+ @inner_class_types = { payouts: Payouts, stripe_transfers: StripeTransfers }
2120
+ end
2121
+
2122
+ def self.field_remappings
2123
+ @field_remappings = {}
2124
+ end
2125
+ end
2126
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
2127
+ attr_reader :bank_accounts
2128
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
2129
+ attr_reader :cards
2130
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
2131
+ attr_reader :stripe_balance
2132
+
2133
+ def self.inner_class_types
2134
+ @inner_class_types = {
2135
+ bank_accounts: BankAccounts,
2136
+ cards: Cards,
2137
+ stripe_balance: StripeBalance,
2138
+ }
2139
+ end
2140
+
2141
+ def self.field_remappings
2142
+ @field_remappings = {}
2143
+ end
2144
+ end
2145
+
2146
+ class DefaultOutboundDestination < ::Stripe::StripeObject
2147
+ # The payout method ID of the default outbound destination.
2148
+ attr_reader :id
2149
+ # Closed Enum. The payout method type of the default outbound destination.
2150
+ attr_reader :type
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
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
2161
+ attr_reader :applied
2162
+ # Capabilities that have been requested on the Recipient Configuration.
2163
+ attr_reader :capabilities
2164
+ # 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.
2165
+ attr_reader :default_outbound_destination
2166
+
2167
+ def self.inner_class_types
2168
+ @inner_class_types = {
2169
+ capabilities: Capabilities,
2170
+ default_outbound_destination: DefaultOutboundDestination,
2171
+ }
2172
+ end
2173
+
2174
+ def self.field_remappings
2175
+ @field_remappings = {}
2176
+ end
2177
+ end
2178
+
2179
+ class Storer < ::Stripe::StripeObject
2180
+ class Capabilities < ::Stripe::StripeObject
2181
+ class FinancialAddresses < ::Stripe::StripeObject
2182
+ class BankAccounts < ::Stripe::StripeObject
2183
+ class StatusDetail < ::Stripe::StripeObject
2184
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2185
+ attr_reader :code
2186
+ # Machine-readable code explaining how to make the Capability active.
2187
+ attr_reader :resolution
2188
+
2189
+ def self.inner_class_types
2190
+ @inner_class_types = {}
2191
+ end
2192
+
2193
+ def self.field_remappings
2194
+ @field_remappings = {}
2195
+ end
2196
+ end
2197
+ # Whether the Capability has been requested.
2198
+ attr_reader :requested
2199
+ # The status of the Capability.
2200
+ attr_reader :status
2201
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2202
+ attr_reader :status_details
2203
+
2204
+ def self.inner_class_types
2205
+ @inner_class_types = { status_details: StatusDetail }
2206
+ end
2207
+
2208
+ def self.field_remappings
2209
+ @field_remappings = {}
2210
+ end
2211
+ end
2212
+ # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount.
2213
+ attr_reader :bank_accounts
2214
+
2215
+ def self.inner_class_types
2216
+ @inner_class_types = { bank_accounts: BankAccounts }
2217
+ end
2218
+
2219
+ def self.field_remappings
2220
+ @field_remappings = {}
2221
+ end
2222
+ end
2223
+
2224
+ class HoldsCurrencies < ::Stripe::StripeObject
2225
+ class Gbp < ::Stripe::StripeObject
2226
+ class StatusDetail < ::Stripe::StripeObject
2227
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2228
+ attr_reader :code
2229
+ # Machine-readable code explaining how to make the Capability active.
2230
+ attr_reader :resolution
2231
+
2232
+ def self.inner_class_types
2233
+ @inner_class_types = {}
2234
+ end
2235
+
2236
+ def self.field_remappings
2237
+ @field_remappings = {}
2238
+ end
2239
+ end
2240
+ # Whether the Capability has been requested.
2241
+ attr_reader :requested
2242
+ # The status of the Capability.
2243
+ attr_reader :status
2244
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2245
+ attr_reader :status_details
2246
+
2247
+ def self.inner_class_types
2248
+ @inner_class_types = { status_details: StatusDetail }
2249
+ end
2250
+
2251
+ def self.field_remappings
2252
+ @field_remappings = {}
2253
+ end
2254
+ end
2255
+
2256
+ class Usd < ::Stripe::StripeObject
2257
+ class StatusDetail < ::Stripe::StripeObject
2258
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2259
+ attr_reader :code
2260
+ # Machine-readable code explaining how to make the Capability active.
2261
+ attr_reader :resolution
2262
+
2263
+ def self.inner_class_types
2264
+ @inner_class_types = {}
2265
+ end
2266
+
2267
+ def self.field_remappings
2268
+ @field_remappings = {}
2269
+ end
2270
+ end
2271
+ # Whether the Capability has been requested.
2272
+ attr_reader :requested
2273
+ # The status of the Capability.
2274
+ attr_reader :status
2275
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2276
+ attr_reader :status_details
2277
+
2278
+ def self.inner_class_types
2279
+ @inner_class_types = { status_details: StatusDetail }
2280
+ end
2281
+
2282
+ def self.field_remappings
2283
+ @field_remappings = {}
2284
+ end
2285
+ end
2286
+ # Can hold storage-type funds on Stripe in GBP.
2287
+ attr_reader :gbp
2288
+ # Can hold storage-type funds on Stripe in USD.
2289
+ attr_reader :usd
2290
+
2291
+ def self.inner_class_types
2292
+ @inner_class_types = { gbp: Gbp, usd: Usd }
2293
+ end
2294
+
2295
+ def self.field_remappings
2296
+ @field_remappings = {}
2297
+ end
2298
+ end
2299
+
2300
+ class InboundTransfers < ::Stripe::StripeObject
2301
+ class BankAccounts < ::Stripe::StripeObject
2302
+ class StatusDetail < ::Stripe::StripeObject
2303
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2304
+ attr_reader :code
2305
+ # Machine-readable code explaining how to make the Capability active.
2306
+ attr_reader :resolution
2307
+
2308
+ def self.inner_class_types
2309
+ @inner_class_types = {}
2310
+ end
2311
+
2312
+ def self.field_remappings
2313
+ @field_remappings = {}
2314
+ end
2315
+ end
2316
+ # Whether the Capability has been requested.
2317
+ attr_reader :requested
2318
+ # The status of the Capability.
2319
+ attr_reader :status
2320
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2321
+ attr_reader :status_details
2322
+
2323
+ def self.inner_class_types
2324
+ @inner_class_types = { status_details: StatusDetail }
2325
+ end
2326
+
2327
+ def self.field_remappings
2328
+ @field_remappings = {}
2329
+ end
2330
+ end
2331
+ # Can pull funds from an external bank account, owned by yourself, to a FinancialAccount.
2332
+ attr_reader :bank_accounts
2333
+
2334
+ def self.inner_class_types
2335
+ @inner_class_types = { bank_accounts: BankAccounts }
2336
+ end
2337
+
2338
+ def self.field_remappings
2339
+ @field_remappings = {}
2340
+ end
2341
+ end
2342
+
2343
+ class OutboundPayments < ::Stripe::StripeObject
2344
+ class BankAccounts < ::Stripe::StripeObject
2345
+ class StatusDetail < ::Stripe::StripeObject
2346
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2347
+ attr_reader :code
2348
+ # Machine-readable code explaining how to make the Capability active.
2349
+ attr_reader :resolution
2350
+
2351
+ def self.inner_class_types
2352
+ @inner_class_types = {}
2353
+ end
2354
+
2355
+ def self.field_remappings
2356
+ @field_remappings = {}
2357
+ end
2358
+ end
2359
+ # Whether the Capability has been requested.
2360
+ attr_reader :requested
2361
+ # The status of the Capability.
2362
+ attr_reader :status
2363
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2364
+ attr_reader :status_details
2365
+
2366
+ def self.inner_class_types
2367
+ @inner_class_types = { status_details: StatusDetail }
2368
+ end
2369
+
2370
+ def self.field_remappings
2371
+ @field_remappings = {}
2372
+ end
2373
+ end
2374
+
2375
+ class Cards < ::Stripe::StripeObject
2376
+ class StatusDetail < ::Stripe::StripeObject
2377
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2378
+ attr_reader :code
2379
+ # Machine-readable code explaining how to make the Capability active.
2380
+ attr_reader :resolution
2381
+
2382
+ def self.inner_class_types
2383
+ @inner_class_types = {}
2384
+ end
2385
+
2386
+ def self.field_remappings
2387
+ @field_remappings = {}
2388
+ end
2389
+ end
2390
+ # Whether the Capability has been requested.
2391
+ attr_reader :requested
2392
+ # The status of the Capability.
2393
+ attr_reader :status
2394
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2395
+ attr_reader :status_details
2396
+
2397
+ def self.inner_class_types
2398
+ @inner_class_types = { status_details: StatusDetail }
2399
+ end
2400
+
2401
+ def self.field_remappings
2402
+ @field_remappings = {}
2403
+ end
2404
+ end
2405
+
2406
+ class FinancialAccounts < ::Stripe::StripeObject
2407
+ class StatusDetail < ::Stripe::StripeObject
2408
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2409
+ attr_reader :code
2410
+ # Machine-readable code explaining how to make the Capability active.
2411
+ attr_reader :resolution
2412
+
2413
+ def self.inner_class_types
2414
+ @inner_class_types = {}
2415
+ end
2416
+
2417
+ def self.field_remappings
2418
+ @field_remappings = {}
2419
+ end
2420
+ end
2421
+ # Whether the Capability has been requested.
2422
+ attr_reader :requested
2423
+ # The status of the Capability.
2424
+ attr_reader :status
2425
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2426
+ attr_reader :status_details
2427
+
2428
+ def self.inner_class_types
2429
+ @inner_class_types = { status_details: StatusDetail }
2430
+ end
2431
+
2432
+ def self.field_remappings
2433
+ @field_remappings = {}
2434
+ end
2435
+ end
2436
+ # Can send funds from a FinancialAccount to a bank account, owned by someone else.
2437
+ attr_reader :bank_accounts
2438
+ # Can send funds from a FinancialAccount to a debit card, owned by someone else.
2439
+ attr_reader :cards
2440
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else.
2441
+ attr_reader :financial_accounts
2442
+
2443
+ def self.inner_class_types
2444
+ @inner_class_types = {
2445
+ bank_accounts: BankAccounts,
2446
+ cards: Cards,
2447
+ financial_accounts: FinancialAccounts,
2448
+ }
2449
+ end
2450
+
2451
+ def self.field_remappings
2452
+ @field_remappings = {}
2453
+ end
2454
+ end
2455
+
2456
+ class OutboundTransfers < ::Stripe::StripeObject
2457
+ class BankAccounts < ::Stripe::StripeObject
2458
+ class StatusDetail < ::Stripe::StripeObject
2459
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2460
+ attr_reader :code
2461
+ # Machine-readable code explaining how to make the Capability active.
2462
+ attr_reader :resolution
2463
+
2464
+ def self.inner_class_types
2465
+ @inner_class_types = {}
2466
+ end
2467
+
2468
+ def self.field_remappings
2469
+ @field_remappings = {}
2470
+ end
2471
+ end
2472
+ # Whether the Capability has been requested.
2473
+ attr_reader :requested
2474
+ # The status of the Capability.
2475
+ attr_reader :status
2476
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2477
+ attr_reader :status_details
2478
+
2479
+ def self.inner_class_types
2480
+ @inner_class_types = { status_details: StatusDetail }
2481
+ end
2482
+
2483
+ def self.field_remappings
2484
+ @field_remappings = {}
2485
+ end
2486
+ end
2487
+
2488
+ class FinancialAccounts < ::Stripe::StripeObject
2489
+ class StatusDetail < ::Stripe::StripeObject
2490
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2491
+ attr_reader :code
2492
+ # Machine-readable code explaining how to make the Capability active.
2493
+ attr_reader :resolution
2494
+
2495
+ def self.inner_class_types
2496
+ @inner_class_types = {}
2497
+ end
2498
+
2499
+ def self.field_remappings
2500
+ @field_remappings = {}
2501
+ end
2502
+ end
2503
+ # Whether the Capability has been requested.
2504
+ attr_reader :requested
2505
+ # The status of the Capability.
2506
+ attr_reader :status
2507
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2508
+ attr_reader :status_details
2509
+
2510
+ def self.inner_class_types
2511
+ @inner_class_types = { status_details: StatusDetail }
2512
+ end
2513
+
2514
+ def self.field_remappings
2515
+ @field_remappings = {}
2516
+ end
2517
+ end
2518
+ # Can send funds from a FinancialAccount, to a bank account, owned by yourself.
2519
+ attr_reader :bank_accounts
2520
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
2521
+ attr_reader :financial_accounts
2522
+
2523
+ def self.inner_class_types
2524
+ @inner_class_types = {
2525
+ bank_accounts: BankAccounts,
2526
+ financial_accounts: FinancialAccounts,
2527
+ }
2528
+ end
2529
+
2530
+ def self.field_remappings
2531
+ @field_remappings = {}
2532
+ end
2533
+ end
2534
+ # Can provision a financial address to credit/debit a FinancialAccount.
2535
+ attr_reader :financial_addresses
2536
+ # Can hold storage-type funds on Stripe.
2537
+ attr_reader :holds_currencies
2538
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
2539
+ attr_reader :inbound_transfers
2540
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
2541
+ attr_reader :outbound_payments
2542
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
2543
+ attr_reader :outbound_transfers
2544
+
2545
+ def self.inner_class_types
2546
+ @inner_class_types = {
2547
+ financial_addresses: FinancialAddresses,
2548
+ holds_currencies: HoldsCurrencies,
2549
+ inbound_transfers: InboundTransfers,
2550
+ outbound_payments: OutboundPayments,
2551
+ outbound_transfers: OutboundTransfers,
2552
+ }
2553
+ end
2554
+
2555
+ def self.field_remappings
2556
+ @field_remappings = {}
2557
+ end
2558
+ end
2559
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
2560
+ attr_reader :applied
2561
+ # Capabilities that have been requested on the Storer Configuration.
2562
+ attr_reader :capabilities
2563
+
2564
+ def self.inner_class_types
2565
+ @inner_class_types = { capabilities: Capabilities }
2566
+ end
2567
+
2568
+ def self.field_remappings
2569
+ @field_remappings = {}
2570
+ end
2571
+ end
2572
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
2573
+ attr_reader :customer
2574
+ # 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.
2575
+ attr_reader :merchant
2576
+ # The Recipient Configuration allows the Account to receive funds.
2577
+ attr_reader :recipient
2578
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
2579
+ attr_reader :storer
2580
+
2581
+ def self.inner_class_types
2582
+ @inner_class_types = {
2583
+ customer: Customer,
2584
+ merchant: Merchant,
2585
+ recipient: Recipient,
2586
+ storer: Storer,
2587
+ }
2588
+ end
2589
+
2590
+ def self.field_remappings
2591
+ @field_remappings = {}
2592
+ end
2593
+ end
2594
+
2595
+ class Defaults < ::Stripe::StripeObject
2596
+ class Profile < ::Stripe::StripeObject
2597
+ # The business's publicly-available website.
2598
+ attr_reader :business_url
2599
+ # The company’s legal name.
2600
+ attr_reader :doing_business_as
2601
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
2602
+ attr_reader :product_description
2603
+
2604
+ def self.inner_class_types
2605
+ @inner_class_types = {}
2606
+ end
2607
+
2608
+ def self.field_remappings
2609
+ @field_remappings = {}
2610
+ end
2611
+ end
2612
+
2613
+ class Responsibilities < ::Stripe::StripeObject
2614
+ # A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this Account.
2615
+ attr_reader :fees_collector
2616
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
2617
+ attr_reader :losses_collector
2618
+
2619
+ def self.inner_class_types
2620
+ @inner_class_types = {}
2621
+ end
2622
+
2623
+ def self.field_remappings
2624
+ @field_remappings = {}
2625
+ end
2626
+ end
2627
+ # 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).
2628
+ attr_reader :currency
2629
+ # The Account's preferred locales (languages), ordered by preference.
2630
+ attr_reader :locales
2631
+ # Account profile information.
2632
+ attr_reader :profile
2633
+ # Default responsibilities held by either Stripe or the platform.
2634
+ attr_reader :responsibilities
2635
+
2636
+ def self.inner_class_types
2637
+ @inner_class_types = { profile: Profile, responsibilities: Responsibilities }
2638
+ end
2639
+
2640
+ def self.field_remappings
2641
+ @field_remappings = {}
2642
+ end
2643
+ end
2644
+
2645
+ class Identity < ::Stripe::StripeObject
2646
+ class Attestations < ::Stripe::StripeObject
2647
+ class DirectorshipDeclaration < ::Stripe::StripeObject
2648
+ # 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.
2649
+ attr_reader :date
2650
+ # The IP address from which the director attestation was made.
2651
+ attr_reader :ip
2652
+ # The user agent of the browser from which the director attestation was made.
2653
+ attr_reader :user_agent
2654
+
2655
+ def self.inner_class_types
2656
+ @inner_class_types = {}
2657
+ end
2658
+
2659
+ def self.field_remappings
2660
+ @field_remappings = {}
2661
+ end
2662
+ end
2663
+
2664
+ class OwnershipDeclaration < ::Stripe::StripeObject
2665
+ # 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.
2666
+ attr_reader :date
2667
+ # The IP address from which the beneficial owner attestation was made.
2668
+ attr_reader :ip
2669
+ # The user agent of the browser from which the beneficial owner attestation was made.
2670
+ attr_reader :user_agent
2671
+
2672
+ def self.inner_class_types
2673
+ @inner_class_types = {}
2674
+ end
2675
+
2676
+ def self.field_remappings
2677
+ @field_remappings = {}
2678
+ end
2679
+ end
2680
+
2681
+ class PersonsProvided < ::Stripe::StripeObject
2682
+ # 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).
2683
+ attr_reader :directors
2684
+ # 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).
2685
+ attr_reader :executives
2686
+ # 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).
2687
+ attr_reader :owners
2688
+ # Reason for why the company is exempt from providing ownership information.
2689
+ attr_reader :ownership_exemption_reason
2690
+
2691
+ def self.inner_class_types
2692
+ @inner_class_types = {}
2693
+ end
2694
+
2695
+ def self.field_remappings
2696
+ @field_remappings = {}
2697
+ end
2698
+ end
2699
+
2700
+ class RepresentativeDeclaration < ::Stripe::StripeObject
2701
+ # 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.
2702
+ attr_reader :date
2703
+ # The IP address from which the representative attestation was made.
2704
+ attr_reader :ip
2705
+ # The user agent of the browser from which the representative attestation was made.
2706
+ attr_reader :user_agent
2707
+
2708
+ def self.inner_class_types
2709
+ @inner_class_types = {}
2710
+ end
2711
+
2712
+ def self.field_remappings
2713
+ @field_remappings = {}
2714
+ end
2715
+ end
2716
+
2717
+ class TermsOfService < ::Stripe::StripeObject
2718
+ class Account < ::Stripe::StripeObject
2719
+ # 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.
2720
+ attr_reader :date
2721
+ # The IP address from which the Account's representative accepted the terms of service.
2722
+ attr_reader :ip
2723
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2724
+ attr_reader :user_agent
2725
+
2726
+ def self.inner_class_types
2727
+ @inner_class_types = {}
2728
+ end
2729
+
2730
+ def self.field_remappings
2731
+ @field_remappings = {}
2732
+ end
2733
+ end
2734
+
2735
+ class Storer < ::Stripe::StripeObject
2736
+ # 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.
2737
+ attr_reader :date
2738
+ # The IP address from which the Account's representative accepted the terms of service.
2739
+ attr_reader :ip
2740
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2741
+ attr_reader :user_agent
2742
+
2743
+ def self.inner_class_types
2744
+ @inner_class_types = {}
2745
+ end
2746
+
2747
+ def self.field_remappings
2748
+ @field_remappings = {}
2749
+ end
2750
+ end
2751
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
2752
+ attr_reader :account
2753
+ # Details on the Account's acceptance of Treasury-specific terms of service.
2754
+ attr_reader :storer
2755
+
2756
+ def self.inner_class_types
2757
+ @inner_class_types = { account: Account, storer: Storer }
2758
+ end
2759
+
2760
+ def self.field_remappings
2761
+ @field_remappings = {}
2762
+ end
2763
+ end
2764
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
2765
+ attr_reader :directorship_declaration
2766
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
2767
+ attr_reader :ownership_declaration
2768
+ # Attestation that all Persons with a specific Relationship value have been provided.
2769
+ attr_reader :persons_provided
2770
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
2771
+ attr_reader :representative_declaration
2772
+ # Attestations of accepted terms of service agreements.
2773
+ attr_reader :terms_of_service
2774
+
2775
+ def self.inner_class_types
2776
+ @inner_class_types = {
2777
+ directorship_declaration: DirectorshipDeclaration,
2778
+ ownership_declaration: OwnershipDeclaration,
2779
+ persons_provided: PersonsProvided,
2780
+ representative_declaration: RepresentativeDeclaration,
2781
+ terms_of_service: TermsOfService,
2782
+ }
2783
+ end
2784
+
2785
+ def self.field_remappings
2786
+ @field_remappings = {}
2787
+ end
2788
+ end
2789
+
2790
+ class BusinessDetails < ::Stripe::StripeObject
2791
+ class Address < ::Stripe::StripeObject
2792
+ # City, district, suburb, town, or village.
2793
+ attr_reader :city
2794
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2795
+ attr_reader :country
2796
+ # Address line 1 (e.g., street, PO Box, or company name).
2797
+ attr_reader :line1
2798
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2799
+ attr_reader :line2
2800
+ # ZIP or postal code.
2801
+ attr_reader :postal_code
2802
+ # State, county, province, or region.
2803
+ attr_reader :state
2804
+ # Town or cho-me.
2805
+ attr_reader :town
2806
+
2807
+ def self.inner_class_types
2808
+ @inner_class_types = {}
2809
+ end
2810
+
2811
+ def self.field_remappings
2812
+ @field_remappings = {}
2813
+ end
2814
+ end
2815
+
2816
+ class AnnualRevenue < ::Stripe::StripeObject
2817
+ # A non-negative integer representing the amount in the smallest currency unit.
2818
+ attr_reader :amount
2819
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2820
+ attr_reader :fiscal_year_end
2821
+
2822
+ def self.inner_class_types
2823
+ @inner_class_types = {}
2824
+ end
2825
+
2826
+ def self.field_remappings
2827
+ @field_remappings = {}
2828
+ end
2829
+ end
2830
+
2831
+ class Documents < ::Stripe::StripeObject
2832
+ class BankAccountOwnershipVerification < ::Stripe::StripeObject
2833
+ # 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`.
2834
+ attr_reader :files
2835
+ # The format of the document. Currently supports `files` only.
2836
+ attr_reader :type
2837
+
2838
+ def self.inner_class_types
2839
+ @inner_class_types = {}
2840
+ end
2841
+
2842
+ def self.field_remappings
2843
+ @field_remappings = {}
2844
+ end
2845
+ end
2846
+
2847
+ class CompanyLicense < ::Stripe::StripeObject
2848
+ # 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`.
2849
+ attr_reader :files
2850
+ # The format of the document. Currently supports `files` only.
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 CompanyMemorandumOfAssociation < ::Stripe::StripeObject
2863
+ # 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`.
2864
+ attr_reader :files
2865
+ # The format of the document. Currently supports `files` only.
2866
+ attr_reader :type
2867
+
2868
+ def self.inner_class_types
2869
+ @inner_class_types = {}
2870
+ end
2871
+
2872
+ def self.field_remappings
2873
+ @field_remappings = {}
2874
+ end
2875
+ end
2876
+
2877
+ class CompanyMinisterialDecree < ::Stripe::StripeObject
2878
+ # 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`.
2879
+ attr_reader :files
2880
+ # The format of the document. Currently supports `files` only.
2881
+ attr_reader :type
2882
+
2883
+ def self.inner_class_types
2884
+ @inner_class_types = {}
2885
+ end
2886
+
2887
+ def self.field_remappings
2888
+ @field_remappings = {}
2889
+ end
2890
+ end
2891
+
2892
+ class CompanyRegistrationVerification < ::Stripe::StripeObject
2893
+ # 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`.
2894
+ attr_reader :files
2895
+ # The format of the document. Currently supports `files` only.
2896
+ attr_reader :type
2897
+
2898
+ def self.inner_class_types
2899
+ @inner_class_types = {}
2900
+ end
2901
+
2902
+ def self.field_remappings
2903
+ @field_remappings = {}
2904
+ end
2905
+ end
2906
+
2907
+ class CompanyTaxIdVerification < ::Stripe::StripeObject
2908
+ # 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`.
2909
+ attr_reader :files
2910
+ # The format of the document. Currently supports `files` only.
2911
+ attr_reader :type
2912
+
2913
+ def self.inner_class_types
2914
+ @inner_class_types = {}
2915
+ end
2916
+
2917
+ def self.field_remappings
2918
+ @field_remappings = {}
2919
+ end
2920
+ end
2921
+
2922
+ class PrimaryVerification < ::Stripe::StripeObject
2923
+ class FrontBack < ::Stripe::StripeObject
2924
+ # 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.
2925
+ attr_reader :back
2926
+ # 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.
2927
+ attr_reader :front
2928
+
2929
+ def self.inner_class_types
2930
+ @inner_class_types = {}
2931
+ end
2932
+
2933
+ def self.field_remappings
2934
+ @field_remappings = {}
2935
+ end
2936
+ end
2937
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
2938
+ attr_reader :front_back
2939
+ # The format of the verification document. Currently supports `front_back` only.
2940
+ attr_reader :type
2941
+
2942
+ def self.inner_class_types
2943
+ @inner_class_types = { front_back: FrontBack }
2944
+ end
2945
+
2946
+ def self.field_remappings
2947
+ @field_remappings = {}
2948
+ end
2949
+ end
2950
+
2951
+ class ProofOfAddress < ::Stripe::StripeObject
2952
+ # 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`.
2953
+ attr_reader :files
2954
+ # The format of the document. Currently supports `files` only.
2955
+ attr_reader :type
2956
+
2957
+ def self.inner_class_types
2958
+ @inner_class_types = {}
2959
+ end
2960
+
2961
+ def self.field_remappings
2962
+ @field_remappings = {}
2963
+ end
2964
+ end
2965
+
2966
+ class ProofOfRegistration < ::Stripe::StripeObject
2967
+ # 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`.
2968
+ attr_reader :files
2969
+ # The format of the document. Currently supports `files` only.
2970
+ attr_reader :type
2971
+
2972
+ def self.inner_class_types
2973
+ @inner_class_types = {}
2974
+ end
2975
+
2976
+ def self.field_remappings
2977
+ @field_remappings = {}
2978
+ end
2979
+ end
2980
+
2981
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::StripeObject
2982
+ # 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`.
2983
+ attr_reader :files
2984
+ # The format of the document. Currently supports `files` only.
2985
+ attr_reader :type
2986
+
2987
+ def self.inner_class_types
2988
+ @inner_class_types = {}
2989
+ end
2990
+
2991
+ def self.field_remappings
2992
+ @field_remappings = {}
2993
+ end
2994
+ end
2995
+ # 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.
2996
+ attr_reader :bank_account_ownership_verification
2997
+ # One or more documents that demonstrate proof of a company’s license to operate.
2998
+ attr_reader :company_license
2999
+ # One or more documents showing the company’s Memorandum of Association.
3000
+ attr_reader :company_memorandum_of_association
3001
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
3002
+ attr_reader :company_ministerial_decree
3003
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
3004
+ attr_reader :company_registration_verification
3005
+ # One or more documents that demonstrate proof of a company’s tax ID.
3006
+ attr_reader :company_tax_id_verification
3007
+ # A document verifying the business.
3008
+ attr_reader :primary_verification
3009
+ # One or more documents that demonstrate proof of address.
3010
+ attr_reader :proof_of_address
3011
+ # One or more documents showing the company’s proof of registration with the national business registry.
3012
+ attr_reader :proof_of_registration
3013
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3014
+ attr_reader :proof_of_ultimate_beneficial_ownership
3015
+
3016
+ def self.inner_class_types
3017
+ @inner_class_types = {
3018
+ bank_account_ownership_verification: BankAccountOwnershipVerification,
3019
+ company_license: CompanyLicense,
3020
+ company_memorandum_of_association: CompanyMemorandumOfAssociation,
3021
+ company_ministerial_decree: CompanyMinisterialDecree,
3022
+ company_registration_verification: CompanyRegistrationVerification,
3023
+ company_tax_id_verification: CompanyTaxIdVerification,
3024
+ primary_verification: PrimaryVerification,
3025
+ proof_of_address: ProofOfAddress,
3026
+ proof_of_registration: ProofOfRegistration,
3027
+ proof_of_ultimate_beneficial_ownership: ProofOfUltimateBeneficialOwnership,
3028
+ }
3029
+ end
3030
+
3031
+ def self.field_remappings
3032
+ @field_remappings = {}
3033
+ end
3034
+ end
3035
+
3036
+ class IdNumber < ::Stripe::StripeObject
3037
+ # The registrar of the ID number (Only valid for DE ID number types).
3038
+ attr_reader :registrar
3039
+ # Open Enum. The ID number type of a business entity.
3040
+ attr_reader :type
3041
+
3042
+ def self.inner_class_types
3043
+ @inner_class_types = {}
3044
+ end
3045
+
3046
+ def self.field_remappings
3047
+ @field_remappings = {}
3048
+ end
3049
+ end
3050
+
3051
+ class MonthlyEstimatedRevenue < ::Stripe::StripeObject
3052
+ # A non-negative integer representing the amount in the smallest currency unit.
3053
+ attr_reader :amount
3054
+
3055
+ def self.inner_class_types
3056
+ @inner_class_types = {}
3057
+ end
3058
+
3059
+ def self.field_remappings
3060
+ @field_remappings = {}
3061
+ end
3062
+ end
3063
+
3064
+ class ScriptAddresses < ::Stripe::StripeObject
3065
+ class Kana < ::Stripe::StripeObject
3066
+ # City, district, suburb, town, or village.
3067
+ attr_reader :city
3068
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3069
+ attr_reader :country
3070
+ # Address line 1 (e.g., street, PO Box, or company name).
3071
+ attr_reader :line1
3072
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3073
+ attr_reader :line2
3074
+ # ZIP or postal code.
3075
+ attr_reader :postal_code
3076
+ # State, county, province, or region.
3077
+ attr_reader :state
3078
+ # Town or cho-me.
3079
+ attr_reader :town
3080
+
3081
+ def self.inner_class_types
3082
+ @inner_class_types = {}
3083
+ end
3084
+
3085
+ def self.field_remappings
3086
+ @field_remappings = {}
3087
+ end
3088
+ end
3089
+
3090
+ class Kanji < ::Stripe::StripeObject
3091
+ # City, district, suburb, town, or village.
3092
+ attr_reader :city
3093
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3094
+ attr_reader :country
3095
+ # Address line 1 (e.g., street, PO Box, or company name).
3096
+ attr_reader :line1
3097
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3098
+ attr_reader :line2
3099
+ # ZIP or postal code.
3100
+ attr_reader :postal_code
3101
+ # State, county, province, or region.
3102
+ attr_reader :state
3103
+ # Town or cho-me.
3104
+ attr_reader :town
3105
+
3106
+ def self.inner_class_types
3107
+ @inner_class_types = {}
3108
+ end
3109
+
3110
+ def self.field_remappings
3111
+ @field_remappings = {}
3112
+ end
3113
+ end
3114
+ # Kana Address.
3115
+ attr_reader :kana
3116
+ # Kanji Address.
3117
+ attr_reader :kanji
3118
+
3119
+ def self.inner_class_types
3120
+ @inner_class_types = { kana: Kana, kanji: Kanji }
3121
+ end
3122
+
3123
+ def self.field_remappings
3124
+ @field_remappings = {}
3125
+ end
3126
+ end
3127
+
3128
+ class ScriptNames < ::Stripe::StripeObject
3129
+ class Kana < ::Stripe::StripeObject
3130
+ # Registered name of the business.
3131
+ attr_reader :registered_name
3132
+
3133
+ def self.inner_class_types
3134
+ @inner_class_types = {}
3135
+ end
3136
+
3137
+ def self.field_remappings
3138
+ @field_remappings = {}
3139
+ end
3140
+ end
3141
+
3142
+ class Kanji < ::Stripe::StripeObject
3143
+ # Registered name of the business.
3144
+ attr_reader :registered_name
3145
+
3146
+ def self.inner_class_types
3147
+ @inner_class_types = {}
3148
+ end
3149
+
3150
+ def self.field_remappings
3151
+ @field_remappings = {}
3152
+ end
3153
+ end
3154
+ # Kana name.
3155
+ attr_reader :kana
3156
+ # Kanji name.
3157
+ attr_reader :kanji
3158
+
3159
+ def self.inner_class_types
3160
+ @inner_class_types = { kana: Kana, kanji: Kanji }
3161
+ end
3162
+
3163
+ def self.field_remappings
3164
+ @field_remappings = {}
3165
+ end
3166
+ end
3167
+ # The company’s primary address.
3168
+ attr_reader :address
3169
+ # The business gross annual revenue for its preceding fiscal year.
3170
+ attr_reader :annual_revenue
3171
+ # Documents that may be submitted to satisfy various informational requests.
3172
+ attr_reader :documents
3173
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
3174
+ attr_reader :estimated_worker_count
3175
+ # The provided ID numbers of a business entity.
3176
+ attr_reader :id_numbers
3177
+ # An estimate of the monthly revenue of the business.
3178
+ attr_reader :monthly_estimated_revenue
3179
+ # The company’s phone number (used for verification).
3180
+ attr_reader :phone
3181
+ # The business legal name.
3182
+ attr_reader :registered_name
3183
+ # The business registration address of the business entity in non latin script.
3184
+ attr_reader :script_addresses
3185
+ # The business legal name in non latin script.
3186
+ attr_reader :script_names
3187
+ # The category identifying the legal structure of the business.
3188
+ attr_reader :structure
3189
+
3190
+ def self.inner_class_types
3191
+ @inner_class_types = {
3192
+ address: Address,
3193
+ annual_revenue: AnnualRevenue,
3194
+ documents: Documents,
3195
+ id_numbers: IdNumber,
3196
+ monthly_estimated_revenue: MonthlyEstimatedRevenue,
3197
+ script_addresses: ScriptAddresses,
3198
+ script_names: ScriptNames,
3199
+ }
3200
+ end
3201
+
3202
+ def self.field_remappings
3203
+ @field_remappings = {}
3204
+ end
3205
+ end
3206
+
3207
+ class Individual < ::Stripe::StripeObject
3208
+ class AdditionalAddress < ::Stripe::StripeObject
3209
+ # City, district, suburb, town, or village.
3210
+ attr_reader :city
3211
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3212
+ attr_reader :country
3213
+ # Address line 1 (e.g., street, PO Box, or company name).
3214
+ attr_reader :line1
3215
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3216
+ attr_reader :line2
3217
+ # ZIP or postal code.
3218
+ attr_reader :postal_code
3219
+ # Purpose of additional address.
3220
+ attr_reader :purpose
3221
+ # State, county, province, or region.
3222
+ attr_reader :state
3223
+ # Town or cho-me.
3224
+ attr_reader :town
3225
+
3226
+ def self.inner_class_types
3227
+ @inner_class_types = {}
3228
+ end
3229
+
3230
+ def self.field_remappings
3231
+ @field_remappings = {}
3232
+ end
3233
+ end
3234
+
3235
+ class AdditionalName < ::Stripe::StripeObject
3236
+ # The individual's full name.
3237
+ attr_reader :full_name
3238
+ # The individual's first or given name.
3239
+ attr_reader :given_name
3240
+ # The purpose or type of the additional name.
3241
+ attr_reader :purpose
3242
+ # The individual's last or family name.
3243
+ attr_reader :surname
3244
+
3245
+ def self.inner_class_types
3246
+ @inner_class_types = {}
3247
+ end
3248
+
3249
+ def self.field_remappings
3250
+ @field_remappings = {}
3251
+ end
3252
+ end
3253
+
3254
+ class AdditionalTermsOfService < ::Stripe::StripeObject
3255
+ class Account < ::Stripe::StripeObject
3256
+ # 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.
3257
+ attr_reader :date
3258
+ # The IP address from which the Account's representative accepted the terms of service.
3259
+ attr_reader :ip
3260
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
3261
+ attr_reader :user_agent
3262
+
3263
+ def self.inner_class_types
3264
+ @inner_class_types = {}
3265
+ end
3266
+
3267
+ def self.field_remappings
3268
+ @field_remappings = {}
3269
+ end
3270
+ end
3271
+ # Stripe terms of service agreement.
3272
+ attr_reader :account
3273
+
3274
+ def self.inner_class_types
3275
+ @inner_class_types = { account: Account }
3276
+ end
3277
+
3278
+ def self.field_remappings
3279
+ @field_remappings = {}
3280
+ end
3281
+ end
3282
+
3283
+ class Address < ::Stripe::StripeObject
3284
+ # City, district, suburb, town, or village.
3285
+ attr_reader :city
3286
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3287
+ attr_reader :country
3288
+ # Address line 1 (e.g., street, PO Box, or company name).
3289
+ attr_reader :line1
3290
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3291
+ attr_reader :line2
3292
+ # ZIP or postal code.
3293
+ attr_reader :postal_code
3294
+ # State, county, province, or region.
3295
+ attr_reader :state
3296
+ # Town or cho-me.
3297
+ attr_reader :town
3298
+
3299
+ def self.inner_class_types
3300
+ @inner_class_types = {}
3301
+ end
3302
+
3303
+ def self.field_remappings
3304
+ @field_remappings = {}
3305
+ end
3306
+ end
3307
+
3308
+ class DateOfBirth < ::Stripe::StripeObject
3309
+ # The day of birth, between 1 and 31.
3310
+ attr_reader :day
3311
+ # The month of birth, between 1 and 12.
3312
+ attr_reader :month
3313
+ # The four-digit year of birth.
3314
+ attr_reader :year
3315
+
3316
+ def self.inner_class_types
3317
+ @inner_class_types = {}
3318
+ end
3319
+
3320
+ def self.field_remappings
3321
+ @field_remappings = {}
3322
+ end
3323
+ end
3324
+
3325
+ class Documents < ::Stripe::StripeObject
3326
+ class CompanyAuthorization < ::Stripe::StripeObject
3327
+ # 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`.
3328
+ attr_reader :files
3329
+ # The format of the document. Currently supports `files` only.
3330
+ attr_reader :type
3331
+
3332
+ def self.inner_class_types
3333
+ @inner_class_types = {}
3334
+ end
3335
+
3336
+ def self.field_remappings
3337
+ @field_remappings = {}
3338
+ end
3339
+ end
3340
+
3341
+ class Passport < ::Stripe::StripeObject
3342
+ # 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`.
3343
+ attr_reader :files
3344
+ # The format of the document. Currently supports `files` only.
3345
+ attr_reader :type
3346
+
3347
+ def self.inner_class_types
3348
+ @inner_class_types = {}
3349
+ end
3350
+
3351
+ def self.field_remappings
3352
+ @field_remappings = {}
3353
+ end
3354
+ end
3355
+
3356
+ class PrimaryVerification < ::Stripe::StripeObject
3357
+ class FrontBack < ::Stripe::StripeObject
3358
+ # 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.
3359
+ attr_reader :back
3360
+ # 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.
3361
+ attr_reader :front
3362
+
3363
+ def self.inner_class_types
3364
+ @inner_class_types = {}
3365
+ end
3366
+
3367
+ def self.field_remappings
3368
+ @field_remappings = {}
3369
+ end
3370
+ end
3371
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
3372
+ attr_reader :front_back
3373
+ # The format of the verification document. Currently supports `front_back` only.
3374
+ attr_reader :type
3375
+
3376
+ def self.inner_class_types
3377
+ @inner_class_types = { front_back: FrontBack }
3378
+ end
3379
+
3380
+ def self.field_remappings
3381
+ @field_remappings = {}
3382
+ end
3383
+ end
3384
+
3385
+ class SecondaryVerification < ::Stripe::StripeObject
3386
+ class FrontBack < ::Stripe::StripeObject
3387
+ # 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.
3388
+ attr_reader :back
3389
+ # 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.
3390
+ attr_reader :front
3391
+
3392
+ def self.inner_class_types
3393
+ @inner_class_types = {}
3394
+ end
3395
+
3396
+ def self.field_remappings
3397
+ @field_remappings = {}
3398
+ end
3399
+ end
3400
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
3401
+ attr_reader :front_back
3402
+ # The format of the verification document. Currently supports `front_back` only.
3403
+ attr_reader :type
3404
+
3405
+ def self.inner_class_types
3406
+ @inner_class_types = { front_back: FrontBack }
3407
+ end
3408
+
3409
+ def self.field_remappings
3410
+ @field_remappings = {}
3411
+ end
3412
+ end
3413
+
3414
+ class Visa < ::Stripe::StripeObject
3415
+ # 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`.
3416
+ attr_reader :files
3417
+ # The format of the document. Currently supports `files` only.
3418
+ attr_reader :type
3419
+
3420
+ def self.inner_class_types
3421
+ @inner_class_types = {}
3422
+ end
3423
+
3424
+ def self.field_remappings
3425
+ @field_remappings = {}
3426
+ end
3427
+ end
3428
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
3429
+ attr_reader :company_authorization
3430
+ # One or more documents showing the person’s passport page with photo and personal data.
3431
+ attr_reader :passport
3432
+ # An identifying document showing the person's name, either a passport or local ID card.
3433
+ attr_reader :primary_verification
3434
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3435
+ attr_reader :secondary_verification
3436
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
3437
+ attr_reader :visa
3438
+
3439
+ def self.inner_class_types
3440
+ @inner_class_types = {
3441
+ company_authorization: CompanyAuthorization,
3442
+ passport: Passport,
3443
+ primary_verification: PrimaryVerification,
3444
+ secondary_verification: SecondaryVerification,
3445
+ visa: Visa,
3446
+ }
3447
+ end
3448
+
3449
+ def self.field_remappings
3450
+ @field_remappings = {}
3451
+ end
3452
+ end
3453
+
3454
+ class IdNumber < ::Stripe::StripeObject
3455
+ # The ID number type of an individual.
3456
+ attr_reader :type
3457
+
3458
+ def self.inner_class_types
3459
+ @inner_class_types = {}
3460
+ end
3461
+
3462
+ def self.field_remappings
3463
+ @field_remappings = {}
3464
+ end
3465
+ end
3466
+
3467
+ class Relationship < ::Stripe::StripeObject
3468
+ # Whether the individual is an authorizer of the Account’s legal entity.
3469
+ attr_reader :authorizer
3470
+ # 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.
3471
+ attr_reader :director
3472
+ # Whether the individual has significant responsibility to control, manage, or direct the organization.
3473
+ attr_reader :executive
3474
+ # Whether the individual is the legal guardian of the Account’s representative.
3475
+ attr_reader :legal_guardian
3476
+ # Whether the individual is an owner of the Account’s legal entity.
3477
+ attr_reader :owner
3478
+ # The percent owned by the individual of the Account’s legal entity.
3479
+ attr_reader :percent_ownership
3480
+ # 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.
3481
+ attr_reader :representative
3482
+ # The individual's title (e.g., CEO, Support Engineer).
3483
+ attr_reader :title
3484
+
3485
+ def self.inner_class_types
3486
+ @inner_class_types = {}
3487
+ end
3488
+
3489
+ def self.field_remappings
3490
+ @field_remappings = {}
3491
+ end
3492
+ end
3493
+
3494
+ class ScriptAddresses < ::Stripe::StripeObject
3495
+ class Kana < ::Stripe::StripeObject
3496
+ # City, district, suburb, town, or village.
3497
+ attr_reader :city
3498
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3499
+ attr_reader :country
3500
+ # Address line 1 (e.g., street, PO Box, or company name).
3501
+ attr_reader :line1
3502
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3503
+ attr_reader :line2
3504
+ # ZIP or postal code.
3505
+ attr_reader :postal_code
3506
+ # State, county, province, or region.
3507
+ attr_reader :state
3508
+ # Town or cho-me.
3509
+ attr_reader :town
3510
+
3511
+ def self.inner_class_types
3512
+ @inner_class_types = {}
3513
+ end
3514
+
3515
+ def self.field_remappings
3516
+ @field_remappings = {}
3517
+ end
3518
+ end
3519
+
3520
+ class Kanji < ::Stripe::StripeObject
3521
+ # City, district, suburb, town, or village.
3522
+ attr_reader :city
3523
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3524
+ attr_reader :country
3525
+ # Address line 1 (e.g., street, PO Box, or company name).
3526
+ attr_reader :line1
3527
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3528
+ attr_reader :line2
3529
+ # ZIP or postal code.
3530
+ attr_reader :postal_code
3531
+ # State, county, province, or region.
3532
+ attr_reader :state
3533
+ # Town or cho-me.
3534
+ attr_reader :town
3535
+
3536
+ def self.inner_class_types
3537
+ @inner_class_types = {}
3538
+ end
3539
+
3540
+ def self.field_remappings
3541
+ @field_remappings = {}
3542
+ end
3543
+ end
3544
+ # Kana Address.
3545
+ attr_reader :kana
3546
+ # Kanji Address.
3547
+ attr_reader :kanji
3548
+
3549
+ def self.inner_class_types
3550
+ @inner_class_types = { kana: Kana, kanji: Kanji }
3551
+ end
3552
+
3553
+ def self.field_remappings
3554
+ @field_remappings = {}
3555
+ end
3556
+ end
3557
+
3558
+ class ScriptNames < ::Stripe::StripeObject
3559
+ class Kana < ::Stripe::StripeObject
3560
+ # The person's first or given name.
3561
+ attr_reader :given_name
3562
+ # The person's last or family name.
3563
+ attr_reader :surname
3564
+
3565
+ def self.inner_class_types
3566
+ @inner_class_types = {}
3567
+ end
3568
+
3569
+ def self.field_remappings
3570
+ @field_remappings = {}
3571
+ end
3572
+ end
3573
+
3574
+ class Kanji < ::Stripe::StripeObject
3575
+ # The person's first or given name.
3576
+ attr_reader :given_name
3577
+ # The person's last or family name.
3578
+ attr_reader :surname
3579
+
3580
+ def self.inner_class_types
3581
+ @inner_class_types = {}
3582
+ end
3583
+
3584
+ def self.field_remappings
3585
+ @field_remappings = {}
3586
+ end
3587
+ end
3588
+ # Persons name in kana script.
3589
+ attr_reader :kana
3590
+ # Persons name in kanji script.
3591
+ attr_reader :kanji
3592
+
3593
+ def self.inner_class_types
3594
+ @inner_class_types = { kana: Kana, kanji: Kanji }
3595
+ end
3596
+
3597
+ def self.field_remappings
3598
+ @field_remappings = {}
3599
+ end
3600
+ end
3601
+ # The account ID which the individual belongs to.
3602
+ attr_reader :account
3603
+ # Additional addresses associated with the individual.
3604
+ attr_reader :additional_addresses
3605
+ # Additional names (e.g. aliases) associated with the individual.
3606
+ attr_reader :additional_names
3607
+ # Terms of service acceptances.
3608
+ attr_reader :additional_terms_of_service
3609
+ # The individual's residential address.
3610
+ attr_reader :address
3611
+ # 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.
3612
+ attr_reader :created
3613
+ # The individual's date of birth.
3614
+ attr_reader :date_of_birth
3615
+ # Documents that may be submitted to satisfy various informational requests.
3616
+ attr_reader :documents
3617
+ # The individual's email address.
3618
+ attr_reader :email
3619
+ # The individual's first name.
3620
+ attr_reader :given_name
3621
+ # Unique identifier for the object.
3622
+ attr_reader :id
3623
+ # The identification numbers (e.g., SSN) associated with the individual.
3624
+ attr_reader :id_numbers
3625
+ # The individual's gender (International regulations require either "male” or "female").
3626
+ attr_reader :legal_gender
3627
+ # 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.
3628
+ attr_reader :metadata
3629
+ # 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)).
3630
+ attr_reader :nationalities
3631
+ # String representing the object's type. Objects of the same type share the same value.
3632
+ attr_reader :object
3633
+ # The individual's phone number.
3634
+ attr_reader :phone
3635
+ # 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.
3636
+ attr_reader :political_exposure
3637
+ # The relationship that this individual has with the Account's identity.
3638
+ attr_reader :relationship
3639
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
3640
+ attr_reader :script_addresses
3641
+ # The script names (e.g. non-Latin characters) associated with the individual.
3642
+ attr_reader :script_names
3643
+ # The individual's last name.
3644
+ attr_reader :surname
3645
+ # Time at which the object was last updated.
3646
+ attr_reader :updated
3647
+
3648
+ def self.inner_class_types
3649
+ @inner_class_types = {
3650
+ additional_addresses: AdditionalAddress,
3651
+ additional_names: AdditionalName,
3652
+ additional_terms_of_service: AdditionalTermsOfService,
3653
+ address: Address,
3654
+ date_of_birth: DateOfBirth,
3655
+ documents: Documents,
3656
+ id_numbers: IdNumber,
3657
+ relationship: Relationship,
3658
+ script_addresses: ScriptAddresses,
3659
+ script_names: ScriptNames,
3660
+ }
3661
+ end
3662
+
3663
+ def self.field_remappings
3664
+ @field_remappings = {}
3665
+ end
3666
+ end
3667
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
3668
+ attr_reader :attestations
3669
+ # Information about the company or business.
3670
+ attr_reader :business_details
3671
+ # 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.
3672
+ attr_reader :country
3673
+ # The entity type.
3674
+ attr_reader :entity_type
3675
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
3676
+ attr_reader :individual
3677
+
3678
+ def self.inner_class_types
3679
+ @inner_class_types = {
3680
+ attestations: Attestations,
3681
+ business_details: BusinessDetails,
3682
+ individual: Individual,
3683
+ }
3684
+ end
3685
+
3686
+ def self.field_remappings
3687
+ @field_remappings = {}
3688
+ end
3689
+ end
3690
+
3691
+ class Requirements < ::Stripe::StripeObject
3692
+ class Entry < ::Stripe::StripeObject
3693
+ class Error < ::Stripe::StripeObject
3694
+ # Machine-readable code describing the error.
3695
+ attr_reader :code
3696
+ # Human-readable description of the error.
3697
+ attr_reader :description
3698
+
3699
+ def self.inner_class_types
3700
+ @inner_class_types = {}
3701
+ end
3702
+
3703
+ def self.field_remappings
3704
+ @field_remappings = {}
3705
+ end
3706
+ end
3707
+
3708
+ class Impact < ::Stripe::StripeObject
3709
+ class RestrictsCapability < ::Stripe::StripeObject
3710
+ class Deadline < ::Stripe::StripeObject
3711
+ # The current status of the requirement's impact.
3712
+ attr_reader :status
3713
+
3714
+ def self.inner_class_types
3715
+ @inner_class_types = {}
3716
+ end
3717
+
3718
+ def self.field_remappings
3719
+ @field_remappings = {}
3720
+ end
3721
+ end
3722
+ # The name of the Capability which will be restricted.
3723
+ attr_reader :capability
3724
+ # The configuration which specifies the Capability which will be restricted.
3725
+ attr_reader :configuration
3726
+ # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction.
3727
+ attr_reader :deadline
3728
+
3729
+ def self.inner_class_types
3730
+ @inner_class_types = { deadline: Deadline }
3731
+ end
3732
+
3733
+ def self.field_remappings
3734
+ @field_remappings = {}
3735
+ end
3736
+ end
3737
+ # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe.
3738
+ attr_reader :restricts_capabilities
3739
+
3740
+ def self.inner_class_types
3741
+ @inner_class_types = { restricts_capabilities: RestrictsCapability }
3742
+ end
3743
+
3744
+ def self.field_remappings
3745
+ @field_remappings = {}
3746
+ end
3747
+ end
3748
+
3749
+ class MinimumDeadline < ::Stripe::StripeObject
3750
+ # The current status of the requirement's impact.
3751
+ attr_reader :status
3752
+
3753
+ def self.inner_class_types
3754
+ @inner_class_types = {}
3755
+ end
3756
+
3757
+ def self.field_remappings
3758
+ @field_remappings = {}
3759
+ end
3760
+ end
3761
+
3762
+ class Reference < ::Stripe::StripeObject
3763
+ # If `inquiry` is the type, the inquiry token.
3764
+ attr_reader :inquiry
3765
+ # If `resource` is the type, the resource token.
3766
+ attr_reader :resource
3767
+ # The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type.
3768
+ attr_reader :type
3769
+
3770
+ def self.inner_class_types
3771
+ @inner_class_types = {}
3772
+ end
3773
+
3774
+ def self.field_remappings
3775
+ @field_remappings = {}
3776
+ end
3777
+ end
3778
+
3779
+ class RequestedReason < ::Stripe::StripeObject
3780
+ # Machine-readable description of Stripe's reason for collecting the requirement.
3781
+ attr_reader :code
3782
+
3783
+ def self.inner_class_types
3784
+ @inner_class_types = {}
3785
+ end
3786
+
3787
+ def self.field_remappings
3788
+ @field_remappings = {}
3789
+ end
3790
+ end
3791
+ # Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement.
3792
+ attr_reader :awaiting_action_from
3793
+ # Machine-readable string describing the requirement.
3794
+ attr_reader :description
3795
+ # Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe.
3796
+ attr_reader :errors
3797
+ # A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information.
3798
+ attr_reader :impact
3799
+ # The soonest point when the account will be impacted by not providing the requirement.
3800
+ attr_reader :minimum_deadline
3801
+ # A reference to the location of the requirement.
3802
+ attr_reader :reference
3803
+ # A list of reasons why Stripe is collecting the requirement.
3804
+ attr_reader :requested_reasons
3805
+
3806
+ def self.inner_class_types
3807
+ @inner_class_types = {
3808
+ errors: Error,
3809
+ impact: Impact,
3810
+ minimum_deadline: MinimumDeadline,
3811
+ reference: Reference,
3812
+ requested_reasons: RequestedReason,
3813
+ }
3814
+ end
3815
+
3816
+ def self.field_remappings
3817
+ @field_remappings = {}
3818
+ end
3819
+ end
3820
+
3821
+ class Summary < ::Stripe::StripeObject
3822
+ class MinimumDeadline < ::Stripe::StripeObject
3823
+ # The current strictest status of all requirements on the Account.
3824
+ attr_reader :status
3825
+ # The soonest RFC3339 date & time UTC value a requirement can impact the Account.
3826
+ attr_reader :time
3827
+
3828
+ def self.inner_class_types
3829
+ @inner_class_types = {}
3830
+ end
3831
+
3832
+ def self.field_remappings
3833
+ @field_remappings = {}
3834
+ end
3835
+ end
3836
+ # 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`.
3837
+ attr_reader :minimum_deadline
3838
+
3839
+ def self.inner_class_types
3840
+ @inner_class_types = { minimum_deadline: MinimumDeadline }
3841
+ end
3842
+
3843
+ def self.field_remappings
3844
+ @field_remappings = {}
3845
+ end
3846
+ end
3847
+ # A value indicating responsibility for collecting requirements on this account.
3848
+ attr_reader :collector
3849
+ # A list of requirements for the Account.
3850
+ attr_reader :entries
3851
+ # An object containing an overview of requirements for the Account.
3852
+ attr_reader :summary
3853
+
3854
+ def self.inner_class_types
3855
+ @inner_class_types = { entries: Entry, summary: Summary }
3856
+ end
3857
+
3858
+ def self.field_remappings
3859
+ @field_remappings = {}
3860
+ end
3861
+ end
3862
+ # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
3863
+ attr_reader :applied_configurations
3864
+ # A value indicating if the Account has been closed.
3865
+ attr_reader :closed
3866
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
3867
+ attr_reader :configuration
3868
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
3869
+ attr_reader :contact_email
3870
+ # 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.
3871
+ attr_reader :created
3872
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
3873
+ attr_reader :dashboard
3874
+ # Default values to be used on Account Configurations.
3875
+ attr_reader :defaults
3876
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
3877
+ attr_reader :display_name
3878
+ # Unique identifier for the Account.
3879
+ attr_reader :id
3880
+ # Information about the company, individual, and business represented by the Account.
3881
+ attr_reader :identity
3882
+ # 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.
3883
+ attr_reader :metadata
3884
+ # String representing the object's type. Objects of the same type share the same value of the object field.
3885
+ attr_reader :object
3886
+ # Information about the requirements for the Account, including what information needs to be collected, and by when.
3887
+ attr_reader :requirements
3888
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
3889
+ attr_reader :livemode
3890
+
3891
+ def self.inner_class_types
3892
+ @inner_class_types = {
3893
+ configuration: Configuration,
3894
+ defaults: Defaults,
3895
+ identity: Identity,
3896
+ requirements: Requirements,
3897
+ }
3898
+ end
3899
+
3900
+ def self.field_remappings
3901
+ @field_remappings = {}
3902
+ end
3903
+ end
3904
+ end
3905
+ end
3906
+ end