stripe 18.0.0 → 18.1.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (750) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +493 -0
  6. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  7. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  8. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  9. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  11. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  12. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  13. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  29. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  30. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  43. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  44. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  45. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  46. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  48. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  50. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  51. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  52. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  53. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  54. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  55. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  56. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  57. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  58. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  59. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  60. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  61. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  62. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  63. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  64. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  65. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  66. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  67. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  68. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +68 -0
  69. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +68 -0
  70. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +66 -0
  71. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +66 -0
  72. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  73. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  74. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  75. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  76. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  77. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  78. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  79. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  80. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +64 -0
  81. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +64 -0
  82. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  83. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  84. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  85. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  86. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  87. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  88. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  89. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  90. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  91. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  92. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  93. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  94. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  95. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  96. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  97. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  98. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  99. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  100. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  101. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  102. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  103. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  104. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  105. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  106. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  107. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  108. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  109. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  110. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  111. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  112. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  113. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  114. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  115. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  116. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  117. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  118. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  119. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  120. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  121. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  122. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  123. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  124. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  125. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  126. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  127. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  128. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  129. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  130. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  131. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  132. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  133. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  134. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  135. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  136. data/lib/stripe/object_types.rb +87 -0
  137. data/lib/stripe/params/account_create_params.rb +349 -1
  138. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  139. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  140. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  141. data/lib/stripe/params/account_person_create_params.rb +32 -0
  142. data/lib/stripe/params/account_person_update_params.rb +32 -0
  143. data/lib/stripe/params/account_session_create_params.rb +226 -1
  144. data/lib/stripe/params/account_update_params.rb +311 -0
  145. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  146. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  147. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  148. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  149. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  150. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  151. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  152. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  153. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  154. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  155. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  156. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  157. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  158. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  159. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  160. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  161. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  163. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  164. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  165. data/lib/stripe/params/charge_update_params.rb +1648 -0
  166. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  167. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  168. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  169. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  170. data/lib/stripe/params/coupon_create_params.rb +17 -1
  171. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  172. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  173. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
  174. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  175. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  176. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  177. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  178. data/lib/stripe/params/dispute_update_params.rb +10 -1
  179. data/lib/stripe/params/external_account_create_params.rb +134 -0
  180. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  181. data/lib/stripe/params/external_account_list_params.rb +25 -0
  182. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  183. data/lib/stripe/params/external_account_update_params.rb +91 -0
  184. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  185. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  186. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  187. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  188. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  189. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  190. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  191. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  192. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  193. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  194. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  195. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  196. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  197. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  198. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  199. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  200. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  201. data/lib/stripe/params/invoice_create_params.rb +112 -2
  202. data/lib/stripe/params/invoice_create_preview_params.rb +946 -10
  203. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  204. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  205. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  206. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  207. data/lib/stripe/params/invoice_list_params.rb +8 -0
  208. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  209. data/lib/stripe/params/invoice_update_params.rb +108 -2
  210. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  211. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  212. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  213. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  214. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  215. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  216. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  217. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  218. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  219. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  220. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  221. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  222. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  223. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  224. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  225. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  226. data/lib/stripe/params/mandate_list_params.rb +39 -0
  227. data/lib/stripe/params/margin_create_params.rb +25 -0
  228. data/lib/stripe/params/margin_list_params.rb +25 -0
  229. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  230. data/lib/stripe/params/margin_update_params.rb +22 -0
  231. data/lib/stripe/params/order_cancel_params.rb +13 -0
  232. data/lib/stripe/params/order_create_params.rb +2061 -0
  233. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  234. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  235. data/lib/stripe/params/order_list_params.rb +25 -0
  236. data/lib/stripe/params/order_reopen_params.rb +13 -0
  237. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  238. data/lib/stripe/params/order_submit_params.rb +16 -0
  239. data/lib/stripe/params/order_update_params.rb +2065 -0
  240. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  241. data/lib/stripe/params/payment_intent_confirm_params.rb +3306 -238
  242. data/lib/stripe/params/payment_intent_create_params.rb +3160 -84
  243. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  244. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  245. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  246. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  247. data/lib/stripe/params/payment_intent_update_params.rb +3192 -85
  248. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  249. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  250. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  251. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  252. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  253. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  254. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  255. data/lib/stripe/params/price_update_params.rb +19 -0
  256. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  257. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  258. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  259. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  260. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  261. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  262. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  263. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  264. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  265. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  266. data/lib/stripe/params/quote_create_params.rb +1025 -3
  267. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  268. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  269. data/lib/stripe/params/quote_list_params.rb +8 -0
  270. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  271. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  272. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  273. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  274. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  275. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  276. data/lib/stripe/params/quote_update_params.rb +1033 -4
  277. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  278. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  279. data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
  280. data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
  281. data/lib/stripe/params/setup_intent_create_params.rb +260 -3
  282. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  283. data/lib/stripe/params/setup_intent_update_params.rb +261 -4
  284. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  285. data/lib/stripe/params/subscription_create_params.rb +275 -5
  286. data/lib/stripe/params/subscription_item_create_params.rb +62 -2
  287. data/lib/stripe/params/subscription_item_update_params.rb +46 -2
  288. data/lib/stripe/params/subscription_list_params.rb +4 -0
  289. data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
  290. data/lib/stripe/params/subscription_schedule_create_params.rb +237 -7
  291. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  292. data/lib/stripe/params/subscription_schedule_update_params.rb +233 -7
  293. data/lib/stripe/params/subscription_update_params.rb +255 -5
  294. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  295. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  296. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  297. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  298. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  299. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  300. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  301. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  302. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  303. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  304. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  305. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  306. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  307. data/lib/stripe/params/token_create_params.rb +64 -0
  308. data/lib/stripe/params/transfer_create_params.rb +8 -0
  309. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  310. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  311. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  312. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  313. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  314. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  315. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  316. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  317. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  318. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  319. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  320. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  321. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  322. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  323. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  324. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  325. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  326. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  327. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  328. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  329. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  330. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  331. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  332. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  333. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  334. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  335. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  336. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  337. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  338. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  339. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  340. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  341. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  342. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  343. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  344. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  345. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  346. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  347. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  348. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  349. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  350. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  351. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  352. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  353. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  354. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  355. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  356. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  357. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  358. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  359. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  360. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  361. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  362. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  363. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  364. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  365. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  366. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  367. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  368. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  369. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  370. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  371. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  372. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  373. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  374. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  375. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  376. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  377. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  378. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  379. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  380. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  381. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  382. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  383. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  384. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  385. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  386. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  387. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  388. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  389. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  390. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  391. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  392. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  393. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  394. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  395. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  396. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  397. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  398. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  399. data/lib/stripe/params/v2/core/account_create_params.rb +3058 -0
  400. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  401. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  402. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  403. data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
  404. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  405. data/lib/stripe/params/v2/core/account_update_params.rb +3090 -0
  406. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  407. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  408. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  409. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  410. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  411. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  412. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  413. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  414. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  415. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  416. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  417. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  418. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  419. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  420. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  421. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  422. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  423. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  424. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  425. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  426. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  427. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  428. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  429. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  430. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  431. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  432. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  433. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  434. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  435. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  436. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  437. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  438. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  439. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  440. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  441. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  442. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  443. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  444. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  445. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +114 -0
  446. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  447. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  448. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  449. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  450. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  451. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  452. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  453. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  454. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  455. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  456. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
  457. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  458. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  459. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  460. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  461. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  462. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  463. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  464. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  465. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  466. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  467. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  468. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  469. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  470. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  471. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  472. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  473. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  474. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  475. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  476. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  477. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  478. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  479. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  480. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  481. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  482. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  483. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  484. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  485. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  486. data/lib/stripe/params.rb +261 -0
  487. data/lib/stripe/resources/account.rb +184 -1
  488. data/lib/stripe/resources/account_notice.rb +94 -0
  489. data/lib/stripe/resources/account_session.rb +81 -0
  490. data/lib/stripe/resources/application_fee.rb +2 -0
  491. data/lib/stripe/resources/balance.rb +83 -0
  492. data/lib/stripe/resources/balance_transfer.rb +139 -0
  493. data/lib/stripe/resources/billing/alert.rb +105 -1
  494. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  495. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  496. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  497. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  498. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  499. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  500. data/lib/stripe/resources/billing/meter.rb +2 -0
  501. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  502. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  503. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  504. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  505. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  506. data/lib/stripe/resources/card.rb +20 -1
  507. data/lib/stripe/resources/cash_balance.rb +2 -0
  508. data/lib/stripe/resources/charge.rb +255 -1
  509. data/lib/stripe/resources/checkout/session.rb +246 -4
  510. data/lib/stripe/resources/confirmation_token.rb +173 -0
  511. data/lib/stripe/resources/coupon.rb +26 -1
  512. data/lib/stripe/resources/credit_note.rb +2 -0
  513. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  514. data/lib/stripe/resources/customer.rb +2 -0
  515. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  516. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  517. data/lib/stripe/resources/customer_session.rb +38 -0
  518. data/lib/stripe/resources/delegated_checkout/requested_session.rb +434 -0
  519. data/lib/stripe/resources/discount.rb +4 -0
  520. data/lib/stripe/resources/dispute.rb +22 -0
  521. data/lib/stripe/resources/event.rb +64 -1
  522. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  523. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  524. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  525. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  526. data/lib/stripe/resources/fx_quote.rb +147 -0
  527. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  528. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  529. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  530. data/lib/stripe/resources/invoice.rb +168 -1
  531. data/lib/stripe/resources/invoice_item.rb +110 -2
  532. data/lib/stripe/resources/invoice_line_item.rb +147 -1
  533. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  534. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  535. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  536. data/lib/stripe/resources/issuing/program.rb +69 -0
  537. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  538. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  539. data/lib/stripe/resources/line_item.rb +68 -1
  540. data/lib/stripe/resources/mandate.rb +71 -0
  541. data/lib/stripe/resources/margin.rb +64 -0
  542. data/lib/stripe/resources/order.rb +987 -0
  543. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  544. data/lib/stripe/resources/payment_intent.rb +793 -4
  545. data/lib/stripe/resources/payment_method.rb +195 -0
  546. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  547. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  548. data/lib/stripe/resources/payment_record.rb +203 -1
  549. data/lib/stripe/resources/person.rb +36 -0
  550. data/lib/stripe/resources/price.rb +20 -0
  551. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  552. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  553. data/lib/stripe/resources/promotion_code.rb +2 -0
  554. data/lib/stripe/resources/quote.rb +808 -2
  555. data/lib/stripe/resources/quote_line.rb +527 -0
  556. data/lib/stripe/resources/quote_preview_invoice.rb +1166 -0
  557. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
  558. data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
  559. data/lib/stripe/resources/refund.rb +18 -0
  560. data/lib/stripe/resources/setup_attempt.rb +63 -0
  561. data/lib/stripe/resources/setup_intent.rb +172 -1
  562. data/lib/stripe/resources/source.rb +38 -0
  563. data/lib/stripe/resources/subscription.rb +251 -0
  564. data/lib/stripe/resources/subscription_item.rb +43 -1
  565. data/lib/stripe/resources/subscription_schedule.rb +292 -3
  566. data/lib/stripe/resources/tax/form.rb +264 -0
  567. data/lib/stripe/resources/tax_id.rb +4 -0
  568. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  569. data/lib/stripe/resources/terminal/reader.rb +8 -0
  570. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  571. data/lib/stripe/resources/transfer.rb +6 -0
  572. data/lib/stripe/resources/transit_balance.rb +45 -0
  573. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  574. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  575. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  576. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  577. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  578. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  579. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  580. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  581. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  582. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  583. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  584. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  585. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  586. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  587. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  588. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  589. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  590. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  591. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  592. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  593. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  594. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  595. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  596. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  597. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  598. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  599. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  600. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  601. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  602. data/lib/stripe/resources/v2/core/account.rb +5298 -0
  603. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  604. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  605. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  606. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  607. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  608. data/lib/stripe/resources/v2/core/event.rb +2 -0
  609. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  610. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  611. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  612. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  613. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  614. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  615. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  616. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  617. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  618. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +263 -0
  619. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  620. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  621. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
  622. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  623. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  624. data/lib/stripe/resources/v2/money_management/received_credit.rb +262 -0
  625. data/lib/stripe/resources/v2/money_management/received_debit.rb +172 -0
  626. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  627. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  628. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  629. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  630. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  631. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  632. data/lib/stripe/resources.rb +212 -0
  633. data/lib/stripe/services/account_notice_service.rb +39 -0
  634. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  635. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  636. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  637. data/lib/stripe/services/billing_service.rb +2 -1
  638. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  639. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  640. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  641. data/lib/stripe/services/capital_service.rb +15 -0
  642. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  643. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  644. data/lib/stripe/services/external_account_service.rb +68 -0
  645. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  646. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  647. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  648. data/lib/stripe/services/financial_connections_service.rb +2 -1
  649. data/lib/stripe/services/fx_quote_service.rb +27 -0
  650. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  651. data/lib/stripe/services/identity_service.rb +2 -1
  652. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  653. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  654. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  655. data/lib/stripe/services/issuing/program_service.rb +52 -0
  656. data/lib/stripe/services/issuing_service.rb +6 -1
  657. data/lib/stripe/services/mandate_service.rb +5 -0
  658. data/lib/stripe/services/margin_service.rb +50 -0
  659. data/lib/stripe/services/order_line_item_service.rb +17 -0
  660. data/lib/stripe/services/order_service.rb +78 -0
  661. data/lib/stripe/services/payment_intent_service.rb +37 -0
  662. data/lib/stripe/services/payment_method_service.rb +11 -0
  663. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  664. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  665. data/lib/stripe/services/privacy_service.rb +13 -0
  666. data/lib/stripe/services/quote_line_service.rb +17 -0
  667. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  668. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  669. data/lib/stripe/services/quote_service.rb +49 -1
  670. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  671. data/lib/stripe/services/radar_service.rb +2 -1
  672. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  673. data/lib/stripe/services/subscription_service.rb +11 -0
  674. data/lib/stripe/services/tax/form_service.rb +37 -0
  675. data/lib/stripe/services/tax_service.rb +2 -1
  676. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  677. data/lib/stripe/services/terminal_service.rb +2 -1
  678. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  679. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  680. data/lib/stripe/services/test_helpers_service.rb +2 -1
  681. data/lib/stripe/services/v1_services.rb +10 -1
  682. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  683. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  684. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  685. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  686. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  687. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  688. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  689. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  690. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  691. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  692. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  693. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  694. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  695. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  696. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  697. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  698. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  699. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  700. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  701. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  702. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  703. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  704. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  705. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  706. data/lib/stripe/services/v2/billing_service.rb +18 -1
  707. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  708. data/lib/stripe/services/v2/core/account_service.rb +77 -0
  709. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  710. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  711. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  712. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  713. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  714. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  715. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  716. data/lib/stripe/services/v2/core_service.rb +6 -1
  717. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  718. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  719. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  720. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  721. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  722. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  723. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  724. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  725. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  726. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  727. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  728. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  729. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  730. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  731. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  732. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  733. data/lib/stripe/services/v2/money_management_service.rb +35 -0
  734. data/lib/stripe/services/v2/payment_service.rb +15 -0
  735. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  736. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  737. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  738. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  739. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  740. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  741. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  742. data/lib/stripe/services/v2_services.rb +5 -1
  743. data/lib/stripe/services.rb +91 -0
  744. data/lib/stripe/stripe_configuration.rb +3 -1
  745. data/lib/stripe/stripe_object.rb +1 -1
  746. data/lib/stripe/util.rb +7 -1
  747. data/lib/stripe/version.rb +1 -1
  748. data/lib/stripe.rb +53 -0
  749. data/rbi/stripe.rbi +177639 -83814
  750. metadata +568 -4
