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