stripe 18.1.0.pre.beta.1 → 18.2.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 (721) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/ca-certificates.crt +682 -518
  3. data/lib/stripe/api_requestor.rb +2 -0
  4. data/lib/stripe/api_version.rb +1 -1
  5. data/lib/stripe/errors.rb +3 -0
  6. data/lib/stripe/event_types.rb +360 -0
  7. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  8. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  9. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  10. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  11. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  13. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  16. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  29. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  30. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  31. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  42. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  43. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  44. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  45. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  46. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  48. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  50. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  51. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
  52. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
  53. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
  54. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
  55. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  56. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  57. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  58. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  59. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  60. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  61. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  62. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
  63. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
  64. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
  65. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
  66. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  67. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  68. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  69. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  70. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  71. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  72. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  73. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  74. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  75. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  76. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  77. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  78. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  79. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  80. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  81. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  82. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  83. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  84. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  85. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  86. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  87. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  88. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  89. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  90. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  91. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  92. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  93. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  94. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  95. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  96. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  97. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  98. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  99. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  100. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  101. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  102. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  103. data/lib/stripe/object_types.rb +40 -0
  104. data/lib/stripe/params/account_create_params.rb +82 -28
  105. data/lib/stripe/params/account_external_account_create_params.rb +2 -2
  106. data/lib/stripe/params/account_external_account_update_params.rb +2 -2
  107. data/lib/stripe/params/account_notice_update_params.rb +1 -1
  108. data/lib/stripe/params/account_person_create_params.rb +42 -10
  109. data/lib/stripe/params/account_person_update_params.rb +42 -10
  110. data/lib/stripe/params/account_session_create_params.rb +17 -0
  111. data/lib/stripe/params/account_update_params.rb +81 -27
  112. data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
  113. data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
  114. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  115. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  116. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  117. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
  118. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +15 -3
  119. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
  120. data/lib/stripe/params/billing/credit_grant_create_params.rb +31 -4
  121. data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
  122. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  123. data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
  124. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  125. data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
  126. data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
  127. data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
  128. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  129. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  130. data/lib/stripe/params/charge_capture_params.rb +9 -9
  131. data/lib/stripe/params/charge_create_params.rb +12 -12
  132. data/lib/stripe/params/charge_search_params.rb +1 -1
  133. data/lib/stripe/params/charge_update_params.rb +10 -10
  134. data/lib/stripe/params/checkout/session_create_params.rb +133 -42
  135. data/lib/stripe/params/checkout/session_update_params.rb +27 -15
  136. data/lib/stripe/params/climate/order_create_params.rb +1 -1
  137. data/lib/stripe/params/climate/order_update_params.rb +1 -1
  138. data/lib/stripe/params/confirmation_token_create_params.rb +6 -6
  139. data/lib/stripe/params/coupon_create_params.rb +1 -1
  140. data/lib/stripe/params/coupon_update_params.rb +1 -1
  141. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  142. data/lib/stripe/params/credit_note_list_params.rb +1 -1
  143. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  144. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  145. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  146. data/lib/stripe/params/credit_note_update_params.rb +1 -1
  147. data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
  148. data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
  149. data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
  150. data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
  151. data/lib/stripe/params/customer_create_params.rb +5 -5
  152. data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
  153. data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
  154. data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
  155. data/lib/stripe/params/customer_search_params.rb +1 -1
  156. data/lib/stripe/params/customer_update_params.rb +7 -7
  157. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
  158. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  159. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  160. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  161. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  162. data/lib/stripe/params/dispute_update_params.rb +3 -3
  163. data/lib/stripe/params/external_account_create_params.rb +2 -2
  164. data/lib/stripe/params/external_account_update_params.rb +2 -2
  165. data/lib/stripe/params/file_create_params.rb +3 -3
  166. data/lib/stripe/params/file_link_create_params.rb +1 -1
  167. data/lib/stripe/params/file_link_update_params.rb +1 -1
  168. data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
  169. data/lib/stripe/params/financial_connections/session_create_params.rb +3 -3
  170. data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
  171. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  172. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  173. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  174. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  175. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  176. data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
  177. data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
  178. data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
  179. data/lib/stripe/params/invoice_add_lines_params.rb +21 -9
  180. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -1
  181. data/lib/stripe/params/invoice_create_params.rb +37 -13
  182. data/lib/stripe/params/invoice_create_preview_params.rb +158 -39
  183. data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
  184. data/lib/stripe/params/invoice_item_create_params.rb +8 -8
  185. data/lib/stripe/params/invoice_item_list_params.rb +2 -2
  186. data/lib/stripe/params/invoice_item_update_params.rb +6 -6
  187. data/lib/stripe/params/invoice_line_item_update_params.rb +20 -8
  188. data/lib/stripe/params/invoice_list_params.rb +6 -2
  189. data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
  190. data/lib/stripe/params/invoice_search_params.rb +1 -1
  191. data/lib/stripe/params/invoice_update_lines_params.rb +21 -9
  192. data/lib/stripe/params/invoice_update_params.rb +34 -10
  193. data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
  194. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  195. data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
  196. data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
  197. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  198. data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
  199. data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
  200. data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
  201. data/lib/stripe/params/issuing/card_create_params.rb +7 -7
  202. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  203. data/lib/stripe/params/issuing/card_update_params.rb +6 -6
  204. data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -11
  205. data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
  206. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +5 -5
  207. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +1 -1
  208. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +5 -5
  209. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +4 -4
  210. data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
  211. data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
  212. data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
  213. data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
  214. data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
  215. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  216. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  217. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  218. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  219. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
  220. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
  221. data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
  222. data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
  223. data/lib/stripe/params/mandate_list_params.rb +1 -1
  224. data/lib/stripe/params/margin_create_params.rb +1 -1
  225. data/lib/stripe/params/margin_update_params.rb +1 -1
  226. data/lib/stripe/params/order_create_params.rb +12 -12
  227. data/lib/stripe/params/order_update_params.rb +12 -12
  228. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
  229. data/lib/stripe/params/payment_intent_capture_params.rb +18 -18
  230. data/lib/stripe/params/payment_intent_confirm_params.rb +77 -39
  231. data/lib/stripe/params/payment_intent_create_params.rb +105 -54
  232. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +4 -4
  233. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +10 -10
  234. data/lib/stripe/params/payment_intent_list_params.rb +1 -1
  235. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  236. data/lib/stripe/params/payment_intent_update_params.rb +74 -40
  237. data/lib/stripe/params/payment_link_create_params.rb +32 -20
  238. data/lib/stripe/params/payment_link_update_params.rb +9 -9
  239. data/lib/stripe/params/payment_method_attach_params.rb +1 -1
  240. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  241. data/lib/stripe/params/payment_method_configuration_create_params.rb +40 -40
  242. data/lib/stripe/params/payment_method_configuration_update_params.rb +40 -40
  243. data/lib/stripe/params/payment_method_create_params.rb +4 -4
  244. data/lib/stripe/params/payment_method_update_params.rb +2 -2
  245. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
  246. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
  247. data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
  248. data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
  249. data/lib/stripe/params/payout_create_params.rb +1 -1
  250. data/lib/stripe/params/payout_reverse_params.rb +1 -1
  251. data/lib/stripe/params/payout_update_params.rb +1 -1
  252. data/lib/stripe/params/plan_create_params.rb +4 -4
  253. data/lib/stripe/params/plan_update_params.rb +2 -2
  254. data/lib/stripe/params/price_create_params.rb +6 -6
  255. data/lib/stripe/params/price_search_params.rb +1 -1
  256. data/lib/stripe/params/price_update_params.rb +3 -3
  257. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
  258. data/lib/stripe/params/product_create_params.rb +21 -8
  259. data/lib/stripe/params/product_feature_create_params.rb +1 -1
  260. data/lib/stripe/params/product_list_params.rb +1 -1
  261. data/lib/stripe/params/product_search_params.rb +1 -1
  262. data/lib/stripe/params/product_update_params.rb +18 -5
  263. data/lib/stripe/params/promotion_code_create_params.rb +3 -3
  264. data/lib/stripe/params/promotion_code_list_params.rb +1 -1
  265. data/lib/stripe/params/promotion_code_update_params.rb +1 -1
  266. data/lib/stripe/params/quote_create_params.rb +231 -11
  267. data/lib/stripe/params/quote_list_params.rb +2 -2
  268. data/lib/stripe/params/quote_update_params.rb +231 -11
  269. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  270. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  271. data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
  272. data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
  273. data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
  274. data/lib/stripe/params/refund_create_params.rb +2 -2
  275. data/lib/stripe/params/refund_update_params.rb +1 -1
  276. data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
  277. data/lib/stripe/params/setup_intent_confirm_params.rb +35 -6
  278. data/lib/stripe/params/setup_intent_create_params.rb +41 -12
  279. data/lib/stripe/params/setup_intent_update_params.rb +38 -9
  280. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  281. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  282. data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
  283. data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
  284. data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
  285. data/lib/stripe/params/source_create_params.rb +3 -3
  286. data/lib/stripe/params/source_update_params.rb +3 -3
  287. data/lib/stripe/params/subscription_create_params.rb +62 -22
  288. data/lib/stripe/params/subscription_item_create_params.rb +26 -10
  289. data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
  290. data/lib/stripe/params/subscription_item_update_params.rb +26 -10
  291. data/lib/stripe/params/subscription_list_params.rb +3 -3
  292. data/lib/stripe/params/subscription_resume_params.rb +2 -2
  293. data/lib/stripe/params/subscription_schedule_amend_params.rb +42 -3
  294. data/lib/stripe/params/subscription_schedule_create_params.rb +85 -17
  295. data/lib/stripe/params/subscription_schedule_update_params.rb +85 -17
  296. data/lib/stripe/params/subscription_search_params.rb +1 -1
  297. data/lib/stripe/params/subscription_update_params.rb +60 -20
  298. data/lib/stripe/params/tax/association_find_params.rb +1 -1
  299. data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
  300. data/lib/stripe/params/tax/settings_update_params.rb +1 -1
  301. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
  302. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
  303. data/lib/stripe/params/tax_id_create_params.rb +2 -2
  304. data/lib/stripe/params/tax_id_list_params.rb +2 -2
  305. data/lib/stripe/params/tax_rate_create_params.rb +1 -1
  306. data/lib/stripe/params/tax_rate_update_params.rb +1 -1
  307. data/lib/stripe/params/terminal/location_create_params.rb +2 -2
  308. data/lib/stripe/params/terminal/location_update_params.rb +2 -2
  309. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
  310. data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
  311. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
  312. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
  313. data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
  314. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  315. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  316. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -6
  317. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
  318. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  319. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
  320. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  321. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
  322. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
  323. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
  324. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
  325. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
  326. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  327. data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
  328. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -1
  329. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -1
  330. data/lib/stripe/params/token_create_params.rb +86 -22
  331. data/lib/stripe/params/topup_create_params.rb +2 -2
  332. data/lib/stripe/params/topup_update_params.rb +1 -1
  333. data/lib/stripe/params/transfer_create_params.rb +7 -3
  334. data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
  335. data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
  336. data/lib/stripe/params/transfer_update_params.rb +1 -1
  337. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
  338. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
  339. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -1
  340. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -1
  341. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
  342. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
  343. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -3
  344. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -1
  345. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -1
  346. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
  347. data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
  348. data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
  349. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  350. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  351. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  352. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  353. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  354. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  355. data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
  356. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  357. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  358. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  359. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  360. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  361. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  362. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  363. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  364. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  365. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  366. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  367. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  368. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  369. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  370. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  371. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  372. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  373. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  374. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  375. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  376. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  377. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  378. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  379. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  380. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  381. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  382. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  383. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  384. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  385. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  386. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  387. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  388. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  389. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  390. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  391. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  392. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  393. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  394. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  395. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  396. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  397. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  398. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  399. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  400. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  401. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  402. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  403. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  404. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  405. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  406. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  407. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  408. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  409. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  410. data/lib/stripe/params/v2/core/account_create_params.rb +758 -29
  411. data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
  412. data/lib/stripe/params/v2/core/account_token_create_params.rb +267 -9
  413. data/lib/stripe/params/v2/core/account_update_params.rb +750 -35
  414. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
  415. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
  416. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
  417. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  418. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  419. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  420. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  421. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  422. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  423. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  424. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  425. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  426. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  427. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  428. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  429. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  430. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
  431. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
  432. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
  433. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +20 -1
  434. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +16 -1
  435. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
  436. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +16 -0
  437. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  438. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  439. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  440. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  441. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  442. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  443. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  444. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  445. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  446. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
  447. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  448. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  449. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
  450. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  451. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
  452. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  453. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  454. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  455. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  456. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
  457. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  458. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  459. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  460. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
  461. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
  462. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  463. data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
  464. data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
  465. data/lib/stripe/params.rb +125 -0
  466. data/lib/stripe/resources/account.rb +27 -27
  467. data/lib/stripe/resources/account_link.rb +1 -1
  468. data/lib/stripe/resources/account_notice.rb +6 -6
  469. data/lib/stripe/resources/account_session.rb +29 -2
  470. data/lib/stripe/resources/application_fee.rb +2 -0
  471. data/lib/stripe/resources/application_fee_refund.rb +2 -2
  472. data/lib/stripe/resources/apps/secret.rb +1 -1
  473. data/lib/stripe/resources/balance.rb +85 -2
  474. data/lib/stripe/resources/balance_settings.rb +1 -1
  475. data/lib/stripe/resources/balance_transaction.rb +1 -1
  476. data/lib/stripe/resources/balance_transfer.rb +139 -0
  477. data/lib/stripe/resources/bank_account.rb +10 -10
  478. data/lib/stripe/resources/billing/alert.rb +106 -2
  479. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  480. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
  481. data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
  482. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  483. data/lib/stripe/resources/billing/credit_grant.rb +60 -4
  484. data/lib/stripe/resources/billing/meter.rb +2 -0
  485. data/lib/stripe/resources/billing/meter_event.rb +1 -1
  486. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  487. data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
  488. data/lib/stripe/resources/billing_portal/session.rb +6 -6
  489. data/lib/stripe/resources/capability.rb +16 -16
  490. data/lib/stripe/resources/capital/financing_offer.rb +43 -2
  491. data/lib/stripe/resources/capital/financing_summary.rb +7 -4
  492. data/lib/stripe/resources/card.rb +20 -3
  493. data/lib/stripe/resources/cash_balance.rb +2 -2
  494. data/lib/stripe/resources/charge.rb +65 -35
  495. data/lib/stripe/resources/checkout/session.rb +111 -19
  496. data/lib/stripe/resources/climate/order.rb +1 -1
  497. data/lib/stripe/resources/confirmation_token.rb +29 -11
  498. data/lib/stripe/resources/coupon.rb +3 -3
  499. data/lib/stripe/resources/credit_note.rb +5 -5
  500. data/lib/stripe/resources/credit_note_line_item.rb +1 -1
  501. data/lib/stripe/resources/customer.rb +8 -8
  502. data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
  503. data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
  504. data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
  505. data/lib/stripe/resources/discount.rb +5 -3
  506. data/lib/stripe/resources/dispute.rb +5 -5
  507. data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
  508. data/lib/stripe/resources/event.rb +1 -1
  509. data/lib/stripe/resources/exchange_rate.rb +2 -2
  510. data/lib/stripe/resources/file.rb +4 -4
  511. data/lib/stripe/resources/file_link.rb +1 -1
  512. data/lib/stripe/resources/financial_connections/account.rb +3 -3
  513. data/lib/stripe/resources/financial_connections/session.rb +2 -2
  514. data/lib/stripe/resources/forwarding/request.rb +1 -1
  515. data/lib/stripe/resources/funding_instructions.rb +14 -14
  516. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  517. data/lib/stripe/resources/identity/verification_report.rb +13 -9
  518. data/lib/stripe/resources/identity/verification_session.rb +11 -11
  519. data/lib/stripe/resources/invoice.rb +79 -31
  520. data/lib/stripe/resources/invoice_item.rb +112 -8
  521. data/lib/stripe/resources/invoice_line_item.rb +111 -5
  522. data/lib/stripe/resources/invoice_payment.rb +1 -1
  523. data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
  524. data/lib/stripe/resources/issuing/authorization.rb +20 -20
  525. data/lib/stripe/resources/issuing/card.rb +16 -12
  526. data/lib/stripe/resources/issuing/cardholder.rb +14 -14
  527. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +5 -5
  528. data/lib/stripe/resources/issuing/dispute.rb +7 -7
  529. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +1 -1
  530. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  531. data/lib/stripe/resources/issuing/program.rb +69 -0
  532. data/lib/stripe/resources/issuing/settlement.rb +2 -2
  533. data/lib/stripe/resources/issuing/token.rb +1 -1
  534. data/lib/stripe/resources/issuing/transaction.rb +13 -13
  535. data/lib/stripe/resources/line_item.rb +3 -3
  536. data/lib/stripe/resources/login_link.rb +1 -1
  537. data/lib/stripe/resources/margin.rb +1 -1
  538. data/lib/stripe/resources/order.rb +13 -13
  539. data/lib/stripe/resources/payment_attempt_record.rb +80 -22
  540. data/lib/stripe/resources/payment_intent.rb +161 -58
  541. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
  542. data/lib/stripe/resources/payment_link.rb +7 -7
  543. data/lib/stripe/resources/payment_method.rb +51 -13
  544. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  545. data/lib/stripe/resources/payment_method_configuration.rb +4 -4
  546. data/lib/stripe/resources/payment_method_domain.rb +1 -1
  547. data/lib/stripe/resources/payment_record.rb +82 -22
  548. data/lib/stripe/resources/payout.rb +7 -7
  549. data/lib/stripe/resources/person.rb +59 -23
  550. data/lib/stripe/resources/plan.rb +5 -5
  551. data/lib/stripe/resources/price.rb +6 -6
  552. data/lib/stripe/resources/product.rb +9 -9
  553. data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
  554. data/lib/stripe/resources/promotion_code.rb +4 -4
  555. data/lib/stripe/resources/quote.rb +253 -16
  556. data/lib/stripe/resources/quote_line.rb +9 -3
  557. data/lib/stripe/resources/quote_preview_invoice.rb +77 -29
  558. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +102 -8
  559. data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
  560. data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
  561. data/lib/stripe/resources/radar/value_list.rb +2 -2
  562. data/lib/stripe/resources/radar/value_list_item.rb +1 -1
  563. data/lib/stripe/resources/refund.rb +3 -3
  564. data/lib/stripe/resources/reporting/report_run.rb +3 -3
  565. data/lib/stripe/resources/reporting/report_type.rb +3 -3
  566. data/lib/stripe/resources/reversal.rb +4 -4
  567. data/lib/stripe/resources/review.rb +1 -1
  568. data/lib/stripe/resources/setup_attempt.rb +17 -17
  569. data/lib/stripe/resources/setup_intent.rb +59 -19
  570. data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
  571. data/lib/stripe/resources/shipping_rate.rb +3 -3
  572. data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
  573. data/lib/stripe/resources/source.rb +8 -8
  574. data/lib/stripe/resources/source_mandate_notification.rb +3 -3
  575. data/lib/stripe/resources/subscription.rb +66 -15
  576. data/lib/stripe/resources/subscription_item.rb +31 -8
  577. data/lib/stripe/resources/subscription_schedule.rb +103 -9
  578. data/lib/stripe/resources/tax/association.rb +3 -3
  579. data/lib/stripe/resources/tax/calculation.rb +12 -12
  580. data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
  581. data/lib/stripe/resources/tax/registration.rb +3 -3
  582. data/lib/stripe/resources/tax/settings.rb +2 -2
  583. data/lib/stripe/resources/tax/transaction.rb +9 -9
  584. data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
  585. data/lib/stripe/resources/tax_id.rb +4 -4
  586. data/lib/stripe/resources/tax_rate.rb +1 -1
  587. data/lib/stripe/resources/terminal/connection_token.rb +1 -1
  588. data/lib/stripe/resources/terminal/location.rb +3 -3
  589. data/lib/stripe/resources/terminal/reader.rb +10 -10
  590. data/lib/stripe/resources/token.rb +4 -4
  591. data/lib/stripe/resources/topup.rb +3 -3
  592. data/lib/stripe/resources/transfer.rb +9 -5
  593. data/lib/stripe/resources/transit_balance.rb +45 -0
  594. data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
  595. data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
  596. data/lib/stripe/resources/treasury/financial_account.rb +1 -1
  597. data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
  598. data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
  599. data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -5
  600. data/lib/stripe/resources/treasury/received_credit.rb +10 -10
  601. data/lib/stripe/resources/treasury/received_debit.rb +7 -7
  602. data/lib/stripe/resources/treasury/transaction.rb +11 -11
  603. data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
  604. data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
  605. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  606. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  607. data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
  608. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  609. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  610. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  611. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  612. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  613. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  614. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  615. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  616. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  617. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  618. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  619. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  620. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  621. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  622. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  623. data/lib/stripe/resources/v2/core/account.rb +1227 -253
  624. data/lib/stripe/resources/v2/core/account_link.rb +11 -11
  625. data/lib/stripe/resources/v2/core/account_person.rb +10 -10
  626. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  627. data/lib/stripe/resources/v2/core/event.rb +50 -1
  628. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
  629. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +23 -1
  630. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
  631. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  632. data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
  633. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  634. data/lib/stripe/resources/v2/money_management/financial_account.rb +83 -0
  635. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
  636. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +50 -2
  637. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +63 -3
  638. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +48 -2
  639. data/lib/stripe/resources/v2/money_management/payout_method.rb +49 -1
  640. data/lib/stripe/resources/v2/money_management/received_credit.rb +52 -0
  641. data/lib/stripe/resources/v2/money_management/received_debit.rb +73 -1
  642. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  643. data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
  644. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
  645. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  646. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
  647. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
  648. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  649. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  650. data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
  651. data/lib/stripe/resources/webhook_endpoint.rb +1 -1
  652. data/lib/stripe/resources.rb +133 -0
  653. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  654. data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
  655. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  656. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  657. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  658. data/lib/stripe/services/identity_service.rb +2 -1
  659. data/lib/stripe/services/issuing/program_service.rb +52 -0
  660. data/lib/stripe/services/issuing_service.rb +2 -1
  661. data/lib/stripe/services/payment_method_service.rb +12 -1
  662. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  663. data/lib/stripe/services/product_catalog_service.rb +13 -0
  664. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  665. data/lib/stripe/services/radar_service.rb +2 -1
  666. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  667. data/lib/stripe/services/shared_payment_service.rb +13 -0
  668. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  669. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  670. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  671. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  672. data/lib/stripe/services/test_helpers_service.rb +3 -1
  673. data/lib/stripe/services/v1_services.rb +5 -1
  674. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  675. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  676. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  677. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  678. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  679. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  680. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  681. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  682. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  683. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  684. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  685. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  686. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  687. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  688. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  689. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  690. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  691. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  692. data/lib/stripe/services/v2/billing_service.rb +14 -1
  693. data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
  694. data/lib/stripe/services/v2/core/account_service.rb +0 -4
  695. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
  696. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  697. data/lib/stripe/services/v2/core_service.rb +2 -1
  698. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  699. data/lib/stripe/services/v2/iam_service.rb +15 -0
  700. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  701. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -0
  702. data/lib/stripe/services/v2/money_management/payout_method_service.rb +2 -0
  703. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  704. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  705. data/lib/stripe/services/v2/payment_service.rb +17 -0
  706. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  707. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
  708. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
  709. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  710. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  711. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  712. data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
  713. data/lib/stripe/services/v2/tax_service.rb +15 -0
  714. data/lib/stripe/services/v2/test_helper_service.rb +2 -1
  715. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  716. data/lib/stripe/services/v2_services.rb +5 -1
  717. data/lib/stripe/services.rb +47 -0
  718. data/lib/stripe/stripe_object.rb +30 -1
  719. data/lib/stripe/version.rb +1 -1
  720. data/rbi/stripe.rbi +24028 -3406
  721. metadata +307 -2
