stripe 16.0.0 → 16.1.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (880) 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 +1032 -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_bill_setting_updated_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  194. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  195. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  196. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  198. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  217. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  230. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  240. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  244. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  245. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  248. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  254. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  260. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  261. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  271. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  272. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  308. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  315. data/lib/stripe/object_types.rb +79 -0
  316. data/lib/stripe/params/account_create_params.rb +300 -1
  317. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  318. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  319. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  320. data/lib/stripe/params/account_session_create_params.rb +226 -1
  321. data/lib/stripe/params/account_update_params.rb +262 -0
  322. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  323. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  324. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  325. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  326. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  327. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  328. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  329. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  330. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  331. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  332. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  333. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  334. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  335. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  336. data/lib/stripe/params/charge_capture_params.rb +709 -0
  337. data/lib/stripe/params/charge_update_params.rb +709 -0
  338. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  339. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  340. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  341. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  342. data/lib/stripe/params/coupon_create_params.rb +17 -1
  343. data/lib/stripe/params/credit_note_create_params.rb +18 -1
  344. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  345. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +18 -1
  346. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +18 -1
  347. data/lib/stripe/params/credit_note_preview_params.rb +18 -1
  348. data/lib/stripe/params/customer_session_create_params.rb +4 -1
  349. data/lib/stripe/params/dispute_update_params.rb +10 -1
  350. data/lib/stripe/params/external_account_create_params.rb +134 -0
  351. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  352. data/lib/stripe/params/external_account_list_params.rb +25 -0
  353. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  354. data/lib/stripe/params/external_account_update_params.rb +91 -0
  355. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  356. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  357. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  358. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  360. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  361. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  362. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  363. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  364. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  365. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  366. data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
  367. data/lib/stripe/params/invoice_create_params.rb +112 -2
  368. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  369. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  370. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  371. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  372. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  373. data/lib/stripe/params/invoice_list_params.rb +8 -0
  374. data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
  375. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  376. data/lib/stripe/params/invoice_update_params.rb +108 -2
  377. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  378. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  379. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  380. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  381. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  382. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  383. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  384. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  385. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  386. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  387. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  388. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  389. data/lib/stripe/params/mandate_list_params.rb +39 -0
  390. data/lib/stripe/params/margin_create_params.rb +25 -0
  391. data/lib/stripe/params/margin_list_params.rb +25 -0
  392. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  393. data/lib/stripe/params/margin_update_params.rb +22 -0
  394. data/lib/stripe/params/order_cancel_params.rb +13 -0
  395. data/lib/stripe/params/order_create_params.rb +1124 -0
  396. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  397. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  398. data/lib/stripe/params/order_list_params.rb +25 -0
  399. data/lib/stripe/params/order_reopen_params.rb +13 -0
  400. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  401. data/lib/stripe/params/order_submit_params.rb +16 -0
  402. data/lib/stripe/params/order_update_params.rb +1128 -0
  403. data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
  404. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  405. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  406. data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
  407. data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
  408. data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
  409. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  410. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
  411. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  412. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  413. data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
  414. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  415. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  416. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  417. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  418. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  419. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  420. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  421. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  422. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  423. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  424. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  425. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  426. data/lib/stripe/params/price_update_params.rb +19 -0
  427. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  428. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  429. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  430. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  431. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  432. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  433. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  434. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  435. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  436. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  437. data/lib/stripe/params/quote_create_params.rb +805 -3
  438. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  439. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  440. data/lib/stripe/params/quote_list_params.rb +8 -0
  441. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  442. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  443. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  444. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  445. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  446. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  447. data/lib/stripe/params/quote_update_params.rb +813 -4
  448. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  449. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  450. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  451. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  452. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  453. data/lib/stripe/params/subscription_create_params.rb +259 -5
  454. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  455. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  456. data/lib/stripe/params/subscription_list_params.rb +4 -0
  457. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  458. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  459. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  460. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  461. data/lib/stripe/params/subscription_update_params.rb +238 -4
  462. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  463. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  464. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  465. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  466. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  467. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  468. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  469. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  470. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  471. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  472. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  473. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  474. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  475. data/lib/stripe/params/transfer_create_params.rb +4 -0
  476. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  477. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  478. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  479. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  480. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  481. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  482. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  483. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  484. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  485. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  486. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  487. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  488. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  489. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  490. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  491. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  492. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  493. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  494. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  495. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  496. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  497. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  498. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  499. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  500. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  501. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  502. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  503. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  504. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  505. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  506. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  507. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  508. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  509. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  510. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  511. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  512. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  513. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  514. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  515. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  516. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  517. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  518. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  519. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  520. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  521. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  522. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  523. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  524. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  525. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  526. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  527. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  528. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  529. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  530. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  531. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  532. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  533. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -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 +2234 -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 +20 -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 +2262 -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_retrieve_params.rb +12 -0
  582. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  583. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  584. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  585. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  586. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  587. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  588. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  589. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  590. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  591. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  593. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  594. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  595. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  596. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  597. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  598. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  599. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  600. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  601. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  602. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  603. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  604. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  605. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  606. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  607. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  608. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  609. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  610. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  611. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  612. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  613. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  614. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  615. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  616. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  617. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  618. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  619. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  620. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  621. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  622. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  623. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  624. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  626. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  627. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  628. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  629. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  630. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  631. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  632. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  633. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  634. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  635. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  636. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  637. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  638. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  639. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  640. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  641. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +23 -0
  642. data/lib/stripe/params.rb +240 -0
  643. data/lib/stripe/resources/account.rb +166 -1
  644. data/lib/stripe/resources/account_notice.rb +94 -0
  645. data/lib/stripe/resources/account_session.rb +81 -0
  646. data/lib/stripe/resources/billing/alert.rb +105 -1
  647. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  648. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  649. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  650. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  651. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  652. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  653. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  654. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  655. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  656. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  657. data/lib/stripe/resources/card.rb +2 -0
  658. data/lib/stripe/resources/cash_balance.rb +2 -0
  659. data/lib/stripe/resources/charge.rb +234 -1
  660. data/lib/stripe/resources/checkout/session.rb +246 -4
  661. data/lib/stripe/resources/confirmation_token.rb +155 -0
  662. data/lib/stripe/resources/coupon.rb +26 -1
  663. data/lib/stripe/resources/credit_note.rb +21 -1
  664. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  665. data/lib/stripe/resources/customer.rb +2 -0
  666. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  667. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  668. data/lib/stripe/resources/customer_session.rb +2 -0
  669. data/lib/stripe/resources/discount.rb +2 -0
  670. data/lib/stripe/resources/dispute.rb +22 -0
  671. data/lib/stripe/resources/event.rb +64 -1
  672. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  673. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  674. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  675. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  676. data/lib/stripe/resources/fx_quote.rb +147 -0
  677. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  678. data/lib/stripe/resources/invoice.rb +152 -1
  679. data/lib/stripe/resources/invoice_item.rb +94 -2
  680. data/lib/stripe/resources/invoice_line_item.rb +131 -1
  681. data/lib/stripe/resources/invoice_payment.rb +2 -0
  682. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  683. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  684. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  685. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  686. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  687. data/lib/stripe/resources/line_item.rb +68 -1
  688. data/lib/stripe/resources/mandate.rb +71 -0
  689. data/lib/stripe/resources/margin.rb +64 -0
  690. data/lib/stripe/resources/order.rb +987 -0
  691. data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
  692. data/lib/stripe/resources/payment_intent.rb +848 -4
  693. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  694. data/lib/stripe/resources/payment_method.rb +157 -0
  695. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  696. data/lib/stripe/resources/payment_record.rb +2208 -0
  697. data/lib/stripe/resources/price.rb +20 -0
  698. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  699. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  700. data/lib/stripe/resources/promotion_code.rb +2 -0
  701. data/lib/stripe/resources/quote.rb +571 -2
  702. data/lib/stripe/resources/quote_line.rb +521 -0
  703. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  704. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  705. data/lib/stripe/resources/refund.rb +18 -0
  706. data/lib/stripe/resources/setup_attempt.rb +63 -0
  707. data/lib/stripe/resources/setup_intent.rb +132 -1
  708. data/lib/stripe/resources/source.rb +38 -0
  709. data/lib/stripe/resources/subscription.rb +232 -0
  710. data/lib/stripe/resources/subscription_item.rb +20 -1
  711. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  712. data/lib/stripe/resources/tax/association.rb +86 -0
  713. data/lib/stripe/resources/tax/form.rb +264 -0
  714. data/lib/stripe/resources/tax_id.rb +4 -0
  715. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  716. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  717. data/lib/stripe/resources/terminal/reader.rb +8 -0
  718. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  719. data/lib/stripe/resources/transfer.rb +2 -0
  720. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  721. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  722. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  723. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  724. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  725. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  726. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  727. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  728. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  729. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  730. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  731. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  732. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  733. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  734. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  735. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  736. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  737. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  738. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  739. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  740. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  741. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  742. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  743. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  744. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  745. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  746. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  747. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  748. data/lib/stripe/resources/v2/core/account.rb +3885 -0
  749. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  750. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  751. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  752. data/lib/stripe/resources/v2/core/event.rb +4 -0
  753. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  754. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  755. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  756. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  757. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  758. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  759. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  760. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  761. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  762. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  763. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  764. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  765. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  766. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  767. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  768. data/lib/stripe/resources/v2/money_management/received_debit.rb +138 -0
  769. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  770. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  771. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  772. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  773. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  774. data/lib/stripe/resources.rb +384 -0
  775. data/lib/stripe/services/account_notice_service.rb +39 -0
  776. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  777. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  778. data/lib/stripe/services/billing_service.rb +2 -1
  779. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  780. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  781. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  782. data/lib/stripe/services/capital_service.rb +15 -0
  783. data/lib/stripe/services/external_account_service.rb +68 -0
  784. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  785. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  786. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  787. data/lib/stripe/services/financial_connections_service.rb +2 -1
  788. data/lib/stripe/services/fx_quote_service.rb +27 -0
  789. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  790. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  791. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  792. data/lib/stripe/services/issuing_service.rb +5 -1
  793. data/lib/stripe/services/mandate_service.rb +5 -0
  794. data/lib/stripe/services/margin_service.rb +50 -0
  795. data/lib/stripe/services/order_line_item_service.rb +17 -0
  796. data/lib/stripe/services/order_service.rb +78 -0
  797. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  798. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  799. data/lib/stripe/services/payment_intent_service.rb +44 -0
  800. data/lib/stripe/services/payment_record_service.rb +89 -0
  801. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  802. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  803. data/lib/stripe/services/privacy_service.rb +13 -0
  804. data/lib/stripe/services/quote_line_service.rb +17 -0
  805. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  806. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  807. data/lib/stripe/services/quote_service.rb +49 -1
  808. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  809. data/lib/stripe/services/subscription_service.rb +11 -0
  810. data/lib/stripe/services/tax/association_service.rb +19 -0
  811. data/lib/stripe/services/tax/form_service.rb +37 -0
  812. data/lib/stripe/services/tax_service.rb +3 -1
  813. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  814. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  815. data/lib/stripe/services/terminal_service.rb +3 -1
  816. data/lib/stripe/services/v1_services.rb +10 -1
  817. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  818. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  819. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  820. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  821. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  822. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  823. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  824. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  825. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  826. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  827. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  828. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  829. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  830. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  831. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +43 -0
  832. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  833. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  834. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  835. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  836. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  837. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  838. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  839. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  840. data/lib/stripe/services/v2/billing_service.rb +18 -1
  841. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  842. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  843. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  844. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  845. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
  846. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
  847. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  848. data/lib/stripe/services/v2/core_service.rb +5 -1
  849. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  850. data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
  851. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  852. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  853. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  854. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  855. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  856. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  857. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  858. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  859. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  860. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  861. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  862. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  863. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  864. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  865. data/lib/stripe/services/v2/payment_service.rb +15 -0
  866. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  867. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  868. data/lib/stripe/services/v2/tax_service.rb +15 -0
  869. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  870. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  871. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  872. data/lib/stripe/services/v2_services.rb +5 -1
  873. data/lib/stripe/services.rb +83 -0
  874. data/lib/stripe/stripe_configuration.rb +3 -1
  875. data/lib/stripe/stripe_object.rb +1 -1
  876. data/lib/stripe/util.rb +7 -1
  877. data/lib/stripe/version.rb +1 -1
  878. data/lib/stripe.rb +53 -0
  879. data/rbi/stripe.rbi +165861 -94330
  880. metadata +711 -4
