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,3058 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountCreateParams < ::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 Stripe 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
+ # Capabilities to request on the CardCreator Configuration.
139
+ attr_accessor :capabilities
140
+
141
+ def initialize(capabilities: nil)
142
+ @capabilities = capabilities
143
+ end
144
+ end
145
+
146
+ class Customer < ::Stripe::RequestParams
147
+ class AutomaticIndirectTax < ::Stripe::RequestParams
148
+ # 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”.
149
+ attr_accessor :exempt
150
+ # A recent IP address of the customer used for tax reporting and tax location inference.
151
+ attr_accessor :ip_address
152
+ # 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.
153
+ attr_accessor :location_source
154
+
155
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
156
+ @exempt = exempt
157
+ @ip_address = ip_address
158
+ @location_source = location_source
159
+ end
160
+ end
161
+
162
+ class Billing < ::Stripe::RequestParams
163
+ class Invoice < ::Stripe::RequestParams
164
+ class CustomField < ::Stripe::RequestParams
165
+ # The name of the custom field. This may be up to 40 characters.
166
+ attr_accessor :name
167
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
168
+ attr_accessor :value
169
+
170
+ def initialize(name: nil, value: nil)
171
+ @name = name
172
+ @value = value
173
+ end
174
+ end
175
+
176
+ class Rendering < ::Stripe::RequestParams
177
+ # 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.
178
+ attr_accessor :amount_tax_display
179
+ # ID of the invoice rendering template to use for future invoices.
180
+ attr_accessor :template
181
+
182
+ def initialize(amount_tax_display: nil, template: nil)
183
+ @amount_tax_display = amount_tax_display
184
+ @template = template
185
+ end
186
+ end
187
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
188
+ attr_accessor :custom_fields
189
+ # Default footer to be displayed on invoices for this customer.
190
+ attr_accessor :footer
191
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
192
+ attr_accessor :next_sequence
193
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
194
+ attr_accessor :prefix
195
+ # Default options for invoice PDF rendering for this customer.
196
+ attr_accessor :rendering
197
+
198
+ def initialize(
199
+ custom_fields: nil,
200
+ footer: nil,
201
+ next_sequence: nil,
202
+ prefix: nil,
203
+ rendering: nil
204
+ )
205
+ @custom_fields = custom_fields
206
+ @footer = footer
207
+ @next_sequence = next_sequence
208
+ @prefix = prefix
209
+ @rendering = rendering
210
+ end
211
+ end
212
+ # Default settings used on invoices for this customer.
213
+ attr_accessor :invoice
214
+
215
+ def initialize(invoice: nil)
216
+ @invoice = invoice
217
+ end
218
+ end
219
+
220
+ class Capabilities < ::Stripe::RequestParams
221
+ class AutomaticIndirectTax < ::Stripe::RequestParams
222
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
223
+ attr_accessor :requested
224
+
225
+ def initialize(requested: nil)
226
+ @requested = requested
227
+ end
228
+ end
229
+ # 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.
230
+ attr_accessor :automatic_indirect_tax
231
+
232
+ def initialize(automatic_indirect_tax: nil)
233
+ @automatic_indirect_tax = automatic_indirect_tax
234
+ end
235
+ end
236
+
237
+ class Shipping < ::Stripe::RequestParams
238
+ class Address < ::Stripe::RequestParams
239
+ # City, district, suburb, town, or village.
240
+ attr_accessor :city
241
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
242
+ attr_accessor :country
243
+ # Address line 1 (e.g., street, PO Box, or company name).
244
+ attr_accessor :line1
245
+ # Address line 2 (e.g., apartment, suite, unit, or building).
246
+ attr_accessor :line2
247
+ # ZIP or postal code.
248
+ attr_accessor :postal_code
249
+ # State, county, province, or region.
250
+ attr_accessor :state
251
+
252
+ def initialize(
253
+ city: nil,
254
+ country: nil,
255
+ line1: nil,
256
+ line2: nil,
257
+ postal_code: nil,
258
+ state: nil
259
+ )
260
+ @city = city
261
+ @country = country
262
+ @line1 = line1
263
+ @line2 = line2
264
+ @postal_code = postal_code
265
+ @state = state
266
+ end
267
+ end
268
+ # Customer shipping address.
269
+ attr_accessor :address
270
+ # Customer name.
271
+ attr_accessor :name
272
+ # Customer phone (including extension).
273
+ attr_accessor :phone
274
+
275
+ def initialize(address: nil, name: nil, phone: nil)
276
+ @address = address
277
+ @name = name
278
+ @phone = phone
279
+ end
280
+ end
281
+ # 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.
282
+ attr_accessor :automatic_indirect_tax
283
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
284
+ attr_accessor :billing
285
+ # Capabilities that have been requested on the Customer Configuration.
286
+ attr_accessor :capabilities
287
+ # The customer's shipping information. Appears on invoices emailed to this customer.
288
+ attr_accessor :shipping
289
+ # 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.
290
+ attr_accessor :test_clock
291
+
292
+ def initialize(
293
+ automatic_indirect_tax: nil,
294
+ billing: nil,
295
+ capabilities: nil,
296
+ shipping: nil,
297
+ test_clock: nil
298
+ )
299
+ @automatic_indirect_tax = automatic_indirect_tax
300
+ @billing = billing
301
+ @capabilities = capabilities
302
+ @shipping = shipping
303
+ @test_clock = test_clock
304
+ end
305
+ end
306
+
307
+ class Merchant < ::Stripe::RequestParams
308
+ class BacsDebitPayments < ::Stripe::RequestParams
309
+ # Display name for Bacs debit payments.
310
+ attr_accessor :display_name
311
+
312
+ def initialize(display_name: nil)
313
+ @display_name = display_name
314
+ end
315
+ end
316
+
317
+ class Branding < ::Stripe::RequestParams
318
+ # 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.
319
+ attr_accessor :icon
320
+ # 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.
321
+ attr_accessor :logo
322
+ # A CSS hex color value representing the primary branding color for the merchant.
323
+ attr_accessor :primary_color
324
+ # A CSS hex color value representing the secondary branding color for the merchant.
325
+ attr_accessor :secondary_color
326
+
327
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
328
+ @icon = icon
329
+ @logo = logo
330
+ @primary_color = primary_color
331
+ @secondary_color = secondary_color
332
+ end
333
+ end
334
+
335
+ class Capabilities < ::Stripe::RequestParams
336
+ class AchDebitPayments < ::Stripe::RequestParams
337
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
338
+ attr_accessor :requested
339
+
340
+ def initialize(requested: nil)
341
+ @requested = requested
342
+ end
343
+ end
344
+
345
+ class AcssDebitPayments < ::Stripe::RequestParams
346
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
347
+ attr_accessor :requested
348
+
349
+ def initialize(requested: nil)
350
+ @requested = requested
351
+ end
352
+ end
353
+
354
+ class AffirmPayments < ::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 AfterpayClearpayPayments < ::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 AlmaPayments < ::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 AmazonPayPayments < ::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 AuBecsDebitPayments < ::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 BacsDebitPayments < ::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 BancontactPayments < ::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 BlikPayments < ::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 BoletoPayments < ::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 CardPayments < ::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 CartesBancairesPayments < ::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 CashappPayments < ::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 EpsPayments < ::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 FpxPayments < ::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 GbBankTransferPayments < ::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 GrabpayPayments < ::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 IdealPayments < ::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 JcbPayments < ::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 JpBankTransferPayments < ::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 KakaoPayPayments < ::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 KlarnaPayments < ::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 KonbiniPayments < ::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 KrCardPayments < ::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 LinkPayments < ::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 MobilepayPayments < ::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 MultibancoPayments < ::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 MxBankTransferPayments < ::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 NaverPayPayments < ::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 OxxoPayments < ::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 P24Payments < ::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 PayByBankPayments < ::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 PaycoPayments < ::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 PaynowPayments < ::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 PromptpayPayments < ::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 RevolutPayPayments < ::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 SamsungPayPayments < ::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 SepaBankTransferPayments < ::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 SepaDebitPayments < ::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 SwishPayments < ::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 TwintPayments < ::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 UsBankTransferPayments < ::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 ZipPayments < ::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
+ # Allow the merchant to process ACH debit payments.
732
+ attr_accessor :ach_debit_payments
733
+ # Allow the merchant to process ACSS debit payments.
734
+ attr_accessor :acss_debit_payments
735
+ # Allow the merchant to process Affirm payments.
736
+ attr_accessor :affirm_payments
737
+ # Allow the merchant to process Afterpay/Clearpay payments.
738
+ attr_accessor :afterpay_clearpay_payments
739
+ # Allow the merchant to process Alma payments.
740
+ attr_accessor :alma_payments
741
+ # Allow the merchant to process Amazon Pay payments.
742
+ attr_accessor :amazon_pay_payments
743
+ # Allow the merchant to process Australian BECS Direct Debit payments.
744
+ attr_accessor :au_becs_debit_payments
745
+ # Allow the merchant to process BACS Direct Debit payments.
746
+ attr_accessor :bacs_debit_payments
747
+ # Allow the merchant to process Bancontact payments.
748
+ attr_accessor :bancontact_payments
749
+ # Allow the merchant to process BLIK payments.
750
+ attr_accessor :blik_payments
751
+ # Allow the merchant to process Boleto payments.
752
+ attr_accessor :boleto_payments
753
+ # Allow the merchant to collect card payments.
754
+ attr_accessor :card_payments
755
+ # Allow the merchant to process Cartes Bancaires payments.
756
+ attr_accessor :cartes_bancaires_payments
757
+ # Allow the merchant to process Cash App payments.
758
+ attr_accessor :cashapp_payments
759
+ # Allow the merchant to process EPS payments.
760
+ attr_accessor :eps_payments
761
+ # Allow the merchant to process FPX payments.
762
+ attr_accessor :fpx_payments
763
+ # Allow the merchant to process UK bank transfer payments.
764
+ attr_accessor :gb_bank_transfer_payments
765
+ # Allow the merchant to process GrabPay payments.
766
+ attr_accessor :grabpay_payments
767
+ # Allow the merchant to process iDEAL payments.
768
+ attr_accessor :ideal_payments
769
+ # Allow the merchant to process JCB card payments.
770
+ attr_accessor :jcb_payments
771
+ # Allow the merchant to process Japanese bank transfer payments.
772
+ attr_accessor :jp_bank_transfer_payments
773
+ # Allow the merchant to process Kakao Pay payments.
774
+ attr_accessor :kakao_pay_payments
775
+ # Allow the merchant to process Klarna payments.
776
+ attr_accessor :klarna_payments
777
+ # Allow the merchant to process Konbini convenience store payments.
778
+ attr_accessor :konbini_payments
779
+ # Allow the merchant to process Korean card payments.
780
+ attr_accessor :kr_card_payments
781
+ # Allow the merchant to process Link payments.
782
+ attr_accessor :link_payments
783
+ # Allow the merchant to process MobilePay payments.
784
+ attr_accessor :mobilepay_payments
785
+ # Allow the merchant to process Multibanco payments.
786
+ attr_accessor :multibanco_payments
787
+ # Allow the merchant to process Mexican bank transfer payments.
788
+ attr_accessor :mx_bank_transfer_payments
789
+ # Allow the merchant to process Naver Pay payments.
790
+ attr_accessor :naver_pay_payments
791
+ # Allow the merchant to process OXXO payments.
792
+ attr_accessor :oxxo_payments
793
+ # Allow the merchant to process Przelewy24 (P24) payments.
794
+ attr_accessor :p24_payments
795
+ # Allow the merchant to process Pay by Bank payments.
796
+ attr_accessor :pay_by_bank_payments
797
+ # Allow the merchant to process PAYCO payments.
798
+ attr_accessor :payco_payments
799
+ # Allow the merchant to process PayNow payments.
800
+ attr_accessor :paynow_payments
801
+ # Allow the merchant to process PromptPay payments.
802
+ attr_accessor :promptpay_payments
803
+ # Allow the merchant to process Revolut Pay payments.
804
+ attr_accessor :revolut_pay_payments
805
+ # Allow the merchant to process Samsung Pay payments.
806
+ attr_accessor :samsung_pay_payments
807
+ # Allow the merchant to process SEPA bank transfer payments.
808
+ attr_accessor :sepa_bank_transfer_payments
809
+ # Allow the merchant to process SEPA Direct Debit payments.
810
+ attr_accessor :sepa_debit_payments
811
+ # Allow the merchant to process Swish payments.
812
+ attr_accessor :swish_payments
813
+ # Allow the merchant to process TWINT payments.
814
+ attr_accessor :twint_payments
815
+ # Allow the merchant to process US bank transfer payments.
816
+ attr_accessor :us_bank_transfer_payments
817
+ # Allow the merchant to process Zip payments.
818
+ attr_accessor :zip_payments
819
+
820
+ def initialize(
821
+ ach_debit_payments: nil,
822
+ acss_debit_payments: nil,
823
+ affirm_payments: nil,
824
+ afterpay_clearpay_payments: nil,
825
+ alma_payments: nil,
826
+ amazon_pay_payments: nil,
827
+ au_becs_debit_payments: nil,
828
+ bacs_debit_payments: nil,
829
+ bancontact_payments: nil,
830
+ blik_payments: nil,
831
+ boleto_payments: nil,
832
+ card_payments: nil,
833
+ cartes_bancaires_payments: nil,
834
+ cashapp_payments: nil,
835
+ eps_payments: nil,
836
+ fpx_payments: nil,
837
+ gb_bank_transfer_payments: nil,
838
+ grabpay_payments: nil,
839
+ ideal_payments: nil,
840
+ jcb_payments: nil,
841
+ jp_bank_transfer_payments: nil,
842
+ kakao_pay_payments: nil,
843
+ klarna_payments: nil,
844
+ konbini_payments: nil,
845
+ kr_card_payments: nil,
846
+ link_payments: nil,
847
+ mobilepay_payments: nil,
848
+ multibanco_payments: nil,
849
+ mx_bank_transfer_payments: nil,
850
+ naver_pay_payments: nil,
851
+ oxxo_payments: nil,
852
+ p24_payments: nil,
853
+ pay_by_bank_payments: nil,
854
+ payco_payments: nil,
855
+ paynow_payments: nil,
856
+ promptpay_payments: nil,
857
+ revolut_pay_payments: nil,
858
+ samsung_pay_payments: nil,
859
+ sepa_bank_transfer_payments: nil,
860
+ sepa_debit_payments: nil,
861
+ swish_payments: nil,
862
+ twint_payments: nil,
863
+ us_bank_transfer_payments: nil,
864
+ zip_payments: nil
865
+ )
866
+ @ach_debit_payments = ach_debit_payments
867
+ @acss_debit_payments = acss_debit_payments
868
+ @affirm_payments = affirm_payments
869
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
870
+ @alma_payments = alma_payments
871
+ @amazon_pay_payments = amazon_pay_payments
872
+ @au_becs_debit_payments = au_becs_debit_payments
873
+ @bacs_debit_payments = bacs_debit_payments
874
+ @bancontact_payments = bancontact_payments
875
+ @blik_payments = blik_payments
876
+ @boleto_payments = boleto_payments
877
+ @card_payments = card_payments
878
+ @cartes_bancaires_payments = cartes_bancaires_payments
879
+ @cashapp_payments = cashapp_payments
880
+ @eps_payments = eps_payments
881
+ @fpx_payments = fpx_payments
882
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
883
+ @grabpay_payments = grabpay_payments
884
+ @ideal_payments = ideal_payments
885
+ @jcb_payments = jcb_payments
886
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
887
+ @kakao_pay_payments = kakao_pay_payments
888
+ @klarna_payments = klarna_payments
889
+ @konbini_payments = konbini_payments
890
+ @kr_card_payments = kr_card_payments
891
+ @link_payments = link_payments
892
+ @mobilepay_payments = mobilepay_payments
893
+ @multibanco_payments = multibanco_payments
894
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
895
+ @naver_pay_payments = naver_pay_payments
896
+ @oxxo_payments = oxxo_payments
897
+ @p24_payments = p24_payments
898
+ @pay_by_bank_payments = pay_by_bank_payments
899
+ @payco_payments = payco_payments
900
+ @paynow_payments = paynow_payments
901
+ @promptpay_payments = promptpay_payments
902
+ @revolut_pay_payments = revolut_pay_payments
903
+ @samsung_pay_payments = samsung_pay_payments
904
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
905
+ @sepa_debit_payments = sepa_debit_payments
906
+ @swish_payments = swish_payments
907
+ @twint_payments = twint_payments
908
+ @us_bank_transfer_payments = us_bank_transfer_payments
909
+ @zip_payments = zip_payments
910
+ end
911
+ end
912
+
913
+ class CardPayments < ::Stripe::RequestParams
914
+ class DeclineOn < ::Stripe::RequestParams
915
+ # 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.
916
+ attr_accessor :avs_failure
917
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
918
+ attr_accessor :cvc_failure
919
+
920
+ def initialize(avs_failure: nil, cvc_failure: nil)
921
+ @avs_failure = avs_failure
922
+ @cvc_failure = cvc_failure
923
+ end
924
+ end
925
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
926
+ attr_accessor :decline_on
927
+
928
+ def initialize(decline_on: nil)
929
+ @decline_on = decline_on
930
+ end
931
+ end
932
+
933
+ class KonbiniPayments < ::Stripe::RequestParams
934
+ class Support < ::Stripe::RequestParams
935
+ class Hours < ::Stripe::RequestParams
936
+ # Support hours end time (JST time of day) for in `HH:MM` format.
937
+ attr_accessor :end_time
938
+ # Support hours start time (JST time of day) for in `HH:MM` format.
939
+ attr_accessor :start_time
940
+
941
+ def initialize(end_time: nil, start_time: nil)
942
+ @end_time = end_time
943
+ @start_time = start_time
944
+ end
945
+ end
946
+ # Support email address for Konbini payments.
947
+ attr_accessor :email
948
+ # Support hours for Konbini payments.
949
+ attr_accessor :hours
950
+ # Support phone number for Konbini payments.
951
+ attr_accessor :phone
952
+
953
+ def initialize(email: nil, hours: nil, phone: nil)
954
+ @email = email
955
+ @hours = hours
956
+ @phone = phone
957
+ end
958
+ end
959
+ # Support for Konbini payments.
960
+ attr_accessor :support
961
+
962
+ def initialize(support: nil)
963
+ @support = support
964
+ end
965
+ end
966
+
967
+ class ScriptStatementDescriptor < ::Stripe::RequestParams
968
+ class Kana < ::Stripe::RequestParams
969
+ # 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.
970
+ attr_accessor :descriptor
971
+ # 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.
972
+ attr_accessor :prefix
973
+
974
+ def initialize(descriptor: nil, prefix: nil)
975
+ @descriptor = descriptor
976
+ @prefix = prefix
977
+ end
978
+ end
979
+
980
+ class Kanji < ::Stripe::RequestParams
981
+ # 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.
982
+ attr_accessor :descriptor
983
+ # 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.
984
+ attr_accessor :prefix
985
+
986
+ def initialize(descriptor: nil, prefix: nil)
987
+ @descriptor = descriptor
988
+ @prefix = prefix
989
+ end
990
+ end
991
+ # 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).
992
+ attr_accessor :kana
993
+ # 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).
994
+ attr_accessor :kanji
995
+
996
+ def initialize(kana: nil, kanji: nil)
997
+ @kana = kana
998
+ @kanji = kanji
999
+ end
1000
+ end
1001
+
1002
+ class StatementDescriptor < ::Stripe::RequestParams
1003
+ # 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.
1004
+ attr_accessor :descriptor
1005
+ # 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.
1006
+ attr_accessor :prefix
1007
+
1008
+ def initialize(descriptor: nil, prefix: nil)
1009
+ @descriptor = descriptor
1010
+ @prefix = prefix
1011
+ end
1012
+ end
1013
+
1014
+ class Support < ::Stripe::RequestParams
1015
+ class Address < ::Stripe::RequestParams
1016
+ # City, district, suburb, town, or village.
1017
+ attr_accessor :city
1018
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1019
+ attr_accessor :country
1020
+ # Address line 1 (e.g., street, PO Box, or company name).
1021
+ attr_accessor :line1
1022
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1023
+ attr_accessor :line2
1024
+ # ZIP or postal code.
1025
+ attr_accessor :postal_code
1026
+ # State, county, province, or region.
1027
+ attr_accessor :state
1028
+ # Town or cho-me.
1029
+ attr_accessor :town
1030
+
1031
+ def initialize(
1032
+ city: nil,
1033
+ country: nil,
1034
+ line1: nil,
1035
+ line2: nil,
1036
+ postal_code: nil,
1037
+ state: nil,
1038
+ town: nil
1039
+ )
1040
+ @city = city
1041
+ @country = country
1042
+ @line1 = line1
1043
+ @line2 = line2
1044
+ @postal_code = postal_code
1045
+ @state = state
1046
+ @town = town
1047
+ end
1048
+ end
1049
+ # A publicly available mailing address for sending support issues to.
1050
+ attr_accessor :address
1051
+ # A publicly available email address for sending support issues to.
1052
+ attr_accessor :email
1053
+ # A publicly available phone number to call with support issues.
1054
+ attr_accessor :phone
1055
+ # A publicly available website for handling support issues.
1056
+ attr_accessor :url
1057
+
1058
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
1059
+ @address = address
1060
+ @email = email
1061
+ @phone = phone
1062
+ @url = url
1063
+ end
1064
+ end
1065
+ # Settings used for Bacs debit payments.
1066
+ attr_accessor :bacs_debit_payments
1067
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
1068
+ attr_accessor :branding
1069
+ # Capabilities to request on the Merchant Configuration.
1070
+ attr_accessor :capabilities
1071
+ # Card payments settings.
1072
+ attr_accessor :card_payments
1073
+ # Settings specific to Konbini payments on the account.
1074
+ attr_accessor :konbini_payments
1075
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
1076
+ attr_accessor :mcc
1077
+ # Settings for the default text that appears on statements for language variations.
1078
+ attr_accessor :script_statement_descriptor
1079
+ # Statement descriptor.
1080
+ attr_accessor :statement_descriptor
1081
+ # Publicly available contact information for sending support issues to.
1082
+ attr_accessor :support
1083
+
1084
+ def initialize(
1085
+ bacs_debit_payments: nil,
1086
+ branding: nil,
1087
+ capabilities: nil,
1088
+ card_payments: nil,
1089
+ konbini_payments: nil,
1090
+ mcc: nil,
1091
+ script_statement_descriptor: nil,
1092
+ statement_descriptor: nil,
1093
+ support: nil
1094
+ )
1095
+ @bacs_debit_payments = bacs_debit_payments
1096
+ @branding = branding
1097
+ @capabilities = capabilities
1098
+ @card_payments = card_payments
1099
+ @konbini_payments = konbini_payments
1100
+ @mcc = mcc
1101
+ @script_statement_descriptor = script_statement_descriptor
1102
+ @statement_descriptor = statement_descriptor
1103
+ @support = support
1104
+ end
1105
+ end
1106
+
1107
+ class Recipient < ::Stripe::RequestParams
1108
+ class Capabilities < ::Stripe::RequestParams
1109
+ class BankAccounts < ::Stripe::RequestParams
1110
+ class Local < ::Stripe::RequestParams
1111
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1112
+ attr_accessor :requested
1113
+
1114
+ def initialize(requested: nil)
1115
+ @requested = requested
1116
+ end
1117
+ end
1118
+
1119
+ class Wire < ::Stripe::RequestParams
1120
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1121
+ attr_accessor :requested
1122
+
1123
+ def initialize(requested: nil)
1124
+ @requested = requested
1125
+ end
1126
+ end
1127
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1128
+ attr_accessor :local
1129
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1130
+ attr_accessor :wire
1131
+
1132
+ def initialize(local: nil, wire: nil)
1133
+ @local = local
1134
+ @wire = wire
1135
+ end
1136
+ end
1137
+
1138
+ class Cards < ::Stripe::RequestParams
1139
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1140
+ attr_accessor :requested
1141
+
1142
+ def initialize(requested: nil)
1143
+ @requested = requested
1144
+ end
1145
+ end
1146
+
1147
+ class CryptoWallets < ::Stripe::RequestParams
1148
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1149
+ attr_accessor :requested
1150
+
1151
+ def initialize(requested: nil)
1152
+ @requested = requested
1153
+ end
1154
+ end
1155
+
1156
+ class StripeBalance < ::Stripe::RequestParams
1157
+ class StripeTransfers < ::Stripe::RequestParams
1158
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1159
+ attr_accessor :requested
1160
+
1161
+ def initialize(requested: nil)
1162
+ @requested = requested
1163
+ end
1164
+ end
1165
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1166
+ attr_accessor :stripe_transfers
1167
+
1168
+ def initialize(stripe_transfers: nil)
1169
+ @stripe_transfers = stripe_transfers
1170
+ end
1171
+ end
1172
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1173
+ attr_accessor :bank_accounts
1174
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
1175
+ attr_accessor :cards
1176
+ # Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
1177
+ attr_accessor :crypto_wallets
1178
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1179
+ attr_accessor :stripe_balance
1180
+
1181
+ def initialize(
1182
+ bank_accounts: nil,
1183
+ cards: nil,
1184
+ crypto_wallets: nil,
1185
+ stripe_balance: nil
1186
+ )
1187
+ @bank_accounts = bank_accounts
1188
+ @cards = cards
1189
+ @crypto_wallets = crypto_wallets
1190
+ @stripe_balance = stripe_balance
1191
+ end
1192
+ end
1193
+ # Capabilities to be requested on the Recipient Configuration.
1194
+ attr_accessor :capabilities
1195
+
1196
+ def initialize(capabilities: nil)
1197
+ @capabilities = capabilities
1198
+ end
1199
+ end
1200
+
1201
+ class Storer < ::Stripe::RequestParams
1202
+ class Capabilities < ::Stripe::RequestParams
1203
+ class FinancialAddresses < ::Stripe::RequestParams
1204
+ class BankAccounts < ::Stripe::RequestParams
1205
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1206
+ attr_accessor :requested
1207
+
1208
+ def initialize(requested: nil)
1209
+ @requested = requested
1210
+ end
1211
+ end
1212
+
1213
+ class CryptoWallets < ::Stripe::RequestParams
1214
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1215
+ attr_accessor :requested
1216
+
1217
+ def initialize(requested: nil)
1218
+ @requested = requested
1219
+ end
1220
+ end
1221
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1222
+ attr_accessor :bank_accounts
1223
+ # Can provision a crypto wallet like financial address to credit a FinancialAccount.
1224
+ attr_accessor :crypto_wallets
1225
+
1226
+ def initialize(bank_accounts: nil, crypto_wallets: nil)
1227
+ @bank_accounts = bank_accounts
1228
+ @crypto_wallets = crypto_wallets
1229
+ end
1230
+ end
1231
+
1232
+ class HoldsCurrencies < ::Stripe::RequestParams
1233
+ class Eur < ::Stripe::RequestParams
1234
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1235
+ attr_accessor :requested
1236
+
1237
+ def initialize(requested: nil)
1238
+ @requested = requested
1239
+ end
1240
+ end
1241
+
1242
+ class Gbp < ::Stripe::RequestParams
1243
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1244
+ attr_accessor :requested
1245
+
1246
+ def initialize(requested: nil)
1247
+ @requested = requested
1248
+ end
1249
+ end
1250
+
1251
+ class Usd < ::Stripe::RequestParams
1252
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1253
+ attr_accessor :requested
1254
+
1255
+ def initialize(requested: nil)
1256
+ @requested = requested
1257
+ end
1258
+ end
1259
+
1260
+ class Usdc < ::Stripe::RequestParams
1261
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1262
+ attr_accessor :requested
1263
+
1264
+ def initialize(requested: nil)
1265
+ @requested = requested
1266
+ end
1267
+ end
1268
+ # Can hold storage-type funds on Stripe in EUR.
1269
+ attr_accessor :eur
1270
+ # Can hold storage-type funds on Stripe in GBP.
1271
+ attr_accessor :gbp
1272
+ # Can hold storage-type funds on Stripe in USD.
1273
+ attr_accessor :usd
1274
+ # Can hold storage-type funds on Stripe in USDC.
1275
+ attr_accessor :usdc
1276
+
1277
+ def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil)
1278
+ @eur = eur
1279
+ @gbp = gbp
1280
+ @usd = usd
1281
+ @usdc = usdc
1282
+ end
1283
+ end
1284
+
1285
+ class InboundTransfers < ::Stripe::RequestParams
1286
+ class BankAccounts < ::Stripe::RequestParams
1287
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1288
+ attr_accessor :requested
1289
+
1290
+ def initialize(requested: nil)
1291
+ @requested = requested
1292
+ end
1293
+ end
1294
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1295
+ attr_accessor :bank_accounts
1296
+
1297
+ def initialize(bank_accounts: nil)
1298
+ @bank_accounts = bank_accounts
1299
+ end
1300
+ end
1301
+
1302
+ class OutboundPayments < ::Stripe::RequestParams
1303
+ class BankAccounts < ::Stripe::RequestParams
1304
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1305
+ attr_accessor :requested
1306
+
1307
+ def initialize(requested: nil)
1308
+ @requested = requested
1309
+ end
1310
+ end
1311
+
1312
+ class Cards < ::Stripe::RequestParams
1313
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1314
+ attr_accessor :requested
1315
+
1316
+ def initialize(requested: nil)
1317
+ @requested = requested
1318
+ end
1319
+ end
1320
+
1321
+ class CryptoWallets < ::Stripe::RequestParams
1322
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1323
+ attr_accessor :requested
1324
+
1325
+ def initialize(requested: nil)
1326
+ @requested = requested
1327
+ end
1328
+ end
1329
+
1330
+ class FinancialAccounts < ::Stripe::RequestParams
1331
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1332
+ attr_accessor :requested
1333
+
1334
+ def initialize(requested: nil)
1335
+ @requested = requested
1336
+ end
1337
+ end
1338
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1339
+ attr_accessor :bank_accounts
1340
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1341
+ attr_accessor :cards
1342
+ # Can send funds from a FinancialAccount to a crypto wallet owned by someone else.
1343
+ attr_accessor :crypto_wallets
1344
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1345
+ attr_accessor :financial_accounts
1346
+
1347
+ def initialize(
1348
+ bank_accounts: nil,
1349
+ cards: nil,
1350
+ crypto_wallets: nil,
1351
+ financial_accounts: nil
1352
+ )
1353
+ @bank_accounts = bank_accounts
1354
+ @cards = cards
1355
+ @crypto_wallets = crypto_wallets
1356
+ @financial_accounts = financial_accounts
1357
+ end
1358
+ end
1359
+
1360
+ class OutboundTransfers < ::Stripe::RequestParams
1361
+ class BankAccounts < ::Stripe::RequestParams
1362
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1363
+ attr_accessor :requested
1364
+
1365
+ def initialize(requested: nil)
1366
+ @requested = requested
1367
+ end
1368
+ end
1369
+
1370
+ class CryptoWallets < ::Stripe::RequestParams
1371
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1372
+ attr_accessor :requested
1373
+
1374
+ def initialize(requested: nil)
1375
+ @requested = requested
1376
+ end
1377
+ end
1378
+
1379
+ class FinancialAccounts < ::Stripe::RequestParams
1380
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1381
+ attr_accessor :requested
1382
+
1383
+ def initialize(requested: nil)
1384
+ @requested = requested
1385
+ end
1386
+ end
1387
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1388
+ attr_accessor :bank_accounts
1389
+ # Can send funds from a FinancialAccount to a crypto wallet owned by yourself.
1390
+ attr_accessor :crypto_wallets
1391
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1392
+ attr_accessor :financial_accounts
1393
+
1394
+ def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil)
1395
+ @bank_accounts = bank_accounts
1396
+ @crypto_wallets = crypto_wallets
1397
+ @financial_accounts = financial_accounts
1398
+ end
1399
+ end
1400
+ # Can provision a financial address to credit/debit a FinancialAccount.
1401
+ attr_accessor :financial_addresses
1402
+ # Can hold storage-type funds on Stripe.
1403
+ attr_accessor :holds_currencies
1404
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1405
+ attr_accessor :inbound_transfers
1406
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1407
+ attr_accessor :outbound_payments
1408
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1409
+ attr_accessor :outbound_transfers
1410
+
1411
+ def initialize(
1412
+ financial_addresses: nil,
1413
+ holds_currencies: nil,
1414
+ inbound_transfers: nil,
1415
+ outbound_payments: nil,
1416
+ outbound_transfers: nil
1417
+ )
1418
+ @financial_addresses = financial_addresses
1419
+ @holds_currencies = holds_currencies
1420
+ @inbound_transfers = inbound_transfers
1421
+ @outbound_payments = outbound_payments
1422
+ @outbound_transfers = outbound_transfers
1423
+ end
1424
+ end
1425
+
1426
+ class RegulatedActivity < ::Stripe::RequestParams
1427
+ # A detailed description of the regulated activities the business is licensed to conduct.
1428
+ attr_accessor :description
1429
+ # The license number or registration number assigned by the business's primary regulator.
1430
+ attr_accessor :license_number
1431
+ # The country of the primary regulatory authority that oversees the business's regulated activities.
1432
+ attr_accessor :primary_regulatory_authority_country
1433
+ # The name of the primary regulatory authority that oversees the business's regulated activities.
1434
+ attr_accessor :primary_regulatory_authority_name
1435
+
1436
+ def initialize(
1437
+ description: nil,
1438
+ license_number: nil,
1439
+ primary_regulatory_authority_country: nil,
1440
+ primary_regulatory_authority_name: nil
1441
+ )
1442
+ @description = description
1443
+ @license_number = license_number
1444
+ @primary_regulatory_authority_country = primary_regulatory_authority_country
1445
+ @primary_regulatory_authority_name = primary_regulatory_authority_name
1446
+ end
1447
+ end
1448
+ # Capabilities to request on the Storer Configuration.
1449
+ attr_accessor :capabilities
1450
+ # List of high-risk activities the business is involved in.
1451
+ attr_accessor :high_risk_activities
1452
+ # An explanation of the high risk activities that the business performs.
1453
+ attr_accessor :high_risk_activities_description
1454
+ # Description of the money services offered by the business.
1455
+ attr_accessor :money_services_description
1456
+ # Does the business operate in any prohibited countries.
1457
+ attr_accessor :operates_in_prohibited_countries
1458
+ # Does the business participate in any regulated activity.
1459
+ attr_accessor :participates_in_regulated_activity
1460
+ # Primary purpose of the stored funds.
1461
+ attr_accessor :purpose_of_funds
1462
+ # Description of the purpose of the stored funds.
1463
+ attr_accessor :purpose_of_funds_description
1464
+ # Details of the regulated activity if the business participates in one.
1465
+ attr_accessor :regulated_activity
1466
+ # The source of funds for the business, e.g. profits, income, venture capital, etc.
1467
+ attr_accessor :source_of_funds
1468
+ # Description of the source of funds for the business' account.
1469
+ attr_accessor :source_of_funds_description
1470
+
1471
+ def initialize(
1472
+ capabilities: nil,
1473
+ high_risk_activities: nil,
1474
+ high_risk_activities_description: nil,
1475
+ money_services_description: nil,
1476
+ operates_in_prohibited_countries: nil,
1477
+ participates_in_regulated_activity: nil,
1478
+ purpose_of_funds: nil,
1479
+ purpose_of_funds_description: nil,
1480
+ regulated_activity: nil,
1481
+ source_of_funds: nil,
1482
+ source_of_funds_description: nil
1483
+ )
1484
+ @capabilities = capabilities
1485
+ @high_risk_activities = high_risk_activities
1486
+ @high_risk_activities_description = high_risk_activities_description
1487
+ @money_services_description = money_services_description
1488
+ @operates_in_prohibited_countries = operates_in_prohibited_countries
1489
+ @participates_in_regulated_activity = participates_in_regulated_activity
1490
+ @purpose_of_funds = purpose_of_funds
1491
+ @purpose_of_funds_description = purpose_of_funds_description
1492
+ @regulated_activity = regulated_activity
1493
+ @source_of_funds = source_of_funds
1494
+ @source_of_funds_description = source_of_funds_description
1495
+ end
1496
+ end
1497
+ # The CardCreator Configuration allows the Account to create and issue cards to users.
1498
+ attr_accessor :card_creator
1499
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
1500
+ attr_accessor :customer
1501
+ # 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.
1502
+ attr_accessor :merchant
1503
+ # The Recipient Configuration allows the Account to receive funds.
1504
+ attr_accessor :recipient
1505
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1506
+ attr_accessor :storer
1507
+
1508
+ def initialize(
1509
+ card_creator: nil,
1510
+ customer: nil,
1511
+ merchant: nil,
1512
+ recipient: nil,
1513
+ storer: nil
1514
+ )
1515
+ @card_creator = card_creator
1516
+ @customer = customer
1517
+ @merchant = merchant
1518
+ @recipient = recipient
1519
+ @storer = storer
1520
+ end
1521
+ end
1522
+
1523
+ class Defaults < ::Stripe::RequestParams
1524
+ class Profile < ::Stripe::RequestParams
1525
+ # The business's publicly-available website.
1526
+ attr_accessor :business_url
1527
+ # The name which is used by the business.
1528
+ attr_accessor :doing_business_as
1529
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1530
+ attr_accessor :product_description
1531
+
1532
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1533
+ @business_url = business_url
1534
+ @doing_business_as = doing_business_as
1535
+ @product_description = product_description
1536
+ end
1537
+ end
1538
+
1539
+ class Responsibilities < ::Stripe::RequestParams
1540
+ # A value indicating the party responsible for collecting fees from this account.
1541
+ attr_accessor :fees_collector
1542
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1543
+ attr_accessor :losses_collector
1544
+
1545
+ def initialize(fees_collector: nil, losses_collector: nil)
1546
+ @fees_collector = fees_collector
1547
+ @losses_collector = losses_collector
1548
+ end
1549
+ end
1550
+ # 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).
1551
+ attr_accessor :currency
1552
+ # The Account's preferred locales (languages), ordered by preference.
1553
+ attr_accessor :locales
1554
+ # Account profile information.
1555
+ attr_accessor :profile
1556
+ # Default responsibilities held by either Stripe or the platform.
1557
+ attr_accessor :responsibilities
1558
+
1559
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1560
+ @currency = currency
1561
+ @locales = locales
1562
+ @profile = profile
1563
+ @responsibilities = responsibilities
1564
+ end
1565
+ end
1566
+
1567
+ class Identity < ::Stripe::RequestParams
1568
+ class Attestations < ::Stripe::RequestParams
1569
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1570
+ # 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.
1571
+ attr_accessor :date
1572
+ # The IP address from which the director attestation was made.
1573
+ attr_accessor :ip
1574
+ # The user agent of the browser from which the director attestation was made.
1575
+ attr_accessor :user_agent
1576
+
1577
+ def initialize(date: nil, ip: nil, user_agent: nil)
1578
+ @date = date
1579
+ @ip = ip
1580
+ @user_agent = user_agent
1581
+ end
1582
+ end
1583
+
1584
+ class OwnershipDeclaration < ::Stripe::RequestParams
1585
+ # 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.
1586
+ attr_accessor :date
1587
+ # The IP address from which the beneficial owner attestation was made.
1588
+ attr_accessor :ip
1589
+ # The user agent of the browser from which the beneficial owner attestation was made.
1590
+ attr_accessor :user_agent
1591
+
1592
+ def initialize(date: nil, ip: nil, user_agent: nil)
1593
+ @date = date
1594
+ @ip = ip
1595
+ @user_agent = user_agent
1596
+ end
1597
+ end
1598
+
1599
+ class PersonsProvided < ::Stripe::RequestParams
1600
+ # 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).
1601
+ attr_accessor :directors
1602
+ # 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).
1603
+ attr_accessor :executives
1604
+ # 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).
1605
+ attr_accessor :owners
1606
+ # Reason for why the company is exempt from providing ownership information.
1607
+ attr_accessor :ownership_exemption_reason
1608
+
1609
+ def initialize(
1610
+ directors: nil,
1611
+ executives: nil,
1612
+ owners: nil,
1613
+ ownership_exemption_reason: nil
1614
+ )
1615
+ @directors = directors
1616
+ @executives = executives
1617
+ @owners = owners
1618
+ @ownership_exemption_reason = ownership_exemption_reason
1619
+ end
1620
+ end
1621
+
1622
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1623
+ # 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.
1624
+ attr_accessor :date
1625
+ # The IP address from which the representative attestation was made.
1626
+ attr_accessor :ip
1627
+ # The user agent of the browser from which the representative attestation was made.
1628
+ attr_accessor :user_agent
1629
+
1630
+ def initialize(date: nil, ip: nil, user_agent: nil)
1631
+ @date = date
1632
+ @ip = ip
1633
+ @user_agent = user_agent
1634
+ end
1635
+ end
1636
+
1637
+ class TermsOfService < ::Stripe::RequestParams
1638
+ class Account < ::Stripe::RequestParams
1639
+ # 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.
1640
+ attr_accessor :date
1641
+ # The IP address from which the Account's representative accepted the terms of service.
1642
+ attr_accessor :ip
1643
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1644
+ attr_accessor :user_agent
1645
+
1646
+ def initialize(date: nil, ip: nil, user_agent: nil)
1647
+ @date = date
1648
+ @ip = ip
1649
+ @user_agent = user_agent
1650
+ end
1651
+ end
1652
+
1653
+ class CardCreator < ::Stripe::RequestParams
1654
+ class Commercial < ::Stripe::RequestParams
1655
+ class AccountHolder < ::Stripe::RequestParams
1656
+ # 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.
1657
+ attr_accessor :date
1658
+ # The IP address from which the Account's representative accepted the terms of service.
1659
+ attr_accessor :ip
1660
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1661
+ attr_accessor :user_agent
1662
+
1663
+ def initialize(date: nil, ip: nil, user_agent: nil)
1664
+ @date = date
1665
+ @ip = ip
1666
+ @user_agent = user_agent
1667
+ end
1668
+ end
1669
+
1670
+ class Celtic < ::Stripe::RequestParams
1671
+ class ApplePay < ::Stripe::RequestParams
1672
+ # 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.
1673
+ attr_accessor :date
1674
+ # The IP address from which the Account's representative accepted the terms of service.
1675
+ attr_accessor :ip
1676
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1677
+ attr_accessor :user_agent
1678
+
1679
+ def initialize(date: nil, ip: nil, user_agent: nil)
1680
+ @date = date
1681
+ @ip = ip
1682
+ @user_agent = user_agent
1683
+ end
1684
+ end
1685
+
1686
+ class ChargeCard < ::Stripe::RequestParams
1687
+ class BankTerms < ::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 Platform < ::Stripe::RequestParams
1703
+ # 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.
1704
+ attr_accessor :date
1705
+ # The IP address from which the Account's representative accepted the terms of service.
1706
+ attr_accessor :ip
1707
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1708
+ attr_accessor :user_agent
1709
+
1710
+ def initialize(date: nil, ip: nil, user_agent: nil)
1711
+ @date = date
1712
+ @ip = ip
1713
+ @user_agent = user_agent
1714
+ end
1715
+ end
1716
+ # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1717
+ attr_accessor :bank_terms
1718
+ # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1719
+ attr_accessor :platform
1720
+
1721
+ def initialize(bank_terms: nil, platform: nil)
1722
+ @bank_terms = bank_terms
1723
+ @platform = platform
1724
+ end
1725
+ end
1726
+
1727
+ class SpendCard < ::Stripe::RequestParams
1728
+ class BankTerms < ::Stripe::RequestParams
1729
+ # 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.
1730
+ attr_accessor :date
1731
+ # The IP address from which the Account's representative accepted the terms of service.
1732
+ attr_accessor :ip
1733
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1734
+ attr_accessor :user_agent
1735
+
1736
+ def initialize(date: nil, ip: nil, user_agent: nil)
1737
+ @date = date
1738
+ @ip = ip
1739
+ @user_agent = user_agent
1740
+ end
1741
+ end
1742
+
1743
+ class FinancingDisclosures < ::Stripe::RequestParams
1744
+ # 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.
1745
+ attr_accessor :date
1746
+ # The IP address from which the Account's representative accepted the terms of service.
1747
+ attr_accessor :ip
1748
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1749
+ attr_accessor :user_agent
1750
+
1751
+ def initialize(date: nil, ip: nil, user_agent: nil)
1752
+ @date = date
1753
+ @ip = ip
1754
+ @user_agent = user_agent
1755
+ end
1756
+ end
1757
+
1758
+ class Platform < ::Stripe::RequestParams
1759
+ # 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.
1760
+ attr_accessor :date
1761
+ # The IP address from which the Account's representative accepted the terms of service.
1762
+ attr_accessor :ip
1763
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1764
+ attr_accessor :user_agent
1765
+
1766
+ def initialize(date: nil, ip: nil, user_agent: nil)
1767
+ @date = date
1768
+ @ip = ip
1769
+ @user_agent = user_agent
1770
+ end
1771
+ end
1772
+ # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1773
+ attr_accessor :bank_terms
1774
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1775
+ attr_accessor :financing_disclosures
1776
+ # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1777
+ attr_accessor :platform
1778
+
1779
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1780
+ @bank_terms = bank_terms
1781
+ @financing_disclosures = financing_disclosures
1782
+ @platform = platform
1783
+ end
1784
+ end
1785
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
1786
+ attr_accessor :apple_pay
1787
+ # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor.
1788
+ attr_accessor :charge_card
1789
+ # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor.
1790
+ attr_accessor :spend_card
1791
+
1792
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1793
+ @apple_pay = apple_pay
1794
+ @charge_card = charge_card
1795
+ @spend_card = spend_card
1796
+ end
1797
+ end
1798
+
1799
+ class CrossRiverBank < ::Stripe::RequestParams
1800
+ class ApplePay < ::Stripe::RequestParams
1801
+ # 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.
1802
+ attr_accessor :date
1803
+ # The IP address from which the Account's representative accepted the terms of service.
1804
+ attr_accessor :ip
1805
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1806
+ attr_accessor :user_agent
1807
+
1808
+ def initialize(date: nil, ip: nil, user_agent: nil)
1809
+ @date = date
1810
+ @ip = ip
1811
+ @user_agent = user_agent
1812
+ end
1813
+ end
1814
+
1815
+ class ChargeCard < ::Stripe::RequestParams
1816
+ class BankTerms < ::Stripe::RequestParams
1817
+ # 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.
1818
+ attr_accessor :date
1819
+ # The IP address from which the Account's representative accepted the terms of service.
1820
+ attr_accessor :ip
1821
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1822
+ attr_accessor :user_agent
1823
+
1824
+ def initialize(date: nil, ip: nil, user_agent: nil)
1825
+ @date = date
1826
+ @ip = ip
1827
+ @user_agent = user_agent
1828
+ end
1829
+ end
1830
+
1831
+ class FinancingDisclosures < ::Stripe::RequestParams
1832
+ # 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.
1833
+ attr_accessor :date
1834
+ # The IP address from which the Account's representative accepted the terms of service.
1835
+ attr_accessor :ip
1836
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1837
+ attr_accessor :user_agent
1838
+
1839
+ def initialize(date: nil, ip: nil, user_agent: nil)
1840
+ @date = date
1841
+ @ip = ip
1842
+ @user_agent = user_agent
1843
+ end
1844
+ end
1845
+
1846
+ class Platform < ::Stripe::RequestParams
1847
+ # 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.
1848
+ attr_accessor :date
1849
+ # The IP address from which the Account's representative accepted the terms of service.
1850
+ attr_accessor :ip
1851
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1852
+ attr_accessor :user_agent
1853
+
1854
+ def initialize(date: nil, ip: nil, user_agent: nil)
1855
+ @date = date
1856
+ @ip = ip
1857
+ @user_agent = user_agent
1858
+ end
1859
+ end
1860
+ # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1861
+ attr_accessor :bank_terms
1862
+ # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1863
+ attr_accessor :financing_disclosures
1864
+ # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1865
+ attr_accessor :platform
1866
+
1867
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1868
+ @bank_terms = bank_terms
1869
+ @financing_disclosures = financing_disclosures
1870
+ @platform = platform
1871
+ end
1872
+ end
1873
+
1874
+ class SpendCard < ::Stripe::RequestParams
1875
+ class BankTerms < ::Stripe::RequestParams
1876
+ # 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.
1877
+ attr_accessor :date
1878
+ # The IP address from which the Account's representative accepted the terms of service.
1879
+ attr_accessor :ip
1880
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1881
+ attr_accessor :user_agent
1882
+
1883
+ def initialize(date: nil, ip: nil, user_agent: nil)
1884
+ @date = date
1885
+ @ip = ip
1886
+ @user_agent = user_agent
1887
+ end
1888
+ end
1889
+
1890
+ class FinancingDisclosures < ::Stripe::RequestParams
1891
+ # 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.
1892
+ attr_accessor :date
1893
+ # The IP address from which the Account's representative accepted the terms of service.
1894
+ attr_accessor :ip
1895
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1896
+ attr_accessor :user_agent
1897
+
1898
+ def initialize(date: nil, ip: nil, user_agent: nil)
1899
+ @date = date
1900
+ @ip = ip
1901
+ @user_agent = user_agent
1902
+ end
1903
+ end
1904
+ # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1905
+ attr_accessor :bank_terms
1906
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1907
+ attr_accessor :financing_disclosures
1908
+
1909
+ def initialize(bank_terms: nil, financing_disclosures: nil)
1910
+ @bank_terms = bank_terms
1911
+ @financing_disclosures = financing_disclosures
1912
+ end
1913
+ end
1914
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor.
1915
+ attr_accessor :apple_pay
1916
+ # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1917
+ attr_accessor :charge_card
1918
+ # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1919
+ attr_accessor :spend_card
1920
+
1921
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1922
+ @apple_pay = apple_pay
1923
+ @charge_card = charge_card
1924
+ @spend_card = spend_card
1925
+ end
1926
+ end
1927
+
1928
+ class GlobalAccountHolder < ::Stripe::RequestParams
1929
+ # 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.
1930
+ attr_accessor :date
1931
+ # The IP address from which the Account's representative accepted the terms of service.
1932
+ attr_accessor :ip
1933
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1934
+ attr_accessor :user_agent
1935
+
1936
+ def initialize(date: nil, ip: nil, user_agent: nil)
1937
+ @date = date
1938
+ @ip = ip
1939
+ @user_agent = user_agent
1940
+ end
1941
+ end
1942
+
1943
+ class Lead < ::Stripe::RequestParams
1944
+ class ApplePay < ::Stripe::RequestParams
1945
+ # 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.
1946
+ attr_accessor :date
1947
+ # The IP address from which the Account's representative accepted the terms of service.
1948
+ attr_accessor :ip
1949
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1950
+ attr_accessor :user_agent
1951
+
1952
+ def initialize(date: nil, ip: nil, user_agent: nil)
1953
+ @date = date
1954
+ @ip = ip
1955
+ @user_agent = user_agent
1956
+ end
1957
+ end
1958
+
1959
+ class PrepaidCard < ::Stripe::RequestParams
1960
+ class BankTerms < ::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 Platform < ::Stripe::RequestParams
1976
+ # 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.
1977
+ attr_accessor :date
1978
+ # The IP address from which the Account's representative accepted the terms of service.
1979
+ attr_accessor :ip
1980
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1981
+ attr_accessor :user_agent
1982
+
1983
+ def initialize(date: nil, ip: nil, user_agent: nil)
1984
+ @date = date
1985
+ @ip = ip
1986
+ @user_agent = user_agent
1987
+ end
1988
+ end
1989
+ # Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
1990
+ attr_accessor :bank_terms
1991
+ # Platform terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
1992
+ attr_accessor :platform
1993
+
1994
+ def initialize(bank_terms: nil, platform: nil)
1995
+ @bank_terms = bank_terms
1996
+ @platform = platform
1997
+ end
1998
+ end
1999
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN sponsor.
2000
+ attr_accessor :apple_pay
2001
+ # Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN sponsor.
2002
+ attr_accessor :prepaid_card
2003
+
2004
+ def initialize(apple_pay: nil, prepaid_card: nil)
2005
+ @apple_pay = apple_pay
2006
+ @prepaid_card = prepaid_card
2007
+ end
2008
+ end
2009
+ # Terms of service acceptances for Stripe commercial card issuing.
2010
+ attr_accessor :account_holder
2011
+ # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
2012
+ attr_accessor :celtic
2013
+ # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
2014
+ attr_accessor :cross_river_bank
2015
+ # Terms of service acceptances for Stripe commercial card Global issuing.
2016
+ attr_accessor :global_account_holder
2017
+ # Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
2018
+ attr_accessor :lead
2019
+
2020
+ def initialize(
2021
+ account_holder: nil,
2022
+ celtic: nil,
2023
+ cross_river_bank: nil,
2024
+ global_account_holder: nil,
2025
+ lead: nil
2026
+ )
2027
+ @account_holder = account_holder
2028
+ @celtic = celtic
2029
+ @cross_river_bank = cross_river_bank
2030
+ @global_account_holder = global_account_holder
2031
+ @lead = lead
2032
+ end
2033
+ end
2034
+ # Terms of service acceptances to create cards for commercial issuing use cases.
2035
+ attr_accessor :commercial
2036
+
2037
+ def initialize(commercial: nil)
2038
+ @commercial = commercial
2039
+ end
2040
+ end
2041
+
2042
+ class CryptoStorer < ::Stripe::RequestParams
2043
+ # 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.
2044
+ attr_accessor :date
2045
+ # The IP address from which the Account's representative accepted the terms of service.
2046
+ attr_accessor :ip
2047
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2048
+ attr_accessor :user_agent
2049
+
2050
+ def initialize(date: nil, ip: nil, user_agent: nil)
2051
+ @date = date
2052
+ @ip = ip
2053
+ @user_agent = user_agent
2054
+ end
2055
+ end
2056
+
2057
+ class Storer < ::Stripe::RequestParams
2058
+ # 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.
2059
+ attr_accessor :date
2060
+ # The IP address from which the Account's representative accepted the terms of service.
2061
+ attr_accessor :ip
2062
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2063
+ attr_accessor :user_agent
2064
+
2065
+ def initialize(date: nil, ip: nil, user_agent: nil)
2066
+ @date = date
2067
+ @ip = ip
2068
+ @user_agent = user_agent
2069
+ end
2070
+ end
2071
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
2072
+ attr_accessor :account
2073
+ # Details on the Account's acceptance of Issuing-specific terms of service.
2074
+ attr_accessor :card_creator
2075
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service.
2076
+ attr_accessor :crypto_storer
2077
+ # Details on the Account's acceptance of Treasury-specific terms of service.
2078
+ attr_accessor :storer
2079
+
2080
+ def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
2081
+ @account = account
2082
+ @card_creator = card_creator
2083
+ @crypto_storer = crypto_storer
2084
+ @storer = storer
2085
+ end
2086
+ end
2087
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
2088
+ attr_accessor :directorship_declaration
2089
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
2090
+ attr_accessor :ownership_declaration
2091
+ # Attestation that all Persons with a specific Relationship value have been provided.
2092
+ attr_accessor :persons_provided
2093
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
2094
+ attr_accessor :representative_declaration
2095
+ # Attestations of accepted terms of service agreements.
2096
+ attr_accessor :terms_of_service
2097
+
2098
+ def initialize(
2099
+ directorship_declaration: nil,
2100
+ ownership_declaration: nil,
2101
+ persons_provided: nil,
2102
+ representative_declaration: nil,
2103
+ terms_of_service: nil
2104
+ )
2105
+ @directorship_declaration = directorship_declaration
2106
+ @ownership_declaration = ownership_declaration
2107
+ @persons_provided = persons_provided
2108
+ @representative_declaration = representative_declaration
2109
+ @terms_of_service = terms_of_service
2110
+ end
2111
+ end
2112
+
2113
+ class BusinessDetails < ::Stripe::RequestParams
2114
+ class Address < ::Stripe::RequestParams
2115
+ # City, district, suburb, town, or village.
2116
+ attr_accessor :city
2117
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2118
+ attr_accessor :country
2119
+ # Address line 1 (e.g., street, PO Box, or company name).
2120
+ attr_accessor :line1
2121
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2122
+ attr_accessor :line2
2123
+ # ZIP or postal code.
2124
+ attr_accessor :postal_code
2125
+ # State, county, province, or region.
2126
+ attr_accessor :state
2127
+ # Town or cho-me.
2128
+ attr_accessor :town
2129
+
2130
+ def initialize(
2131
+ city: nil,
2132
+ country: nil,
2133
+ line1: nil,
2134
+ line2: nil,
2135
+ postal_code: nil,
2136
+ state: nil,
2137
+ town: nil
2138
+ )
2139
+ @city = city
2140
+ @country = country
2141
+ @line1 = line1
2142
+ @line2 = line2
2143
+ @postal_code = postal_code
2144
+ @state = state
2145
+ @town = town
2146
+ end
2147
+ end
2148
+
2149
+ class AnnualRevenue < ::Stripe::RequestParams
2150
+ class Amount < ::Stripe::RequestParams
2151
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2152
+ attr_accessor :value
2153
+ # 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).
2154
+ attr_accessor :currency
2155
+
2156
+ def initialize(value: nil, currency: nil)
2157
+ @value = value
2158
+ @currency = currency
2159
+ end
2160
+ end
2161
+ # A non-negative integer representing the amount in the smallest currency unit.
2162
+ attr_accessor :amount
2163
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2164
+ attr_accessor :fiscal_year_end
2165
+
2166
+ def initialize(amount: nil, fiscal_year_end: nil)
2167
+ @amount = amount
2168
+ @fiscal_year_end = fiscal_year_end
2169
+ end
2170
+ end
2171
+
2172
+ class Documents < ::Stripe::RequestParams
2173
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
2174
+ # 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`.
2175
+ attr_accessor :files
2176
+ # The format of the document. Currently supports `files` only.
2177
+ attr_accessor :type
2178
+
2179
+ def initialize(files: nil, type: nil)
2180
+ @files = files
2181
+ @type = type
2182
+ end
2183
+ end
2184
+
2185
+ class CompanyLicense < ::Stripe::RequestParams
2186
+ # 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`.
2187
+ attr_accessor :files
2188
+ # The format of the document. Currently supports `files` only.
2189
+ attr_accessor :type
2190
+
2191
+ def initialize(files: nil, type: nil)
2192
+ @files = files
2193
+ @type = type
2194
+ end
2195
+ end
2196
+
2197
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
2198
+ # 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`.
2199
+ attr_accessor :files
2200
+ # The format of the document. Currently supports `files` only.
2201
+ attr_accessor :type
2202
+
2203
+ def initialize(files: nil, type: nil)
2204
+ @files = files
2205
+ @type = type
2206
+ end
2207
+ end
2208
+
2209
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
2210
+ # 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`.
2211
+ attr_accessor :files
2212
+ # The format of the document. Currently supports `files` only.
2213
+ attr_accessor :type
2214
+
2215
+ def initialize(files: nil, type: nil)
2216
+ @files = files
2217
+ @type = type
2218
+ end
2219
+ end
2220
+
2221
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
2222
+ # 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`.
2223
+ attr_accessor :files
2224
+ # The format of the document. Currently supports `files` only.
2225
+ attr_accessor :type
2226
+
2227
+ def initialize(files: nil, type: nil)
2228
+ @files = files
2229
+ @type = type
2230
+ end
2231
+ end
2232
+
2233
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
2234
+ # 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`.
2235
+ attr_accessor :files
2236
+ # The format of the document. Currently supports `files` only.
2237
+ attr_accessor :type
2238
+
2239
+ def initialize(files: nil, type: nil)
2240
+ @files = files
2241
+ @type = type
2242
+ end
2243
+ end
2244
+
2245
+ class PrimaryVerification < ::Stripe::RequestParams
2246
+ class FrontBack < ::Stripe::RequestParams
2247
+ # 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.
2248
+ attr_accessor :back
2249
+ # 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.
2250
+ attr_accessor :front
2251
+
2252
+ def initialize(back: nil, front: nil)
2253
+ @back = back
2254
+ @front = front
2255
+ end
2256
+ end
2257
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2258
+ attr_accessor :front_back
2259
+ # The format of the verification document. Currently supports `front_back` only.
2260
+ attr_accessor :type
2261
+
2262
+ def initialize(front_back: nil, type: nil)
2263
+ @front_back = front_back
2264
+ @type = type
2265
+ end
2266
+ end
2267
+
2268
+ class ProofOfAddress < ::Stripe::RequestParams
2269
+ # 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`.
2270
+ attr_accessor :files
2271
+ # The format of the document. Currently supports `files` only.
2272
+ attr_accessor :type
2273
+
2274
+ def initialize(files: nil, type: nil)
2275
+ @files = files
2276
+ @type = type
2277
+ end
2278
+ end
2279
+
2280
+ class ProofOfRegistration < ::Stripe::RequestParams
2281
+ # 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`.
2282
+ attr_accessor :files
2283
+ # The format of the document. Currently supports `files` only.
2284
+ attr_accessor :type
2285
+
2286
+ def initialize(files: nil, type: nil)
2287
+ @files = files
2288
+ @type = type
2289
+ end
2290
+ end
2291
+
2292
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
2293
+ # 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`.
2294
+ attr_accessor :files
2295
+ # The format of the document. Currently supports `files` only.
2296
+ attr_accessor :type
2297
+
2298
+ def initialize(files: nil, type: nil)
2299
+ @files = files
2300
+ @type = type
2301
+ end
2302
+ end
2303
+ # 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.
2304
+ attr_accessor :bank_account_ownership_verification
2305
+ # One or more documents that demonstrate proof of a company’s license to operate.
2306
+ attr_accessor :company_license
2307
+ # One or more documents showing the company’s Memorandum of Association.
2308
+ attr_accessor :company_memorandum_of_association
2309
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
2310
+ attr_accessor :company_ministerial_decree
2311
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
2312
+ attr_accessor :company_registration_verification
2313
+ # One or more documents that demonstrate proof of a company’s tax ID.
2314
+ attr_accessor :company_tax_id_verification
2315
+ # A document verifying the business.
2316
+ attr_accessor :primary_verification
2317
+ # One or more documents that demonstrate proof of address.
2318
+ attr_accessor :proof_of_address
2319
+ # One or more documents showing the company’s proof of registration with the national business registry.
2320
+ attr_accessor :proof_of_registration
2321
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
2322
+ attr_accessor :proof_of_ultimate_beneficial_ownership
2323
+
2324
+ def initialize(
2325
+ bank_account_ownership_verification: nil,
2326
+ company_license: nil,
2327
+ company_memorandum_of_association: nil,
2328
+ company_ministerial_decree: nil,
2329
+ company_registration_verification: nil,
2330
+ company_tax_id_verification: nil,
2331
+ primary_verification: nil,
2332
+ proof_of_address: nil,
2333
+ proof_of_registration: nil,
2334
+ proof_of_ultimate_beneficial_ownership: nil
2335
+ )
2336
+ @bank_account_ownership_verification = bank_account_ownership_verification
2337
+ @company_license = company_license
2338
+ @company_memorandum_of_association = company_memorandum_of_association
2339
+ @company_ministerial_decree = company_ministerial_decree
2340
+ @company_registration_verification = company_registration_verification
2341
+ @company_tax_id_verification = company_tax_id_verification
2342
+ @primary_verification = primary_verification
2343
+ @proof_of_address = proof_of_address
2344
+ @proof_of_registration = proof_of_registration
2345
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
2346
+ end
2347
+ end
2348
+
2349
+ class IdNumber < ::Stripe::RequestParams
2350
+ # The registrar of the ID number (Only valid for DE ID number types).
2351
+ attr_accessor :registrar
2352
+ # Open Enum. The ID number type of a business entity.
2353
+ attr_accessor :type
2354
+ # The value of the ID number.
2355
+ attr_accessor :value
2356
+
2357
+ def initialize(registrar: nil, type: nil, value: nil)
2358
+ @registrar = registrar
2359
+ @type = type
2360
+ @value = value
2361
+ end
2362
+ end
2363
+
2364
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
2365
+ class Amount < ::Stripe::RequestParams
2366
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2367
+ attr_accessor :value
2368
+ # 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).
2369
+ attr_accessor :currency
2370
+
2371
+ def initialize(value: nil, currency: nil)
2372
+ @value = value
2373
+ @currency = currency
2374
+ end
2375
+ end
2376
+ # A non-negative integer representing the amount in the smallest currency unit.
2377
+ attr_accessor :amount
2378
+
2379
+ def initialize(amount: nil)
2380
+ @amount = amount
2381
+ end
2382
+ end
2383
+
2384
+ class ScriptAddresses < ::Stripe::RequestParams
2385
+ class Kana < ::Stripe::RequestParams
2386
+ # City, district, suburb, town, or village.
2387
+ attr_accessor :city
2388
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2389
+ attr_accessor :country
2390
+ # Address line 1 (e.g., street, PO Box, or company name).
2391
+ attr_accessor :line1
2392
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2393
+ attr_accessor :line2
2394
+ # ZIP or postal code.
2395
+ attr_accessor :postal_code
2396
+ # State, county, province, or region.
2397
+ attr_accessor :state
2398
+ # Town or cho-me.
2399
+ attr_accessor :town
2400
+
2401
+ def initialize(
2402
+ city: nil,
2403
+ country: nil,
2404
+ line1: nil,
2405
+ line2: nil,
2406
+ postal_code: nil,
2407
+ state: nil,
2408
+ town: nil
2409
+ )
2410
+ @city = city
2411
+ @country = country
2412
+ @line1 = line1
2413
+ @line2 = line2
2414
+ @postal_code = postal_code
2415
+ @state = state
2416
+ @town = town
2417
+ end
2418
+ end
2419
+
2420
+ class Kanji < ::Stripe::RequestParams
2421
+ # City, district, suburb, town, or village.
2422
+ attr_accessor :city
2423
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2424
+ attr_accessor :country
2425
+ # Address line 1 (e.g., street, PO Box, or company name).
2426
+ attr_accessor :line1
2427
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2428
+ attr_accessor :line2
2429
+ # ZIP or postal code.
2430
+ attr_accessor :postal_code
2431
+ # State, county, province, or region.
2432
+ attr_accessor :state
2433
+ # Town or cho-me.
2434
+ attr_accessor :town
2435
+
2436
+ def initialize(
2437
+ city: nil,
2438
+ country: nil,
2439
+ line1: nil,
2440
+ line2: nil,
2441
+ postal_code: nil,
2442
+ state: nil,
2443
+ town: nil
2444
+ )
2445
+ @city = city
2446
+ @country = country
2447
+ @line1 = line1
2448
+ @line2 = line2
2449
+ @postal_code = postal_code
2450
+ @state = state
2451
+ @town = town
2452
+ end
2453
+ end
2454
+ # Kana Address.
2455
+ attr_accessor :kana
2456
+ # Kanji Address.
2457
+ attr_accessor :kanji
2458
+
2459
+ def initialize(kana: nil, kanji: nil)
2460
+ @kana = kana
2461
+ @kanji = kanji
2462
+ end
2463
+ end
2464
+
2465
+ class ScriptNames < ::Stripe::RequestParams
2466
+ class Kana < ::Stripe::RequestParams
2467
+ # Registered name of the business.
2468
+ attr_accessor :registered_name
2469
+
2470
+ def initialize(registered_name: nil)
2471
+ @registered_name = registered_name
2472
+ end
2473
+ end
2474
+
2475
+ class Kanji < ::Stripe::RequestParams
2476
+ # Registered name of the business.
2477
+ attr_accessor :registered_name
2478
+
2479
+ def initialize(registered_name: nil)
2480
+ @registered_name = registered_name
2481
+ end
2482
+ end
2483
+ # Kana name.
2484
+ attr_accessor :kana
2485
+ # Kanji name.
2486
+ attr_accessor :kanji
2487
+
2488
+ def initialize(kana: nil, kanji: nil)
2489
+ @kana = kana
2490
+ @kanji = kanji
2491
+ end
2492
+ end
2493
+ # The business registration address of the business entity.
2494
+ attr_accessor :address
2495
+ # The business gross annual revenue for its preceding fiscal year.
2496
+ attr_accessor :annual_revenue
2497
+ # A detailed description of the business's compliance and anti-money laundering controls and practices.
2498
+ attr_accessor :compliance_screening_description
2499
+ # A document verifying the business.
2500
+ attr_accessor :documents
2501
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2502
+ attr_accessor :estimated_worker_count
2503
+ # The ID numbers of a business entity.
2504
+ attr_accessor :id_numbers
2505
+ # An estimate of the monthly revenue of the business.
2506
+ attr_accessor :monthly_estimated_revenue
2507
+ # The phone number of the Business Entity.
2508
+ attr_accessor :phone
2509
+ # The business legal name.
2510
+ attr_accessor :registered_name
2511
+ # The business registration address of the business entity in non latin script.
2512
+ attr_accessor :script_addresses
2513
+ # The business legal name in non latin script.
2514
+ attr_accessor :script_names
2515
+ # The category identifying the legal structure of the business.
2516
+ attr_accessor :structure
2517
+
2518
+ def initialize(
2519
+ address: nil,
2520
+ annual_revenue: nil,
2521
+ compliance_screening_description: nil,
2522
+ documents: nil,
2523
+ estimated_worker_count: nil,
2524
+ id_numbers: nil,
2525
+ monthly_estimated_revenue: nil,
2526
+ phone: nil,
2527
+ registered_name: nil,
2528
+ script_addresses: nil,
2529
+ script_names: nil,
2530
+ structure: nil
2531
+ )
2532
+ @address = address
2533
+ @annual_revenue = annual_revenue
2534
+ @compliance_screening_description = compliance_screening_description
2535
+ @documents = documents
2536
+ @estimated_worker_count = estimated_worker_count
2537
+ @id_numbers = id_numbers
2538
+ @monthly_estimated_revenue = monthly_estimated_revenue
2539
+ @phone = phone
2540
+ @registered_name = registered_name
2541
+ @script_addresses = script_addresses
2542
+ @script_names = script_names
2543
+ @structure = structure
2544
+ end
2545
+ end
2546
+
2547
+ class Individual < ::Stripe::RequestParams
2548
+ class AdditionalAddress < ::Stripe::RequestParams
2549
+ # City, district, suburb, town, or village.
2550
+ attr_accessor :city
2551
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2552
+ attr_accessor :country
2553
+ # Address line 1 (e.g., street, PO Box, or company name).
2554
+ attr_accessor :line1
2555
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2556
+ attr_accessor :line2
2557
+ # ZIP or postal code.
2558
+ attr_accessor :postal_code
2559
+ # Purpose of additional address.
2560
+ attr_accessor :purpose
2561
+ # State, county, province, or region.
2562
+ attr_accessor :state
2563
+ # Town or cho-me.
2564
+ attr_accessor :town
2565
+
2566
+ def initialize(
2567
+ city: nil,
2568
+ country: nil,
2569
+ line1: nil,
2570
+ line2: nil,
2571
+ postal_code: nil,
2572
+ purpose: nil,
2573
+ state: nil,
2574
+ town: nil
2575
+ )
2576
+ @city = city
2577
+ @country = country
2578
+ @line1 = line1
2579
+ @line2 = line2
2580
+ @postal_code = postal_code
2581
+ @purpose = purpose
2582
+ @state = state
2583
+ @town = town
2584
+ end
2585
+ end
2586
+
2587
+ class AdditionalName < ::Stripe::RequestParams
2588
+ # The person's full name.
2589
+ attr_accessor :full_name
2590
+ # The person's first or given name.
2591
+ attr_accessor :given_name
2592
+ # The purpose or type of the additional name.
2593
+ attr_accessor :purpose
2594
+ # The person's last or family name.
2595
+ attr_accessor :surname
2596
+
2597
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
2598
+ @full_name = full_name
2599
+ @given_name = given_name
2600
+ @purpose = purpose
2601
+ @surname = surname
2602
+ end
2603
+ end
2604
+
2605
+ class Address < ::Stripe::RequestParams
2606
+ # City, district, suburb, town, or village.
2607
+ attr_accessor :city
2608
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2609
+ attr_accessor :country
2610
+ # Address line 1 (e.g., street, PO Box, or company name).
2611
+ attr_accessor :line1
2612
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2613
+ attr_accessor :line2
2614
+ # ZIP or postal code.
2615
+ attr_accessor :postal_code
2616
+ # State, county, province, or region.
2617
+ attr_accessor :state
2618
+ # Town or cho-me.
2619
+ attr_accessor :town
2620
+
2621
+ def initialize(
2622
+ city: nil,
2623
+ country: nil,
2624
+ line1: nil,
2625
+ line2: nil,
2626
+ postal_code: nil,
2627
+ state: nil,
2628
+ town: nil
2629
+ )
2630
+ @city = city
2631
+ @country = country
2632
+ @line1 = line1
2633
+ @line2 = line2
2634
+ @postal_code = postal_code
2635
+ @state = state
2636
+ @town = town
2637
+ end
2638
+ end
2639
+
2640
+ class DateOfBirth < ::Stripe::RequestParams
2641
+ # The day of birth.
2642
+ attr_accessor :day
2643
+ # The month of birth.
2644
+ attr_accessor :month
2645
+ # The year of birth.
2646
+ attr_accessor :year
2647
+
2648
+ def initialize(day: nil, month: nil, year: nil)
2649
+ @day = day
2650
+ @month = month
2651
+ @year = year
2652
+ end
2653
+ end
2654
+
2655
+ class Documents < ::Stripe::RequestParams
2656
+ class CompanyAuthorization < ::Stripe::RequestParams
2657
+ # 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`.
2658
+ attr_accessor :files
2659
+ # The format of the document. Currently supports `files` only.
2660
+ attr_accessor :type
2661
+
2662
+ def initialize(files: nil, type: nil)
2663
+ @files = files
2664
+ @type = type
2665
+ end
2666
+ end
2667
+
2668
+ class Passport < ::Stripe::RequestParams
2669
+ # 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`.
2670
+ attr_accessor :files
2671
+ # The format of the document. Currently supports `files` only.
2672
+ attr_accessor :type
2673
+
2674
+ def initialize(files: nil, type: nil)
2675
+ @files = files
2676
+ @type = type
2677
+ end
2678
+ end
2679
+
2680
+ class PrimaryVerification < ::Stripe::RequestParams
2681
+ class FrontBack < ::Stripe::RequestParams
2682
+ # 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.
2683
+ attr_accessor :back
2684
+ # 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.
2685
+ attr_accessor :front
2686
+
2687
+ def initialize(back: nil, front: nil)
2688
+ @back = back
2689
+ @front = front
2690
+ end
2691
+ end
2692
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2693
+ attr_accessor :front_back
2694
+ # The format of the verification document. Currently supports `front_back` only.
2695
+ attr_accessor :type
2696
+
2697
+ def initialize(front_back: nil, type: nil)
2698
+ @front_back = front_back
2699
+ @type = type
2700
+ end
2701
+ end
2702
+
2703
+ class SecondaryVerification < ::Stripe::RequestParams
2704
+ class FrontBack < ::Stripe::RequestParams
2705
+ # 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.
2706
+ attr_accessor :back
2707
+ # 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.
2708
+ attr_accessor :front
2709
+
2710
+ def initialize(back: nil, front: nil)
2711
+ @back = back
2712
+ @front = front
2713
+ end
2714
+ end
2715
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2716
+ attr_accessor :front_back
2717
+ # The format of the verification document. Currently supports `front_back` only.
2718
+ attr_accessor :type
2719
+
2720
+ def initialize(front_back: nil, type: nil)
2721
+ @front_back = front_back
2722
+ @type = type
2723
+ end
2724
+ end
2725
+
2726
+ class Visa < ::Stripe::RequestParams
2727
+ # 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`.
2728
+ attr_accessor :files
2729
+ # The format of the document. Currently supports `files` only.
2730
+ attr_accessor :type
2731
+
2732
+ def initialize(files: nil, type: nil)
2733
+ @files = files
2734
+ @type = type
2735
+ end
2736
+ end
2737
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
2738
+ attr_accessor :company_authorization
2739
+ # One or more documents showing the person’s passport page with photo and personal data.
2740
+ attr_accessor :passport
2741
+ # An identifying document showing the person's name, either a passport or local ID card.
2742
+ attr_accessor :primary_verification
2743
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
2744
+ attr_accessor :secondary_verification
2745
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
2746
+ attr_accessor :visa
2747
+
2748
+ def initialize(
2749
+ company_authorization: nil,
2750
+ passport: nil,
2751
+ primary_verification: nil,
2752
+ secondary_verification: nil,
2753
+ visa: nil
2754
+ )
2755
+ @company_authorization = company_authorization
2756
+ @passport = passport
2757
+ @primary_verification = primary_verification
2758
+ @secondary_verification = secondary_verification
2759
+ @visa = visa
2760
+ end
2761
+ end
2762
+
2763
+ class IdNumber < ::Stripe::RequestParams
2764
+ # The ID number type of an individual.
2765
+ attr_accessor :type
2766
+ # The value of the ID number.
2767
+ attr_accessor :value
2768
+
2769
+ def initialize(type: nil, value: nil)
2770
+ @type = type
2771
+ @value = value
2772
+ end
2773
+ end
2774
+
2775
+ class Relationship < ::Stripe::RequestParams
2776
+ # 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.
2777
+ attr_accessor :director
2778
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
2779
+ attr_accessor :executive
2780
+ # Whether the person is an owner of the account’s identity.
2781
+ attr_accessor :owner
2782
+ # The percent owned by the person of the account's legal entity.
2783
+ attr_accessor :percent_ownership
2784
+ # The person's title (e.g., CEO, Support Engineer).
2785
+ attr_accessor :title
2786
+
2787
+ def initialize(
2788
+ director: nil,
2789
+ executive: nil,
2790
+ owner: nil,
2791
+ percent_ownership: nil,
2792
+ title: nil
2793
+ )
2794
+ @director = director
2795
+ @executive = executive
2796
+ @owner = owner
2797
+ @percent_ownership = percent_ownership
2798
+ @title = title
2799
+ end
2800
+ end
2801
+
2802
+ class ScriptAddresses < ::Stripe::RequestParams
2803
+ class Kana < ::Stripe::RequestParams
2804
+ # City, district, suburb, town, or village.
2805
+ attr_accessor :city
2806
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2807
+ attr_accessor :country
2808
+ # Address line 1 (e.g., street, PO Box, or company name).
2809
+ attr_accessor :line1
2810
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2811
+ attr_accessor :line2
2812
+ # ZIP or postal code.
2813
+ attr_accessor :postal_code
2814
+ # State, county, province, or region.
2815
+ attr_accessor :state
2816
+ # Town or cho-me.
2817
+ attr_accessor :town
2818
+
2819
+ def initialize(
2820
+ city: nil,
2821
+ country: nil,
2822
+ line1: nil,
2823
+ line2: nil,
2824
+ postal_code: nil,
2825
+ state: nil,
2826
+ town: nil
2827
+ )
2828
+ @city = city
2829
+ @country = country
2830
+ @line1 = line1
2831
+ @line2 = line2
2832
+ @postal_code = postal_code
2833
+ @state = state
2834
+ @town = town
2835
+ end
2836
+ end
2837
+
2838
+ class Kanji < ::Stripe::RequestParams
2839
+ # City, district, suburb, town, or village.
2840
+ attr_accessor :city
2841
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2842
+ attr_accessor :country
2843
+ # Address line 1 (e.g., street, PO Box, or company name).
2844
+ attr_accessor :line1
2845
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2846
+ attr_accessor :line2
2847
+ # ZIP or postal code.
2848
+ attr_accessor :postal_code
2849
+ # State, county, province, or region.
2850
+ attr_accessor :state
2851
+ # Town or cho-me.
2852
+ attr_accessor :town
2853
+
2854
+ def initialize(
2855
+ city: nil,
2856
+ country: nil,
2857
+ line1: nil,
2858
+ line2: nil,
2859
+ postal_code: nil,
2860
+ state: nil,
2861
+ town: nil
2862
+ )
2863
+ @city = city
2864
+ @country = country
2865
+ @line1 = line1
2866
+ @line2 = line2
2867
+ @postal_code = postal_code
2868
+ @state = state
2869
+ @town = town
2870
+ end
2871
+ end
2872
+ # Kana Address.
2873
+ attr_accessor :kana
2874
+ # Kanji Address.
2875
+ attr_accessor :kanji
2876
+
2877
+ def initialize(kana: nil, kanji: nil)
2878
+ @kana = kana
2879
+ @kanji = kanji
2880
+ end
2881
+ end
2882
+
2883
+ class ScriptNames < ::Stripe::RequestParams
2884
+ class Kana < ::Stripe::RequestParams
2885
+ # The person's first or given name.
2886
+ attr_accessor :given_name
2887
+ # The person's last or family name.
2888
+ attr_accessor :surname
2889
+
2890
+ def initialize(given_name: nil, surname: nil)
2891
+ @given_name = given_name
2892
+ @surname = surname
2893
+ end
2894
+ end
2895
+
2896
+ class Kanji < ::Stripe::RequestParams
2897
+ # The person's first or given name.
2898
+ attr_accessor :given_name
2899
+ # The person's last or family name.
2900
+ attr_accessor :surname
2901
+
2902
+ def initialize(given_name: nil, surname: nil)
2903
+ @given_name = given_name
2904
+ @surname = surname
2905
+ end
2906
+ end
2907
+ # Persons name in kana script.
2908
+ attr_accessor :kana
2909
+ # Persons name in kanji script.
2910
+ attr_accessor :kanji
2911
+
2912
+ def initialize(kana: nil, kanji: nil)
2913
+ @kana = kana
2914
+ @kanji = kanji
2915
+ end
2916
+ end
2917
+ # Additional addresses associated with the individual.
2918
+ attr_accessor :additional_addresses
2919
+ # Additional names (e.g. aliases) associated with the individual.
2920
+ attr_accessor :additional_names
2921
+ # The individual's residential address.
2922
+ attr_accessor :address
2923
+ # The individual's date of birth.
2924
+ attr_accessor :date_of_birth
2925
+ # Documents that may be submitted to satisfy various informational requests.
2926
+ attr_accessor :documents
2927
+ # The individual's email address.
2928
+ attr_accessor :email
2929
+ # The individual's first name.
2930
+ attr_accessor :given_name
2931
+ # The identification numbers (e.g., SSN) associated with the individual.
2932
+ attr_accessor :id_numbers
2933
+ # The individual's gender (International regulations require either "male" or "female").
2934
+ attr_accessor :legal_gender
2935
+ # 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.
2936
+ attr_accessor :metadata
2937
+ # 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)).
2938
+ attr_accessor :nationalities
2939
+ # The individual's phone number.
2940
+ attr_accessor :phone
2941
+ # The individual's political exposure.
2942
+ attr_accessor :political_exposure
2943
+ # The relationship that this individual has with the account's identity.
2944
+ attr_accessor :relationship
2945
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2946
+ attr_accessor :script_addresses
2947
+ # The individuals primary name in non latin script.
2948
+ attr_accessor :script_names
2949
+ # The individual's last name.
2950
+ attr_accessor :surname
2951
+
2952
+ def initialize(
2953
+ additional_addresses: nil,
2954
+ additional_names: nil,
2955
+ address: nil,
2956
+ date_of_birth: nil,
2957
+ documents: nil,
2958
+ email: nil,
2959
+ given_name: nil,
2960
+ id_numbers: nil,
2961
+ legal_gender: nil,
2962
+ metadata: nil,
2963
+ nationalities: nil,
2964
+ phone: nil,
2965
+ political_exposure: nil,
2966
+ relationship: nil,
2967
+ script_addresses: nil,
2968
+ script_names: nil,
2969
+ surname: nil
2970
+ )
2971
+ @additional_addresses = additional_addresses
2972
+ @additional_names = additional_names
2973
+ @address = address
2974
+ @date_of_birth = date_of_birth
2975
+ @documents = documents
2976
+ @email = email
2977
+ @given_name = given_name
2978
+ @id_numbers = id_numbers
2979
+ @legal_gender = legal_gender
2980
+ @metadata = metadata
2981
+ @nationalities = nationalities
2982
+ @phone = phone
2983
+ @political_exposure = political_exposure
2984
+ @relationship = relationship
2985
+ @script_addresses = script_addresses
2986
+ @script_names = script_names
2987
+ @surname = surname
2988
+ end
2989
+ end
2990
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
2991
+ attr_accessor :attestations
2992
+ # Information about the company or business.
2993
+ attr_accessor :business_details
2994
+ # 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.
2995
+ attr_accessor :country
2996
+ # The entity type.
2997
+ attr_accessor :entity_type
2998
+ # Information about the person represented by the account.
2999
+ attr_accessor :individual
3000
+
3001
+ def initialize(
3002
+ attestations: nil,
3003
+ business_details: nil,
3004
+ country: nil,
3005
+ entity_type: nil,
3006
+ individual: nil
3007
+ )
3008
+ @attestations = attestations
3009
+ @business_details = business_details
3010
+ @country = country
3011
+ @entity_type = entity_type
3012
+ @individual = individual
3013
+ end
3014
+ end
3015
+ # The account token generated by the account token api.
3016
+ attr_accessor :account_token
3017
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
3018
+ attr_accessor :configuration
3019
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
3020
+ attr_accessor :contact_email
3021
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
3022
+ attr_accessor :dashboard
3023
+ # Default values to be used on Account Configurations.
3024
+ attr_accessor :defaults
3025
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
3026
+ attr_accessor :display_name
3027
+ # Information about the company, individual, and business represented by the Account.
3028
+ attr_accessor :identity
3029
+ # Additional fields to include in the response.
3030
+ attr_accessor :include
3031
+ # 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.
3032
+ attr_accessor :metadata
3033
+
3034
+ def initialize(
3035
+ account_token: nil,
3036
+ configuration: nil,
3037
+ contact_email: nil,
3038
+ dashboard: nil,
3039
+ defaults: nil,
3040
+ display_name: nil,
3041
+ identity: nil,
3042
+ include: nil,
3043
+ metadata: nil
3044
+ )
3045
+ @account_token = account_token
3046
+ @configuration = configuration
3047
+ @contact_email = contact_email
3048
+ @dashboard = dashboard
3049
+ @defaults = defaults
3050
+ @display_name = display_name
3051
+ @identity = identity
3052
+ @include = include
3053
+ @metadata = metadata
3054
+ end
3055
+ end
3056
+ end
3057
+ end
3058
+ end