@@ -6,15 +6,155 @@ module Stripe
6
6
  module Core
7
7
  class AccountUpdateParams < ::Stripe::RequestParams
8
8
  class Configuration < ::Stripe::RequestParams
9
+ class CardCreator < ::Stripe::RequestParams
10
+ class Capabilities < ::Stripe::RequestParams
11
+ class Commercial < ::Stripe::RequestParams
12
+ class Celtic < ::Stripe::RequestParams
13
+ class ChargeCard < ::Stripe::RequestParams
14
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
15
+ attr_accessor :requested
16
+
17
+ def initialize(requested: nil)
18
+ @requested = requested
19
+ end
20
+ end
21
+
22
+ class SpendCard < ::Stripe::RequestParams
23
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
24
+ attr_accessor :requested
25
+
26
+ def initialize(requested: nil)
27
+ @requested = requested
28
+ end
29
+ end
30
+ # Can create commercial issuing charge cards with Celtic as BIN sponsor.
31
+ attr_accessor :charge_card
32
+ # Can create commercial issuing spend cards with Celtic as BIN sponsor.
33
+ attr_accessor :spend_card
34
+
35
+ def initialize(charge_card: nil, spend_card: nil)
36
+ @charge_card = charge_card
37
+ @spend_card = spend_card
38
+ end
39
+ end
40
+
41
+ class CrossRiverBank < ::Stripe::RequestParams
42
+ class ChargeCard < ::Stripe::RequestParams
43
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
44
+ attr_accessor :requested
45
+
46
+ def initialize(requested: nil)
47
+ @requested = requested
48
+ end
49
+ end
50
+
51
+ class SpendCard < ::Stripe::RequestParams
52
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
53
+ attr_accessor :requested
54
+
55
+ def initialize(requested: nil)
56
+ @requested = requested
57
+ end
58
+ end
59
+ # Can create commercial issuing charge cards with Cross River Bank as BIN sponsor.
60
+ attr_accessor :charge_card
61
+ # Can create commercial issuing spend cards with Cross River Bank as BIN sponsor.
62
+ attr_accessor :spend_card
63
+
64
+ def initialize(charge_card: nil, spend_card: nil)
65
+ @charge_card = charge_card
66
+ @spend_card = spend_card
67
+ end
68
+ end
69
+
70
+ class Lead < ::Stripe::RequestParams
71
+ class PrepaidCard < ::Stripe::RequestParams
72
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
73
+ attr_accessor :requested
74
+
75
+ def initialize(requested: nil)
76
+ @requested = requested
77
+ end
78
+ end
79
+ # Can create commercial issuing prepaid cards with Lead as BIN sponsor.
80
+ attr_accessor :prepaid_card
81
+
82
+ def initialize(prepaid_card: nil)
83
+ @prepaid_card = prepaid_card
84
+ end
85
+ end
86
+
87
+ class Stripe < ::Stripe::RequestParams
88
+ class ChargeCard < ::Stripe::RequestParams
89
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
90
+ attr_accessor :requested
91
+
92
+ def initialize(requested: nil)
93
+ @requested = requested
94
+ end
95
+ end
96
+
97
+ class PrepaidCard < ::Stripe::RequestParams
98
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
99
+ attr_accessor :requested
100
+
101
+ def initialize(requested: nil)
102
+ @requested = requested
103
+ end
104
+ end
105
+ # Can create commercial issuing charge cards with Stripe as BIN sponsor.
106
+ attr_accessor :charge_card
107
+ # Can create commercial issuing prepaid cards with Stripe as BIN sponsor.
108
+ attr_accessor :prepaid_card
109
+
110
+ def initialize(charge_card: nil, prepaid_card: nil)
111
+ @charge_card = charge_card
112
+ @prepaid_card = prepaid_card
113
+ end
114
+ end
115
+ # Can create commercial issuing cards with Celtic as BIN sponsor.
116
+ attr_accessor :celtic
117
+ # Can create commercial issuing cards with Cross River Bank as BIN sponsor.
118
+ attr_accessor :cross_river_bank
119
+ # Can create commercial issuing cards with Lead as BIN sponsor.
120
+ attr_accessor :lead
121
+ # Can create commercial issuing cards with Stripe as BIN sponsor.
122
+ attr_accessor :stripe
123
+
124
+ def initialize(celtic: nil, cross_river_bank: nil, lead: nil, stripe: nil)
125
+ @celtic = celtic
126
+ @cross_river_bank = cross_river_bank
127
+ @lead = lead
128
+ @stripe = stripe
129
+ end
130
+ end
131
+ # Can create cards for commercial issuing use cases.
132
+ attr_accessor :commercial
133
+
134
+ def initialize(commercial: nil)
135
+ @commercial = commercial
136
+ end
137
+ end
138
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
139
+ attr_accessor :applied
140
+ # Capabilities to request on the CardCreator Configuration.
141
+ attr_accessor :capabilities
142
+
143
+ def initialize(applied: nil, capabilities: nil)
144
+ @applied = applied
145
+ @capabilities = capabilities
146
+ end
147
+ end
148
+
9
149
  class Customer < ::Stripe::RequestParams
