stripe 16.0.0 → 16.1.0.pre.beta.1

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