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