@@ -0,0 +1,3090 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountUpdateParams < ::Stripe::RequestParams
8
+ class Configuration < ::Stripe::RequestParams
9
+ class CardCreator < ::Stripe::RequestParams
10
+ class Capabilities < ::Stripe::RequestParams
11
+ class Commercial < ::Stripe::RequestParams
12
+ class Celtic < ::Stripe::RequestParams
13
+ class ChargeCard < ::Stripe::RequestParams
14
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
15
+ attr_accessor :requested
16
+
17
+ def initialize(requested: nil)
18
+ @requested = requested
19
+ end
20
+ end
21
+
22
+ class SpendCard < ::Stripe::RequestParams
23
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
24
+ attr_accessor :requested
25
+
26
+ def initialize(requested: nil)
27
+ @requested = requested
28
+ end
29
+ end
30
+ # Can create commercial issuing charge cards with Celtic as BIN sponsor.
31
+ attr_accessor :charge_card
32
+ # Can create commercial issuing spend cards with Celtic as BIN sponsor.
33
+ attr_accessor :spend_card
34
+
35
+ def initialize(charge_card: nil, spend_card: nil)
36
+ @charge_card = charge_card
37
+ @spend_card = spend_card
38
+ end
39
+ end
40
+
41
+ class CrossRiverBank < ::Stripe::RequestParams
42
+ class ChargeCard < ::Stripe::RequestParams
43
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
44
+ attr_accessor :requested
45
+
46
+ def initialize(requested: nil)
47
+ @requested = requested
48
+ end
49
+ end
50
+
51
+ class SpendCard < ::Stripe::RequestParams
52
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
53
+ attr_accessor :requested
54
+
55
+ def initialize(requested: nil)
56
+ @requested = requested
57
+ end
58
+ end
59
+ # Can create commercial issuing charge cards with Cross River Bank as BIN sponsor.
60
+ attr_accessor :charge_card
61
+ # Can create commercial issuing spend cards with Cross River Bank as BIN sponsor.
62
+ attr_accessor :spend_card
63
+
64
+ def initialize(charge_card: nil, spend_card: nil)
65
+ @charge_card = charge_card
66
+ @spend_card = spend_card
67
+ end
68
+ end
69
+
70
+ class Lead < ::Stripe::RequestParams
71
+ class PrepaidCard < ::Stripe::RequestParams
72
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
73
+ attr_accessor :requested
74
+
75
+ def initialize(requested: nil)
76
+ @requested = requested
77
+ end
78
+ end
79
+ # Can create commercial issuing prepaid cards with Lead as BIN sponsor.
80
+ attr_accessor :prepaid_card
81
+
82
+ def initialize(prepaid_card: nil)
83
+ @prepaid_card = prepaid_card
84
+ end
85
+ end
86
+
87
+ class Stripe < ::Stripe::RequestParams
88
+ class ChargeCard < ::Stripe::RequestParams
89
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
90
+ attr_accessor :requested
91
+
92
+ def initialize(requested: nil)
93
+ @requested = requested
94
+ end
95
+ end
96
+
97
+ class PrepaidCard < ::Stripe::RequestParams
98
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
99
+ attr_accessor :requested
100
+
101
+ def initialize(requested: nil)
102
+ @requested = requested
103
+ end
104
+ end
105
+ # Can create commercial issuing charge cards with Stripe as BIN sponsor.
106
+ attr_accessor :charge_card
107
+ # Can create commercial issuing prepaid cards with Stripe as BIN sponsor.
108
+ attr_accessor :prepaid_card
109
+
110
+ def initialize(charge_card: nil, prepaid_card: nil)
111
+ @charge_card = charge_card
112
+ @prepaid_card = prepaid_card
113
+ end
114
+ end
115
+ # Can create commercial issuing cards with Celtic as BIN sponsor.
116
+ attr_accessor :celtic
117
+ # Can create commercial issuing cards with Cross River Bank as BIN sponsor.
118
+ attr_accessor :cross_river_bank
119
+ # Can create commercial issuing cards with Lead as BIN sponsor.
120
+ attr_accessor :lead
121
+ # Can create commercial issuing cards with Stripe as BIN sponsor.
122
+ attr_accessor :stripe
123
+
124
+ def initialize(celtic: nil, cross_river_bank: nil, lead: nil, stripe: nil)
125
+ @celtic = celtic
126
+ @cross_river_bank = cross_river_bank
127
+ @lead = lead
128
+ @stripe = stripe
129
+ end
130
+ end
131
+ # Can create cards for commercial issuing use cases.
132
+ attr_accessor :commercial
133
+
134
+ def initialize(commercial: nil)
135
+ @commercial = commercial
136
+ end
137
+ end
138
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
139
+ attr_accessor :applied
140
+ # Capabilities to request on the CardCreator Configuration.
141
+ attr_accessor :capabilities
142
+
143
+ def initialize(applied: nil, capabilities: nil)
144
+ @applied = applied
145
+ @capabilities = capabilities
146
+ end
147
+ end
148
+
149
+ class Customer < ::Stripe::RequestParams
150
+ class AutomaticIndirectTax < ::Stripe::RequestParams
151
+ # 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”.
152
+ attr_accessor :exempt
153
+ # A recent IP address of the customer used for tax reporting and tax location inference.
154
+ attr_accessor :ip_address
155
+ # 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. This behavior is now deprecated for new users.
156
+ attr_accessor :location_source
157
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
158
+ attr_accessor :validate_location
159
+
160
+ def initialize(
161
+ exempt: nil,
162
+ ip_address: nil,
163
+ location_source: nil,
164
+ validate_location: nil
165
+ )
166
+ @exempt = exempt
167
+ @ip_address = ip_address
168
+ @location_source = location_source
169
+ @validate_location = validate_location
170
+ end
171
+ end
172
+
173
+ class Billing < ::Stripe::RequestParams
174
+ class Invoice < ::Stripe::RequestParams
175
+ class CustomField < ::Stripe::RequestParams
176
+ # The name of the custom field. This may be up to 40 characters.
177
+ attr_accessor :name
178
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
179
+ attr_accessor :value
180
+
181
+ def initialize(name: nil, value: nil)
182
+ @name = name
183
+ @value = value
184
+ end
185
+ end
186
+
187
+ class Rendering < ::Stripe::RequestParams
188
+ # 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.
189
+ attr_accessor :amount_tax_display
190
+ # ID of the invoice rendering template to use for future invoices.
191
+ attr_accessor :template
192
+
193
+ def initialize(amount_tax_display: nil, template: nil)
194
+ @amount_tax_display = amount_tax_display
195
+ @template = template
196
+ end
197
+ end
198
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
199
+ attr_accessor :custom_fields
200
+ # Default footer to be displayed on invoices for this customer.
201
+ attr_accessor :footer
202
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
203
+ attr_accessor :next_sequence
204
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
205
+ attr_accessor :prefix
206
+ # Default options for invoice PDF rendering for this customer.
207
+ attr_accessor :rendering
208
+
209
+ def initialize(
210
+ custom_fields: nil,
211
+ footer: nil,
212
+ next_sequence: nil,
213
+ prefix: nil,
214
+ rendering: nil
215
+ )
216
+ @custom_fields = custom_fields
217
+ @footer = footer
218
+ @next_sequence = next_sequence
219
+ @prefix = prefix
220
+ @rendering = rendering
221
+ end
222
+ end
223
+ # 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.
224
+ attr_accessor :default_payment_method
225
+ # Default settings used on invoices for this customer.
226
+ attr_accessor :invoice
227
+
228
+ def initialize(default_payment_method: nil, invoice: nil)
229
+ @default_payment_method = default_payment_method
230
+ @invoice = invoice
231
+ end
232
+ end
233
+
234
+ class Capabilities < ::Stripe::RequestParams
235
+ class AutomaticIndirectTax < ::Stripe::RequestParams
236
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
237
+ attr_accessor :requested
238
+
239
+ def initialize(requested: nil)
240
+ @requested = requested
241
+ end
242
+ end
243
+ # 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.
244
+ attr_accessor :automatic_indirect_tax
245
+
246
+ def initialize(automatic_indirect_tax: nil)
247
+ @automatic_indirect_tax = automatic_indirect_tax
248
+ end
249
+ end
250
+
251
+ class Shipping < ::Stripe::RequestParams
252
+ class Address < ::Stripe::RequestParams
253
+ # City, district, suburb, town, or village.
254
+ attr_accessor :city
255
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
256
+ attr_accessor :country
257
+ # Address line 1 (e.g., street, PO Box, or company name).
258
+ attr_accessor :line1
259
+ # Address line 2 (e.g., apartment, suite, unit, or building).
260
+ attr_accessor :line2
261
+ # ZIP or postal code.
262
+ attr_accessor :postal_code
263
+ # State, county, province, or region.
264
+ attr_accessor :state
265
+
266
+ def initialize(
267
+ city: nil,
268
+ country: nil,
269
+ line1: nil,
270
+ line2: nil,
271
+ postal_code: nil,
272
+ state: nil
273
+ )
274
+ @city = city
275
+ @country = country
276
+ @line1 = line1
277
+ @line2 = line2
278
+ @postal_code = postal_code
279
+ @state = state
280
+ end
281
+ end
282
+ # Customer shipping address.
283
+ attr_accessor :address
284
+ # Customer name.
285
+ attr_accessor :name
286
+ # Customer phone (including extension).
287
+ attr_accessor :phone
288
+
289
+ def initialize(address: nil, name: nil, phone: nil)
290
+ @address = address
291
+ @name = name
292
+ @phone = phone
293
+ end
294
+ end
295
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
296
+ attr_accessor :applied
297
+ # 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.
298
+ attr_accessor :automatic_indirect_tax
299
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
300
+ attr_accessor :billing
301
+ # Capabilities that have been requested on the Customer Configuration.
302
+ attr_accessor :capabilities
303
+ # The customer's shipping information. Appears on invoices emailed to this customer.
304
+ attr_accessor :shipping
305
+ # 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.
306
+ attr_accessor :test_clock
307
+
308
+ def initialize(
309
+ applied: nil,
310
+ automatic_indirect_tax: nil,
311
+ billing: nil,
312
+ capabilities: nil,
313
+ shipping: nil,
314
+ test_clock: nil
315
+ )
316
+ @applied = applied
317
+ @automatic_indirect_tax = automatic_indirect_tax
318
+ @billing = billing
319
+ @capabilities = capabilities
320
+ @shipping = shipping
321
+ @test_clock = test_clock
322
+ end
323
+ end
324
+
325
+ class Merchant < ::Stripe::RequestParams
326
+ class BacsDebitPayments < ::Stripe::RequestParams
327
+ # Display name for Bacs debit payments.
328
+ attr_accessor :display_name
329
+
330
+ def initialize(display_name: nil)
331
+ @display_name = display_name
332
+ end
333
+ end
334
+
335
+ class Branding < ::Stripe::RequestParams
336
+ # 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.
337
+ attr_accessor :icon
338
+ # 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.
339
+ attr_accessor :logo
340
+ # A CSS hex color value representing the primary branding color for the merchant.
341
+ attr_accessor :primary_color
342
+ # A CSS hex color value representing the secondary branding color for the merchant.
343
+ attr_accessor :secondary_color
344
+
345
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
346
+ @icon = icon
347
+ @logo = logo
348
+ @primary_color = primary_color
349
+ @secondary_color = secondary_color
350
+ end
351
+ end
352
+
353
+ class Capabilities < ::Stripe::RequestParams
354
+ class AchDebitPayments < ::Stripe::RequestParams
355
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
356
+ attr_accessor :requested
357
+
358
+ def initialize(requested: nil)
359
+ @requested = requested
360
+ end
361
+ end
362
+
363
+ class AcssDebitPayments < ::Stripe::RequestParams
364
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
365
+ attr_accessor :requested
366
+
367
+ def initialize(requested: nil)
368
+ @requested = requested
369
+ end
370
+ end
371
+
372
+ class AffirmPayments < ::Stripe::RequestParams
373
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
374
+ attr_accessor :requested
375
+
376
+ def initialize(requested: nil)
377
+ @requested = requested
378
+ end
379
+ end
380
+
381
+ class AfterpayClearpayPayments < ::Stripe::RequestParams
382
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
383
+ attr_accessor :requested
384
+
385
+ def initialize(requested: nil)
386
+ @requested = requested
387
+ end
388
+ end
389
+
390
+ class AlmaPayments < ::Stripe::RequestParams
391
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
392
+ attr_accessor :requested
393
+
394
+ def initialize(requested: nil)
395
+ @requested = requested
396
+ end
397
+ end
398
+
399
+ class AmazonPayPayments < ::Stripe::RequestParams
400
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
401
+ attr_accessor :requested
402
+
403
+ def initialize(requested: nil)
404
+ @requested = requested
405
+ end
406
+ end
407
+
408
+ class AuBecsDebitPayments < ::Stripe::RequestParams
409
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
410
+ attr_accessor :requested
411
+
412
+ def initialize(requested: nil)
413
+ @requested = requested
414
+ end
415
+ end
416
+
417
+ class BacsDebitPayments < ::Stripe::RequestParams
418
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
419
+ attr_accessor :requested
420
+
421
+ def initialize(requested: nil)
422
+ @requested = requested
423
+ end
424
+ end
425
+
426
+ class BancontactPayments < ::Stripe::RequestParams
427
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
428
+ attr_accessor :requested
429
+
430
+ def initialize(requested: nil)
431
+ @requested = requested
432
+ end
433
+ end
434
+
435
+ class BlikPayments < ::Stripe::RequestParams
436
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
437
+ attr_accessor :requested
438
+
439
+ def initialize(requested: nil)
440
+ @requested = requested
441
+ end
442
+ end
443
+
444
+ class BoletoPayments < ::Stripe::RequestParams
445
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
446
+ attr_accessor :requested
447
+
448
+ def initialize(requested: nil)
449
+ @requested = requested
450
+ end
451
+ end
452
+
453
+ class CardPayments < ::Stripe::RequestParams
454
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
455
+ attr_accessor :requested
456
+
457
+ def initialize(requested: nil)
458
+ @requested = requested
459
+ end
460
+ end
461
+
462
+ class CartesBancairesPayments < ::Stripe::RequestParams
463
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
464
+ attr_accessor :requested
465
+
466
+ def initialize(requested: nil)
467
+ @requested = requested
468
+ end
469
+ end
470
+
471
+ class CashappPayments < ::Stripe::RequestParams
472
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
473
+ attr_accessor :requested
474
+
475
+ def initialize(requested: nil)
476
+ @requested = requested
477
+ end
478
+ end
479
+
480
+ class EpsPayments < ::Stripe::RequestParams
481
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
482
+ attr_accessor :requested
483
+
484
+ def initialize(requested: nil)
485
+ @requested = requested
486
+ end
487
+ end
488
+
489
+ class FpxPayments < ::Stripe::RequestParams
490
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
491
+ attr_accessor :requested
492
+
493
+ def initialize(requested: nil)
494
+ @requested = requested
495
+ end
496
+ end
497
+
498
+ class GbBankTransferPayments < ::Stripe::RequestParams
499
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
500
+ attr_accessor :requested
501
+
502
+ def initialize(requested: nil)
503
+ @requested = requested
504
+ end
505
+ end
506
+
507
+ class GrabpayPayments < ::Stripe::RequestParams
508
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
509
+ attr_accessor :requested
510
+
511
+ def initialize(requested: nil)
512
+ @requested = requested
513
+ end
514
+ end
515
+
516
+ class IdealPayments < ::Stripe::RequestParams
517
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
518
+ attr_accessor :requested
519
+
520
+ def initialize(requested: nil)
521
+ @requested = requested
522
+ end
523
+ end
524
+
525
+ class JcbPayments < ::Stripe::RequestParams
526
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
527
+ attr_accessor :requested
528
+
529
+ def initialize(requested: nil)
530
+ @requested = requested
531
+ end
532
+ end
533
+
534
+ class JpBankTransferPayments < ::Stripe::RequestParams
535
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
536
+ attr_accessor :requested
537
+
538
+ def initialize(requested: nil)
539
+ @requested = requested
540
+ end
541
+ end
542
+
543
+ class KakaoPayPayments < ::Stripe::RequestParams
544
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
545
+ attr_accessor :requested
546
+
547
+ def initialize(requested: nil)
548
+ @requested = requested
549
+ end
550
+ end
551
+
552
+ class KlarnaPayments < ::Stripe::RequestParams
553
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
554
+ attr_accessor :requested
555
+
556
+ def initialize(requested: nil)
557
+ @requested = requested
558
+ end
559
+ end
560
+
561
+ class KonbiniPayments < ::Stripe::RequestParams
562
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
563
+ attr_accessor :requested
564
+
565
+ def initialize(requested: nil)
566
+ @requested = requested
567
+ end
568
+ end
569
+
570
+ class KrCardPayments < ::Stripe::RequestParams
571
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
572
+ attr_accessor :requested
573
+
574
+ def initialize(requested: nil)
575
+ @requested = requested
576
+ end
577
+ end
578
+
579
+ class LinkPayments < ::Stripe::RequestParams
580
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
581
+ attr_accessor :requested
582
+
583
+ def initialize(requested: nil)
584
+ @requested = requested
585
+ end
586
+ end
587
+
588
+ class MobilepayPayments < ::Stripe::RequestParams
589
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
590
+ attr_accessor :requested
591
+
592
+ def initialize(requested: nil)
593
+ @requested = requested
594
+ end
595
+ end
596
+
597
+ class MultibancoPayments < ::Stripe::RequestParams
598
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
599
+ attr_accessor :requested
600
+
601
+ def initialize(requested: nil)
602
+ @requested = requested
603
+ end
604
+ end
605
+
606
+ class MxBankTransferPayments < ::Stripe::RequestParams
607
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
608
+ attr_accessor :requested
609
+
610
+ def initialize(requested: nil)
611
+ @requested = requested
612
+ end
613
+ end
614
+
615
+ class NaverPayPayments < ::Stripe::RequestParams
616
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
617
+ attr_accessor :requested
618
+
619
+ def initialize(requested: nil)
620
+ @requested = requested
621
+ end
622
+ end
623
+
624
+ class OxxoPayments < ::Stripe::RequestParams
625
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
626
+ attr_accessor :requested
627
+
628
+ def initialize(requested: nil)
629
+ @requested = requested
630
+ end
631
+ end
632
+
633
+ class P24Payments < ::Stripe::RequestParams
634
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
635
+ attr_accessor :requested
636
+
637
+ def initialize(requested: nil)
638
+ @requested = requested
639
+ end
640
+ end
641
+
642
+ class PayByBankPayments < ::Stripe::RequestParams
643
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
644
+ attr_accessor :requested
645
+
646
+ def initialize(requested: nil)
647
+ @requested = requested
648
+ end
649
+ end
650
+
651
+ class PaycoPayments < ::Stripe::RequestParams
652
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
653
+ attr_accessor :requested
654
+
655
+ def initialize(requested: nil)
656
+ @requested = requested
657
+ end
658
+ end
659
+
660
+ class PaynowPayments < ::Stripe::RequestParams
661
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
662
+ attr_accessor :requested
663
+
664
+ def initialize(requested: nil)
665
+ @requested = requested
666
+ end
667
+ end
668
+
669
+ class PromptpayPayments < ::Stripe::RequestParams
670
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
671
+ attr_accessor :requested
672
+
673
+ def initialize(requested: nil)
674
+ @requested = requested
675
+ end
676
+ end
677
+
678
+ class RevolutPayPayments < ::Stripe::RequestParams
679
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
680
+ attr_accessor :requested
681
+
682
+ def initialize(requested: nil)
683
+ @requested = requested
684
+ end
685
+ end
686
+
687
+ class SamsungPayPayments < ::Stripe::RequestParams
688
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
689
+ attr_accessor :requested
690
+
691
+ def initialize(requested: nil)
692
+ @requested = requested
693
+ end
694
+ end
695
+
696
+ class SepaBankTransferPayments < ::Stripe::RequestParams
697
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
698
+ attr_accessor :requested
699
+
700
+ def initialize(requested: nil)
701
+ @requested = requested
702
+ end
703
+ end
704
+
705
+ class SepaDebitPayments < ::Stripe::RequestParams
706
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
707
+ attr_accessor :requested
708
+
709
+ def initialize(requested: nil)
710
+ @requested = requested
711
+ end
712
+ end
713
+
714
+ class SwishPayments < ::Stripe::RequestParams
715
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
716
+ attr_accessor :requested
717
+
718
+ def initialize(requested: nil)
719
+ @requested = requested
720
+ end
721
+ end
722
+
723
+ class TwintPayments < ::Stripe::RequestParams
724
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
725
+ attr_accessor :requested
726
+
727
+ def initialize(requested: nil)
728
+ @requested = requested
729
+ end
730
+ end
731
+
732
+ class UsBankTransferPayments < ::Stripe::RequestParams
733
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
734
+ attr_accessor :requested
735
+
736
+ def initialize(requested: nil)
737
+ @requested = requested
738
+ end
739
+ end
740
+
741
+ class ZipPayments < ::Stripe::RequestParams
742
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
743
+ attr_accessor :requested
744
+
745
+ def initialize(requested: nil)
746
+ @requested = requested
747
+ end
748
+ end
749
+ # Allow the merchant to process ACH debit payments.
750
+ attr_accessor :ach_debit_payments
751
+ # Allow the merchant to process ACSS debit payments.
752
+ attr_accessor :acss_debit_payments
753
+ # Allow the merchant to process Affirm payments.
754
+ attr_accessor :affirm_payments
755
+ # Allow the merchant to process Afterpay/Clearpay payments.
756
+ attr_accessor :afterpay_clearpay_payments
757
+ # Allow the merchant to process Alma payments.
758
+ attr_accessor :alma_payments
759
+ # Allow the merchant to process Amazon Pay payments.
760
+ attr_accessor :amazon_pay_payments
761
+ # Allow the merchant to process Australian BECS Direct Debit payments.
762
+ attr_accessor :au_becs_debit_payments
763
+ # Allow the merchant to process BACS Direct Debit payments.
764
+ attr_accessor :bacs_debit_payments
765
+ # Allow the merchant to process Bancontact payments.
766
+ attr_accessor :bancontact_payments
767
+ # Allow the merchant to process BLIK payments.
768
+ attr_accessor :blik_payments
769
+ # Allow the merchant to process Boleto payments.
770
+ attr_accessor :boleto_payments
771
+ # Allow the merchant to collect card payments.
772
+ attr_accessor :card_payments
773
+ # Allow the merchant to process Cartes Bancaires payments.
774
+ attr_accessor :cartes_bancaires_payments
775
+ # Allow the merchant to process Cash App payments.
776
+ attr_accessor :cashapp_payments
777
+ # Allow the merchant to process EPS payments.
778
+ attr_accessor :eps_payments
779
+ # Allow the merchant to process FPX payments.
780
+ attr_accessor :fpx_payments
781
+ # Allow the merchant to process UK bank transfer payments.
782
+ attr_accessor :gb_bank_transfer_payments
783
+ # Allow the merchant to process GrabPay payments.
784
+ attr_accessor :grabpay_payments
785
+ # Allow the merchant to process iDEAL payments.
786
+ attr_accessor :ideal_payments
787
+ # Allow the merchant to process JCB card payments.
788
+ attr_accessor :jcb_payments
789
+ # Allow the merchant to process Japanese bank transfer payments.
790
+ attr_accessor :jp_bank_transfer_payments
791
+ # Allow the merchant to process Kakao Pay payments.
792
+ attr_accessor :kakao_pay_payments
793
+ # Allow the merchant to process Klarna payments.
794
+ attr_accessor :klarna_payments
795
+ # Allow the merchant to process Konbini convenience store payments.
796
+ attr_accessor :konbini_payments
797
+ # Allow the merchant to process Korean card payments.
798
+ attr_accessor :kr_card_payments
799
+ # Allow the merchant to process Link payments.
800
+ attr_accessor :link_payments
801
+ # Allow the merchant to process MobilePay payments.
802
+ attr_accessor :mobilepay_payments
803
+ # Allow the merchant to process Multibanco payments.
804
+ attr_accessor :multibanco_payments
805
+ # Allow the merchant to process Mexican bank transfer payments.
806
+ attr_accessor :mx_bank_transfer_payments
807
+ # Allow the merchant to process Naver Pay payments.
808
+ attr_accessor :naver_pay_payments
809
+ # Allow the merchant to process OXXO payments.
810
+ attr_accessor :oxxo_payments
811
+ # Allow the merchant to process Przelewy24 (P24) payments.
812
+ attr_accessor :p24_payments
813
+ # Allow the merchant to process Pay by Bank payments.
814
+ attr_accessor :pay_by_bank_payments
815
+ # Allow the merchant to process PAYCO payments.
816
+ attr_accessor :payco_payments
817
+ # Allow the merchant to process PayNow payments.
818
+ attr_accessor :paynow_payments
819
+ # Allow the merchant to process PromptPay payments.
820
+ attr_accessor :promptpay_payments
821
+ # Allow the merchant to process Revolut Pay payments.
822
+ attr_accessor :revolut_pay_payments
823
+ # Allow the merchant to process Samsung Pay payments.
824
+ attr_accessor :samsung_pay_payments
825
+ # Allow the merchant to process SEPA bank transfer payments.
826
+ attr_accessor :sepa_bank_transfer_payments
827
+ # Allow the merchant to process SEPA Direct Debit payments.
828
+ attr_accessor :sepa_debit_payments
829
+ # Allow the merchant to process Swish payments.
830
+ attr_accessor :swish_payments
831
+ # Allow the merchant to process TWINT payments.
832
+ attr_accessor :twint_payments
833
+ # Allow the merchant to process US bank transfer payments.
834
+ attr_accessor :us_bank_transfer_payments
835
+ # Allow the merchant to process Zip payments.
836
+ attr_accessor :zip_payments
837
+
838
+ def initialize(
839
+ ach_debit_payments: nil,
840
+ acss_debit_payments: nil,
841
+ affirm_payments: nil,
842
+ afterpay_clearpay_payments: nil,
843
+ alma_payments: nil,
844
+ amazon_pay_payments: nil,
845
+ au_becs_debit_payments: nil,
846
+ bacs_debit_payments: nil,
847
+ bancontact_payments: nil,
848
+ blik_payments: nil,
849
+ boleto_payments: nil,
850
+ card_payments: nil,
851
+ cartes_bancaires_payments: nil,
852
+ cashapp_payments: nil,
853
+ eps_payments: nil,
854
+ fpx_payments: nil,
855
+ gb_bank_transfer_payments: nil,
856
+ grabpay_payments: nil,
857
+ ideal_payments: nil,
858
+ jcb_payments: nil,
859
+ jp_bank_transfer_payments: nil,
860
+ kakao_pay_payments: nil,
861
+ klarna_payments: nil,
862
+ konbini_payments: nil,
863
+ kr_card_payments: nil,
864
+ link_payments: nil,
865
+ mobilepay_payments: nil,
866
+ multibanco_payments: nil,
867
+ mx_bank_transfer_payments: nil,
868
+ naver_pay_payments: nil,
869
+ oxxo_payments: nil,
870
+ p24_payments: nil,
871
+ pay_by_bank_payments: nil,
872
+ payco_payments: nil,
873
+ paynow_payments: nil,
874
+ promptpay_payments: nil,
875
+ revolut_pay_payments: nil,
876
+ samsung_pay_payments: nil,
877
+ sepa_bank_transfer_payments: nil,
878
+ sepa_debit_payments: nil,
879
+ swish_payments: nil,
880
+ twint_payments: nil,
881
+ us_bank_transfer_payments: nil,
882
+ zip_payments: nil
883
+ )
884
+ @ach_debit_payments = ach_debit_payments
885
+ @acss_debit_payments = acss_debit_payments
886
+ @affirm_payments = affirm_payments
887
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
888
+ @alma_payments = alma_payments
889
+ @amazon_pay_payments = amazon_pay_payments
890
+ @au_becs_debit_payments = au_becs_debit_payments
891
+ @bacs_debit_payments = bacs_debit_payments
892
+ @bancontact_payments = bancontact_payments
893
+ @blik_payments = blik_payments
894
+ @boleto_payments = boleto_payments
895
+ @card_payments = card_payments
896
+ @cartes_bancaires_payments = cartes_bancaires_payments
897
+ @cashapp_payments = cashapp_payments
898
+ @eps_payments = eps_payments
899
+ @fpx_payments = fpx_payments
900
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
901
+ @grabpay_payments = grabpay_payments
902
+ @ideal_payments = ideal_payments
903
+ @jcb_payments = jcb_payments
904
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
905
+ @kakao_pay_payments = kakao_pay_payments
906
+ @klarna_payments = klarna_payments
907
+ @konbini_payments = konbini_payments
908
+ @kr_card_payments = kr_card_payments
909
+ @link_payments = link_payments
910
+ @mobilepay_payments = mobilepay_payments
911
+ @multibanco_payments = multibanco_payments
912
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
913
+ @naver_pay_payments = naver_pay_payments
914
+ @oxxo_payments = oxxo_payments
915
+ @p24_payments = p24_payments
916
+ @pay_by_bank_payments = pay_by_bank_payments
917
+ @payco_payments = payco_payments
918
+ @paynow_payments = paynow_payments
919
+ @promptpay_payments = promptpay_payments
920
+ @revolut_pay_payments = revolut_pay_payments
921
+ @samsung_pay_payments = samsung_pay_payments
922
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
923
+ @sepa_debit_payments = sepa_debit_payments
924
+ @swish_payments = swish_payments
925
+ @twint_payments = twint_payments
926
+ @us_bank_transfer_payments = us_bank_transfer_payments
927
+ @zip_payments = zip_payments
928
+ end
929
+ end
930
+
931
+ class CardPayments < ::Stripe::RequestParams
932
+ class DeclineOn < ::Stripe::RequestParams
933
+ # 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.
934
+ attr_accessor :avs_failure
935
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
936
+ attr_accessor :cvc_failure
937
+
938
+ def initialize(avs_failure: nil, cvc_failure: nil)
939
+ @avs_failure = avs_failure
940
+ @cvc_failure = cvc_failure
941
+ end
942
+ end
943
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
944
+ attr_accessor :decline_on
945
+
946
+ def initialize(decline_on: nil)
947
+ @decline_on = decline_on
948
+ end
949
+ end
950
+
951
+ class KonbiniPayments < ::Stripe::RequestParams
952
+ class Support < ::Stripe::RequestParams
953
+ class Hours < ::Stripe::RequestParams
954
+ # Support hours end time (JST time of day) for in `HH:MM` format.
955
+ attr_accessor :end_time
956
+ # Support hours start time (JST time of day) for in `HH:MM` format.
957
+ attr_accessor :start_time
958
+
959
+ def initialize(end_time: nil, start_time: nil)
960
+ @end_time = end_time
961
+ @start_time = start_time
962
+ end
963
+ end
964
+ # Support email address for Konbini payments.
965
+ attr_accessor :email
966
+ # Support hours for Konbini payments.
967
+ attr_accessor :hours
968
+ # Support phone number for Konbini payments.
969
+ attr_accessor :phone
970
+
971
+ def initialize(email: nil, hours: nil, phone: nil)
972
+ @email = email
973
+ @hours = hours
974
+ @phone = phone
975
+ end
976
+ end
977
+ # Support for Konbini payments.
978
+ attr_accessor :support
979
+
980
+ def initialize(support: nil)
981
+ @support = support
982
+ end
983
+ end
984
+
985
+ class ScriptStatementDescriptor < ::Stripe::RequestParams
986
+ class Kana < ::Stripe::RequestParams
987
+ # 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.
988
+ attr_accessor :descriptor
989
+ # 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.
990
+ attr_accessor :prefix
991
+
992
+ def initialize(descriptor: nil, prefix: nil)
993
+ @descriptor = descriptor
994
+ @prefix = prefix
995
+ end
996
+ end
997
+
998
+ class Kanji < ::Stripe::RequestParams
999
+ # 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.
1000
+ attr_accessor :descriptor
1001
+ # 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.
1002
+ attr_accessor :prefix
1003
+
1004
+ def initialize(descriptor: nil, prefix: nil)
1005
+ @descriptor = descriptor
1006
+ @prefix = prefix
1007
+ end
1008
+ end
1009
+ # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1010
+ attr_accessor :kana
1011
+ # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1012
+ attr_accessor :kanji
1013
+
1014
+ def initialize(kana: nil, kanji: nil)
1015
+ @kana = kana
1016
+ @kanji = kanji
1017
+ end
1018
+ end
1019
+
1020
+ class StatementDescriptor < ::Stripe::RequestParams
1021
+ # 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.
1022
+ attr_accessor :descriptor
1023
+ # 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.
1024
+ attr_accessor :prefix
1025
+
1026
+ def initialize(descriptor: nil, prefix: nil)
1027
+ @descriptor = descriptor
1028
+ @prefix = prefix
1029
+ end
1030
+ end
1031
+
1032
+ class Support < ::Stripe::RequestParams
1033
+ class Address < ::Stripe::RequestParams
1034
+ # City, district, suburb, town, or village.
1035
+ attr_accessor :city
1036
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1037
+ attr_accessor :country
1038
+ # Address line 1 (e.g., street, PO Box, or company name).
1039
+ attr_accessor :line1
1040
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1041
+ attr_accessor :line2
1042
+ # ZIP or postal code.
1043
+ attr_accessor :postal_code
1044
+ # State, county, province, or region.
1045
+ attr_accessor :state
1046
+ # Town or cho-me.
1047
+ attr_accessor :town
1048
+
1049
+ def initialize(
1050
+ city: nil,
1051
+ country: nil,
1052
+ line1: nil,
1053
+ line2: nil,
1054
+ postal_code: nil,
1055
+ state: nil,
1056
+ town: nil
1057
+ )
1058
+ @city = city
1059
+ @country = country
1060
+ @line1 = line1
1061
+ @line2 = line2
1062
+ @postal_code = postal_code
1063
+ @state = state
1064
+ @town = town
1065
+ end
1066
+ end
1067
+ # A publicly available mailing address for sending support issues to.
1068
+ attr_accessor :address
1069
+ # A publicly available email address for sending support issues to.
1070
+ attr_accessor :email
1071
+ # A publicly available phone number to call with support issues.
1072
+ attr_accessor :phone
1073
+ # A publicly available website for handling support issues.
1074
+ attr_accessor :url
1075
+
1076
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
1077
+ @address = address
1078
+ @email = email
1079
+ @phone = phone
1080
+ @url = url
1081
+ end
1082
+ end
1083
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1084
+ attr_accessor :applied
1085
+ # Settings used for Bacs debit payments.
1086
+ attr_accessor :bacs_debit_payments
1087
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
1088
+ attr_accessor :branding
1089
+ # Capabilities to request on the Merchant Configuration.
1090
+ attr_accessor :capabilities
1091
+ # Card payments settings.
1092
+ attr_accessor :card_payments
1093
+ # Settings specific to Konbini payments on the account.
1094
+ attr_accessor :konbini_payments
1095
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
1096
+ attr_accessor :mcc
1097
+ # Settings for the default text that appears on statements for language variations.
1098
+ attr_accessor :script_statement_descriptor
1099
+ # Statement descriptor.
1100
+ attr_accessor :statement_descriptor
1101
+ # Publicly available contact information for sending support issues to.
1102
+ attr_accessor :support
1103
+
1104
+ def initialize(
1105
+ applied: nil,
1106
+ bacs_debit_payments: nil,
1107
+ branding: nil,
1108
+ capabilities: nil,
1109
+ card_payments: nil,
1110
+ konbini_payments: nil,
1111
+ mcc: nil,
1112
+ script_statement_descriptor: nil,
1113
+ statement_descriptor: nil,
1114
+ support: nil
1115
+ )
1116
+ @applied = applied
1117
+ @bacs_debit_payments = bacs_debit_payments
1118
+ @branding = branding
1119
+ @capabilities = capabilities
1120
+ @card_payments = card_payments
1121
+ @konbini_payments = konbini_payments
1122
+ @mcc = mcc
1123
+ @script_statement_descriptor = script_statement_descriptor
1124
+ @statement_descriptor = statement_descriptor
1125
+ @support = support
1126
+ end
1127
+ end
1128
+
1129
+ class Recipient < ::Stripe::RequestParams
1130
+ class Capabilities < ::Stripe::RequestParams
1131
+ class BankAccounts < ::Stripe::RequestParams
1132
+ class Local < ::Stripe::RequestParams
1133
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1134
+ attr_accessor :requested
1135
+
1136
+ def initialize(requested: nil)
1137
+ @requested = requested
1138
+ end
1139
+ end
1140
+
1141
+ class Wire < ::Stripe::RequestParams
1142
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1143
+ attr_accessor :requested
1144
+
1145
+ def initialize(requested: nil)
1146
+ @requested = requested
1147
+ end
1148
+ end
1149
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1150
+ attr_accessor :local
1151
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1152
+ attr_accessor :wire
1153
+
1154
+ def initialize(local: nil, wire: nil)
1155
+ @local = local
1156
+ @wire = wire
1157
+ end
1158
+ end
1159
+
1160
+ class Cards < ::Stripe::RequestParams
1161
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1162
+ attr_accessor :requested
1163
+
1164
+ def initialize(requested: nil)
1165
+ @requested = requested
1166
+ end
1167
+ end
1168
+
1169
+ class CryptoWallets < ::Stripe::RequestParams
1170
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1171
+ attr_accessor :requested
1172
+
1173
+ def initialize(requested: nil)
1174
+ @requested = requested
1175
+ end
1176
+ end
1177
+
1178
+ class StripeBalance < ::Stripe::RequestParams
1179
+ class StripeTransfers < ::Stripe::RequestParams
1180
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1181
+ attr_accessor :requested
1182
+
1183
+ def initialize(requested: nil)
1184
+ @requested = requested
1185
+ end
1186
+ end
1187
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1188
+ attr_accessor :stripe_transfers
1189
+
1190
+ def initialize(stripe_transfers: nil)
1191
+ @stripe_transfers = stripe_transfers
1192
+ end
1193
+ end
1194
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1195
+ attr_accessor :bank_accounts
1196
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
1197
+ attr_accessor :cards
1198
+ # Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
1199
+ attr_accessor :crypto_wallets
1200
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1201
+ attr_accessor :stripe_balance
1202
+
1203
+ def initialize(
1204
+ bank_accounts: nil,
1205
+ cards: nil,
1206
+ crypto_wallets: nil,
1207
+ stripe_balance: nil
1208
+ )
1209
+ @bank_accounts = bank_accounts
1210
+ @cards = cards
1211
+ @crypto_wallets = crypto_wallets
1212
+ @stripe_balance = stripe_balance
1213
+ end
1214
+ end
1215
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1216
+ attr_accessor :applied
1217
+ # Capabilities to request on the Recipient Configuration.
1218
+ attr_accessor :capabilities
1219
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
1220
+ attr_accessor :default_outbound_destination
1221
+
1222
+ def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
1223
+ @applied = applied
1224
+ @capabilities = capabilities
1225
+ @default_outbound_destination = default_outbound_destination
1226
+ end
1227
+ end
1228
+
1229
+ class Storer < ::Stripe::RequestParams
1230
+ class Capabilities < ::Stripe::RequestParams
1231
+ class FinancialAddresses < ::Stripe::RequestParams
1232
+ class BankAccounts < ::Stripe::RequestParams
1233
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1234
+ attr_accessor :requested
1235
+
1236
+ def initialize(requested: nil)
1237
+ @requested = requested
1238
+ end
1239
+ end
1240
+
1241
+ class CryptoWallets < ::Stripe::RequestParams
1242
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1243
+ attr_accessor :requested
1244
+
1245
+ def initialize(requested: nil)
1246
+ @requested = requested
1247
+ end
1248
+ end
1249
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1250
+ attr_accessor :bank_accounts
1251
+ # Can provision a crypto wallet like financial address to credit a FinancialAccount.
1252
+ attr_accessor :crypto_wallets
1253
+
1254
+ def initialize(bank_accounts: nil, crypto_wallets: nil)
1255
+ @bank_accounts = bank_accounts
1256
+ @crypto_wallets = crypto_wallets
1257
+ end
1258
+ end
1259
+
1260
+ class HoldsCurrencies < ::Stripe::RequestParams
1261
+ class Eur < ::Stripe::RequestParams
1262
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1263
+ attr_accessor :requested
1264
+
1265
+ def initialize(requested: nil)
1266
+ @requested = requested
1267
+ end
1268
+ end
1269
+
1270
+ class Gbp < ::Stripe::RequestParams
1271
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1272
+ attr_accessor :requested
1273
+
1274
+ def initialize(requested: nil)
1275
+ @requested = requested
1276
+ end
1277
+ end
1278
+
1279
+ class Usd < ::Stripe::RequestParams
1280
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1281
+ attr_accessor :requested
1282
+
1283
+ def initialize(requested: nil)
1284
+ @requested = requested
1285
+ end
1286
+ end
1287
+
1288
+ class Usdc < ::Stripe::RequestParams
1289
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1290
+ attr_accessor :requested
1291
+
1292
+ def initialize(requested: nil)
1293
+ @requested = requested
1294
+ end
1295
+ end
1296
+ # Can hold storage-type funds on Stripe in EUR.
1297
+ attr_accessor :eur
1298
+ # Can hold storage-type funds on Stripe in GBP.
1299
+ attr_accessor :gbp
1300
+ # Can hold storage-type funds on Stripe in USD.
1301
+ attr_accessor :usd
1302
+ # Can hold storage-type funds on Stripe in USDC.
1303
+ attr_accessor :usdc
1304
+
1305
+ def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil)
1306
+ @eur = eur
1307
+ @gbp = gbp
1308
+ @usd = usd
1309
+ @usdc = usdc
1310
+ end
1311
+ end
1312
+
1313
+ class InboundTransfers < ::Stripe::RequestParams
1314
+ class BankAccounts < ::Stripe::RequestParams
1315
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1316
+ attr_accessor :requested
1317
+
1318
+ def initialize(requested: nil)
1319
+ @requested = requested
1320
+ end
1321
+ end
1322
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1323
+ attr_accessor :bank_accounts
1324
+
1325
+ def initialize(bank_accounts: nil)
1326
+ @bank_accounts = bank_accounts
1327
+ end
1328
+ end
1329
+
1330
+ class OutboundPayments < ::Stripe::RequestParams
1331
+ class BankAccounts < ::Stripe::RequestParams
1332
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1333
+ attr_accessor :requested
1334
+
1335
+ def initialize(requested: nil)
1336
+ @requested = requested
1337
+ end
1338
+ end
1339
+
1340
+ class Cards < ::Stripe::RequestParams
1341
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1342
+ attr_accessor :requested
1343
+
1344
+ def initialize(requested: nil)
1345
+ @requested = requested
1346
+ end
1347
+ end
1348
+
1349
+ class CryptoWallets < ::Stripe::RequestParams
1350
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1351
+ attr_accessor :requested
1352
+
1353
+ def initialize(requested: nil)
1354
+ @requested = requested
1355
+ end
1356
+ end
1357
+
1358
+ class FinancialAccounts < ::Stripe::RequestParams
1359
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1360
+ attr_accessor :requested
1361
+
1362
+ def initialize(requested: nil)
1363
+ @requested = requested
1364
+ end
1365
+ end
1366
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1367
+ attr_accessor :bank_accounts
1368
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1369
+ attr_accessor :cards
1370
+ # Can send funds from a FinancialAccount to a crypto wallet owned by someone else.
1371
+ attr_accessor :crypto_wallets
1372
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1373
+ attr_accessor :financial_accounts
1374
+
1375
+ def initialize(
1376
+ bank_accounts: nil,
1377
+ cards: nil,
1378
+ crypto_wallets: nil,
1379
+ financial_accounts: nil
1380
+ )
1381
+ @bank_accounts = bank_accounts
1382
+ @cards = cards
1383
+ @crypto_wallets = crypto_wallets
1384
+ @financial_accounts = financial_accounts
1385
+ end
1386
+ end
1387
+
1388
+ class OutboundTransfers < ::Stripe::RequestParams
1389
+ class BankAccounts < ::Stripe::RequestParams
1390
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1391
+ attr_accessor :requested
1392
+
1393
+ def initialize(requested: nil)
1394
+ @requested = requested
1395
+ end
1396
+ end
1397
+
1398
+ class CryptoWallets < ::Stripe::RequestParams
1399
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1400
+ attr_accessor :requested
1401
+
1402
+ def initialize(requested: nil)
1403
+ @requested = requested
1404
+ end
1405
+ end
1406
+
1407
+ class FinancialAccounts < ::Stripe::RequestParams
1408
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1409
+ attr_accessor :requested
1410
+
1411
+ def initialize(requested: nil)
1412
+ @requested = requested
1413
+ end
1414
+ end
1415
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1416
+ attr_accessor :bank_accounts
1417
+ # Can send funds from a FinancialAccount to a crypto wallet owned by yourself.
1418
+ attr_accessor :crypto_wallets
1419
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1420
+ attr_accessor :financial_accounts
1421
+
1422
+ def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil)
1423
+ @bank_accounts = bank_accounts
1424
+ @crypto_wallets = crypto_wallets
1425
+ @financial_accounts = financial_accounts
1426
+ end
1427
+ end
1428
+ # Can provision a financial address to credit/debit a FinancialAccount.
1429
+ attr_accessor :financial_addresses
1430
+ # Can hold storage-type funds on Stripe.
1431
+ attr_accessor :holds_currencies
1432
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1433
+ attr_accessor :inbound_transfers
1434
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1435
+ attr_accessor :outbound_payments
1436
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1437
+ attr_accessor :outbound_transfers
1438
+
1439
+ def initialize(
1440
+ financial_addresses: nil,
1441
+ holds_currencies: nil,
1442
+ inbound_transfers: nil,
1443
+ outbound_payments: nil,
1444
+ outbound_transfers: nil
1445
+ )
1446
+ @financial_addresses = financial_addresses
1447
+ @holds_currencies = holds_currencies
1448
+ @inbound_transfers = inbound_transfers
1449
+ @outbound_payments = outbound_payments
1450
+ @outbound_transfers = outbound_transfers
1451
+ end
1452
+ end
1453
+
1454
+ class RegulatedActivity < ::Stripe::RequestParams
1455
+ # A detailed description of the regulated activities the business is licensed to conduct.
1456
+ attr_accessor :description
1457
+ # The license number or registration number assigned by the business's primary regulator.
1458
+ attr_accessor :license_number
1459
+ # The country of the primary regulatory authority that oversees the business's regulated activities.
1460
+ attr_accessor :primary_regulatory_authority_country
1461
+ # The name of the primary regulatory authority that oversees the business's regulated activities.
1462
+ attr_accessor :primary_regulatory_authority_name
1463
+
1464
+ def initialize(
1465
+ description: nil,
1466
+ license_number: nil,
1467
+ primary_regulatory_authority_country: nil,
1468
+ primary_regulatory_authority_name: nil
1469
+ )
1470
+ @description = description
1471
+ @license_number = license_number
1472
+ @primary_regulatory_authority_country = primary_regulatory_authority_country
1473
+ @primary_regulatory_authority_name = primary_regulatory_authority_name
1474
+ end
1475
+ end
1476
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1477
+ attr_accessor :applied
1478
+ # Capabilities to request on the Storer Configuration.
1479
+ attr_accessor :capabilities
1480
+ # List of high-risk activities the business is involved in.
1481
+ attr_accessor :high_risk_activities
1482
+ # An explanation of the high risk activities that the business performs.
1483
+ attr_accessor :high_risk_activities_description
1484
+ # Description of the money services offered by the business.
1485
+ attr_accessor :money_services_description
1486
+ # Does the business operate in any prohibited countries.
1487
+ attr_accessor :operates_in_prohibited_countries
1488
+ # Does the business participate in any regulated activity.
1489
+ attr_accessor :participates_in_regulated_activity
1490
+ # Primary purpose of the stored funds.
1491
+ attr_accessor :purpose_of_funds
1492
+ # Description of the purpose of the stored funds.
1493
+ attr_accessor :purpose_of_funds_description
1494
+ # Details of the regulated activity if the business participates in one.
1495
+ attr_accessor :regulated_activity
1496
+ # The source of funds for the business, e.g. profits, income, venture capital, etc.
1497
+ attr_accessor :source_of_funds
1498
+ # Description of the source of funds for the business' account.
1499
+ attr_accessor :source_of_funds_description
1500
+
1501
+ def initialize(
1502
+ applied: nil,
1503
+ capabilities: nil,
1504
+ high_risk_activities: nil,
1505
+ high_risk_activities_description: nil,
1506
+ money_services_description: nil,
1507
+ operates_in_prohibited_countries: nil,
1508
+ participates_in_regulated_activity: nil,
1509
+ purpose_of_funds: nil,
1510
+ purpose_of_funds_description: nil,
1511
+ regulated_activity: nil,
1512
+ source_of_funds: nil,
1513
+ source_of_funds_description: nil
1514
+ )
1515
+ @applied = applied
1516
+ @capabilities = capabilities
1517
+ @high_risk_activities = high_risk_activities
1518
+ @high_risk_activities_description = high_risk_activities_description
1519
+ @money_services_description = money_services_description
1520
+ @operates_in_prohibited_countries = operates_in_prohibited_countries
1521
+ @participates_in_regulated_activity = participates_in_regulated_activity
1522
+ @purpose_of_funds = purpose_of_funds
1523
+ @purpose_of_funds_description = purpose_of_funds_description
1524
+ @regulated_activity = regulated_activity
1525
+ @source_of_funds = source_of_funds
1526
+ @source_of_funds_description = source_of_funds_description
1527
+ end
1528
+ end
1529
+ # The CardCreator Configuration allows the Account to create and issue cards to users.
1530
+ attr_accessor :card_creator
1531
+ # The Customer Configuration allows the Account to be charged.
1532
+ attr_accessor :customer
1533
+ # 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.
1534
+ attr_accessor :merchant
1535
+ # The Recipient Configuration allows the Account to receive funds.
1536
+ attr_accessor :recipient
1537
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1538
+ attr_accessor :storer
1539
+
1540
+ def initialize(
1541
+ card_creator: nil,
1542
+ customer: nil,
1543
+ merchant: nil,
1544
+ recipient: nil,
1545
+ storer: nil
1546
+ )
1547
+ @card_creator = card_creator
1548
+ @customer = customer
1549
+ @merchant = merchant
1550
+ @recipient = recipient
1551
+ @storer = storer
1552
+ end
1553
+ end
1554
+
1555
+ class Defaults < ::Stripe::RequestParams
1556
+ class Profile < ::Stripe::RequestParams
1557
+ # The business's publicly-available website.
1558
+ attr_accessor :business_url
1559
+ # The name which is used by the business.
1560
+ attr_accessor :doing_business_as
1561
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1562
+ attr_accessor :product_description
1563
+
1564
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1565
+ @business_url = business_url
1566
+ @doing_business_as = doing_business_as
1567
+ @product_description = product_description
1568
+ end
1569
+ end
1570
+
1571
+ class Responsibilities < ::Stripe::RequestParams
1572
+ # A value indicating the party responsible for collecting fees from this account.
1573
+ attr_accessor :fees_collector
1574
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1575
+ attr_accessor :losses_collector
1576
+
1577
+ def initialize(fees_collector: nil, losses_collector: nil)
1578
+ @fees_collector = fees_collector
1579
+ @losses_collector = losses_collector
1580
+ end
1581
+ end
1582
+ # 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).
1583
+ attr_accessor :currency
1584
+ # The Account's preferred locales (languages), ordered by preference.
1585
+ attr_accessor :locales
1586
+ # Account profile information.
1587
+ attr_accessor :profile
1588
+ # Default responsibilities held by either Stripe or the platform.
1589
+ attr_accessor :responsibilities
1590
+
1591
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1592
+ @currency = currency
1593
+ @locales = locales
1594
+ @profile = profile
1595
+ @responsibilities = responsibilities
1596
+ end
1597
+ end
1598
+
1599
+ class Identity < ::Stripe::RequestParams
1600
+ class Attestations < ::Stripe::RequestParams
1601
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1602
+ # 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.
1603
+ attr_accessor :date
1604
+ # The IP address from which the director attestation was made.
1605
+ attr_accessor :ip
1606
+ # The user agent of the browser from which the director attestation was made.
1607
+ attr_accessor :user_agent
1608
+
1609
+ def initialize(date: nil, ip: nil, user_agent: nil)
1610
+ @date = date
1611
+ @ip = ip
1612
+ @user_agent = user_agent
1613
+ end
1614
+ end
1615
+
1616
+ class OwnershipDeclaration < ::Stripe::RequestParams
1617
+ # 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.
1618
+ attr_accessor :date
1619
+ # The IP address from which the beneficial owner attestation was made.
1620
+ attr_accessor :ip
1621
+ # The user agent of the browser from which the beneficial owner attestation was made.
1622
+ attr_accessor :user_agent
1623
+
1624
+ def initialize(date: nil, ip: nil, user_agent: nil)
1625
+ @date = date
1626
+ @ip = ip
1627
+ @user_agent = user_agent
1628
+ end
1629
+ end
1630
+
1631
+ class PersonsProvided < ::Stripe::RequestParams
1632
+ # 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).
1633
+ attr_accessor :directors
1634
+ # 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).
1635
+ attr_accessor :executives
1636
+ # 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).
1637
+ attr_accessor :owners
1638
+ # Reason for why the company is exempt from providing ownership information.
1639
+ attr_accessor :ownership_exemption_reason
1640
+
1641
+ def initialize(
1642
+ directors: nil,
1643
+ executives: nil,
1644
+ owners: nil,
1645
+ ownership_exemption_reason: nil
1646
+ )
1647
+ @directors = directors
1648
+ @executives = executives
1649
+ @owners = owners
1650
+ @ownership_exemption_reason = ownership_exemption_reason
1651
+ end
1652
+ end
1653
+
1654
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1655
+ # The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1656
+ attr_accessor :date
1657
+ # The IP address from which the representative attestation was made.
1658
+ attr_accessor :ip
1659
+ # The user agent of the browser from which the representative attestation was made.
1660
+ attr_accessor :user_agent
1661
+
1662
+ def initialize(date: nil, ip: nil, user_agent: nil)
1663
+ @date = date
1664
+ @ip = ip
1665
+ @user_agent = user_agent
1666
+ end
1667
+ end
1668
+
1669
+ class TermsOfService < ::Stripe::RequestParams
1670
+ class Account < ::Stripe::RequestParams
1671
+ # 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.
1672
+ attr_accessor :date
1673
+ # The IP address from which the Account's representative accepted the terms of service.
1674
+ attr_accessor :ip
1675
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1676
+ attr_accessor :user_agent
1677
+
1678
+ def initialize(date: nil, ip: nil, user_agent: nil)
1679
+ @date = date
1680
+ @ip = ip
1681
+ @user_agent = user_agent
1682
+ end
1683
+ end
1684
+
1685
+ class CardCreator < ::Stripe::RequestParams
1686
+ class Commercial < ::Stripe::RequestParams
1687
+ class AccountHolder < ::Stripe::RequestParams
1688
+ # 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.
1689
+ attr_accessor :date
1690
+ # The IP address from which the Account's representative accepted the terms of service.
1691
+ attr_accessor :ip
1692
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1693
+ attr_accessor :user_agent
1694
+
1695
+ def initialize(date: nil, ip: nil, user_agent: nil)
1696
+ @date = date
1697
+ @ip = ip
1698
+ @user_agent = user_agent
1699
+ end
1700
+ end
1701
+
1702
+ class Celtic < ::Stripe::RequestParams
1703
+ class ApplePay < ::Stripe::RequestParams
1704
+ # 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.
1705
+ attr_accessor :date
1706
+ # The IP address from which the Account's representative accepted the terms of service.
1707
+ attr_accessor :ip
1708
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1709
+ attr_accessor :user_agent
1710
+
1711
+ def initialize(date: nil, ip: nil, user_agent: nil)
1712
+ @date = date
1713
+ @ip = ip
1714
+ @user_agent = user_agent
1715
+ end
1716
+ end
1717
+
1718
+ class ChargeCard < ::Stripe::RequestParams
1719
+ class BankTerms < ::Stripe::RequestParams
1720
+ # 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.
1721
+ attr_accessor :date
1722
+ # The IP address from which the Account's representative accepted the terms of service.
1723
+ attr_accessor :ip
1724
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1725
+ attr_accessor :user_agent
1726
+
1727
+ def initialize(date: nil, ip: nil, user_agent: nil)
1728
+ @date = date
1729
+ @ip = ip
1730
+ @user_agent = user_agent
1731
+ end
1732
+ end
1733
+
1734
+ class Platform < ::Stripe::RequestParams
1735
+ # 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.
1736
+ attr_accessor :date
1737
+ # The IP address from which the Account's representative accepted the terms of service.
1738
+ attr_accessor :ip
1739
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1740
+ attr_accessor :user_agent
1741
+
1742
+ def initialize(date: nil, ip: nil, user_agent: nil)
1743
+ @date = date
1744
+ @ip = ip
1745
+ @user_agent = user_agent
1746
+ end
1747
+ end
1748
+ # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1749
+ attr_accessor :bank_terms
1750
+ # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1751
+ attr_accessor :platform
1752
+
1753
+ def initialize(bank_terms: nil, platform: nil)
1754
+ @bank_terms = bank_terms
1755
+ @platform = platform
1756
+ end
1757
+ end
1758
+
1759
+ class SpendCard < ::Stripe::RequestParams
1760
+ class BankTerms < ::Stripe::RequestParams
1761
+ # 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.
1762
+ attr_accessor :date
1763
+ # The IP address from which the Account's representative accepted the terms of service.
1764
+ attr_accessor :ip
1765
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1766
+ attr_accessor :user_agent
1767
+
1768
+ def initialize(date: nil, ip: nil, user_agent: nil)
1769
+ @date = date
1770
+ @ip = ip
1771
+ @user_agent = user_agent
1772
+ end
1773
+ end
1774
+
1775
+ class FinancingDisclosures < ::Stripe::RequestParams
1776
+ # 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.
1777
+ attr_accessor :date
1778
+ # The IP address from which the Account's representative accepted the terms of service.
1779
+ attr_accessor :ip
1780
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1781
+ attr_accessor :user_agent
1782
+
1783
+ def initialize(date: nil, ip: nil, user_agent: nil)
1784
+ @date = date
1785
+ @ip = ip
1786
+ @user_agent = user_agent
1787
+ end
1788
+ end
1789
+
1790
+ class Platform < ::Stripe::RequestParams
1791
+ # 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.
1792
+ attr_accessor :date
1793
+ # The IP address from which the Account's representative accepted the terms of service.
1794
+ attr_accessor :ip
1795
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1796
+ attr_accessor :user_agent
1797
+
1798
+ def initialize(date: nil, ip: nil, user_agent: nil)
1799
+ @date = date
1800
+ @ip = ip
1801
+ @user_agent = user_agent
1802
+ end
1803
+ end
1804
+ # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1805
+ attr_accessor :bank_terms
1806
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1807
+ attr_accessor :financing_disclosures
1808
+ # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1809
+ attr_accessor :platform
1810
+
1811
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1812
+ @bank_terms = bank_terms
1813
+ @financing_disclosures = financing_disclosures
1814
+ @platform = platform
1815
+ end
1816
+ end
1817
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
1818
+ attr_accessor :apple_pay
1819
+ # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor.
1820
+ attr_accessor :charge_card
1821
+ # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor.
1822
+ attr_accessor :spend_card
1823
+
1824
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1825
+ @apple_pay = apple_pay
1826
+ @charge_card = charge_card
1827
+ @spend_card = spend_card
1828
+ end
1829
+ end
1830
+
1831
+ class CrossRiverBank < ::Stripe::RequestParams
1832
+ class ApplePay < ::Stripe::RequestParams
1833
+ # 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.
1834
+ attr_accessor :date
1835
+ # The IP address from which the Account's representative accepted the terms of service.
1836
+ attr_accessor :ip
1837
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1838
+ attr_accessor :user_agent
1839
+
1840
+ def initialize(date: nil, ip: nil, user_agent: nil)
1841
+ @date = date
1842
+ @ip = ip
1843
+ @user_agent = user_agent
1844
+ end
1845
+ end
1846
+
1847
+ class ChargeCard < ::Stripe::RequestParams
1848
+ class BankTerms < ::Stripe::RequestParams
1849
+ # 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.
1850
+ attr_accessor :date
1851
+ # The IP address from which the Account's representative accepted the terms of service.
1852
+ attr_accessor :ip
1853
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1854
+ attr_accessor :user_agent
1855
+
1856
+ def initialize(date: nil, ip: nil, user_agent: nil)
1857
+ @date = date
1858
+ @ip = ip
1859
+ @user_agent = user_agent
1860
+ end
1861
+ end
1862
+
1863
+ class FinancingDisclosures < ::Stripe::RequestParams
1864
+ # 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.
1865
+ attr_accessor :date
1866
+ # The IP address from which the Account's representative accepted the terms of service.
1867
+ attr_accessor :ip
1868
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1869
+ attr_accessor :user_agent
1870
+
1871
+ def initialize(date: nil, ip: nil, user_agent: nil)
1872
+ @date = date
1873
+ @ip = ip
1874
+ @user_agent = user_agent
1875
+ end
1876
+ end
1877
+
1878
+ class Platform < ::Stripe::RequestParams
1879
+ # 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.
1880
+ attr_accessor :date
1881
+ # The IP address from which the Account's representative accepted the terms of service.
1882
+ attr_accessor :ip
1883
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1884
+ attr_accessor :user_agent
1885
+
1886
+ def initialize(date: nil, ip: nil, user_agent: nil)
1887
+ @date = date
1888
+ @ip = ip
1889
+ @user_agent = user_agent
1890
+ end
1891
+ end
1892
+ # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1893
+ attr_accessor :bank_terms
1894
+ # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1895
+ attr_accessor :financing_disclosures
1896
+ # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1897
+ attr_accessor :platform
1898
+
1899
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1900
+ @bank_terms = bank_terms
1901
+ @financing_disclosures = financing_disclosures
1902
+ @platform = platform
1903
+ end
1904
+ end
1905
+
1906
+ class SpendCard < ::Stripe::RequestParams
1907
+ class BankTerms < ::Stripe::RequestParams
1908
+ # 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.
1909
+ attr_accessor :date
1910
+ # The IP address from which the Account's representative accepted the terms of service.
1911
+ attr_accessor :ip
1912
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1913
+ attr_accessor :user_agent
1914
+
1915
+ def initialize(date: nil, ip: nil, user_agent: nil)
1916
+ @date = date
1917
+ @ip = ip
1918
+ @user_agent = user_agent
1919
+ end
1920
+ end
1921
+
1922
+ class FinancingDisclosures < ::Stripe::RequestParams
1923
+ # 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.
1924
+ attr_accessor :date
1925
+ # The IP address from which the Account's representative accepted the terms of service.
1926
+ attr_accessor :ip
1927
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1928
+ attr_accessor :user_agent
1929
+
1930
+ def initialize(date: nil, ip: nil, user_agent: nil)
1931
+ @date = date
1932
+ @ip = ip
1933
+ @user_agent = user_agent
1934
+ end
1935
+ end
1936
+ # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1937
+ attr_accessor :bank_terms
1938
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1939
+ attr_accessor :financing_disclosures
1940
+
1941
+ def initialize(bank_terms: nil, financing_disclosures: nil)
1942
+ @bank_terms = bank_terms
1943
+ @financing_disclosures = financing_disclosures
1944
+ end
1945
+ end
1946
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor.
1947
+ attr_accessor :apple_pay
1948
+ # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1949
+ attr_accessor :charge_card
1950
+ # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1951
+ attr_accessor :spend_card
1952
+
1953
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1954
+ @apple_pay = apple_pay
1955
+ @charge_card = charge_card
1956
+ @spend_card = spend_card
1957
+ end
1958
+ end
1959
+
1960
+ class GlobalAccountHolder < ::Stripe::RequestParams
1961
+ # 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.
1962
+ attr_accessor :date
1963
+ # The IP address from which the Account's representative accepted the terms of service.
1964
+ attr_accessor :ip
1965
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1966
+ attr_accessor :user_agent
1967
+
1968
+ def initialize(date: nil, ip: nil, user_agent: nil)
1969
+ @date = date
1970
+ @ip = ip
1971
+ @user_agent = user_agent
1972
+ end
1973
+ end
1974
+
1975
+ class Lead < ::Stripe::RequestParams
1976
+ class ApplePay < ::Stripe::RequestParams
1977
+ # 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.
1978
+ attr_accessor :date
1979
+ # The IP address from which the Account's representative accepted the terms of service.
1980
+ attr_accessor :ip
1981
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1982
+ attr_accessor :user_agent
1983
+
1984
+ def initialize(date: nil, ip: nil, user_agent: nil)
1985
+ @date = date
1986
+ @ip = ip
1987
+ @user_agent = user_agent
1988
+ end
1989
+ end
1990
+
1991
+ class PrepaidCard < ::Stripe::RequestParams
1992
+ class BankTerms < ::Stripe::RequestParams
1993
+ # 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.
1994
+ attr_accessor :date
1995
+ # The IP address from which the Account's representative accepted the terms of service.
1996
+ attr_accessor :ip
1997
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1998
+ attr_accessor :user_agent
1999
+
2000
+ def initialize(date: nil, ip: nil, user_agent: nil)
2001
+ @date = date
2002
+ @ip = ip
2003
+ @user_agent = user_agent
2004
+ end
2005
+ end
2006
+
2007
+ class Platform < ::Stripe::RequestParams
2008
+ # 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.
2009
+ attr_accessor :date
2010
+ # The IP address from which the Account's representative accepted the terms of service.
2011
+ attr_accessor :ip
2012
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2013
+ attr_accessor :user_agent
2014
+
2015
+ def initialize(date: nil, ip: nil, user_agent: nil)
2016
+ @date = date
2017
+ @ip = ip
2018
+ @user_agent = user_agent
2019
+ end
2020
+ end
2021
+ # Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
2022
+ attr_accessor :bank_terms
2023
+ # Platform terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
2024
+ attr_accessor :platform
2025
+
2026
+ def initialize(bank_terms: nil, platform: nil)
2027
+ @bank_terms = bank_terms
2028
+ @platform = platform
2029
+ end
2030
+ end
2031
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN sponsor.
2032
+ attr_accessor :apple_pay
2033
+ # Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN sponsor.
2034
+ attr_accessor :prepaid_card
2035
+
2036
+ def initialize(apple_pay: nil, prepaid_card: nil)
2037
+ @apple_pay = apple_pay
2038
+ @prepaid_card = prepaid_card
2039
+ end
2040
+ end
2041
+ # Terms of service acceptances for Stripe commercial card issuing.
2042
+ attr_accessor :account_holder
2043
+ # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
2044
+ attr_accessor :celtic
2045
+ # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
2046
+ attr_accessor :cross_river_bank
2047
+ # Terms of service acceptances for Stripe commercial card Global issuing.
2048
+ attr_accessor :global_account_holder
2049
+ # Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
2050
+ attr_accessor :lead
2051
+
2052
+ def initialize(
2053
+ account_holder: nil,
2054
+ celtic: nil,
2055
+ cross_river_bank: nil,
2056
+ global_account_holder: nil,
2057
+ lead: nil
2058
+ )
2059
+ @account_holder = account_holder
2060
+ @celtic = celtic
2061
+ @cross_river_bank = cross_river_bank
2062
+ @global_account_holder = global_account_holder
2063
+ @lead = lead
2064
+ end
2065
+ end
2066
+ # Terms of service acceptances to create cards for commercial issuing use cases.
2067
+ attr_accessor :commercial
2068
+
2069
+ def initialize(commercial: nil)
2070
+ @commercial = commercial
2071
+ end
2072
+ end
2073
+
2074
+ class CryptoStorer < ::Stripe::RequestParams
2075
+ # 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.
2076
+ attr_accessor :date
2077
+ # The IP address from which the Account's representative accepted the terms of service.
2078
+ attr_accessor :ip
2079
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2080
+ attr_accessor :user_agent
2081
+
2082
+ def initialize(date: nil, ip: nil, user_agent: nil)
2083
+ @date = date
2084
+ @ip = ip
2085
+ @user_agent = user_agent
2086
+ end
2087
+ end
2088
+
2089
+ class Storer < ::Stripe::RequestParams
2090
+ # 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.
2091
+ attr_accessor :date
2092
+ # The IP address from which the Account's representative accepted the terms of service.
2093
+ attr_accessor :ip
2094
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2095
+ attr_accessor :user_agent
2096
+
2097
+ def initialize(date: nil, ip: nil, user_agent: nil)
2098
+ @date = date
2099
+ @ip = ip
2100
+ @user_agent = user_agent
2101
+ end
2102
+ end
2103
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
2104
+ attr_accessor :account
2105
+ # Details on the Account's acceptance of Issuing-specific terms of service.
2106
+ attr_accessor :card_creator
2107
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service.
2108
+ attr_accessor :crypto_storer
2109
+ # Details on the Account's acceptance of Treasury-specific terms of service.
2110
+ attr_accessor :storer
2111
+
2112
+ def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
2113
+ @account = account
2114
+ @card_creator = card_creator
2115
+ @crypto_storer = crypto_storer
2116
+ @storer = storer
2117
+ end
2118
+ end
2119
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
2120
+ attr_accessor :directorship_declaration
2121
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
2122
+ attr_accessor :ownership_declaration
2123
+ # Attestation that all Persons with a specific Relationship value have been provided.
2124
+ attr_accessor :persons_provided
2125
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
2126
+ attr_accessor :representative_declaration
2127
+ # Attestations of accepted terms of service agreements.
2128
+ attr_accessor :terms_of_service
2129
+
2130
+ def initialize(
2131
+ directorship_declaration: nil,
2132
+ ownership_declaration: nil,
2133
+ persons_provided: nil,
2134
+ representative_declaration: nil,
2135
+ terms_of_service: nil
2136
+ )
2137
+ @directorship_declaration = directorship_declaration
2138
+ @ownership_declaration = ownership_declaration
2139
+ @persons_provided = persons_provided
2140
+ @representative_declaration = representative_declaration
2141
+ @terms_of_service = terms_of_service
2142
+ end
2143
+ end
2144
+
2145
+ class BusinessDetails < ::Stripe::RequestParams
2146
+ class Address < ::Stripe::RequestParams
2147
+ # City, district, suburb, town, or village.
2148
+ attr_accessor :city
2149
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2150
+ attr_accessor :country
2151
+ # Address line 1 (e.g., street, PO Box, or company name).
2152
+ attr_accessor :line1
2153
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2154
+ attr_accessor :line2
2155
+ # ZIP or postal code.
2156
+ attr_accessor :postal_code
2157
+ # State, county, province, or region.
2158
+ attr_accessor :state
2159
+ # Town or cho-me.
2160
+ attr_accessor :town
2161
+
2162
+ def initialize(
2163
+ city: nil,
2164
+ country: nil,
2165
+ line1: nil,
2166
+ line2: nil,
2167
+ postal_code: nil,
2168
+ state: nil,
2169
+ town: nil
2170
+ )
2171
+ @city = city
2172
+ @country = country
2173
+ @line1 = line1
2174
+ @line2 = line2
2175
+ @postal_code = postal_code
2176
+ @state = state
2177
+ @town = town
2178
+ end
2179
+ end
2180
+
2181
+ class AnnualRevenue < ::Stripe::RequestParams
2182
+ class Amount < ::Stripe::RequestParams
2183
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2184
+ attr_accessor :value
2185
+ # 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).
2186
+ attr_accessor :currency
2187
+
2188
+ def initialize(value: nil, currency: nil)
2189
+ @value = value
2190
+ @currency = currency
2191
+ end
2192
+ end
2193
+ # A non-negative integer representing the amount in the smallest currency unit.
2194
+ attr_accessor :amount
2195
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2196
+ attr_accessor :fiscal_year_end
2197
+
2198
+ def initialize(amount: nil, fiscal_year_end: nil)
2199
+ @amount = amount
2200
+ @fiscal_year_end = fiscal_year_end
2201
+ end
2202
+ end
2203
+
2204
+ class Documents < ::Stripe::RequestParams
2205
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
2206
+ # 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`.
2207
+ attr_accessor :files
2208
+ # The format of the document. Currently supports `files` only.
2209
+ attr_accessor :type
2210
+
2211
+ def initialize(files: nil, type: nil)
2212
+ @files = files
2213
+ @type = type
2214
+ end
2215
+ end
2216
+
2217
+ class CompanyLicense < ::Stripe::RequestParams
2218
+ # 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`.
2219
+ attr_accessor :files
2220
+ # The format of the document. Currently supports `files` only.
2221
+ attr_accessor :type
2222
+
2223
+ def initialize(files: nil, type: nil)
2224
+ @files = files
2225
+ @type = type
2226
+ end
2227
+ end
2228
+
2229
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
2230
+ # 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`.
2231
+ attr_accessor :files
2232
+ # The format of the document. Currently supports `files` only.
2233
+ attr_accessor :type
2234
+
2235
+ def initialize(files: nil, type: nil)
2236
+ @files = files
2237
+ @type = type
2238
+ end
2239
+ end
2240
+
2241
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
2242
+ # 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`.
2243
+ attr_accessor :files
2244
+ # The format of the document. Currently supports `files` only.
2245
+ attr_accessor :type
2246
+
2247
+ def initialize(files: nil, type: nil)
2248
+ @files = files
2249
+ @type = type
2250
+ end
2251
+ end
2252
+
2253
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
2254
+ # 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`.
2255
+ attr_accessor :files
2256
+ # The format of the document. Currently supports `files` only.
2257
+ attr_accessor :type
2258
+
2259
+ def initialize(files: nil, type: nil)
2260
+ @files = files
2261
+ @type = type
2262
+ end
2263
+ end
2264
+
2265
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
2266
+ # 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`.
2267
+ attr_accessor :files
2268
+ # The format of the document. Currently supports `files` only.
2269
+ attr_accessor :type
2270
+
2271
+ def initialize(files: nil, type: nil)
2272
+ @files = files
2273
+ @type = type
2274
+ end
2275
+ end
2276
+
2277
+ class PrimaryVerification < ::Stripe::RequestParams
2278
+ class FrontBack < ::Stripe::RequestParams
2279
+ # 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.
2280
+ attr_accessor :back
2281
+ # 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.
2282
+ attr_accessor :front
2283
+
2284
+ def initialize(back: nil, front: nil)
2285
+ @back = back
2286
+ @front = front
2287
+ end
2288
+ end
2289
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2290
+ attr_accessor :front_back
2291
+ # The format of the verification document. Currently supports `front_back` only.
2292
+ attr_accessor :type
2293
+
2294
+ def initialize(front_back: nil, type: nil)
2295
+ @front_back = front_back
2296
+ @type = type
2297
+ end
2298
+ end
2299
+
2300
+ class ProofOfAddress < ::Stripe::RequestParams
2301
+ # 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`.
2302
+ attr_accessor :files
2303
+ # The format of the document. Currently supports `files` only.
2304
+ attr_accessor :type
2305
+
2306
+ def initialize(files: nil, type: nil)
2307
+ @files = files
2308
+ @type = type
2309
+ end
2310
+ end
2311
+
2312
+ class ProofOfRegistration < ::Stripe::RequestParams
2313
+ # 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`.
2314
+ attr_accessor :files
2315
+ # The format of the document. Currently supports `files` only.
2316
+ attr_accessor :type
2317
+
2318
+ def initialize(files: nil, type: nil)
2319
+ @files = files
2320
+ @type = type
2321
+ end
2322
+ end
2323
+
2324
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
2325
+ # 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`.
2326
+ attr_accessor :files
2327
+ # The format of the document. Currently supports `files` only.
2328
+ attr_accessor :type
2329
+
2330
+ def initialize(files: nil, type: nil)
2331
+ @files = files
2332
+ @type = type
2333
+ end
2334
+ end
2335
+ # 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.
2336
+ attr_accessor :bank_account_ownership_verification
2337
+ # One or more documents that demonstrate proof of a company’s license to operate.
2338
+ attr_accessor :company_license
2339
+ # One or more documents showing the company’s Memorandum of Association.
2340
+ attr_accessor :company_memorandum_of_association
2341
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
2342
+ attr_accessor :company_ministerial_decree
2343
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
2344
+ attr_accessor :company_registration_verification
2345
+ # One or more documents that demonstrate proof of a company’s tax ID.
2346
+ attr_accessor :company_tax_id_verification
2347
+ # A document verifying the business.
2348
+ attr_accessor :primary_verification
2349
+ # One or more documents that demonstrate proof of address.
2350
+ attr_accessor :proof_of_address
2351
+ # One or more documents showing the company’s proof of registration with the national business registry.
2352
+ attr_accessor :proof_of_registration
2353
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
2354
+ attr_accessor :proof_of_ultimate_beneficial_ownership
2355
+
2356
+ def initialize(
2357
+ bank_account_ownership_verification: nil,
2358
+ company_license: nil,
2359
+ company_memorandum_of_association: nil,
2360
+ company_ministerial_decree: nil,
2361
+ company_registration_verification: nil,
2362
+ company_tax_id_verification: nil,
2363
+ primary_verification: nil,
2364
+ proof_of_address: nil,
2365
+ proof_of_registration: nil,
2366
+ proof_of_ultimate_beneficial_ownership: nil
2367
+ )
2368
+ @bank_account_ownership_verification = bank_account_ownership_verification
2369
+ @company_license = company_license
2370
+ @company_memorandum_of_association = company_memorandum_of_association
2371
+ @company_ministerial_decree = company_ministerial_decree
2372
+ @company_registration_verification = company_registration_verification
2373
+ @company_tax_id_verification = company_tax_id_verification
2374
+ @primary_verification = primary_verification
2375
+ @proof_of_address = proof_of_address
2376
+ @proof_of_registration = proof_of_registration
2377
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
2378
+ end
2379
+ end
2380
+
2381
+ class IdNumber < ::Stripe::RequestParams
2382
+ # The registrar of the ID number (Only valid for DE ID number types).
2383
+ attr_accessor :registrar
2384
+ # Open Enum. The ID number type of a business entity.
2385
+ attr_accessor :type
2386
+ # The value of the ID number.
2387
+ attr_accessor :value
2388
+
2389
+ def initialize(registrar: nil, type: nil, value: nil)
2390
+ @registrar = registrar
2391
+ @type = type
2392
+ @value = value
2393
+ end
2394
+ end
2395
+
2396
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
2397
+ class Amount < ::Stripe::RequestParams
2398
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2399
+ attr_accessor :value
2400
+ # 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).
2401
+ attr_accessor :currency
2402
+
2403
+ def initialize(value: nil, currency: nil)
2404
+ @value = value
2405
+ @currency = currency
2406
+ end
2407
+ end
2408
+ # A non-negative integer representing the amount in the smallest currency unit.
2409
+ attr_accessor :amount
2410
+
2411
+ def initialize(amount: nil)
2412
+ @amount = amount
2413
+ end
2414
+ end
2415
+
2416
+ class ScriptAddresses < ::Stripe::RequestParams
2417
+ class Kana < ::Stripe::RequestParams
2418
+ # City, district, suburb, town, or village.
2419
+ attr_accessor :city
2420
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2421
+ attr_accessor :country
2422
+ # Address line 1 (e.g., street, PO Box, or company name).
2423
+ attr_accessor :line1
2424
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2425
+ attr_accessor :line2
2426
+ # ZIP or postal code.
2427
+ attr_accessor :postal_code
2428
+ # State, county, province, or region.
2429
+ attr_accessor :state
2430
+ # Town or cho-me.
2431
+ attr_accessor :town
2432
+
2433
+ def initialize(
2434
+ city: nil,
2435
+ country: nil,
2436
+ line1: nil,
2437
+ line2: nil,
2438
+ postal_code: nil,
2439
+ state: nil,
2440
+ town: nil
2441
+ )
2442
+ @city = city
2443
+ @country = country
2444
+ @line1 = line1
2445
+ @line2 = line2
2446
+ @postal_code = postal_code
2447
+ @state = state
2448
+ @town = town
2449
+ end
2450
+ end
2451
+
2452
+ class Kanji < ::Stripe::RequestParams
2453
+ # City, district, suburb, town, or village.
2454
+ attr_accessor :city
2455
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2456
+ attr_accessor :country
2457
+ # Address line 1 (e.g., street, PO Box, or company name).
2458
+ attr_accessor :line1
2459
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2460
+ attr_accessor :line2
2461
+ # ZIP or postal code.
2462
+ attr_accessor :postal_code
2463
+ # State, county, province, or region.
2464
+ attr_accessor :state
2465
+ # Town or cho-me.
2466
+ attr_accessor :town
2467
+
2468
+ def initialize(
2469
+ city: nil,
2470
+ country: nil,
2471
+ line1: nil,
2472
+ line2: nil,
2473
+ postal_code: nil,
2474
+ state: nil,
2475
+ town: nil
2476
+ )
2477
+ @city = city
2478
+ @country = country
2479
+ @line1 = line1
2480
+ @line2 = line2
2481
+ @postal_code = postal_code
2482
+ @state = state
2483
+ @town = town
2484
+ end
2485
+ end
2486
+ # Kana Address.
2487
+ attr_accessor :kana
2488
+ # Kanji Address.
2489
+ attr_accessor :kanji
2490
+
2491
+ def initialize(kana: nil, kanji: nil)
2492
+ @kana = kana
2493
+ @kanji = kanji
2494
+ end
2495
+ end
2496
+
2497
+ class ScriptNames < ::Stripe::RequestParams
2498
+ class Kana < ::Stripe::RequestParams
2499
+ # Registered name of the business.
2500
+ attr_accessor :registered_name
2501
+
2502
+ def initialize(registered_name: nil)
2503
+ @registered_name = registered_name
2504
+ end
2505
+ end
2506
+
2507
+ class Kanji < ::Stripe::RequestParams
2508
+ # Registered name of the business.
2509
+ attr_accessor :registered_name
2510
+
2511
+ def initialize(registered_name: nil)
2512
+ @registered_name = registered_name
2513
+ end
2514
+ end
2515
+ # Kana name.
2516
+ attr_accessor :kana
2517
+ # Kanji name.
2518
+ attr_accessor :kanji
2519
+
2520
+ def initialize(kana: nil, kanji: nil)
2521
+ @kana = kana
2522
+ @kanji = kanji
2523
+ end
2524
+ end
2525
+ # The business registration address of the business entity.
2526
+ attr_accessor :address
2527
+ # The business gross annual revenue for its preceding fiscal year.
2528
+ attr_accessor :annual_revenue
2529
+ # A detailed description of the business's compliance and anti-money laundering controls and practices.
2530
+ attr_accessor :compliance_screening_description
2531
+ # A document verifying the business.
2532
+ attr_accessor :documents
2533
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2534
+ attr_accessor :estimated_worker_count
2535
+ # The ID numbers of a business entity.
2536
+ attr_accessor :id_numbers
2537
+ # An estimate of the monthly revenue of the business.
2538
+ attr_accessor :monthly_estimated_revenue
2539
+ # The phone number of the Business Entity.
2540
+ attr_accessor :phone
2541
+ # The business legal name.
2542
+ attr_accessor :registered_name
2543
+ # The business registration address of the business entity in non latin script.
2544
+ attr_accessor :script_addresses
2545
+ # The business legal name in non latin script.
2546
+ attr_accessor :script_names
2547
+ # The category identifying the legal structure of the business.
2548
+ attr_accessor :structure
2549
+
2550
+ def initialize(
2551
+ address: nil,
2552
+ annual_revenue: nil,
2553
+ compliance_screening_description: nil,
2554
+ documents: nil,
2555
+ estimated_worker_count: nil,
2556
+ id_numbers: nil,
2557
+ monthly_estimated_revenue: nil,
2558
+ phone: nil,
2559
+ registered_name: nil,
2560
+ script_addresses: nil,
2561
+ script_names: nil,
2562
+ structure: nil
2563
+ )
2564
+ @address = address
2565
+ @annual_revenue = annual_revenue
2566
+ @compliance_screening_description = compliance_screening_description
2567
+ @documents = documents
2568
+ @estimated_worker_count = estimated_worker_count
2569
+ @id_numbers = id_numbers
2570
+ @monthly_estimated_revenue = monthly_estimated_revenue
2571
+ @phone = phone
2572
+ @registered_name = registered_name
2573
+ @script_addresses = script_addresses
2574
+ @script_names = script_names
2575
+ @structure = structure
2576
+ end
2577
+ end
2578
+
2579
+ class Individual < ::Stripe::RequestParams
2580
+ class AdditionalAddress < ::Stripe::RequestParams
2581
+ # City, district, suburb, town, or village.
2582
+ attr_accessor :city
2583
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2584
+ attr_accessor :country
2585
+ # Address line 1 (e.g., street, PO Box, or company name).
2586
+ attr_accessor :line1
2587
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2588
+ attr_accessor :line2
2589
+ # ZIP or postal code.
2590
+ attr_accessor :postal_code
2591
+ # Purpose of additional address.
2592
+ attr_accessor :purpose
2593
+ # State, county, province, or region.
2594
+ attr_accessor :state
2595
+ # Town or cho-me.
2596
+ attr_accessor :town
2597
+
2598
+ def initialize(
2599
+ city: nil,
2600
+ country: nil,
2601
+ line1: nil,
2602
+ line2: nil,
2603
+ postal_code: nil,
2604
+ purpose: nil,
2605
+ state: nil,
2606
+ town: nil
2607
+ )
2608
+ @city = city
2609
+ @country = country
2610
+ @line1 = line1
2611
+ @line2 = line2
2612
+ @postal_code = postal_code
2613
+ @purpose = purpose
2614
+ @state = state
2615
+ @town = town
2616
+ end
2617
+ end
2618
+
2619
+ class AdditionalName < ::Stripe::RequestParams
2620
+ # The person's full name.
2621
+ attr_accessor :full_name
2622
+ # The person's first or given name.
2623
+ attr_accessor :given_name
2624
+ # The purpose or type of the additional name.
2625
+ attr_accessor :purpose
2626
+ # The person's last or family name.
2627
+ attr_accessor :surname
2628
+
2629
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
2630
+ @full_name = full_name
2631
+ @given_name = given_name
2632
+ @purpose = purpose
2633
+ @surname = surname
2634
+ end
2635
+ end
2636
+
2637
+ class Address < ::Stripe::RequestParams
2638
+ # City, district, suburb, town, or village.
2639
+ attr_accessor :city
2640
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2641
+ attr_accessor :country
2642
+ # Address line 1 (e.g., street, PO Box, or company name).
2643
+ attr_accessor :line1
2644
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2645
+ attr_accessor :line2
2646
+ # ZIP or postal code.
2647
+ attr_accessor :postal_code
2648
+ # State, county, province, or region.
2649
+ attr_accessor :state
2650
+ # Town or cho-me.
2651
+ attr_accessor :town
2652
+
2653
+ def initialize(
2654
+ city: nil,
2655
+ country: nil,
2656
+ line1: nil,
2657
+ line2: nil,
2658
+ postal_code: nil,
2659
+ state: nil,
2660
+ town: nil
2661
+ )
2662
+ @city = city
2663
+ @country = country
2664
+ @line1 = line1
2665
+ @line2 = line2
2666
+ @postal_code = postal_code
2667
+ @state = state
2668
+ @town = town
2669
+ end
2670
+ end
2671
+
2672
+ class DateOfBirth < ::Stripe::RequestParams
2673
+ # The day of the birth.
2674
+ attr_accessor :day
2675
+ # The month of birth.
2676
+ attr_accessor :month
2677
+ # The year of birth.
2678
+ attr_accessor :year
2679
+
2680
+ def initialize(day: nil, month: nil, year: nil)
2681
+ @day = day
2682
+ @month = month
2683
+ @year = year
2684
+ end
2685
+ end
2686
+
2687
+ class Documents < ::Stripe::RequestParams
2688
+ class CompanyAuthorization < ::Stripe::RequestParams
2689
+ # 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`.
2690
+ attr_accessor :files
2691
+ # The format of the document. Currently supports `files` only.
2692
+ attr_accessor :type
2693
+
2694
+ def initialize(files: nil, type: nil)
2695
+ @files = files
2696
+ @type = type
2697
+ end
2698
+ end
2699
+
2700
+ class Passport < ::Stripe::RequestParams
2701
+ # 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`.
2702
+ attr_accessor :files
2703
+ # The format of the document. Currently supports `files` only.
2704
+ attr_accessor :type
2705
+
2706
+ def initialize(files: nil, type: nil)
2707
+ @files = files
2708
+ @type = type
2709
+ end
2710
+ end
2711
+
2712
+ class PrimaryVerification < ::Stripe::RequestParams
2713
+ class FrontBack < ::Stripe::RequestParams
2714
+ # 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.
2715
+ attr_accessor :back
2716
+ # 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.
2717
+ attr_accessor :front
2718
+
2719
+ def initialize(back: nil, front: nil)
2720
+ @back = back
2721
+ @front = front
2722
+ end
2723
+ end
2724
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2725
+ attr_accessor :front_back
2726
+ # The format of the verification document. Currently supports `front_back` only.
2727
+ attr_accessor :type
2728
+
2729
+ def initialize(front_back: nil, type: nil)
2730
+ @front_back = front_back
2731
+ @type = type
2732
+ end
2733
+ end
2734
+
2735
+ class SecondaryVerification < ::Stripe::RequestParams
2736
+ class FrontBack < ::Stripe::RequestParams
2737
+ # 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.
2738
+ attr_accessor :back
2739
+ # 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.
2740
+ attr_accessor :front
2741
+
2742
+ def initialize(back: nil, front: nil)
2743
+ @back = back
2744
+ @front = front
2745
+ end
2746
+ end
2747
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2748
+ attr_accessor :front_back
2749
+ # The format of the verification document. Currently supports `front_back` only.
2750
+ attr_accessor :type
2751
+
2752
+ def initialize(front_back: nil, type: nil)
2753
+ @front_back = front_back
2754
+ @type = type
2755
+ end
2756
+ end
2757
+
2758
+ class Visa < ::Stripe::RequestParams
2759
+ # 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`.
2760
+ attr_accessor :files
2761
+ # The format of the document. Currently supports `files` only.
2762
+ attr_accessor :type
2763
+
2764
+ def initialize(files: nil, type: nil)
2765
+ @files = files
2766
+ @type = type
2767
+ end
2768
+ end
2769
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
2770
+ attr_accessor :company_authorization
2771
+ # One or more documents showing the person’s passport page with photo and personal data.
2772
+ attr_accessor :passport
2773
+ # An identifying document showing the person's name, either a passport or local ID card.
2774
+ attr_accessor :primary_verification
2775
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
2776
+ attr_accessor :secondary_verification
2777
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
2778
+ attr_accessor :visa
2779
+
2780
+ def initialize(
2781
+ company_authorization: nil,
2782
+ passport: nil,
2783
+ primary_verification: nil,
2784
+ secondary_verification: nil,
2785
+ visa: nil
2786
+ )
2787
+ @company_authorization = company_authorization
2788
+ @passport = passport
2789
+ @primary_verification = primary_verification
2790
+ @secondary_verification = secondary_verification
2791
+ @visa = visa
2792
+ end
2793
+ end
2794
+
2795
+ class IdNumber < ::Stripe::RequestParams
2796
+ # The ID number type of an individual.
2797
+ attr_accessor :type
2798
+ # The value of the ID number.
2799
+ attr_accessor :value
2800
+
2801
+ def initialize(type: nil, value: nil)
2802
+ @type = type
2803
+ @value = value
2804
+ end
2805
+ end
2806
+
2807
+ class Relationship < ::Stripe::RequestParams
2808
+ # Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
2809
+ attr_accessor :director
2810
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
2811
+ attr_accessor :executive
2812
+ # Whether the person is an owner of the account’s identity.
2813
+ attr_accessor :owner
2814
+ # The percent owned by the person of the account's legal entity.
2815
+ attr_accessor :percent_ownership
2816
+ # The person's title (e.g., CEO, Support Engineer).
2817
+ attr_accessor :title
2818
+
2819
+ def initialize(
2820
+ director: nil,
2821
+ executive: nil,
2822
+ owner: nil,
2823
+ percent_ownership: nil,
2824
+ title: nil
2825
+ )
2826
+ @director = director
2827
+ @executive = executive
2828
+ @owner = owner
2829
+ @percent_ownership = percent_ownership
2830
+ @title = title
2831
+ end
2832
+ end
2833
+
2834
+ class ScriptAddresses < ::Stripe::RequestParams
2835
+ class Kana < ::Stripe::RequestParams
2836
+ # City, district, suburb, town, or village.
2837
+ attr_accessor :city
2838
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2839
+ attr_accessor :country
2840
+ # Address line 1 (e.g., street, PO Box, or company name).
2841
+ attr_accessor :line1
2842
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2843
+ attr_accessor :line2
2844
+ # ZIP or postal code.
2845
+ attr_accessor :postal_code
2846
+ # State, county, province, or region.
2847
+ attr_accessor :state
2848
+ # Town or cho-me.
2849
+ attr_accessor :town
2850
+
2851
+ def initialize(
2852
+ city: nil,
2853
+ country: nil,
2854
+ line1: nil,
2855
+ line2: nil,
2856
+ postal_code: nil,
2857
+ state: nil,
2858
+ town: nil
2859
+ )
2860
+ @city = city
2861
+ @country = country
2862
+ @line1 = line1
2863
+ @line2 = line2
2864
+ @postal_code = postal_code
2865
+ @state = state
2866
+ @town = town
2867
+ end
2868
+ end
2869
+
2870
+ class Kanji < ::Stripe::RequestParams
2871
+ # City, district, suburb, town, or village.
2872
+ attr_accessor :city
2873
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2874
+ attr_accessor :country
2875
+ # Address line 1 (e.g., street, PO Box, or company name).
2876
+ attr_accessor :line1
2877
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2878
+ attr_accessor :line2
2879
+ # ZIP or postal code.
2880
+ attr_accessor :postal_code
2881
+ # State, county, province, or region.
2882
+ attr_accessor :state
2883
+ # Town or cho-me.
2884
+ attr_accessor :town
2885
+
2886
+ def initialize(
2887
+ city: nil,
2888
+ country: nil,
2889
+ line1: nil,
2890
+ line2: nil,
2891
+ postal_code: nil,
2892
+ state: nil,
2893
+ town: nil
2894
+ )
2895
+ @city = city
2896
+ @country = country
2897
+ @line1 = line1
2898
+ @line2 = line2
2899
+ @postal_code = postal_code
2900
+ @state = state
2901
+ @town = town
2902
+ end
2903
+ end
2904
+ # Kana Address.
2905
+ attr_accessor :kana
2906
+ # Kanji Address.
2907
+ attr_accessor :kanji
2908
+
2909
+ def initialize(kana: nil, kanji: nil)
2910
+ @kana = kana
2911
+ @kanji = kanji
2912
+ end
2913
+ end
2914
+
2915
+ class ScriptNames < ::Stripe::RequestParams
2916
+ class Kana < ::Stripe::RequestParams
2917
+ # The person's first or given name.
2918
+ attr_accessor :given_name
2919
+ # The person's last or family name.
2920
+ attr_accessor :surname
2921
+
2922
+ def initialize(given_name: nil, surname: nil)
2923
+ @given_name = given_name
2924
+ @surname = surname
2925
+ end
2926
+ end
2927
+
2928
+ class Kanji < ::Stripe::RequestParams
2929
+ # The person's first or given name.
2930
+ attr_accessor :given_name
2931
+ # The person's last or family name.
2932
+ attr_accessor :surname
2933
+
2934
+ def initialize(given_name: nil, surname: nil)
2935
+ @given_name = given_name
2936
+ @surname = surname
2937
+ end
2938
+ end
2939
+ # Persons name in kana script.
2940
+ attr_accessor :kana
2941
+ # Persons name in kanji script.
2942
+ attr_accessor :kanji
2943
+
2944
+ def initialize(kana: nil, kanji: nil)
2945
+ @kana = kana
2946
+ @kanji = kanji
2947
+ end
2948
+ end
2949
+ # Additional addresses associated with the individual.
2950
+ attr_accessor :additional_addresses
2951
+ # Additional names (e.g. aliases) associated with the individual.
2952
+ attr_accessor :additional_names
2953
+ # The individual's residential address.
2954
+ attr_accessor :address
2955
+ # The individual's date of birth.
2956
+ attr_accessor :date_of_birth
2957
+ # Documents that may be submitted to satisfy various informational requests.
2958
+ attr_accessor :documents
2959
+ # The individual's email address.
2960
+ attr_accessor :email
2961
+ # The individual's first name.
2962
+ attr_accessor :given_name
2963
+ # The identification numbers (e.g., SSN) associated with the individual.
2964
+ attr_accessor :id_numbers
2965
+ # The individual's gender (International regulations require either "male" or "female").
2966
+ attr_accessor :legal_gender
2967
+ # 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.
2968
+ attr_accessor :metadata
2969
+ # 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)).
2970
+ attr_accessor :nationalities
2971
+ # The individual's phone number.
2972
+ attr_accessor :phone
2973
+ # The individual's political exposure.
2974
+ attr_accessor :political_exposure
2975
+ # The relationship that this individual has with the account's identity.
2976
+ attr_accessor :relationship
2977
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2978
+ attr_accessor :script_addresses
2979
+ # The individuals primary name in non latin script.
2980
+ attr_accessor :script_names
2981
+ # The individual's last name.
2982
+ attr_accessor :surname
2983
+
2984
+ def initialize(
2985
+ additional_addresses: nil,
2986
+ additional_names: nil,
2987
+ address: nil,
2988
+ date_of_birth: nil,
2989
+ documents: nil,
2990
+ email: nil,
2991
+ given_name: nil,
2992
+ id_numbers: nil,
2993
+ legal_gender: nil,
2994
+ metadata: nil,
2995
+ nationalities: nil,
2996
+ phone: nil,
2997
+ political_exposure: nil,
2998
+ relationship: nil,
2999
+ script_addresses: nil,
3000
+ script_names: nil,
3001
+ surname: nil
3002
+ )
3003
+ @additional_addresses = additional_addresses
3004
+ @additional_names = additional_names
3005
+ @address = address
3006
+ @date_of_birth = date_of_birth
3007
+ @documents = documents
3008
+ @email = email
3009
+ @given_name = given_name
3010
+ @id_numbers = id_numbers
3011
+ @legal_gender = legal_gender
3012
+ @metadata = metadata
3013
+ @nationalities = nationalities
3014
+ @phone = phone
3015
+ @political_exposure = political_exposure
3016
+ @relationship = relationship
3017
+ @script_addresses = script_addresses
3018
+ @script_names = script_names
3019
+ @surname = surname
3020
+ end
3021
+ end
3022
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
3023
+ attr_accessor :attestations
3024
+ # Information about the company or business.
3025
+ attr_accessor :business_details
3026
+ # 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.
3027
+ attr_accessor :country
3028
+ # The entity type.
3029
+ attr_accessor :entity_type
3030
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
3031
+ attr_accessor :individual
3032
+
3033
+ def initialize(
3034
+ attestations: nil,
3035
+ business_details: nil,
3036
+ country: nil,
3037
+ entity_type: nil,
3038
+ individual: nil
3039
+ )
3040
+ @attestations = attestations
3041
+ @business_details = business_details
3042
+ @country = country
3043
+ @entity_type = entity_type
3044
+ @individual = individual
3045
+ end
3046
+ end
3047
+ # The account token generated by the account token api.
3048
+ attr_accessor :account_token
3049
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
3050
+ attr_accessor :configuration
3051
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
3052
+ attr_accessor :contact_email
3053
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
3054
+ attr_accessor :dashboard
3055
+ # Default values to be used on Account Configurations.
3056
+ attr_accessor :defaults
3057
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
3058
+ attr_accessor :display_name
3059
+ # Information about the company, individual, and business represented by the Account.
3060
+ attr_accessor :identity
3061
+ # Additional fields to include in the response.
3062
+ attr_accessor :include
3063
+ # 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.
3064
+ attr_accessor :metadata
3065
+
3066
+ def initialize(
3067
+ account_token: nil,
3068
+ configuration: nil,
3069
+ contact_email: nil,
3070
+ dashboard: nil,
3071
+ defaults: nil,
3072
+ display_name: nil,
3073
+ identity: nil,
3074
+ include: nil,
3075
+ metadata: nil
3076
+ )
3077
+ @account_token = account_token
3078
+ @configuration = configuration
3079
+ @contact_email = contact_email
3080
+ @dashboard = dashboard
3081
+ @defaults = defaults
3082
+ @display_name = display_name
3083
+ @identity = identity
3084
+ @include = include
3085
+ @metadata = metadata
3086
+ end
3087
+ end
3088
+ end
3089
+ end
3090
+ end