@@ -0,0 +1,2234 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountCreateParams < Stripe::RequestParams
8
+ class Configuration < Stripe::RequestParams
9
+ class Customer < Stripe::RequestParams
10
+ class AutomaticIndirectTax < Stripe::RequestParams
11
+ # 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”.
12
+ attr_accessor :exempt
13
+ # A recent IP address of the customer used for tax reporting and tax location inference.
14
+ attr_accessor :ip_address
15
+ # 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.
16
+ attr_accessor :location_source
17
+
18
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
19
+ @exempt = exempt
20
+ @ip_address = ip_address
21
+ @location_source = location_source
22
+ end
23
+ end
24
+
25
+ class Billing < Stripe::RequestParams
26
+ class Invoice < Stripe::RequestParams
27
+ class CustomField < Stripe::RequestParams
28
+ # The name of the custom field. This may be up to 40 characters.
29
+ attr_accessor :name
30
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
31
+ attr_accessor :value
32
+
33
+ def initialize(name: nil, value: nil)
34
+ @name = name
35
+ @value = value
36
+ end
37
+ end
38
+
39
+ class Rendering < Stripe::RequestParams
40
+ # 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.
41
+ attr_accessor :amount_tax_display
42
+ # ID of the invoice rendering template to use for future invoices.
43
+ attr_accessor :template
44
+
45
+ def initialize(amount_tax_display: nil, template: nil)
46
+ @amount_tax_display = amount_tax_display
47
+ @template = template
48
+ end
49
+ end
50
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
51
+ attr_accessor :custom_fields
52
+ # Default footer to be displayed on invoices for this customer.
53
+ attr_accessor :footer
54
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
55
+ attr_accessor :next_sequence
56
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
57
+ attr_accessor :prefix
58
+ # Default options for invoice PDF rendering for this customer.
59
+ attr_accessor :rendering
60
+
61
+ def initialize(
62
+ custom_fields: nil,
63
+ footer: nil,
64
+ next_sequence: nil,
65
+ prefix: nil,
66
+ rendering: nil
67
+ )
68
+ @custom_fields = custom_fields
69
+ @footer = footer
70
+ @next_sequence = next_sequence
71
+ @prefix = prefix
72
+ @rendering = rendering
73
+ end
74
+ end
75
+ # Default settings used on invoices for this customer.
76
+ attr_accessor :invoice
77
+
78
+ def initialize(invoice: nil)
79
+ @invoice = invoice
80
+ end
81
+ end
82
+
83
+ class Capabilities < Stripe::RequestParams
84
+ class AutomaticIndirectTax < Stripe::RequestParams
85
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
86
+ attr_accessor :requested
87
+
88
+ def initialize(requested: nil)
89
+ @requested = requested
90
+ end
91
+ end
92
+ # 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.
93
+ attr_accessor :automatic_indirect_tax
94
+
95
+ def initialize(automatic_indirect_tax: nil)
96
+ @automatic_indirect_tax = automatic_indirect_tax
97
+ end
98
+ end
99
+
100
+ class Shipping < Stripe::RequestParams
101
+ class Address < Stripe::RequestParams
102
+ # City, district, suburb, town, or village.
103
+ attr_accessor :city
104
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
105
+ attr_accessor :country
106
+ # Address line 1 (e.g., street, PO Box, or company name).
107
+ attr_accessor :line1
108
+ # Address line 2 (e.g., apartment, suite, unit, or building).
109
+ attr_accessor :line2
110
+ # ZIP or postal code.
111
+ attr_accessor :postal_code
112
+ # State, county, province, or region.
113
+ attr_accessor :state
114
+
115
+ def initialize(
116
+ city: nil,
117
+ country: nil,
118
+ line1: nil,
119
+ line2: nil,
120
+ postal_code: nil,
121
+ state: nil
122
+ )
123
+ @city = city
124
+ @country = country
125
+ @line1 = line1
126
+ @line2 = line2
127
+ @postal_code = postal_code
128
+ @state = state
129
+ end
130
+ end
131
+ # Customer shipping address.
132
+ attr_accessor :address
133
+ # Customer name.
134
+ attr_accessor :name
135
+ # Customer phone (including extension).
136
+ attr_accessor :phone
137
+
138
+ def initialize(address: nil, name: nil, phone: nil)
139
+ @address = address
140
+ @name = name
141
+ @phone = phone
142
+ end
143
+ end
144
+ # 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.
145
+ attr_accessor :automatic_indirect_tax
146
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
147
+ attr_accessor :billing
148
+ # Capabilities that have been requested on the Customer Configuration.
149
+ attr_accessor :capabilities
150
+ # The customer's shipping information. Appears on invoices emailed to this customer.
151
+ attr_accessor :shipping
152
+ # 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.
153
+ attr_accessor :test_clock
154
+
155
+ def initialize(
156
+ automatic_indirect_tax: nil,
157
+ billing: nil,
158
+ capabilities: nil,
159
+ shipping: nil,
160
+ test_clock: nil
161
+ )
162
+ @automatic_indirect_tax = automatic_indirect_tax
163
+ @billing = billing
164
+ @capabilities = capabilities
165
+ @shipping = shipping
166
+ @test_clock = test_clock
167
+ end
168
+ end
169
+
170
+ class Merchant < Stripe::RequestParams
171
+ class BacsDebitPayments < Stripe::RequestParams
172
+ # Display name for Bacs debit payments.
173
+ attr_accessor :display_name
174
+
175
+ def initialize(display_name: nil)
176
+ @display_name = display_name
177
+ end
178
+ end
179
+
180
+ class Branding < Stripe::RequestParams
181
+ # 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.
182
+ attr_accessor :icon
183
+ # 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.
184
+ attr_accessor :logo
185
+ # A CSS hex color value representing the primary branding color for the merchant.
186
+ attr_accessor :primary_color
187
+ # A CSS hex color value representing the secondary branding color for the merchant.
188
+ attr_accessor :secondary_color
189
+
190
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
191
+ @icon = icon
192
+ @logo = logo
193
+ @primary_color = primary_color
194
+ @secondary_color = secondary_color
195
+ end
196
+ end
197
+
198
+ class Capabilities < Stripe::RequestParams
199
+ class AchDebitPayments < Stripe::RequestParams
200
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
201
+ attr_accessor :requested
202
+
203
+ def initialize(requested: nil)
204
+ @requested = requested
205
+ end
206
+ end
207
+
208
+ class AcssDebitPayments < Stripe::RequestParams
209
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
210
+ attr_accessor :requested
211
+
212
+ def initialize(requested: nil)
213
+ @requested = requested
214
+ end
215
+ end
216
+
217
+ class AffirmPayments < Stripe::RequestParams
218
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
219
+ attr_accessor :requested
220
+
221
+ def initialize(requested: nil)
222
+ @requested = requested
223
+ end
224
+ end
225
+
226
+ class AfterpayClearpayPayments < Stripe::RequestParams
227
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
228
+ attr_accessor :requested
229
+
230
+ def initialize(requested: nil)
231
+ @requested = requested
232
+ end
233
+ end
234
+
235
+ class AlmaPayments < 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
+
244
+ class AmazonPayPayments < Stripe::RequestParams
245
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
246
+ attr_accessor :requested
247
+
248
+ def initialize(requested: nil)
249
+ @requested = requested
250
+ end
251
+ end
252
+
253
+ class AuBecsDebitPayments < Stripe::RequestParams
254
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
255
+ attr_accessor :requested
256
+
257
+ def initialize(requested: nil)
258
+ @requested = requested
259
+ end
260
+ end
261
+
262
+ class BacsDebitPayments < Stripe::RequestParams
263
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
264
+ attr_accessor :requested
265
+
266
+ def initialize(requested: nil)
267
+ @requested = requested
268
+ end
269
+ end
270
+
271
+ class BancontactPayments < Stripe::RequestParams
272
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
273
+ attr_accessor :requested
274
+
275
+ def initialize(requested: nil)
276
+ @requested = requested
277
+ end
278
+ end
279
+
280
+ class BlikPayments < Stripe::RequestParams
281
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
282
+ attr_accessor :requested
283
+
284
+ def initialize(requested: nil)
285
+ @requested = requested
286
+ end
287
+ end
288
+
289
+ class BoletoPayments < Stripe::RequestParams
290
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
291
+ attr_accessor :requested
292
+
293
+ def initialize(requested: nil)
294
+ @requested = requested
295
+ end
296
+ end
297
+
298
+ class CardPayments < Stripe::RequestParams
299
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
300
+ attr_accessor :requested
301
+
302
+ def initialize(requested: nil)
303
+ @requested = requested
304
+ end
305
+ end
306
+
307
+ class CartesBancairesPayments < Stripe::RequestParams
308
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
309
+ attr_accessor :requested
310
+
311
+ def initialize(requested: nil)
312
+ @requested = requested
313
+ end
314
+ end
315
+
316
+ class CashappPayments < Stripe::RequestParams
317
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
318
+ attr_accessor :requested
319
+
320
+ def initialize(requested: nil)
321
+ @requested = requested
322
+ end
323
+ end
324
+
325
+ class EpsPayments < Stripe::RequestParams
326
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
327
+ attr_accessor :requested
328
+
329
+ def initialize(requested: nil)
330
+ @requested = requested
331
+ end
332
+ end
333
+
334
+ class FpxPayments < Stripe::RequestParams
335
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
336
+ attr_accessor :requested
337
+
338
+ def initialize(requested: nil)
339
+ @requested = requested
340
+ end
341
+ end
342
+
343
+ class GbBankTransferPayments < Stripe::RequestParams
344
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
345
+ attr_accessor :requested
346
+
347
+ def initialize(requested: nil)
348
+ @requested = requested
349
+ end
350
+ end
351
+
352
+ class GrabpayPayments < Stripe::RequestParams
353
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
354
+ attr_accessor :requested
355
+
356
+ def initialize(requested: nil)
357
+ @requested = requested
358
+ end
359
+ end
360
+
361
+ class IdealPayments < Stripe::RequestParams
362
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
363
+ attr_accessor :requested
364
+
365
+ def initialize(requested: nil)
366
+ @requested = requested
367
+ end
368
+ end
369
+
370
+ class JcbPayments < Stripe::RequestParams
371
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
372
+ attr_accessor :requested
373
+
374
+ def initialize(requested: nil)
375
+ @requested = requested
376
+ end
377
+ end
378
+
379
+ class JpBankTransferPayments < Stripe::RequestParams
380
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
381
+ attr_accessor :requested
382
+
383
+ def initialize(requested: nil)
384
+ @requested = requested
385
+ end
386
+ end
387
+
388
+ class KakaoPayPayments < Stripe::RequestParams
389
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
390
+ attr_accessor :requested
391
+
392
+ def initialize(requested: nil)
393
+ @requested = requested
394
+ end
395
+ end
396
+
397
+ class KlarnaPayments < Stripe::RequestParams
398
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
399
+ attr_accessor :requested
400
+
401
+ def initialize(requested: nil)
402
+ @requested = requested
403
+ end
404
+ end
405
+
406
+ class KonbiniPayments < Stripe::RequestParams
407
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
408
+ attr_accessor :requested
409
+
410
+ def initialize(requested: nil)
411
+ @requested = requested
412
+ end
413
+ end
414
+
415
+ class KrCardPayments < Stripe::RequestParams
416
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
417
+ attr_accessor :requested
418
+
419
+ def initialize(requested: nil)
420
+ @requested = requested
421
+ end
422
+ end
423
+
424
+ class LinkPayments < Stripe::RequestParams
425
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
426
+ attr_accessor :requested
427
+
428
+ def initialize(requested: nil)
429
+ @requested = requested
430
+ end
431
+ end
432
+
433
+ class MobilepayPayments < Stripe::RequestParams
434
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
435
+ attr_accessor :requested
436
+
437
+ def initialize(requested: nil)
438
+ @requested = requested
439
+ end
440
+ end
441
+
442
+ class MultibancoPayments < Stripe::RequestParams
443
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
444
+ attr_accessor :requested
445
+
446
+ def initialize(requested: nil)
447
+ @requested = requested
448
+ end
449
+ end
450
+
451
+ class MxBankTransferPayments < Stripe::RequestParams
452
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
453
+ attr_accessor :requested
454
+
455
+ def initialize(requested: nil)
456
+ @requested = requested
457
+ end
458
+ end
459
+
460
+ class NaverPayPayments < Stripe::RequestParams
461
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
462
+ attr_accessor :requested
463
+
464
+ def initialize(requested: nil)
465
+ @requested = requested
466
+ end
467
+ end
468
+
469
+ class OxxoPayments < Stripe::RequestParams
470
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
471
+ attr_accessor :requested
472
+
473
+ def initialize(requested: nil)
474
+ @requested = requested
475
+ end
476
+ end
477
+
478
+ class P24Payments < Stripe::RequestParams
479
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
480
+ attr_accessor :requested
481
+
482
+ def initialize(requested: nil)
483
+ @requested = requested
484
+ end
485
+ end
486
+
487
+ class PayByBankPayments < Stripe::RequestParams
488
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
489
+ attr_accessor :requested
490
+
491
+ def initialize(requested: nil)
492
+ @requested = requested
493
+ end
494
+ end
495
+
496
+ class PaycoPayments < Stripe::RequestParams
497
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
498
+ attr_accessor :requested
499
+
500
+ def initialize(requested: nil)
501
+ @requested = requested
502
+ end
503
+ end
504
+
505
+ class PaynowPayments < Stripe::RequestParams
506
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
507
+ attr_accessor :requested
508
+
509
+ def initialize(requested: nil)
510
+ @requested = requested
511
+ end
512
+ end
513
+
514
+ class PromptpayPayments < Stripe::RequestParams
515
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
516
+ attr_accessor :requested
517
+
518
+ def initialize(requested: nil)
519
+ @requested = requested
520
+ end
521
+ end
522
+
523
+ class RevolutPayPayments < Stripe::RequestParams
524
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
525
+ attr_accessor :requested
526
+
527
+ def initialize(requested: nil)
528
+ @requested = requested
529
+ end
530
+ end
531
+
532
+ class SamsungPayPayments < Stripe::RequestParams
533
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
534
+ attr_accessor :requested
535
+
536
+ def initialize(requested: nil)
537
+ @requested = requested
538
+ end
539
+ end
540
+
541
+ class SepaBankTransferPayments < Stripe::RequestParams
542
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
543
+ attr_accessor :requested
544
+
545
+ def initialize(requested: nil)
546
+ @requested = requested
547
+ end
548
+ end
549
+
550
+ class SepaDebitPayments < Stripe::RequestParams
551
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
552
+ attr_accessor :requested
553
+
554
+ def initialize(requested: nil)
555
+ @requested = requested
556
+ end
557
+ end
558
+
559
+ class SwishPayments < Stripe::RequestParams
560
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
561
+ attr_accessor :requested
562
+
563
+ def initialize(requested: nil)
564
+ @requested = requested
565
+ end
566
+ end
567
+
568
+ class TwintPayments < Stripe::RequestParams
569
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
570
+ attr_accessor :requested
571
+
572
+ def initialize(requested: nil)
573
+ @requested = requested
574
+ end
575
+ end
576
+
577
+ class UsBankTransferPayments < Stripe::RequestParams
578
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
579
+ attr_accessor :requested
580
+
581
+ def initialize(requested: nil)
582
+ @requested = requested
583
+ end
584
+ end
585
+
586
+ class ZipPayments < Stripe::RequestParams
587
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
588
+ attr_accessor :requested
589
+
590
+ def initialize(requested: nil)
591
+ @requested = requested
592
+ end
593
+ end
594
+ # Allow the merchant to process ACH debit payments.
595
+ attr_accessor :ach_debit_payments
596
+ # Allow the merchant to process ACSS debit payments.
597
+ attr_accessor :acss_debit_payments
598
+ # Allow the merchant to process Affirm payments.
599
+ attr_accessor :affirm_payments
600
+ # Allow the merchant to process Afterpay/Clearpay payments.
601
+ attr_accessor :afterpay_clearpay_payments
602
+ # Allow the merchant to process Alma payments.
603
+ attr_accessor :alma_payments
604
+ # Allow the merchant to process Amazon Pay payments.
605
+ attr_accessor :amazon_pay_payments
606
+ # Allow the merchant to process Australian BECS Direct Debit payments.
607
+ attr_accessor :au_becs_debit_payments
608
+ # Allow the merchant to process BACS Direct Debit payments.
609
+ attr_accessor :bacs_debit_payments
610
+ # Allow the merchant to process Bancontact payments.
611
+ attr_accessor :bancontact_payments
612
+ # Allow the merchant to process BLIK payments.
613
+ attr_accessor :blik_payments
614
+ # Allow the merchant to process Boleto payments.
615
+ attr_accessor :boleto_payments
616
+ # Allow the merchant to collect card payments.
617
+ attr_accessor :card_payments
618
+ # Allow the merchant to process Cartes Bancaires payments.
619
+ attr_accessor :cartes_bancaires_payments
620
+ # Allow the merchant to process Cash App payments.
621
+ attr_accessor :cashapp_payments
622
+ # Allow the merchant to process EPS payments.
623
+ attr_accessor :eps_payments
624
+ # Allow the merchant to process FPX payments.
625
+ attr_accessor :fpx_payments
626
+ # Allow the merchant to process UK bank transfer payments.
627
+ attr_accessor :gb_bank_transfer_payments
628
+ # Allow the merchant to process GrabPay payments.
629
+ attr_accessor :grabpay_payments
630
+ # Allow the merchant to process iDEAL payments.
631
+ attr_accessor :ideal_payments
632
+ # Allow the merchant to process JCB card payments.
633
+ attr_accessor :jcb_payments
634
+ # Allow the merchant to process Japanese bank transfer payments.
635
+ attr_accessor :jp_bank_transfer_payments
636
+ # Allow the merchant to process Kakao Pay payments.
637
+ attr_accessor :kakao_pay_payments
638
+ # Allow the merchant to process Klarna payments.
639
+ attr_accessor :klarna_payments
640
+ # Allow the merchant to process Konbini convenience store payments.
641
+ attr_accessor :konbini_payments
642
+ # Allow the merchant to process Korean card payments.
643
+ attr_accessor :kr_card_payments
644
+ # Allow the merchant to process Link payments.
645
+ attr_accessor :link_payments
646
+ # Allow the merchant to process MobilePay payments.
647
+ attr_accessor :mobilepay_payments
648
+ # Allow the merchant to process Multibanco payments.
649
+ attr_accessor :multibanco_payments
650
+ # Allow the merchant to process Mexican bank transfer payments.
651
+ attr_accessor :mx_bank_transfer_payments
652
+ # Allow the merchant to process Naver Pay payments.
653
+ attr_accessor :naver_pay_payments
654
+ # Allow the merchant to process OXXO payments.
655
+ attr_accessor :oxxo_payments
656
+ # Allow the merchant to process Przelewy24 (P24) payments.
657
+ attr_accessor :p24_payments
658
+ # Allow the merchant to process Pay by Bank payments.
659
+ attr_accessor :pay_by_bank_payments
660
+ # Allow the merchant to process PAYCO payments.
661
+ attr_accessor :payco_payments
662
+ # Allow the merchant to process PayNow payments.
663
+ attr_accessor :paynow_payments
664
+ # Allow the merchant to process PromptPay payments.
665
+ attr_accessor :promptpay_payments
666
+ # Allow the merchant to process Revolut Pay payments.
667
+ attr_accessor :revolut_pay_payments
668
+ # Allow the merchant to process Samsung Pay payments.
669
+ attr_accessor :samsung_pay_payments
670
+ # Allow the merchant to process SEPA bank transfer payments.
671
+ attr_accessor :sepa_bank_transfer_payments
672
+ # Allow the merchant to process SEPA Direct Debit payments.
673
+ attr_accessor :sepa_debit_payments
674
+ # Allow the merchant to process Swish payments.
675
+ attr_accessor :swish_payments
676
+ # Allow the merchant to process TWINT payments.
677
+ attr_accessor :twint_payments
678
+ # Allow the merchant to process US bank transfer payments.
679
+ attr_accessor :us_bank_transfer_payments
680
+ # Allow the merchant to process Zip payments.
681
+ attr_accessor :zip_payments
682
+
683
+ def initialize(
684
+ ach_debit_payments: nil,
685
+ acss_debit_payments: nil,
686
+ affirm_payments: nil,
687
+ afterpay_clearpay_payments: nil,
688
+ alma_payments: nil,
689
+ amazon_pay_payments: nil,
690
+ au_becs_debit_payments: nil,
691
+ bacs_debit_payments: nil,
692
+ bancontact_payments: nil,
693
+ blik_payments: nil,
694
+ boleto_payments: nil,
695
+ card_payments: nil,
696
+ cartes_bancaires_payments: nil,
697
+ cashapp_payments: nil,
698
+ eps_payments: nil,
699
+ fpx_payments: nil,
700
+ gb_bank_transfer_payments: nil,
701
+ grabpay_payments: nil,
702
+ ideal_payments: nil,
703
+ jcb_payments: nil,
704
+ jp_bank_transfer_payments: nil,
705
+ kakao_pay_payments: nil,
706
+ klarna_payments: nil,
707
+ konbini_payments: nil,
708
+ kr_card_payments: nil,
709
+ link_payments: nil,
710
+ mobilepay_payments: nil,
711
+ multibanco_payments: nil,
712
+ mx_bank_transfer_payments: nil,
713
+ naver_pay_payments: nil,
714
+ oxxo_payments: nil,
715
+ p24_payments: nil,
716
+ pay_by_bank_payments: nil,
717
+ payco_payments: nil,
718
+ paynow_payments: nil,
719
+ promptpay_payments: nil,
720
+ revolut_pay_payments: nil,
721
+ samsung_pay_payments: nil,
722
+ sepa_bank_transfer_payments: nil,
723
+ sepa_debit_payments: nil,
724
+ swish_payments: nil,
725
+ twint_payments: nil,
726
+ us_bank_transfer_payments: nil,
727
+ zip_payments: nil
728
+ )
729
+ @ach_debit_payments = ach_debit_payments
730
+ @acss_debit_payments = acss_debit_payments
731
+ @affirm_payments = affirm_payments
732
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
733
+ @alma_payments = alma_payments
734
+ @amazon_pay_payments = amazon_pay_payments
735
+ @au_becs_debit_payments = au_becs_debit_payments
736
+ @bacs_debit_payments = bacs_debit_payments
737
+ @bancontact_payments = bancontact_payments
738
+ @blik_payments = blik_payments
739
+ @boleto_payments = boleto_payments
740
+ @card_payments = card_payments
741
+ @cartes_bancaires_payments = cartes_bancaires_payments
742
+ @cashapp_payments = cashapp_payments
743
+ @eps_payments = eps_payments
744
+ @fpx_payments = fpx_payments
745
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
746
+ @grabpay_payments = grabpay_payments
747
+ @ideal_payments = ideal_payments
748
+ @jcb_payments = jcb_payments
749
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
750
+ @kakao_pay_payments = kakao_pay_payments
751
+ @klarna_payments = klarna_payments
752
+ @konbini_payments = konbini_payments
753
+ @kr_card_payments = kr_card_payments
754
+ @link_payments = link_payments
755
+ @mobilepay_payments = mobilepay_payments
756
+ @multibanco_payments = multibanco_payments
757
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
758
+ @naver_pay_payments = naver_pay_payments
759
+ @oxxo_payments = oxxo_payments
760
+ @p24_payments = p24_payments
761
+ @pay_by_bank_payments = pay_by_bank_payments
762
+ @payco_payments = payco_payments
763
+ @paynow_payments = paynow_payments
764
+ @promptpay_payments = promptpay_payments
765
+ @revolut_pay_payments = revolut_pay_payments
766
+ @samsung_pay_payments = samsung_pay_payments
767
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
768
+ @sepa_debit_payments = sepa_debit_payments
769
+ @swish_payments = swish_payments
770
+ @twint_payments = twint_payments
771
+ @us_bank_transfer_payments = us_bank_transfer_payments
772
+ @zip_payments = zip_payments
773
+ end
774
+ end
775
+
776
+ class CardPayments < Stripe::RequestParams
777
+ class DeclineOn < Stripe::RequestParams
778
+ # 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.
779
+ attr_accessor :avs_failure
780
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
781
+ attr_accessor :cvc_failure
782
+
783
+ def initialize(avs_failure: nil, cvc_failure: nil)
784
+ @avs_failure = avs_failure
785
+ @cvc_failure = cvc_failure
786
+ end
787
+ end
788
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
789
+ attr_accessor :decline_on
790
+
791
+ def initialize(decline_on: nil)
792
+ @decline_on = decline_on
793
+ end
794
+ end
795
+
796
+ class StatementDescriptor < Stripe::RequestParams
797
+ # 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.
798
+ attr_accessor :descriptor
799
+ # 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.
800
+ attr_accessor :prefix
801
+
802
+ def initialize(descriptor: nil, prefix: nil)
803
+ @descriptor = descriptor
804
+ @prefix = prefix
805
+ end
806
+ end
807
+
808
+ class Support < Stripe::RequestParams
809
+ class Address < Stripe::RequestParams
810
+ # City, district, suburb, town, or village.
811
+ attr_accessor :city
812
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
813
+ attr_accessor :country
814
+ # Address line 1 (e.g., street, PO Box, or company name).
815
+ attr_accessor :line1
816
+ # Address line 2 (e.g., apartment, suite, unit, or building).
817
+ attr_accessor :line2
818
+ # ZIP or postal code.
819
+ attr_accessor :postal_code
820
+ # State, county, province, or region.
821
+ attr_accessor :state
822
+ # Town or cho-me.
823
+ attr_accessor :town
824
+
825
+ def initialize(
826
+ city: nil,
827
+ country: nil,
828
+ line1: nil,
829
+ line2: nil,
830
+ postal_code: nil,
831
+ state: nil,
832
+ town: nil
833
+ )
834
+ @city = city
835
+ @country = country
836
+ @line1 = line1
837
+ @line2 = line2
838
+ @postal_code = postal_code
839
+ @state = state
840
+ @town = town
841
+ end
842
+ end
843
+ # A publicly available mailing address for sending support issues to.
844
+ attr_accessor :address
845
+ # A publicly available email address for sending support issues to.
846
+ attr_accessor :email
847
+ # A publicly available phone number to call with support issues.
848
+ attr_accessor :phone
849
+ # A publicly available website for handling support issues.
850
+ attr_accessor :url
851
+
852
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
853
+ @address = address
854
+ @email = email
855
+ @phone = phone
856
+ @url = url
857
+ end
858
+ end
859
+ # Settings used for Bacs debit payments.
860
+ attr_accessor :bacs_debit_payments
861
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
862
+ attr_accessor :branding
863
+ # Capabilities to request on the Merchant Configuration.
864
+ attr_accessor :capabilities
865
+ # Card payments settings.
866
+ attr_accessor :card_payments
867
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
868
+ attr_accessor :mcc
869
+ # Statement descriptor.
870
+ attr_accessor :statement_descriptor
871
+ # Publicly available contact information for sending support issues to.
872
+ attr_accessor :support
873
+
874
+ def initialize(
875
+ bacs_debit_payments: nil,
876
+ branding: nil,
877
+ capabilities: nil,
878
+ card_payments: nil,
879
+ mcc: nil,
880
+ statement_descriptor: nil,
881
+ support: nil
882
+ )
883
+ @bacs_debit_payments = bacs_debit_payments
884
+ @branding = branding
885
+ @capabilities = capabilities
886
+ @card_payments = card_payments
887
+ @mcc = mcc
888
+ @statement_descriptor = statement_descriptor
889
+ @support = support
890
+ end
891
+ end
892
+
893
+ class Recipient < Stripe::RequestParams
894
+ class Capabilities < Stripe::RequestParams
895
+ class BankAccounts < Stripe::RequestParams
896
+ class Local < Stripe::RequestParams
897
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
898
+ attr_accessor :requested
899
+
900
+ def initialize(requested: nil)
901
+ @requested = requested
902
+ end
903
+ end
904
+
905
+ class Wire < Stripe::RequestParams
906
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
907
+ attr_accessor :requested
908
+
909
+ def initialize(requested: nil)
910
+ @requested = requested
911
+ end
912
+ end
913
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
914
+ attr_accessor :local
915
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
916
+ attr_accessor :wire
917
+
918
+ def initialize(local: nil, wire: nil)
919
+ @local = local
920
+ @wire = wire
921
+ end
922
+ end
923
+
924
+ class Cards < Stripe::RequestParams
925
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
926
+ attr_accessor :requested
927
+
928
+ def initialize(requested: nil)
929
+ @requested = requested
930
+ end
931
+ end
932
+
933
+ class CryptoWallets < Stripe::RequestParams
934
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
935
+ attr_accessor :requested
936
+
937
+ def initialize(requested: nil)
938
+ @requested = requested
939
+ end
940
+ end
941
+
942
+ class StripeBalance < Stripe::RequestParams
943
+ class StripeTransfers < Stripe::RequestParams
944
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
945
+ attr_accessor :requested
946
+
947
+ def initialize(requested: nil)
948
+ @requested = requested
949
+ end
950
+ end
951
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
952
+ attr_accessor :stripe_transfers
953
+
954
+ def initialize(stripe_transfers: nil)
955
+ @stripe_transfers = stripe_transfers
956
+ end
957
+ end
958
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
959
+ attr_accessor :bank_accounts
960
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
961
+ attr_accessor :cards
962
+ # Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
963
+ attr_accessor :crypto_wallets
964
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
965
+ attr_accessor :stripe_balance
966
+
967
+ def initialize(
968
+ bank_accounts: nil,
969
+ cards: nil,
970
+ crypto_wallets: nil,
971
+ stripe_balance: nil
972
+ )
973
+ @bank_accounts = bank_accounts
974
+ @cards = cards
975
+ @crypto_wallets = crypto_wallets
976
+ @stripe_balance = stripe_balance
977
+ end
978
+ end
979
+ # Capabilities to be requested on the Recipient Configuration.
980
+ attr_accessor :capabilities
981
+
982
+ def initialize(capabilities: nil)
983
+ @capabilities = capabilities
984
+ end
985
+ end
986
+
987
+ class Storer < Stripe::RequestParams
988
+ class Capabilities < Stripe::RequestParams
989
+ class FinancialAddresses < Stripe::RequestParams
990
+ class BankAccounts < Stripe::RequestParams
991
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
992
+ attr_accessor :requested
993
+
994
+ def initialize(requested: nil)
995
+ @requested = requested
996
+ end
997
+ end
998
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
999
+ attr_accessor :bank_accounts
1000
+
1001
+ def initialize(bank_accounts: nil)
1002
+ @bank_accounts = bank_accounts
1003
+ end
1004
+ end
1005
+
1006
+ class HoldsCurrencies < Stripe::RequestParams
1007
+ class Gbp < Stripe::RequestParams
1008
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1009
+ attr_accessor :requested
1010
+
1011
+ def initialize(requested: nil)
1012
+ @requested = requested
1013
+ end
1014
+ end
1015
+ # Can hold storage-type funds on Stripe in GBP.
1016
+ attr_accessor :gbp
1017
+
1018
+ def initialize(gbp: nil)
1019
+ @gbp = gbp
1020
+ end
1021
+ end
1022
+
1023
+ class InboundTransfers < Stripe::RequestParams
1024
+ class BankAccounts < Stripe::RequestParams
1025
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1026
+ attr_accessor :requested
1027
+
1028
+ def initialize(requested: nil)
1029
+ @requested = requested
1030
+ end
1031
+ end
1032
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1033
+ attr_accessor :bank_accounts
1034
+
1035
+ def initialize(bank_accounts: nil)
1036
+ @bank_accounts = bank_accounts
1037
+ end
1038
+ end
1039
+
1040
+ class OutboundPayments < Stripe::RequestParams
1041
+ class BankAccounts < Stripe::RequestParams
1042
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1043
+ attr_accessor :requested
1044
+
1045
+ def initialize(requested: nil)
1046
+ @requested = requested
1047
+ end
1048
+ end
1049
+
1050
+ class Cards < Stripe::RequestParams
1051
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1052
+ attr_accessor :requested
1053
+
1054
+ def initialize(requested: nil)
1055
+ @requested = requested
1056
+ end
1057
+ end
1058
+
1059
+ class FinancialAccounts < Stripe::RequestParams
1060
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1061
+ attr_accessor :requested
1062
+
1063
+ def initialize(requested: nil)
1064
+ @requested = requested
1065
+ end
1066
+ end
1067
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1068
+ attr_accessor :bank_accounts
1069
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1070
+ attr_accessor :cards
1071
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1072
+ attr_accessor :financial_accounts
1073
+
1074
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1075
+ @bank_accounts = bank_accounts
1076
+ @cards = cards
1077
+ @financial_accounts = financial_accounts
1078
+ end
1079
+ end
1080
+
1081
+ class OutboundTransfers < Stripe::RequestParams
1082
+ class BankAccounts < Stripe::RequestParams
1083
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1084
+ attr_accessor :requested
1085
+
1086
+ def initialize(requested: nil)
1087
+ @requested = requested
1088
+ end
1089
+ end
1090
+
1091
+ class FinancialAccounts < Stripe::RequestParams
1092
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1093
+ attr_accessor :requested
1094
+
1095
+ def initialize(requested: nil)
1096
+ @requested = requested
1097
+ end
1098
+ end
1099
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1100
+ attr_accessor :bank_accounts
1101
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1102
+ attr_accessor :financial_accounts
1103
+
1104
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1105
+ @bank_accounts = bank_accounts
1106
+ @financial_accounts = financial_accounts
1107
+ end
1108
+ end
1109
+ # Can provision a financial address to credit/debit a FinancialAccount.
1110
+ attr_accessor :financial_addresses
1111
+ # Can hold storage-type funds on Stripe.
1112
+ attr_accessor :holds_currencies
1113
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1114
+ attr_accessor :inbound_transfers
1115
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1116
+ attr_accessor :outbound_payments
1117
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1118
+ attr_accessor :outbound_transfers
1119
+
1120
+ def initialize(
1121
+ financial_addresses: nil,
1122
+ holds_currencies: nil,
1123
+ inbound_transfers: nil,
1124
+ outbound_payments: nil,
1125
+ outbound_transfers: nil
1126
+ )
1127
+ @financial_addresses = financial_addresses
1128
+ @holds_currencies = holds_currencies
1129
+ @inbound_transfers = inbound_transfers
1130
+ @outbound_payments = outbound_payments
1131
+ @outbound_transfers = outbound_transfers
1132
+ end
1133
+ end
1134
+ # Capabilities to request on the Storer Configuration.
1135
+ attr_accessor :capabilities
1136
+
1137
+ def initialize(capabilities: nil)
1138
+ @capabilities = capabilities
1139
+ end
1140
+ end
1141
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
1142
+ attr_accessor :customer
1143
+ # 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.
1144
+ attr_accessor :merchant
1145
+ # The Recipient Configuration allows the Account to receive funds.
1146
+ attr_accessor :recipient
1147
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1148
+ attr_accessor :storer
1149
+
1150
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1151
+ @customer = customer
1152
+ @merchant = merchant
1153
+ @recipient = recipient
1154
+ @storer = storer
1155
+ end
1156
+ end
1157
+
1158
+ class Defaults < Stripe::RequestParams
1159
+ class Profile < Stripe::RequestParams
1160
+ # The business's publicly-available website.
1161
+ attr_accessor :business_url
1162
+ # The name which is used by the business.
1163
+ attr_accessor :doing_business_as
1164
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1165
+ attr_accessor :product_description
1166
+
1167
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1168
+ @business_url = business_url
1169
+ @doing_business_as = doing_business_as
1170
+ @product_description = product_description
1171
+ end
1172
+ end
1173
+
1174
+ class Responsibilities < Stripe::RequestParams
1175
+ # A value indicating the party responsible for collecting fees from this account.
1176
+ attr_accessor :fees_collector
1177
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1178
+ attr_accessor :losses_collector
1179
+
1180
+ def initialize(fees_collector: nil, losses_collector: nil)
1181
+ @fees_collector = fees_collector
1182
+ @losses_collector = losses_collector
1183
+ end
1184
+ end
1185
+ # 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).
1186
+ attr_accessor :currency
1187
+ # The Account's preferred locales (languages), ordered by preference.
1188
+ attr_accessor :locales
1189
+ # Account profile information.
1190
+ attr_accessor :profile
1191
+ # Default responsibilities held by either Stripe or the platform.
1192
+ attr_accessor :responsibilities
1193
+
1194
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1195
+ @currency = currency
1196
+ @locales = locales
1197
+ @profile = profile
1198
+ @responsibilities = responsibilities
1199
+ end
1200
+ end
1201
+
1202
+ class Identity < Stripe::RequestParams
1203
+ class Attestations < Stripe::RequestParams
1204
+ class DirectorshipDeclaration < Stripe::RequestParams
1205
+ # 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.
1206
+ attr_accessor :date
1207
+ # The IP address from which the director attestation was made.
1208
+ attr_accessor :ip
1209
+ # The user agent of the browser from which the director attestation was made.
1210
+ attr_accessor :user_agent
1211
+
1212
+ def initialize(date: nil, ip: nil, user_agent: nil)
1213
+ @date = date
1214
+ @ip = ip
1215
+ @user_agent = user_agent
1216
+ end
1217
+ end
1218
+
1219
+ class OwnershipDeclaration < Stripe::RequestParams
1220
+ # 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.
1221
+ attr_accessor :date
1222
+ # The IP address from which the beneficial owner attestation was made.
1223
+ attr_accessor :ip
1224
+ # The user agent of the browser from which the beneficial owner attestation was made.
1225
+ attr_accessor :user_agent
1226
+
1227
+ def initialize(date: nil, ip: nil, user_agent: nil)
1228
+ @date = date
1229
+ @ip = ip
1230
+ @user_agent = user_agent
1231
+ end
1232
+ end
1233
+
1234
+ class PersonsProvided < Stripe::RequestParams
1235
+ # 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).
1236
+ attr_accessor :directors
1237
+ # 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).
1238
+ attr_accessor :executives
1239
+ # 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).
1240
+ attr_accessor :owners
1241
+ # Reason for why the company is exempt from providing ownership information.
1242
+ attr_accessor :ownership_exemption_reason
1243
+
1244
+ def initialize(
1245
+ directors: nil,
1246
+ executives: nil,
1247
+ owners: nil,
1248
+ ownership_exemption_reason: nil
1249
+ )
1250
+ @directors = directors
1251
+ @executives = executives
1252
+ @owners = owners
1253
+ @ownership_exemption_reason = ownership_exemption_reason
1254
+ end
1255
+ end
1256
+
1257
+ class TermsOfService < Stripe::RequestParams
1258
+ class Account < Stripe::RequestParams
1259
+ # 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.
1260
+ attr_accessor :date
1261
+ # The IP address from which the Account's representative accepted the terms of service.
1262
+ attr_accessor :ip
1263
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1264
+ attr_accessor :user_agent
1265
+
1266
+ def initialize(date: nil, ip: nil, user_agent: nil)
1267
+ @date = date
1268
+ @ip = ip
1269
+ @user_agent = user_agent
1270
+ end
1271
+ end
1272
+
1273
+ class Storer < Stripe::RequestParams
1274
+ # 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.
1275
+ attr_accessor :date
1276
+ # The IP address from which the Account's representative accepted the terms of service.
1277
+ attr_accessor :ip
1278
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1279
+ attr_accessor :user_agent
1280
+
1281
+ def initialize(date: nil, ip: nil, user_agent: nil)
1282
+ @date = date
1283
+ @ip = ip
1284
+ @user_agent = user_agent
1285
+ end
1286
+ end
1287
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1288
+ attr_accessor :account
1289
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1290
+ attr_accessor :storer
1291
+
1292
+ def initialize(account: nil, storer: nil)
1293
+ @account = account
1294
+ @storer = storer
1295
+ end
1296
+ end
1297
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1298
+ attr_accessor :directorship_declaration
1299
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1300
+ attr_accessor :ownership_declaration
1301
+ # Attestation that all Persons with a specific Relationship value have been provided.
1302
+ attr_accessor :persons_provided
1303
+ # Attestations of accepted terms of service agreements.
1304
+ attr_accessor :terms_of_service
1305
+
1306
+ def initialize(
1307
+ directorship_declaration: nil,
1308
+ ownership_declaration: nil,
1309
+ persons_provided: nil,
1310
+ terms_of_service: nil
1311
+ )
1312
+ @directorship_declaration = directorship_declaration
1313
+ @ownership_declaration = ownership_declaration
1314
+ @persons_provided = persons_provided
1315
+ @terms_of_service = terms_of_service
1316
+ end
1317
+ end
1318
+
1319
+ class BusinessDetails < Stripe::RequestParams
1320
+ class Address < Stripe::RequestParams
1321
+ # City, district, suburb, town, or village.
1322
+ attr_accessor :city
1323
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1324
+ attr_accessor :country
1325
+ # Address line 1 (e.g., street, PO Box, or company name).
1326
+ attr_accessor :line1
1327
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1328
+ attr_accessor :line2
1329
+ # ZIP or postal code.
1330
+ attr_accessor :postal_code
1331
+ # State, county, province, or region.
1332
+ attr_accessor :state
1333
+ # Town or cho-me.
1334
+ attr_accessor :town
1335
+
1336
+ def initialize(
1337
+ city: nil,
1338
+ country: nil,
1339
+ line1: nil,
1340
+ line2: nil,
1341
+ postal_code: nil,
1342
+ state: nil,
1343
+ town: nil
1344
+ )
1345
+ @city = city
1346
+ @country = country
1347
+ @line1 = line1
1348
+ @line2 = line2
1349
+ @postal_code = postal_code
1350
+ @state = state
1351
+ @town = town
1352
+ end
1353
+ end
1354
+
1355
+ class AnnualRevenue < Stripe::RequestParams
1356
+ # A non-negative integer representing the amount in the smallest currency unit.
1357
+ attr_accessor :amount
1358
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1359
+ attr_accessor :fiscal_year_end
1360
+
1361
+ def initialize(amount: nil, fiscal_year_end: nil)
1362
+ @amount = amount
1363
+ @fiscal_year_end = fiscal_year_end
1364
+ end
1365
+ end
1366
+
1367
+ class Documents < Stripe::RequestParams
1368
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1369
+ # 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`.
1370
+ attr_accessor :files
1371
+ # The format of the document. Currently supports `files` only.
1372
+ attr_accessor :type
1373
+
1374
+ def initialize(files: nil, type: nil)
1375
+ @files = files
1376
+ @type = type
1377
+ end
1378
+ end
1379
+
1380
+ class CompanyLicense < Stripe::RequestParams
1381
+ # 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`.
1382
+ attr_accessor :files
1383
+ # The format of the document. Currently supports `files` only.
1384
+ attr_accessor :type
1385
+
1386
+ def initialize(files: nil, type: nil)
1387
+ @files = files
1388
+ @type = type
1389
+ end
1390
+ end
1391
+
1392
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1393
+ # 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`.
1394
+ attr_accessor :files
1395
+ # The format of the document. Currently supports `files` only.
1396
+ attr_accessor :type
1397
+
1398
+ def initialize(files: nil, type: nil)
1399
+ @files = files
1400
+ @type = type
1401
+ end
1402
+ end
1403
+
1404
+ class CompanyMinisterialDecree < Stripe::RequestParams
1405
+ # 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`.
1406
+ attr_accessor :files
1407
+ # The format of the document. Currently supports `files` only.
1408
+ attr_accessor :type
1409
+
1410
+ def initialize(files: nil, type: nil)
1411
+ @files = files
1412
+ @type = type
1413
+ end
1414
+ end
1415
+
1416
+ class CompanyRegistrationVerification < Stripe::RequestParams
1417
+ # 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`.
1418
+ attr_accessor :files
1419
+ # The format of the document. Currently supports `files` only.
1420
+ attr_accessor :type
1421
+
1422
+ def initialize(files: nil, type: nil)
1423
+ @files = files
1424
+ @type = type
1425
+ end
1426
+ end
1427
+
1428
+ class CompanyTaxIdVerification < Stripe::RequestParams
1429
+ # 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`.
1430
+ attr_accessor :files
1431
+ # The format of the document. Currently supports `files` only.
1432
+ attr_accessor :type
1433
+
1434
+ def initialize(files: nil, type: nil)
1435
+ @files = files
1436
+ @type = type
1437
+ end
1438
+ end
1439
+
1440
+ class PrimaryVerification < Stripe::RequestParams
1441
+ class FrontBack < Stripe::RequestParams
1442
+ # 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.
1443
+ attr_accessor :back
1444
+ # 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.
1445
+ attr_accessor :front
1446
+
1447
+ def initialize(back: nil, front: nil)
1448
+ @back = back
1449
+ @front = front
1450
+ end
1451
+ end
1452
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1453
+ attr_accessor :front_back
1454
+ # The format of the verification document. Currently supports `front_back` only.
1455
+ attr_accessor :type
1456
+
1457
+ def initialize(front_back: nil, type: nil)
1458
+ @front_back = front_back
1459
+ @type = type
1460
+ end
1461
+ end
1462
+
1463
+ class ProofOfAddress < Stripe::RequestParams
1464
+ # 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`.
1465
+ attr_accessor :files
1466
+ # The format of the document. Currently supports `files` only.
1467
+ attr_accessor :type
1468
+
1469
+ def initialize(files: nil, type: nil)
1470
+ @files = files
1471
+ @type = type
1472
+ end
1473
+ end
1474
+
1475
+ class ProofOfRegistration < Stripe::RequestParams
1476
+ # 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`.
1477
+ attr_accessor :files
1478
+ # The format of the document. Currently supports `files` only.
1479
+ attr_accessor :type
1480
+
1481
+ def initialize(files: nil, type: nil)
1482
+ @files = files
1483
+ @type = type
1484
+ end
1485
+ end
1486
+
1487
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1488
+ # 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`.
1489
+ attr_accessor :files
1490
+ # The format of the document. Currently supports `files` only.
1491
+ attr_accessor :type
1492
+
1493
+ def initialize(files: nil, type: nil)
1494
+ @files = files
1495
+ @type = type
1496
+ end
1497
+ end
1498
+ # 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.
1499
+ attr_accessor :bank_account_ownership_verification
1500
+ # One or more documents that demonstrate proof of a company’s license to operate.
1501
+ attr_accessor :company_license
1502
+ # One or more documents showing the company’s Memorandum of Association.
1503
+ attr_accessor :company_memorandum_of_association
1504
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1505
+ attr_accessor :company_ministerial_decree
1506
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1507
+ attr_accessor :company_registration_verification
1508
+ # One or more documents that demonstrate proof of a company’s tax ID.
1509
+ attr_accessor :company_tax_id_verification
1510
+ # A document verifying the business.
1511
+ attr_accessor :primary_verification
1512
+ # One or more documents that demonstrate proof of address.
1513
+ attr_accessor :proof_of_address
1514
+ # One or more documents showing the company’s proof of registration with the national business registry.
1515
+ attr_accessor :proof_of_registration
1516
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1517
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1518
+
1519
+ def initialize(
1520
+ bank_account_ownership_verification: nil,
1521
+ company_license: nil,
1522
+ company_memorandum_of_association: nil,
1523
+ company_ministerial_decree: nil,
1524
+ company_registration_verification: nil,
1525
+ company_tax_id_verification: nil,
1526
+ primary_verification: nil,
1527
+ proof_of_address: nil,
1528
+ proof_of_registration: nil,
1529
+ proof_of_ultimate_beneficial_ownership: nil
1530
+ )
1531
+ @bank_account_ownership_verification = bank_account_ownership_verification
1532
+ @company_license = company_license
1533
+ @company_memorandum_of_association = company_memorandum_of_association
1534
+ @company_ministerial_decree = company_ministerial_decree
1535
+ @company_registration_verification = company_registration_verification
1536
+ @company_tax_id_verification = company_tax_id_verification
1537
+ @primary_verification = primary_verification
1538
+ @proof_of_address = proof_of_address
1539
+ @proof_of_registration = proof_of_registration
1540
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1541
+ end
1542
+ end
1543
+
1544
+ class IdNumber < Stripe::RequestParams
1545
+ # The registrar of the ID number (Only valid for DE ID number types).
1546
+ attr_accessor :registrar
1547
+ # Open Enum. The ID number type of a business entity.
1548
+ attr_accessor :type
1549
+ # The value of the ID number.
1550
+ attr_accessor :value
1551
+
1552
+ def initialize(registrar: nil, type: nil, value: nil)
1553
+ @registrar = registrar
1554
+ @type = type
1555
+ @value = value
1556
+ end
1557
+ end
1558
+
1559
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
1560
+ # A non-negative integer representing the amount in the smallest currency unit.
1561
+ attr_accessor :amount
1562
+
1563
+ def initialize(amount: nil)
1564
+ @amount = amount
1565
+ end
1566
+ end
1567
+
1568
+ class ScriptAddresses < Stripe::RequestParams
1569
+ class Kana < Stripe::RequestParams
1570
+ # City, district, suburb, town, or village.
1571
+ attr_accessor :city
1572
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1573
+ attr_accessor :country
1574
+ # Address line 1 (e.g., street, PO Box, or company name).
1575
+ attr_accessor :line1
1576
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1577
+ attr_accessor :line2
1578
+ # ZIP or postal code.
1579
+ attr_accessor :postal_code
1580
+ # State, county, province, or region.
1581
+ attr_accessor :state
1582
+ # Town or cho-me.
1583
+ attr_accessor :town
1584
+
1585
+ def initialize(
1586
+ city: nil,
1587
+ country: nil,
1588
+ line1: nil,
1589
+ line2: nil,
1590
+ postal_code: nil,
1591
+ state: nil,
1592
+ town: nil
1593
+ )
1594
+ @city = city
1595
+ @country = country
1596
+ @line1 = line1
1597
+ @line2 = line2
1598
+ @postal_code = postal_code
1599
+ @state = state
1600
+ @town = town
1601
+ end
1602
+ end
1603
+
1604
+ class Kanji < Stripe::RequestParams
1605
+ # City, district, suburb, town, or village.
1606
+ attr_accessor :city
1607
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1608
+ attr_accessor :country
1609
+ # Address line 1 (e.g., street, PO Box, or company name).
1610
+ attr_accessor :line1
1611
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1612
+ attr_accessor :line2
1613
+ # ZIP or postal code.
1614
+ attr_accessor :postal_code
1615
+ # State, county, province, or region.
1616
+ attr_accessor :state
1617
+ # Town or cho-me.
1618
+ attr_accessor :town
1619
+
1620
+ def initialize(
1621
+ city: nil,
1622
+ country: nil,
1623
+ line1: nil,
1624
+ line2: nil,
1625
+ postal_code: nil,
1626
+ state: nil,
1627
+ town: nil
1628
+ )
1629
+ @city = city
1630
+ @country = country
1631
+ @line1 = line1
1632
+ @line2 = line2
1633
+ @postal_code = postal_code
1634
+ @state = state
1635
+ @town = town
1636
+ end
1637
+ end
1638
+ # Kana Address.
1639
+ attr_accessor :kana
1640
+ # Kanji Address.
1641
+ attr_accessor :kanji
1642
+
1643
+ def initialize(kana: nil, kanji: nil)
1644
+ @kana = kana
1645
+ @kanji = kanji
1646
+ end
1647
+ end
1648
+
1649
+ class ScriptNames < Stripe::RequestParams
1650
+ class Kana < Stripe::RequestParams
1651
+ # Registered name of the business.
1652
+ attr_accessor :registered_name
1653
+
1654
+ def initialize(registered_name: nil)
1655
+ @registered_name = registered_name
1656
+ end
1657
+ end
1658
+
1659
+ class Kanji < Stripe::RequestParams
1660
+ # Registered name of the business.
1661
+ attr_accessor :registered_name
1662
+
1663
+ def initialize(registered_name: nil)
1664
+ @registered_name = registered_name
1665
+ end
1666
+ end
1667
+ # Kana name.
1668
+ attr_accessor :kana
1669
+ # Kanji name.
1670
+ attr_accessor :kanji
1671
+
1672
+ def initialize(kana: nil, kanji: nil)
1673
+ @kana = kana
1674
+ @kanji = kanji
1675
+ end
1676
+ end
1677
+ # The business registration address of the business entity.
1678
+ attr_accessor :address
1679
+ # The business gross annual revenue for its preceding fiscal year.
1680
+ attr_accessor :annual_revenue
1681
+ # A document verifying the business.
1682
+ attr_accessor :documents
1683
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1684
+ attr_accessor :estimated_worker_count
1685
+ # The ID numbers of a business entity.
1686
+ attr_accessor :id_numbers
1687
+ # An estimate of the monthly revenue of the business.
1688
+ attr_accessor :monthly_estimated_revenue
1689
+ # The phone number of the Business Entity.
1690
+ attr_accessor :phone
1691
+ # The business legal name.
1692
+ attr_accessor :registered_name
1693
+ # The business registration address of the business entity in non latin script.
1694
+ attr_accessor :script_addresses
1695
+ # The business legal name in non latin script.
1696
+ attr_accessor :script_names
1697
+ # The category identifying the legal structure of the business.
1698
+ attr_accessor :structure
1699
+
1700
+ def initialize(
1701
+ address: nil,
1702
+ annual_revenue: nil,
1703
+ documents: nil,
1704
+ estimated_worker_count: nil,
1705
+ id_numbers: nil,
1706
+ monthly_estimated_revenue: nil,
1707
+ phone: nil,
1708
+ registered_name: nil,
1709
+ script_addresses: nil,
1710
+ script_names: nil,
1711
+ structure: nil
1712
+ )
1713
+ @address = address
1714
+ @annual_revenue = annual_revenue
1715
+ @documents = documents
1716
+ @estimated_worker_count = estimated_worker_count
1717
+ @id_numbers = id_numbers
1718
+ @monthly_estimated_revenue = monthly_estimated_revenue
1719
+ @phone = phone
1720
+ @registered_name = registered_name
1721
+ @script_addresses = script_addresses
1722
+ @script_names = script_names
1723
+ @structure = structure
1724
+ end
1725
+ end
1726
+
1727
+ class Individual < Stripe::RequestParams
1728
+ class AdditionalAddress < Stripe::RequestParams
1729
+ # City, district, suburb, town, or village.
1730
+ attr_accessor :city
1731
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1732
+ attr_accessor :country
1733
+ # Address line 1 (e.g., street, PO Box, or company name).
1734
+ attr_accessor :line1
1735
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1736
+ attr_accessor :line2
1737
+ # ZIP or postal code.
1738
+ attr_accessor :postal_code
1739
+ # Purpose of additional address.
1740
+ attr_accessor :purpose
1741
+ # State, county, province, or region.
1742
+ attr_accessor :state
1743
+ # Town or cho-me.
1744
+ attr_accessor :town
1745
+
1746
+ def initialize(
1747
+ city: nil,
1748
+ country: nil,
1749
+ line1: nil,
1750
+ line2: nil,
1751
+ postal_code: nil,
1752
+ purpose: nil,
1753
+ state: nil,
1754
+ town: nil
1755
+ )
1756
+ @city = city
1757
+ @country = country
1758
+ @line1 = line1
1759
+ @line2 = line2
1760
+ @postal_code = postal_code
1761
+ @purpose = purpose
1762
+ @state = state
1763
+ @town = town
1764
+ end
1765
+ end
1766
+
1767
+ class AdditionalName < Stripe::RequestParams
1768
+ # The person's full name.
1769
+ attr_accessor :full_name
1770
+ # The person's first or given name.
1771
+ attr_accessor :given_name
1772
+ # The purpose or type of the additional name.
1773
+ attr_accessor :purpose
1774
+ # The person's last or family name.
1775
+ attr_accessor :surname
1776
+
1777
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1778
+ @full_name = full_name
1779
+ @given_name = given_name
1780
+ @purpose = purpose
1781
+ @surname = surname
1782
+ end
1783
+ end
1784
+
1785
+ class Address < Stripe::RequestParams
1786
+ # City, district, suburb, town, or village.
1787
+ attr_accessor :city
1788
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1789
+ attr_accessor :country
1790
+ # Address line 1 (e.g., street, PO Box, or company name).
1791
+ attr_accessor :line1
1792
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1793
+ attr_accessor :line2
1794
+ # ZIP or postal code.
1795
+ attr_accessor :postal_code
1796
+ # State, county, province, or region.
1797
+ attr_accessor :state
1798
+ # Town or cho-me.
1799
+ attr_accessor :town
1800
+
1801
+ def initialize(
1802
+ city: nil,
1803
+ country: nil,
1804
+ line1: nil,
1805
+ line2: nil,
1806
+ postal_code: nil,
1807
+ state: nil,
1808
+ town: nil
1809
+ )
1810
+ @city = city
1811
+ @country = country
1812
+ @line1 = line1
1813
+ @line2 = line2
1814
+ @postal_code = postal_code
1815
+ @state = state
1816
+ @town = town
1817
+ end
1818
+ end
1819
+
1820
+ class DateOfBirth < Stripe::RequestParams
1821
+ # The day of birth.
1822
+ attr_accessor :day
1823
+ # The month of birth.
1824
+ attr_accessor :month
1825
+ # The year of birth.
1826
+ attr_accessor :year
1827
+
1828
+ def initialize(day: nil, month: nil, year: nil)
1829
+ @day = day
1830
+ @month = month
1831
+ @year = year
1832
+ end
1833
+ end
1834
+
1835
+ class Documents < Stripe::RequestParams
1836
+ class CompanyAuthorization < Stripe::RequestParams
1837
+ # 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`.
1838
+ attr_accessor :files
1839
+ # The format of the document. Currently supports `files` only.
1840
+ attr_accessor :type
1841
+
1842
+ def initialize(files: nil, type: nil)
1843
+ @files = files
1844
+ @type = type
1845
+ end
1846
+ end
1847
+
1848
+ class Passport < Stripe::RequestParams
1849
+ # 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`.
1850
+ attr_accessor :files
1851
+ # The format of the document. Currently supports `files` only.
1852
+ attr_accessor :type
1853
+
1854
+ def initialize(files: nil, type: nil)
1855
+ @files = files
1856
+ @type = type
1857
+ end
1858
+ end
1859
+
1860
+ class PrimaryVerification < Stripe::RequestParams
1861
+ class FrontBack < Stripe::RequestParams
1862
+ # 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.
1863
+ attr_accessor :back
1864
+ # 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.
1865
+ attr_accessor :front
1866
+
1867
+ def initialize(back: nil, front: nil)
1868
+ @back = back
1869
+ @front = front
1870
+ end
1871
+ end
1872
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1873
+ attr_accessor :front_back
1874
+ # The format of the verification document. Currently supports `front_back` only.
1875
+ attr_accessor :type
1876
+
1877
+ def initialize(front_back: nil, type: nil)
1878
+ @front_back = front_back
1879
+ @type = type
1880
+ end
1881
+ end
1882
+
1883
+ class SecondaryVerification < Stripe::RequestParams
1884
+ class FrontBack < Stripe::RequestParams
1885
+ # 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.
1886
+ attr_accessor :back
1887
+ # 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.
1888
+ attr_accessor :front
1889
+
1890
+ def initialize(back: nil, front: nil)
1891
+ @back = back
1892
+ @front = front
1893
+ end
1894
+ end
1895
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1896
+ attr_accessor :front_back
1897
+ # The format of the verification document. Currently supports `front_back` only.
1898
+ attr_accessor :type
1899
+
1900
+ def initialize(front_back: nil, type: nil)
1901
+ @front_back = front_back
1902
+ @type = type
1903
+ end
1904
+ end
1905
+
1906
+ class Visa < Stripe::RequestParams
1907
+ # 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`.
1908
+ attr_accessor :files
1909
+ # The format of the document. Currently supports `files` only.
1910
+ attr_accessor :type
1911
+
1912
+ def initialize(files: nil, type: nil)
1913
+ @files = files
1914
+ @type = type
1915
+ end
1916
+ end
1917
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1918
+ attr_accessor :company_authorization
1919
+ # One or more documents showing the person’s passport page with photo and personal data.
1920
+ attr_accessor :passport
1921
+ # An identifying document showing the person's name, either a passport or local ID card.
1922
+ attr_accessor :primary_verification
1923
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1924
+ attr_accessor :secondary_verification
1925
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1926
+ attr_accessor :visa
1927
+
1928
+ def initialize(
1929
+ company_authorization: nil,
1930
+ passport: nil,
1931
+ primary_verification: nil,
1932
+ secondary_verification: nil,
1933
+ visa: nil
1934
+ )
1935
+ @company_authorization = company_authorization
1936
+ @passport = passport
1937
+ @primary_verification = primary_verification
1938
+ @secondary_verification = secondary_verification
1939
+ @visa = visa
1940
+ end
1941
+ end
1942
+
1943
+ class IdNumber < Stripe::RequestParams
1944
+ # The ID number type of an individual.
1945
+ attr_accessor :type
1946
+ # The value of the ID number.
1947
+ attr_accessor :value
1948
+
1949
+ def initialize(type: nil, value: nil)
1950
+ @type = type
1951
+ @value = value
1952
+ end
1953
+ end
1954
+
1955
+ class Relationship < Stripe::RequestParams
1956
+ # 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.
1957
+ attr_accessor :director
1958
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1959
+ attr_accessor :executive
1960
+ # Whether the person is an owner of the account’s identity.
1961
+ attr_accessor :owner
1962
+ # The percent owned by the person of the account's legal entity.
1963
+ attr_accessor :percent_ownership
1964
+ # The person's title (e.g., CEO, Support Engineer).
1965
+ attr_accessor :title
1966
+
1967
+ def initialize(
1968
+ director: nil,
1969
+ executive: nil,
1970
+ owner: nil,
1971
+ percent_ownership: nil,
1972
+ title: nil
1973
+ )
1974
+ @director = director
1975
+ @executive = executive
1976
+ @owner = owner
1977
+ @percent_ownership = percent_ownership
1978
+ @title = title
1979
+ end
1980
+ end
1981
+
1982
+ class ScriptAddresses < Stripe::RequestParams
1983
+ class Kana < Stripe::RequestParams
1984
+ # City, district, suburb, town, or village.
1985
+ attr_accessor :city
1986
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1987
+ attr_accessor :country
1988
+ # Address line 1 (e.g., street, PO Box, or company name).
1989
+ attr_accessor :line1
1990
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1991
+ attr_accessor :line2
1992
+ # ZIP or postal code.
1993
+ attr_accessor :postal_code
1994
+ # State, county, province, or region.
1995
+ attr_accessor :state
1996
+ # Town or cho-me.
1997
+ attr_accessor :town
1998
+
1999
+ def initialize(
2000
+ city: nil,
2001
+ country: nil,
2002
+ line1: nil,
2003
+ line2: nil,
2004
+ postal_code: nil,
2005
+ state: nil,
2006
+ town: nil
2007
+ )
2008
+ @city = city
2009
+ @country = country
2010
+ @line1 = line1
2011
+ @line2 = line2
2012
+ @postal_code = postal_code
2013
+ @state = state
2014
+ @town = town
2015
+ end
2016
+ end
2017
+
2018
+ class Kanji < Stripe::RequestParams
2019
+ # City, district, suburb, town, or village.
2020
+ attr_accessor :city
2021
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2022
+ attr_accessor :country
2023
+ # Address line 1 (e.g., street, PO Box, or company name).
2024
+ attr_accessor :line1
2025
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2026
+ attr_accessor :line2
2027
+ # ZIP or postal code.
2028
+ attr_accessor :postal_code
2029
+ # State, county, province, or region.
2030
+ attr_accessor :state
2031
+ # Town or cho-me.
2032
+ attr_accessor :town
2033
+
2034
+ def initialize(
2035
+ city: nil,
2036
+ country: nil,
2037
+ line1: nil,
2038
+ line2: nil,
2039
+ postal_code: nil,
2040
+ state: nil,
2041
+ town: nil
2042
+ )
2043
+ @city = city
2044
+ @country = country
2045
+ @line1 = line1
2046
+ @line2 = line2
2047
+ @postal_code = postal_code
2048
+ @state = state
2049
+ @town = town
2050
+ end
2051
+ end
2052
+ # Kana Address.
2053
+ attr_accessor :kana
2054
+ # Kanji Address.
2055
+ attr_accessor :kanji
2056
+
2057
+ def initialize(kana: nil, kanji: nil)
2058
+ @kana = kana
2059
+ @kanji = kanji
2060
+ end
2061
+ end
2062
+
2063
+ class ScriptNames < Stripe::RequestParams
2064
+ class Kana < Stripe::RequestParams
2065
+ # The person's first or given name.
2066
+ attr_accessor :given_name
2067
+ # The person's last or family name.
2068
+ attr_accessor :surname
2069
+
2070
+ def initialize(given_name: nil, surname: nil)
2071
+ @given_name = given_name
2072
+ @surname = surname
2073
+ end
2074
+ end
2075
+
2076
+ class Kanji < Stripe::RequestParams
2077
+ # The person's first or given name.
2078
+ attr_accessor :given_name
2079
+ # The person's last or family name.
2080
+ attr_accessor :surname
2081
+
2082
+ def initialize(given_name: nil, surname: nil)
2083
+ @given_name = given_name
2084
+ @surname = surname
2085
+ end
2086
+ end
2087
+ # Persons name in kana script.
2088
+ attr_accessor :kana
2089
+ # Persons name in kanji script.
2090
+ attr_accessor :kanji
2091
+
2092
+ def initialize(kana: nil, kanji: nil)
2093
+ @kana = kana
2094
+ @kanji = kanji
2095
+ end
2096
+ end
2097
+ # Additional addresses associated with the individual.
2098
+ attr_accessor :additional_addresses
2099
+ # Additional names (e.g. aliases) associated with the individual.
2100
+ attr_accessor :additional_names
2101
+ # The individual's residential address.
2102
+ attr_accessor :address
2103
+ # The individual's date of birth.
2104
+ attr_accessor :date_of_birth
2105
+ # Documents that may be submitted to satisfy various informational requests.
2106
+ attr_accessor :documents
2107
+ # The individual's email address.
2108
+ attr_accessor :email
2109
+ # The individual's first name.
2110
+ attr_accessor :given_name
2111
+ # The identification numbers (e.g., SSN) associated with the individual.
2112
+ attr_accessor :id_numbers
2113
+ # The individual's gender (International regulations require either "male" or "female").
2114
+ attr_accessor :legal_gender
2115
+ # 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.
2116
+ attr_accessor :metadata
2117
+ # 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)).
2118
+ attr_accessor :nationalities
2119
+ # The individual's phone number.
2120
+ attr_accessor :phone
2121
+ # The individual's political exposure.
2122
+ attr_accessor :political_exposure
2123
+ # The relationship that this individual has with the account's identity.
2124
+ attr_accessor :relationship
2125
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2126
+ attr_accessor :script_addresses
2127
+ # The individuals primary name in non latin script.
2128
+ attr_accessor :script_names
2129
+ # The individual's last name.
2130
+ attr_accessor :surname
2131
+
2132
+ def initialize(
2133
+ additional_addresses: nil,
2134
+ additional_names: nil,
2135
+ address: nil,
2136
+ date_of_birth: nil,
2137
+ documents: nil,
2138
+ email: nil,
2139
+ given_name: nil,
2140
+ id_numbers: nil,
2141
+ legal_gender: nil,
2142
+ metadata: nil,
2143
+ nationalities: nil,
2144
+ phone: nil,
2145
+ political_exposure: nil,
2146
+ relationship: nil,
2147
+ script_addresses: nil,
2148
+ script_names: nil,
2149
+ surname: nil
2150
+ )
2151
+ @additional_addresses = additional_addresses
2152
+ @additional_names = additional_names
2153
+ @address = address
2154
+ @date_of_birth = date_of_birth
2155
+ @documents = documents
2156
+ @email = email
2157
+ @given_name = given_name
2158
+ @id_numbers = id_numbers
2159
+ @legal_gender = legal_gender
2160
+ @metadata = metadata
2161
+ @nationalities = nationalities
2162
+ @phone = phone
2163
+ @political_exposure = political_exposure
2164
+ @relationship = relationship
2165
+ @script_addresses = script_addresses
2166
+ @script_names = script_names
2167
+ @surname = surname
2168
+ end
2169
+ end
2170
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
2171
+ attr_accessor :attestations
2172
+ # Information about the company or business.
2173
+ attr_accessor :business_details
2174
+ # 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.
2175
+ attr_accessor :country
2176
+ # The entity type.
2177
+ attr_accessor :entity_type
2178
+ # Information about the person represented by the account.
2179
+ attr_accessor :individual
2180
+
2181
+ def initialize(
2182
+ attestations: nil,
2183
+ business_details: nil,
2184
+ country: nil,
2185
+ entity_type: nil,
2186
+ individual: nil
2187
+ )
2188
+ @attestations = attestations
2189
+ @business_details = business_details
2190
+ @country = country
2191
+ @entity_type = entity_type
2192
+ @individual = individual
2193
+ end
2194
+ end
2195
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2196
+ attr_accessor :configuration
2197
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2198
+ attr_accessor :contact_email
2199
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2200
+ attr_accessor :dashboard
2201
+ # Default values to be used on Account Configurations.
2202
+ attr_accessor :defaults
2203
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2204
+ attr_accessor :display_name
2205
+ # Information about the company, individual, and business represented by the Account.
2206
+ attr_accessor :identity
2207
+ # Additional fields to include in the response.
2208
+ attr_accessor :include
2209
+ # 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.
2210
+ attr_accessor :metadata
2211
+
2212
+ def initialize(
2213
+ configuration: nil,
2214
+ contact_email: nil,
2215
+ dashboard: nil,
2216
+ defaults: nil,
2217
+ display_name: nil,
2218
+ identity: nil,
2219
+ include: nil,
2220
+ metadata: nil
2221
+ )
2222
+ @configuration = configuration
2223
+ @contact_email = contact_email
2224
+ @dashboard = dashboard
2225
+ @defaults = defaults
2226
+ @display_name = display_name
2227
+ @identity = identity
2228
+ @include = include
2229
+ @metadata = metadata
2230
+ end
2231
+ end
2232
+ end
2233
+ end
2234
+ end