10
150
  class AutomaticIndirectTax < ::Stripe::RequestParams
11
- # Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
151
+ # The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge".
12
152
  attr_accessor :exempt
13
153
  # A recent IP address of the customer used for tax reporting and tax location inference.
14
154
  attr_accessor :ip_address
15
- # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users.
155
+ # Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
16
156
  attr_accessor :location_source
17
- # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
157
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
18
158
  attr_accessor :validate_location
19
159
 
20
160
  def initialize(
@@ -45,7 +185,7 @@ module Stripe
45
185
  end
46
186
 
47
187
  class Rendering < ::Stripe::RequestParams
48
- # 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.
188
+ # Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`.
49
189
  attr_accessor :amount_tax_display
50
190
  # ID of the invoice rendering template to use for future invoices.
51
191
  attr_accessor :template
@@ -57,13 +197,13 @@ module Stripe
57
197
  end
58
198
  # The list of up to 4 default custom fields to be displayed on invoices for this customer.
59
199
  attr_accessor :custom_fields
60
- # Default footer to be displayed on invoices for this customer.
200
+ # Default invoice footer.
61
201
  attr_accessor :footer
62
- # The sequence to be used on the customer's next invoice. Defaults to 1.
202
+ # Sequence number to use on the customer account's next invoice. Defaults to 1.
63
203
  attr_accessor :next_sequence
64
- # The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
204
+ # Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers.
65
205
  attr_accessor :prefix
66
- # Default options for invoice PDF rendering for this customer.
206
+ # Default invoice PDF rendering options.
67
207
  attr_accessor :rendering
68
208
 
69
209
  def initialize(
@@ -80,9 +220,9 @@ module Stripe
80
220
  @rendering = rendering
81
221
  end
82
222
  end
83
- # 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.
223
+ # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions.
84
224
  attr_accessor :default_payment_method
85
- # Default settings used on invoices for this customer.
225
+ # Default invoice settings for the customer account.
86
226
  attr_accessor :invoice
87
227
 
88
228
  def initialize(default_payment_method: nil, invoice: nil)
@@ -184,7 +324,7 @@ module Stripe
184
324
 
185
325
  class Merchant < ::Stripe::RequestParams
186
326
  class BacsDebitPayments < ::Stripe::RequestParams
187
- # Display name for Bacs debit payments.
327
+ # Display name for Bacs Direct Debit payments.
188
328
  attr_accessor :display_name
189
329
 
190
330
  def initialize(display_name: nil)
@@ -903,7 +1043,7 @@ module Stripe
903
1043
  attr_accessor :postal_code
904
1044
  # State, county, province, or region.
905
1045
  attr_accessor :state
906
- # Town or cho-me.
1046
+ # Town or district.
907
1047
  attr_accessor :town
908
1048
 
909
1049
  def initialize(
@@ -942,7 +1082,7 @@ module Stripe
942
1082
  end
943
1083
  # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
944
1084
  attr_accessor :applied
945
- # Settings used for Bacs debit payments.
1085
+ # Settings for Bacs Direct Debit payments.
946
1086
  attr_accessor :bacs_debit_payments
947
1087
  # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
948
1088
  attr_accessor :branding
@@ -952,11 +1092,11 @@ module Stripe
952
1092
  attr_accessor :card_payments
953
1093
  # Settings specific to Konbini payments on the account.
954
1094
  attr_accessor :konbini_payments
955
- # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
1095
+ # The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
956
1096
  attr_accessor :mcc
957
1097
  # Settings for the default text that appears on statements for language variations.
958
1098
  attr_accessor :script_statement_descriptor
959
- # Statement descriptor.
1099
+ # Settings for the default [statement descriptor](/connect/statement-descriptors) text.
960
1100
  attr_accessor :statement_descriptor
961
1101
  # Publicly available contact information for sending support issues to.
962
1102
  attr_accessor :support
@@ -989,6 +1129,15 @@ module Stripe
989
1129
  class Recipient < ::Stripe::RequestParams
990
1130
  class Capabilities < ::Stripe::RequestParams
991
1131
  class BankAccounts < ::Stripe::RequestParams
1132
+ class Instant < ::Stripe::RequestParams
1133
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1134
+ attr_accessor :requested
1135
+
1136
+ def initialize(requested: nil)
1137
+ @requested = requested
1138
+ end
1139
+ end
1140
+
992
1141
  class Local < ::Stripe::RequestParams
993
1142
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
994
1143
  attr_accessor :requested
@@ -1006,12 +1155,15 @@ module Stripe
1006
1155
  @requested = requested
1007
1156
  end
1008
1157
  end
1158
+ # Enables this Account to receive OutboundPayments to linked bank accounts over real time rails.
1159
+ attr_accessor :instant
1009
1160
  # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1010
1161
  attr_accessor :local
1011
1162
  # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1012
1163
  attr_accessor :wire
1013
1164
 
1014
- def initialize(local: nil, wire: nil)
1165
+ def initialize(instant: nil, local: nil, wire: nil)
1166
+ @instant = instant
1015
1167
  @local = local
1016
1168
  @wire = wire
1017
1169
  end
@@ -1026,6 +1178,15 @@ module Stripe
1026
1178
  end
1027
1179
  end
1028
1180
 
1181
+ class CryptoWallets < ::Stripe::RequestParams
1182
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1183
+ attr_accessor :requested
1184
+
1185
+ def initialize(requested: nil)
1186
+ @requested = requested
1187
+ end
1188
+ end
1189
+
1029
1190
  class StripeBalance < ::Stripe::RequestParams
1030
1191
  class StripeTransfers < ::Stripe::RequestParams
1031
1192
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
@@ -1035,7 +1196,7 @@ module Stripe
1035
1196
  @requested = requested
1036
1197
  end
1037
1198
  end
1038
- # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1199
+ # Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1039
1200
  attr_accessor :stripe_transfers
1040
1201
 
1041
1202
  def initialize(stripe_transfers: nil)
@@ -1046,12 +1207,20 @@ module Stripe
1046
1207
  attr_accessor :bank_accounts
1047
1208
  # Capability that enable OutboundPayments to a debit card linked to this Account.
1048
1209
  attr_accessor :cards
1210
+ # Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
1211
+ attr_accessor :crypto_wallets
1049
1212
  # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1050
1213
  attr_accessor :stripe_balance
1051
1214
 
1052
- def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
1215
+ def initialize(
1216
+ bank_accounts: nil,
1217
+ cards: nil,
1218
+ crypto_wallets: nil,
1219
+ stripe_balance: nil
1220
+ )
1053
1221
  @bank_accounts = bank_accounts
1054
1222
  @cards = cards
1223
+ @crypto_wallets = crypto_wallets
1055
1224
  @stripe_balance = stripe_balance
1056
1225
  end
1057
1226
  end
@@ -1080,11 +1249,23 @@ module Stripe
1080
1249
  @requested = requested
1081
1250
  end
1082
1251
  end
1252
+
1253
+ class CryptoWallets < ::Stripe::RequestParams
1254
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1255
+ attr_accessor :requested
1256
+
1257
+ def initialize(requested: nil)
1258
+ @requested = requested
1259
+ end
1260
+ end
1083
1261
  # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1084
1262
  attr_accessor :bank_accounts
1263
+ # Can provision a crypto wallet like financial address to credit a FinancialAccount.
1264
+ attr_accessor :crypto_wallets
1085
1265
 
1086
- def initialize(bank_accounts: nil)
1266
+ def initialize(bank_accounts: nil, crypto_wallets: nil)
1087
1267
  @bank_accounts = bank_accounts
1268
+ @crypto_wallets = crypto_wallets
1088
1269
  end
1089
1270
  end
1090
1271
 
@@ -1115,17 +1296,29 @@ module Stripe
1115
1296
  @requested = requested
1116
1297
  end
1117
1298
  end
1299
+
1300
+ class Usdc < ::Stripe::RequestParams
1301
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1302
+ attr_accessor :requested
1303
+
1304
+ def initialize(requested: nil)
1305
+ @requested = requested
1306
+ end
1307
+ end
1118
1308
  # Can hold storage-type funds on Stripe in EUR.
1119
1309
  attr_accessor :eur
1120
1310
  # Can hold storage-type funds on Stripe in GBP.
1121
1311
  attr_accessor :gbp
1122
1312
  # Can hold storage-type funds on Stripe in USD.
1123
1313
  attr_accessor :usd
1314
+ # Can hold storage-type funds on Stripe in USDC.
1315
+ attr_accessor :usdc
1124
1316
 
1125
- def initialize(eur: nil, gbp: nil, usd: nil)
1317
+ def initialize(eur: nil, gbp: nil, usd: nil, usdc: nil)
1126
1318
  @eur = eur
1127
1319
  @gbp = gbp
1128
1320
  @usd = usd
1321
+ @usdc = usdc
1129
1322
  end
1130
1323
  end
1131
1324
 
@@ -1165,6 +1358,15 @@ module Stripe
1165
1358
  end
1166
1359
  end
1167
1360
 
1361
+ class CryptoWallets < ::Stripe::RequestParams
1362
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1363
+ attr_accessor :requested
1364
+
1365
+ def initialize(requested: nil)
1366
+ @requested = requested
1367
+ end
1368
+ end
1369
+
1168
1370
  class FinancialAccounts < ::Stripe::RequestParams
1169
1371
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1170
1372
  attr_accessor :requested
@@ -1177,12 +1379,20 @@ module Stripe
1177
1379
  attr_accessor :bank_accounts
1178
1380
  # Can send funds from a FinancialAccount to a debit card owned by someone else.
1179
1381
  attr_accessor :cards
1382
+ # Can send funds from a FinancialAccount to a crypto wallet owned by someone else.
1383
+ attr_accessor :crypto_wallets
1180
1384
  # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1181
1385
  attr_accessor :financial_accounts
1182
1386
 
1183
- def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1387
+ def initialize(
1388
+ bank_accounts: nil,
1389
+ cards: nil,
1390
+ crypto_wallets: nil,
1391
+ financial_accounts: nil
1392
+ )
1184
1393
  @bank_accounts = bank_accounts
1185
1394
  @cards = cards
1395
+ @crypto_wallets = crypto_wallets
1186
1396
  @financial_accounts = financial_accounts
1187
1397
  end
1188
1398
  end
@@ -1197,6 +1407,15 @@ module Stripe
1197
1407
  end
1198
1408
  end
1199
1409
 
1410
+ class CryptoWallets < ::Stripe::RequestParams
1411
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1412
+ attr_accessor :requested
1413
+
1414
+ def initialize(requested: nil)
1415
+ @requested = requested
1416
+ end
1417
+ end
1418
+
1200
1419
  class FinancialAccounts < ::Stripe::RequestParams
1201
1420
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1202
1421
  attr_accessor :requested
@@ -1207,11 +1426,14 @@ module Stripe
1207
1426
  end
1208
1427
  # Can send funds from a FinancialAccount to a bank account owned by yourself.
1209
1428
  attr_accessor :bank_accounts
1429
+ # Can send funds from a FinancialAccount to a crypto wallet owned by yourself.
1430
+ attr_accessor :crypto_wallets
1210
1431
  # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1211
1432
  attr_accessor :financial_accounts
1212
1433
 
1213
- def initialize(bank_accounts: nil, financial_accounts: nil)
1434
+ def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil)
1214
1435
  @bank_accounts = bank_accounts
1436
+ @crypto_wallets = crypto_wallets
1215
1437
  @financial_accounts = financial_accounts
1216
1438
  end
1217
1439
  end
@@ -1240,26 +1462,101 @@ module Stripe
1240
1462
  @outbound_transfers = outbound_transfers
1241
1463
  end
1242
1464
  end
1465
+
1466
+ class RegulatedActivity < ::Stripe::RequestParams
1467
+ # A detailed description of the regulated activities the business is licensed to conduct.
1468
+ attr_accessor :description
1469
+ # The license number or registration number assigned by the business's primary regulator.
1470
+ attr_accessor :license_number
1471
+ # The country of the primary regulatory authority that oversees the business's regulated activities.
1472
+ attr_accessor :primary_regulatory_authority_country
1473
+ # The name of the primary regulatory authority that oversees the business's regulated activities.
1474
+ attr_accessor :primary_regulatory_authority_name
1475
+
1476
+ def initialize(
1477
+ description: nil,
1478
+ license_number: nil,
1479
+ primary_regulatory_authority_country: nil,
1480
+ primary_regulatory_authority_name: nil
1481
+ )
1482
+ @description = description
1483
+ @license_number = license_number
1484
+ @primary_regulatory_authority_country = primary_regulatory_authority_country
1485
+ @primary_regulatory_authority_name = primary_regulatory_authority_name
1486
+ end
1487
+ end
1243
1488
  # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1244
1489
  attr_accessor :applied
1245
1490
  # Capabilities to request on the Storer Configuration.
1246
1491
  attr_accessor :capabilities
1492
+ # List of high-risk activities the business is involved in.
1493
+ attr_accessor :high_risk_activities
1494
+ # Description of the high-risk activities the business offers.
1495
+ attr_accessor :high_risk_activities_description
1496
+ # Description of the money services offered by the business.
1497
+ attr_accessor :money_services_description
1498
+ # Does the business operate in any prohibited countries.
1499
+ attr_accessor :operates_in_prohibited_countries
1500
+ # Indicates whether the business participates in any regulated activity.
1501
+ attr_accessor :participates_in_regulated_activity
1502
+ # Primary purpose of the stored funds.
1503
+ attr_accessor :purpose_of_funds
1504
+ # Description of the purpose of the stored funds.
1505
+ attr_accessor :purpose_of_funds_description
1506
+ # Details of the regulated activity if the business participates in one.
1507
+ attr_accessor :regulated_activity
1508
+ # The source of funds for the business, e.g. profits, income, venture capital, etc.
1509
+ attr_accessor :source_of_funds
1510
+ # Description of the source of funds for the business' account.
1511
+ attr_accessor :source_of_funds_description
1247
1512
 
1248
- def initialize(applied: nil, capabilities: nil)
1513
+ def initialize(
1514
+ applied: nil,
1515
+ capabilities: nil,
1516
+ high_risk_activities: nil,
1517
+ high_risk_activities_description: nil,
1518
+ money_services_description: nil,
1519
+ operates_in_prohibited_countries: nil,
1520
+ participates_in_regulated_activity: nil,
1521
+ purpose_of_funds: nil,
1522
+ purpose_of_funds_description: nil,
1523
+ regulated_activity: nil,
1524
+ source_of_funds: nil,
1525
+ source_of_funds_description: nil
1526
+ )
1249
1527
  @applied = applied
1250
1528
  @capabilities = capabilities
1529
+ @high_risk_activities = high_risk_activities
1530
+ @high_risk_activities_description = high_risk_activities_description
1531
+ @money_services_description = money_services_description
1532
+ @operates_in_prohibited_countries = operates_in_prohibited_countries
1533
+ @participates_in_regulated_activity = participates_in_regulated_activity
1534
+ @purpose_of_funds = purpose_of_funds
1535
+ @purpose_of_funds_description = purpose_of_funds_description
1536
+ @regulated_activity = regulated_activity
1537
+ @source_of_funds = source_of_funds
1538
+ @source_of_funds_description = source_of_funds_description
1251
1539
  end
1252
1540
  end
1541
+ # The CardCreator Configuration allows the Account to create and issue cards to users.
1542
+ attr_accessor :card_creator
1253
1543
  # The Customer Configuration allows the Account to be charged.
1254
1544
  attr_accessor :customer
1255
- # 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.
1545
+ # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
1256
1546
  attr_accessor :merchant
1257
- # The Recipient Configuration allows the Account to receive funds.
1547
+ # The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
1258
1548
  attr_accessor :recipient
1259
1549
  # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1260
1550
  attr_accessor :storer
1261
1551
 
1262
- def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1552
+ def initialize(
1553
+ card_creator: nil,
1554
+ customer: nil,
1555
+ merchant: nil,
1556
+ recipient: nil,
1557
+ storer: nil
1558
+ )
1559
+ @card_creator = card_creator
1263
1560
  @customer = customer
1264
1561
  @merchant = merchant
1265
1562
  @recipient = recipient
@@ -1397,6 +1694,395 @@ module Stripe
1397
1694
  end
1398
1695
  end
1399
1696
 
1697
+ class CardCreator < ::Stripe::RequestParams
1698
+ class Commercial < ::Stripe::RequestParams
1699
+ class AccountHolder < ::Stripe::RequestParams
1700
+ # 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.
1701
+ attr_accessor :date
1702
+ # The IP address from which the Account's representative accepted the terms of service.
1703
+ attr_accessor :ip
1704
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1705
+ attr_accessor :user_agent
1706
+
1707
+ def initialize(date: nil, ip: nil, user_agent: nil)
1708
+ @date = date
1709
+ @ip = ip
1710
+ @user_agent = user_agent
1711
+ end
1712
+ end
1713
+
1714
+ class Celtic < ::Stripe::RequestParams
1715
+ class ApplePay < ::Stripe::RequestParams
1716
+ # 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.
1717
+ attr_accessor :date
1718
+ # The IP address from which the Account's representative accepted the terms of service.
1719
+ attr_accessor :ip
1720
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1721
+ attr_accessor :user_agent
1722
+
1723
+ def initialize(date: nil, ip: nil, user_agent: nil)
1724
+ @date = date
1725
+ @ip = ip
1726
+ @user_agent = user_agent
1727
+ end
1728
+ end
1729
+
1730
+ class ChargeCard < ::Stripe::RequestParams
1731
+ class BankTerms < ::Stripe::RequestParams
1732
+ # 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.
1733
+ attr_accessor :date
1734
+ # The IP address from which the Account's representative accepted the terms of service.
1735
+ attr_accessor :ip
1736
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1737
+ attr_accessor :user_agent
1738
+
1739
+ def initialize(date: nil, ip: nil, user_agent: nil)
1740
+ @date = date
1741
+ @ip = ip
1742
+ @user_agent = user_agent
1743
+ end
1744
+ end
1745
+
1746
+ class Platform < ::Stripe::RequestParams
1747
+ # 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.
1748
+ attr_accessor :date
1749
+ # The IP address from which the Account's representative accepted the terms of service.
1750
+ attr_accessor :ip
1751
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1752
+ attr_accessor :user_agent
1753
+
1754
+ def initialize(date: nil, ip: nil, user_agent: nil)
1755
+ @date = date
1756
+ @ip = ip
1757
+ @user_agent = user_agent
1758
+ end
1759
+ end
1760
+ # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1761
+ attr_accessor :bank_terms
1762
+ # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1763
+ attr_accessor :platform
1764
+
1765
+ def initialize(bank_terms: nil, platform: nil)
1766
+ @bank_terms = bank_terms
1767
+ @platform = platform
1768
+ end
1769
+ end
1770
+
1771
+ class SpendCard < ::Stripe::RequestParams
1772
+ class BankTerms < ::Stripe::RequestParams
1773
+ # 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.
1774
+ attr_accessor :date
1775
+ # The IP address from which the Account's representative accepted the terms of service.
1776
+ attr_accessor :ip
1777
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1778
+ attr_accessor :user_agent
1779
+
1780
+ def initialize(date: nil, ip: nil, user_agent: nil)
1781
+ @date = date
1782
+ @ip = ip
1783
+ @user_agent = user_agent
1784
+ end
1785
+ end
1786
+
1787
+ class FinancingDisclosures < ::Stripe::RequestParams
1788
+ # 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.
1789
+ attr_accessor :date
1790
+ # The IP address from which the Account's representative accepted the terms of service.
1791
+ attr_accessor :ip
1792
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1793
+ attr_accessor :user_agent
1794
+
1795
+ def initialize(date: nil, ip: nil, user_agent: nil)
1796
+ @date = date
1797
+ @ip = ip
1798
+ @user_agent = user_agent
1799
+ end
1800
+ end
1801
+
1802
+ class Platform < ::Stripe::RequestParams
1803
+ # 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.
1804
+ attr_accessor :date
1805
+ # The IP address from which the Account's representative accepted the terms of service.
1806
+ attr_accessor :ip
1807
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1808
+ attr_accessor :user_agent
1809
+
1810
+ def initialize(date: nil, ip: nil, user_agent: nil)
1811
+ @date = date
1812
+ @ip = ip
1813
+ @user_agent = user_agent
1814
+ end
1815
+ end
1816
+ # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1817
+ attr_accessor :bank_terms
1818
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1819
+ attr_accessor :financing_disclosures
1820
+ # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1821
+ attr_accessor :platform
1822
+
1823
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1824
+ @bank_terms = bank_terms
1825
+ @financing_disclosures = financing_disclosures
1826
+ @platform = platform
1827
+ end
1828
+ end
1829
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
1830
+ attr_accessor :apple_pay
1831
+ # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor.
1832
+ attr_accessor :charge_card
1833
+ # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor.
1834
+ attr_accessor :spend_card
1835
+
1836
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1837
+ @apple_pay = apple_pay
1838
+ @charge_card = charge_card
1839
+ @spend_card = spend_card
1840
+ end
1841
+ end
1842
+
1843
+ class CrossRiverBank < ::Stripe::RequestParams
1844
+ class ApplePay < ::Stripe::RequestParams
1845
+ # 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.
1846
+ attr_accessor :date
1847
+ # The IP address from which the Account's representative accepted the terms of service.
1848
+ attr_accessor :ip
1849
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1850
+ attr_accessor :user_agent
1851
+
1852
+ def initialize(date: nil, ip: nil, user_agent: nil)
1853
+ @date = date
1854
+ @ip = ip
1855
+ @user_agent = user_agent
1856
+ end
1857
+ end
1858
+
1859
+ class ChargeCard < ::Stripe::RequestParams
1860
+ class BankTerms < ::Stripe::RequestParams
1861
+ # 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.
1862
+ attr_accessor :date
1863
+ # The IP address from which the Account's representative accepted the terms of service.
1864
+ attr_accessor :ip
1865
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1866
+ attr_accessor :user_agent
1867
+
1868
+ def initialize(date: nil, ip: nil, user_agent: nil)
1869
+ @date = date
1870
+ @ip = ip
1871
+ @user_agent = user_agent
1872
+ end
1873
+ end
1874
+
1875
+ class FinancingDisclosures < ::Stripe::RequestParams
1876
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1877
+ attr_accessor :date
1878
+ # The IP address from which the Account's representative accepted the terms of service.
1879
+ attr_accessor :ip
1880
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1881
+ attr_accessor :user_agent
1882
+
1883
+ def initialize(date: nil, ip: nil, user_agent: nil)
1884
+ @date = date
1885
+ @ip = ip
1886
+ @user_agent = user_agent
1887
+ end
1888
+ end
1889
+
1890
+ class Platform < ::Stripe::RequestParams
1891
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1892
+ attr_accessor :date
1893
+ # The IP address from which the Account's representative accepted the terms of service.
1894
+ attr_accessor :ip
1895
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1896
+ attr_accessor :user_agent
1897
+
1898
+ def initialize(date: nil, ip: nil, user_agent: nil)
1899
+ @date = date
1900
+ @ip = ip
1901
+ @user_agent = user_agent
1902
+ end
1903
+ end
1904
+ # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1905
+ attr_accessor :bank_terms
1906
+ # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1907
+ attr_accessor :financing_disclosures
1908
+ # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1909
+ attr_accessor :platform
1910
+
1911
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1912
+ @bank_terms = bank_terms
1913
+ @financing_disclosures = financing_disclosures
1914
+ @platform = platform
1915
+ end
1916
+ end
1917
+
1918
+ class SpendCard < ::Stripe::RequestParams
1919
+ class BankTerms < ::Stripe::RequestParams
1920
+ # 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.
1921
+ attr_accessor :date
1922
+ # The IP address from which the Account's representative accepted the terms of service.
1923
+ attr_accessor :ip
1924
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1925
+ attr_accessor :user_agent
1926
+
1927
+ def initialize(date: nil, ip: nil, user_agent: nil)
1928
+ @date = date
1929
+ @ip = ip
1930
+ @user_agent = user_agent
1931
+ end
1932
+ end
1933
+
1934
+ class FinancingDisclosures < ::Stripe::RequestParams
1935
+ # 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.
1936
+ attr_accessor :date
1937
+ # The IP address from which the Account's representative accepted the terms of service.
1938
+ attr_accessor :ip
1939
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1940
+ attr_accessor :user_agent
1941
+
1942
+ def initialize(date: nil, ip: nil, user_agent: nil)
1943
+ @date = date
1944
+ @ip = ip
1945
+ @user_agent = user_agent
1946
+ end
1947
+ end
1948
+ # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1949
+ attr_accessor :bank_terms
1950
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1951
+ attr_accessor :financing_disclosures
1952
+
1953
+ def initialize(bank_terms: nil, financing_disclosures: nil)
1954
+ @bank_terms = bank_terms
1955
+ @financing_disclosures = financing_disclosures
1956
+ end
1957
+ end
1958
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor.
1959
+ attr_accessor :apple_pay
1960
+ # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1961
+ attr_accessor :charge_card
1962
+ # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1963
+ attr_accessor :spend_card
1964
+
1965
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1966
+ @apple_pay = apple_pay
1967
+ @charge_card = charge_card
1968
+ @spend_card = spend_card
1969
+ end
1970
+ end
1971
+
1972
+ class GlobalAccountHolder < ::Stripe::RequestParams
1973
+ # 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.
1974
+ attr_accessor :date
1975
+ # The IP address from which the Account's representative accepted the terms of service.
1976
+ attr_accessor :ip
1977
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1978
+ attr_accessor :user_agent
1979
+
1980
+ def initialize(date: nil, ip: nil, user_agent: nil)
1981
+ @date = date
1982
+ @ip = ip
1983
+ @user_agent = user_agent
1984
+ end
1985
+ end
1986
+
1987
+ class Lead < ::Stripe::RequestParams
1988
+ class ApplePay < ::Stripe::RequestParams
1989
+ # 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.
1990
+ attr_accessor :date
1991
+ # The IP address from which the Account's representative accepted the terms of service.
1992
+ attr_accessor :ip
1993
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1994
+ attr_accessor :user_agent
1995
+
1996
+ def initialize(date: nil, ip: nil, user_agent: nil)
1997
+ @date = date
1998
+ @ip = ip
1999
+ @user_agent = user_agent
2000
+ end
2001
+ end
2002
+
2003
+ class PrepaidCard < ::Stripe::RequestParams
2004
+ class BankTerms < ::Stripe::RequestParams
2005
+ # 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.
2006
+ attr_accessor :date
2007
+ # The IP address from which the Account's representative accepted the terms of service.
2008
+ attr_accessor :ip
2009
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2010
+ attr_accessor :user_agent
2011
+
2012
+ def initialize(date: nil, ip: nil, user_agent: nil)
2013
+ @date = date
2014
+ @ip = ip
2015
+ @user_agent = user_agent
2016
+ end
2017
+ end
2018
+
2019
+ class Platform < ::Stripe::RequestParams
2020
+ # 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.
2021
+ attr_accessor :date
2022
+ # The IP address from which the Account's representative accepted the terms of service.
2023
+ attr_accessor :ip
2024
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
2025
+ attr_accessor :user_agent
2026
+
2027
+ def initialize(date: nil, ip: nil, user_agent: nil)
2028
+ @date = date
2029
+ @ip = ip
2030
+ @user_agent = user_agent
2031
+ end
2032
+ end
2033
+ # Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
2034
+ attr_accessor :bank_terms
2035
+ # Platform terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
2036
+ attr_accessor :platform
2037
+
2038
+ def initialize(bank_terms: nil, platform: nil)
2039
+ @bank_terms = bank_terms
2040
+ @platform = platform
2041
+ end
2042
+ end
2043
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN sponsor.
2044
+ attr_accessor :apple_pay
2045
+ # Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN sponsor.
2046
+ attr_accessor :prepaid_card
2047
+
2048
+ def initialize(apple_pay: nil, prepaid_card: nil)
2049
+ @apple_pay = apple_pay
2050
+ @prepaid_card = prepaid_card
2051
+ end
2052
+ end
2053
+ # Terms of service acceptances for Stripe commercial card issuing.
2054
+ attr_accessor :account_holder
2055
+ # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
2056
+ attr_accessor :celtic
2057
+ # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
2058
+ attr_accessor :cross_river_bank
2059
+ # Terms of service acceptances for Stripe commercial card Global issuing.
2060
+ attr_accessor :global_account_holder
2061
+ # Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
2062
+ attr_accessor :lead
2063
+
2064
+ def initialize(
2065
+ account_holder: nil,
2066
+ celtic: nil,
2067
+ cross_river_bank: nil,
2068
+ global_account_holder: nil,
2069
+ lead: nil
2070
+ )
2071
+ @account_holder = account_holder
2072
+ @celtic = celtic
2073
+ @cross_river_bank = cross_river_bank
2074
+ @global_account_holder = global_account_holder
2075
+ @lead = lead
2076
+ end
2077
+ end
2078
+ # Terms of service acceptances to create cards for commercial issuing use cases.
2079
+ attr_accessor :commercial
2080
+
2081
+ def initialize(commercial: nil)
2082
+ @commercial = commercial
2083
+ end
2084
+ end
2085
+
1400
2086
  class CryptoStorer < ::Stripe::RequestParams
1401
2087
  # 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.
1402
2088
  attr_accessor :date
@@ -1428,13 +2114,16 @@ module Stripe
1428
2114
  end
1429
2115
  # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1430
2116
  attr_accessor :account
2117
+ # Details on the Account's acceptance of Issuing-specific terms of service.
2118
+ attr_accessor :card_creator
1431
2119
  # Details on the Account's acceptance of Crypto-storer-specific terms of service.
1432
2120
  attr_accessor :crypto_storer
1433
2121
  # Details on the Account's acceptance of Treasury-specific terms of service.
1434
2122
  attr_accessor :storer
1435
2123
 
1436
- def initialize(account: nil, crypto_storer: nil, storer: nil)
2124
+ def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
1437
2125
  @account = account
2126
+ @card_creator = card_creator
1438
2127
  @crypto_storer = crypto_storer
1439
2128
  @storer = storer
1440
2129
  end
@@ -1479,7 +2168,7 @@ module Stripe
1479
2168
  attr_accessor :postal_code
1480
2169
  # State, county, province, or region.
1481
2170
  attr_accessor :state
1482
- # Town or cho-me.
2171
+ # Town or district.
1483
2172
  attr_accessor :town
1484
2173
 
1485
2174
  def initialize(
@@ -1502,6 +2191,17 @@ module Stripe
1502
2191
  end
1503
2192
 
1504
2193
  class AnnualRevenue < ::Stripe::RequestParams
2194
+ class Amount < ::Stripe::RequestParams
2195
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2196
+ attr_accessor :value
2197
+ # 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).
2198
+ attr_accessor :currency
2199
+
2200
+ def initialize(value: nil, currency: nil)
2201
+ @value = value
2202
+ @currency = currency
2203
+ end
2204
+ end
1505
2205
  # A non-negative integer representing the amount in the smallest currency unit.
1506
2206
  attr_accessor :amount
1507
2207
  # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
@@ -1706,6 +2406,17 @@ module Stripe
1706
2406
  end
1707
2407
 
1708
2408
  class MonthlyEstimatedRevenue < ::Stripe::RequestParams
2409
+ class Amount < ::Stripe::RequestParams
2410
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
2411
+ attr_accessor :value
2412
+ # 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).
2413
+ attr_accessor :currency
2414
+
2415
+ def initialize(value: nil, currency: nil)
2416
+ @value = value
2417
+ @currency = currency
2418
+ end
2419
+ end
1709
2420
  # A non-negative integer representing the amount in the smallest currency unit.
1710
2421
  attr_accessor :amount
1711
2422
 
@@ -1728,7 +2439,7 @@ module Stripe
1728
2439
  attr_accessor :postal_code
1729
2440
  # State, county, province, or region.
1730
2441
  attr_accessor :state
1731
- # Town or cho-me.
2442
+ # Town or district.
1732
2443
  attr_accessor :town
1733
2444
 
1734
2445
  def initialize(
@@ -1763,7 +2474,7 @@ module Stripe
1763
2474
  attr_accessor :postal_code
1764
2475
  # State, county, province, or region.
1765
2476
  attr_accessor :state
1766
- # Town or cho-me.
2477
+ # Town or district.
1767
2478
  attr_accessor :town
1768
2479
 
1769
2480
  def initialize(
@@ -1827,9 +2538,11 @@ module Stripe
1827
2538
  attr_accessor :address
1828
2539
  # The business gross annual revenue for its preceding fiscal year.
1829
2540
  attr_accessor :annual_revenue
2541
+ # A detailed description of the business's compliance and anti-money laundering controls and practices.
2542
+ attr_accessor :compliance_screening_description
1830
2543
  # A document verifying the business.
1831
2544
  attr_accessor :documents
1832
- # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2545
+ # Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
1833
2546
  attr_accessor :estimated_worker_count
1834
2547
  # The ID numbers of a business entity.
1835
2548
  attr_accessor :id_numbers
@@ -1849,6 +2562,7 @@ module Stripe
1849
2562
  def initialize(
1850
2563
  address: nil,
1851
2564
  annual_revenue: nil,
2565
+ compliance_screening_description: nil,
1852
2566
  documents: nil,
1853
2567
  estimated_worker_count: nil,
1854
2568
  id_numbers: nil,
@@ -1861,6 +2575,7 @@ module Stripe
1861
2575
  )
1862
2576
  @address = address
1863
2577
  @annual_revenue = annual_revenue
2578
+ @compliance_screening_description = compliance_screening_description
1864
2579
  @documents = documents
1865
2580
  @estimated_worker_count = estimated_worker_count
1866
2581
  @id_numbers = id_numbers
@@ -1889,7 +2604,7 @@ module Stripe
1889
2604
  attr_accessor :purpose
1890
2605
  # State, county, province, or region.
1891
2606
  attr_accessor :state
1892
- # Town or cho-me.
2607
+ # Town or district.
1893
2608
  attr_accessor :town
1894
2609
 
1895
2610
  def initialize(
@@ -1944,7 +2659,7 @@ module Stripe
1944
2659
  attr_accessor :postal_code
1945
2660
  # State, county, province, or region.
1946
2661
  attr_accessor :state
1947
- # Town or cho-me.
2662
+ # Town or district.
1948
2663
  attr_accessor :town
1949
2664
 
1950
2665
  def initialize(
@@ -2142,7 +2857,7 @@ module Stripe
2142
2857
  attr_accessor :postal_code
2143
2858
  # State, county, province, or region.
2144
2859
  attr_accessor :state
2145
- # Town or cho-me.
2860
+ # Town or district.
2146
2861
  attr_accessor :town
2147
2862
 
2148
2863
  def initialize(
@@ -2177,7 +2892,7 @@ module Stripe
2177
2892
  attr_accessor :postal_code
2178
2893
  # State, county, province, or region.
2179
2894
  attr_accessor :state
2180
- # Town or cho-me.
2895
+ # Town or district.
2181
2896
  attr_accessor :town
2182
2897
 
2183
2898
  def initialize(