stripe 17.1.0 → 17.2.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (896) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +1037 -0
  6. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  7. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  8. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  9. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  10. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  11. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  12. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  13. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  14. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  16. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  17. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  18. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  19. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  20. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  21. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  22. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  23. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  25. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  26. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  27. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  28. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  29. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  30. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  31. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  32. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  33. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  34. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  35. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  36. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  37. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  38. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  39. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  40. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  41. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  42. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  44. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  46. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  47. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  48. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  49. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  50. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  51. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  52. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  53. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  56. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  57. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  59. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  60. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  61. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  62. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  63. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  64. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  65. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  67. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  68. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  69. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  70. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  72. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  73. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  74. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  75. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  76. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  77. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  78. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  79. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  80. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  81. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  82. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  83. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  89. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  90. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  91. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  92. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  93. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  94. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  95. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  96. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  97. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  98. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  99. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  100. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  101. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  102. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  111. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  113. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  114. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  115. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  116. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  117. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  118. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  119. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  120. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  123. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  125. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  127. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  128. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  129. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  130. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  132. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  133. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  134. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  135. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  136. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  137. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  139. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  140. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  141. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  143. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  144. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  145. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  147. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  148. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  149. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  150. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  151. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  154. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  156. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  157. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  158. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  160. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  161. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  162. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  164. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  165. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  166. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  167. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  168. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  169. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  170. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  171. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  172. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  173. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  174. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  175. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  176. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  177. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  178. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  179. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  180. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  181. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  182. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  183. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  184. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  185. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  186. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  187. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  188. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  189. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  190. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  191. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  192. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  194. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  195. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  196. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  198. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  215. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  217. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  229. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  230. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  240. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  245. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  248. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  260. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  261. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  271. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  272. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  308. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  315. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  316. data/lib/stripe/object_types.rb +81 -0
  317. data/lib/stripe/params/account_create_params.rb +300 -1
  318. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  319. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  320. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  321. data/lib/stripe/params/account_session_create_params.rb +226 -1
  322. data/lib/stripe/params/account_update_params.rb +262 -0
  323. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  324. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  325. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  326. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  327. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  328. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  329. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  330. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  331. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  332. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  333. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  334. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  335. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  336. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  337. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  338. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  339. data/lib/stripe/params/charge_capture_params.rb +709 -0
  340. data/lib/stripe/params/charge_update_params.rb +709 -0
  341. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  342. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  343. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  344. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  345. data/lib/stripe/params/coupon_create_params.rb +17 -1
  346. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  347. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  348. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
  349. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  350. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  351. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  352. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  353. data/lib/stripe/params/dispute_update_params.rb +10 -1
  354. data/lib/stripe/params/external_account_create_params.rb +134 -0
  355. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  356. data/lib/stripe/params/external_account_list_params.rb +25 -0
  357. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  358. data/lib/stripe/params/external_account_update_params.rb +91 -0
  359. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  360. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  361. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  362. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  363. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  364. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  365. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  366. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  367. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  368. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  369. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  370. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  372. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  373. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  374. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  375. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  376. data/lib/stripe/params/invoice_create_params.rb +112 -2
  377. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  378. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  379. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  380. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  381. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  382. data/lib/stripe/params/invoice_list_params.rb +8 -0
  383. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  384. data/lib/stripe/params/invoice_update_params.rb +108 -2
  385. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  386. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  387. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  388. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  389. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  390. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  391. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  392. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  393. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  394. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  395. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  396. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  397. data/lib/stripe/params/mandate_list_params.rb +39 -0
  398. data/lib/stripe/params/margin_create_params.rb +25 -0
  399. data/lib/stripe/params/margin_list_params.rb +25 -0
  400. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  401. data/lib/stripe/params/margin_update_params.rb +22 -0
  402. data/lib/stripe/params/order_cancel_params.rb +13 -0
  403. data/lib/stripe/params/order_create_params.rb +1124 -0
  404. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  405. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  406. data/lib/stripe/params/order_list_params.rb +25 -0
  407. data/lib/stripe/params/order_reopen_params.rb +13 -0
  408. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  409. data/lib/stripe/params/order_submit_params.rb +16 -0
  410. data/lib/stripe/params/order_update_params.rb +1128 -0
  411. data/lib/stripe/params/payment_intent_capture_params.rb +736 -30
  412. data/lib/stripe/params/payment_intent_confirm_params.rb +1231 -33
  413. data/lib/stripe/params/payment_intent_create_params.rb +1247 -41
  414. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  415. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +63 -29
  416. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  417. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  418. data/lib/stripe/params/payment_intent_update_params.rb +1279 -42
  419. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  420. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  421. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  422. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  423. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  424. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  425. data/lib/stripe/params/price_update_params.rb +19 -0
  426. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  427. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  428. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  429. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  430. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  431. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  432. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  433. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  434. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  435. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  436. data/lib/stripe/params/quote_create_params.rb +805 -3
  437. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  438. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  439. data/lib/stripe/params/quote_list_params.rb +8 -0
  440. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  441. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  442. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  443. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  444. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  445. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  446. data/lib/stripe/params/quote_update_params.rb +813 -4
  447. data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
  448. data/lib/stripe/params/setup_intent_create_params.rb +260 -3
  449. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  450. data/lib/stripe/params/setup_intent_update_params.rb +261 -4
  451. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  452. data/lib/stripe/params/subscription_create_params.rb +259 -5
  453. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  454. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  455. data/lib/stripe/params/subscription_list_params.rb +4 -0
  456. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  457. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  458. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  459. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  460. data/lib/stripe/params/subscription_update_params.rb +238 -4
  461. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  462. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  463. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  464. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  465. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  466. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  467. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  468. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  469. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  470. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  471. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  472. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  473. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  474. data/lib/stripe/params/transfer_create_params.rb +9 -1
  475. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  476. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  477. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  478. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  479. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  480. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  481. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  482. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  483. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  484. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  485. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  486. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  487. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  488. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  489. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  490. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  491. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  492. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  493. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  494. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  495. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  496. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  497. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  498. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  499. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  500. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  501. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  502. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  503. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  504. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  505. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  506. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  507. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  508. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  509. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  510. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  511. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  512. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  513. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  514. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  515. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  516. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  517. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  518. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  519. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  520. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  521. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  522. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  523. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  524. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  525. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  526. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  527. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  528. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  529. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  530. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  531. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  532. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  533. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  534. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  535. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  536. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  537. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  538. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  539. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  540. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  541. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  542. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  543. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  544. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  545. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  546. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  547. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  548. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  549. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  550. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  551. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  552. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  553. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  554. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  555. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  556. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  557. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  558. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  559. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  560. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  561. data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
  562. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  563. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  564. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  565. data/lib/stripe/params/v2/core/account_create_params.rb +2943 -0
  566. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  567. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  568. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  569. data/lib/stripe/params/v2/core/account_update_params.rb +2975 -0
  570. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  571. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  572. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  573. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  574. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  575. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  576. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  577. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  578. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  579. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  580. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  581. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  582. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  583. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  584. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  585. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  586. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  587. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  588. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  589. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  590. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  591. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  593. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  594. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  595. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  596. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  597. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  598. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  599. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  600. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  601. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  602. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  603. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  604. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  605. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  606. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  607. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  608. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  609. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  610. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  611. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  612. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  613. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  614. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  615. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  616. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  617. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  618. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  619. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  620. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  621. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  622. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  623. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  624. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  626. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  627. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  628. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  629. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  630. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  631. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  632. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  633. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  634. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  635. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  636. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  637. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  638. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  639. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  640. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  641. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  642. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  643. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  644. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  645. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  646. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  647. data/lib/stripe/params.rb +246 -0
  648. data/lib/stripe/resources/account.rb +166 -1
  649. data/lib/stripe/resources/account_notice.rb +94 -0
  650. data/lib/stripe/resources/account_session.rb +81 -0
  651. data/lib/stripe/resources/application_fee.rb +2 -0
  652. data/lib/stripe/resources/balance.rb +83 -0
  653. data/lib/stripe/resources/billing/alert.rb +105 -1
  654. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  655. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  656. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  657. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  658. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  659. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  660. data/lib/stripe/resources/billing/meter.rb +2 -0
  661. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  662. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  663. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  664. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  665. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  666. data/lib/stripe/resources/card.rb +20 -1
  667. data/lib/stripe/resources/cash_balance.rb +2 -0
  668. data/lib/stripe/resources/charge.rb +253 -1
  669. data/lib/stripe/resources/checkout/session.rb +246 -4
  670. data/lib/stripe/resources/confirmation_token.rb +173 -0
  671. data/lib/stripe/resources/coupon.rb +26 -1
  672. data/lib/stripe/resources/credit_note.rb +2 -0
  673. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  674. data/lib/stripe/resources/customer.rb +2 -0
  675. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  676. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  677. data/lib/stripe/resources/customer_session.rb +38 -0
  678. data/lib/stripe/resources/delegated_checkout/requested_session.rb +402 -0
  679. data/lib/stripe/resources/discount.rb +2 -0
  680. data/lib/stripe/resources/dispute.rb +22 -0
  681. data/lib/stripe/resources/event.rb +64 -1
  682. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  683. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  684. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  685. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  686. data/lib/stripe/resources/fx_quote.rb +147 -0
  687. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  688. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  689. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  690. data/lib/stripe/resources/invoice.rb +152 -1
  691. data/lib/stripe/resources/invoice_item.rb +94 -2
  692. data/lib/stripe/resources/invoice_line_item.rb +131 -1
  693. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  694. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  695. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  696. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  697. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  698. data/lib/stripe/resources/line_item.rb +68 -1
  699. data/lib/stripe/resources/mandate.rb +71 -0
  700. data/lib/stripe/resources/margin.rb +64 -0
  701. data/lib/stripe/resources/order.rb +987 -0
  702. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  703. data/lib/stripe/resources/payment_intent.rb +840 -21
  704. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -13
  705. data/lib/stripe/resources/payment_method.rb +195 -0
  706. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  707. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  708. data/lib/stripe/resources/payment_record.rb +203 -1
  709. data/lib/stripe/resources/price.rb +20 -0
  710. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  711. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  712. data/lib/stripe/resources/promotion_code.rb +2 -0
  713. data/lib/stripe/resources/quote.rb +571 -2
  714. data/lib/stripe/resources/quote_line.rb +521 -0
  715. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  716. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  717. data/lib/stripe/resources/refund.rb +18 -0
  718. data/lib/stripe/resources/setup_attempt.rb +63 -0
  719. data/lib/stripe/resources/setup_intent.rb +172 -1
  720. data/lib/stripe/resources/source.rb +38 -0
  721. data/lib/stripe/resources/subscription.rb +232 -0
  722. data/lib/stripe/resources/subscription_item.rb +20 -1
  723. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  724. data/lib/stripe/resources/tax/association.rb +86 -0
  725. data/lib/stripe/resources/tax/form.rb +264 -0
  726. data/lib/stripe/resources/tax_id.rb +4 -0
  727. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  728. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  729. data/lib/stripe/resources/terminal/reader.rb +8 -0
  730. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  731. data/lib/stripe/resources/transfer.rb +6 -0
  732. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  733. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  734. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  735. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  736. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  737. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  738. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  739. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  740. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  741. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  742. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  743. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  744. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  745. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  746. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  747. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  748. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  749. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  750. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  751. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  752. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  753. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  754. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  755. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  756. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  757. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  758. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  759. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  760. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  761. data/lib/stripe/resources/v2/core/account.rb +4967 -0
  762. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  763. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  764. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  765. data/lib/stripe/resources/v2/core/event.rb +4 -0
  766. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  767. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  768. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  769. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  770. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  771. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  772. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  773. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  774. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  775. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  776. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  777. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  778. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  779. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  780. data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
  781. data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
  782. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  783. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  784. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  785. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  786. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  787. data/lib/stripe/resources.rb +386 -0
  788. data/lib/stripe/services/account_notice_service.rb +39 -0
  789. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  790. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  791. data/lib/stripe/services/billing_service.rb +2 -1
  792. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  793. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  794. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  795. data/lib/stripe/services/capital_service.rb +15 -0
  796. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  797. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  798. data/lib/stripe/services/external_account_service.rb +68 -0
  799. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  800. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  801. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  802. data/lib/stripe/services/financial_connections_service.rb +2 -1
  803. data/lib/stripe/services/fx_quote_service.rb +27 -0
  804. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  805. data/lib/stripe/services/identity_service.rb +2 -1
  806. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  807. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  808. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  809. data/lib/stripe/services/issuing_service.rb +5 -1
  810. data/lib/stripe/services/mandate_service.rb +5 -0
  811. data/lib/stripe/services/margin_service.rb +50 -0
  812. data/lib/stripe/services/order_line_item_service.rb +17 -0
  813. data/lib/stripe/services/order_service.rb +78 -0
  814. data/lib/stripe/services/payment_intent_service.rb +37 -0
  815. data/lib/stripe/services/payment_method_service.rb +11 -0
  816. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  817. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  818. data/lib/stripe/services/privacy_service.rb +13 -0
  819. data/lib/stripe/services/quote_line_service.rb +17 -0
  820. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  821. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  822. data/lib/stripe/services/quote_service.rb +49 -1
  823. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  824. data/lib/stripe/services/subscription_service.rb +11 -0
  825. data/lib/stripe/services/tax/association_service.rb +19 -0
  826. data/lib/stripe/services/tax/form_service.rb +37 -0
  827. data/lib/stripe/services/tax_service.rb +3 -1
  828. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  829. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  830. data/lib/stripe/services/terminal_service.rb +3 -1
  831. data/lib/stripe/services/v1_services.rb +9 -1
  832. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  833. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  834. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  835. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  836. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  837. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  838. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  839. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  840. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  841. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  842. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  843. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  844. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  845. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  846. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  847. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  848. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  849. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  850. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  851. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  852. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  853. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  854. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  855. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  856. data/lib/stripe/services/v2/billing_service.rb +18 -1
  857. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  858. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  859. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  860. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  861. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  862. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  863. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  864. data/lib/stripe/services/v2/core_service.rb +5 -1
  865. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  866. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  867. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  868. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  869. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  870. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  871. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  872. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  873. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  874. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  875. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  876. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  877. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  878. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  879. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  880. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  881. data/lib/stripe/services/v2/payment_service.rb +15 -0
  882. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  883. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  884. data/lib/stripe/services/v2/tax_service.rb +15 -0
  885. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  886. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  887. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  888. data/lib/stripe/services/v2_services.rb +5 -1
  889. data/lib/stripe/services.rb +84 -0
  890. data/lib/stripe/stripe_configuration.rb +3 -1
  891. data/lib/stripe/stripe_object.rb +1 -1
  892. data/lib/stripe/util.rb +7 -1
  893. data/lib/stripe/version.rb +1 -1
  894. data/lib/stripe.rb +53 -0
  895. data/rbi/stripe.rbi +158952 -88420
  896. metadata +720 -4
@@ -79,32 +79,26 @@ module Stripe
79
79
  end
80
80
 
81
81
  class Tax < ::Stripe::RequestParams
82
- # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
83
- #
84
- # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
82
+ # The total tax on an item. Non-negative integer.
85
83
  attr_accessor :total_tax_amount
86
84
 
87
85
  def initialize(total_tax_amount: nil)
88
86
  @total_tax_amount = total_tax_amount
89
87
  end
90
88
  end
91
- # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
92
- #
93
- # This field is mutually exclusive with the `amount_details[discount_amount]` field.
89
+ # The amount an item was discounted for. Positive integer.
94
90
  attr_accessor :discount_amount
95
91
  # Payment method-specific information for line items.
96
92
  attr_accessor :payment_method_options
97
- # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
93
+ # Unique identifier of the product. At most 12 characters long.
98
94
  attr_accessor :product_code
99
- # The product name of the line item. Required for L3 rates. At most 1024 characters long.
100
- #
101
- # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
95
+ # Name of the product. At most 100 characters long.
102
96
  attr_accessor :product_name
103
- # The quantity of items. Required for L3 rates. An integer greater than 0.
97
+ # Number of items of the product. Positive integer.
104
98
  attr_accessor :quantity
105
99
  # Contains information about the tax on the item.
106
100
  attr_accessor :tax
107
- # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
101
+ # Cost of the product. Non-negative integer.
108
102
  attr_accessor :unit_cost
109
103
  # A unit of measure for the line item, such as gallons, feet, meters, etc.
110
104
  attr_accessor :unit_of_measure
@@ -131,11 +125,11 @@ module Stripe
131
125
  end
132
126
 
133
127
  class Shipping < ::Stripe::RequestParams
134
- # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
128
+ # Portion of the amount that is for shipping.
135
129
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
130
+ # The postal code that represents the shipping source.
137
131
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
132
+ # The postal code that represents the shipping destination.
139
133
  attr_accessor :to_postal_code
140
134
 
141
135
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -146,18 +140,14 @@ module Stripe
146
140
  end
147
141
 
148
142
  class Tax < ::Stripe::RequestParams
149
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
150
- #
151
- # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
143
+ # Total portion of the amount that is for tax.
152
144
  attr_accessor :total_tax_amount
153
145
 
154
146
  def initialize(total_tax_amount: nil)
155
147
  @total_tax_amount = total_tax_amount
156
148
  end
157
149
  end
158
- # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
159
- #
160
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
150
+ # The total discount applied on the transaction.
161
151
  attr_accessor :discount_amount
162
152
  # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
163
153
  attr_accessor :line_items
@@ -174,6 +164,31 @@ module Stripe
174
164
  end
175
165
  end
176
166
 
167
+ class Hooks < ::Stripe::RequestParams
168
+ class Inputs < ::Stripe::RequestParams
169
+ class Tax < ::Stripe::RequestParams
170
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
171
+ attr_accessor :calculation
172
+
173
+ def initialize(calculation: nil)
174
+ @calculation = calculation
175
+ end
176
+ end
177
+ # Tax arguments for automations
178
+ attr_accessor :tax
179
+
180
+ def initialize(tax: nil)
181
+ @tax = tax
182
+ end
183
+ end
184
+ # Arguments passed in automations
185
+ attr_accessor :inputs
186
+
187
+ def initialize(inputs: nil)
188
+ @inputs = inputs
189
+ end
190
+ end
191
+
177
192
  class MandateData < ::Stripe::RequestParams
178
193
  class CustomerAcceptance < ::Stripe::RequestParams
179
194
  class Offline < ::Stripe::RequestParams; end
@@ -214,20 +229,728 @@ module Stripe
214
229
  end
215
230
 
216
231
  class PaymentDetails < ::Stripe::RequestParams
217
- # A unique value to identify the customer. This field is available only for card payments.
218
- #
219
- # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
232
+ class Benefit < ::Stripe::RequestParams
233
+ class FrMealVoucher < ::Stripe::RequestParams
234
+ # The 14-digit SIRET of the meal voucher acceptor.
235
+ attr_accessor :siret
236
+
237
+ def initialize(siret: nil)
238
+ @siret = siret
239
+ end
240
+ end
241
+ # French meal voucher benefit details for this PaymentIntent.
242
+ attr_accessor :fr_meal_voucher
243
+
244
+ def initialize(fr_meal_voucher: nil)
245
+ @fr_meal_voucher = fr_meal_voucher
246
+ end
247
+ end
248
+
249
+ class CarRental < ::Stripe::RequestParams
250
+ class Affiliate < ::Stripe::RequestParams
251
+ # The name of the affiliate that originated the purchase.
252
+ attr_accessor :name
253
+
254
+ def initialize(name: nil)
255
+ @name = name
256
+ end
257
+ end
258
+
259
+ class Delivery < ::Stripe::RequestParams
260
+ class Recipient < ::Stripe::RequestParams
261
+ # The email of the recipient the ticket is delivered to.
262
+ attr_accessor :email
263
+ # The name of the recipient the ticket is delivered to.
264
+ attr_accessor :name
265
+ # The phone number of the recipient the ticket is delivered to.
266
+ attr_accessor :phone
267
+
268
+ def initialize(email: nil, name: nil, phone: nil)
269
+ @email = email
270
+ @name = name
271
+ @phone = phone
272
+ end
273
+ end
274
+ # The delivery method for the payment
275
+ attr_accessor :mode
276
+ # Details of the recipient.
277
+ attr_accessor :recipient
278
+
279
+ def initialize(mode: nil, recipient: nil)
280
+ @mode = mode
281
+ @recipient = recipient
282
+ end
283
+ end
284
+
285
+ class Distance < ::Stripe::RequestParams
286
+ # Distance traveled.
287
+ attr_accessor :amount
288
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
289
+ attr_accessor :unit
290
+
291
+ def initialize(amount: nil, unit: nil)
292
+ @amount = amount
293
+ @unit = unit
294
+ end
295
+ end
296
+
297
+ class Driver < ::Stripe::RequestParams
298
+ # Driver's identification number.
299
+ attr_accessor :driver_identification_number
300
+ # Driver's tax number.
301
+ attr_accessor :driver_tax_number
302
+ # Full name of the person or entity on the car reservation.
303
+ attr_accessor :name
304
+
305
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
306
+ @driver_identification_number = driver_identification_number
307
+ @driver_tax_number = driver_tax_number
308
+ @name = name
309
+ end
310
+ end
311
+
312
+ class PickupAddress < ::Stripe::RequestParams
313
+ # City, district, suburb, town, or village.
314
+ attr_accessor :city
315
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
316
+ attr_accessor :country
317
+ # Address line 1, such as the street, PO Box, or company name.
318
+ attr_accessor :line1
319
+ # Address line 2, such as the apartment, suite, unit, or building.
320
+ attr_accessor :line2
321
+ # ZIP or postal code.
322
+ attr_accessor :postal_code
323
+ # State, county, province, or region.
324
+ attr_accessor :state
325
+
326
+ def initialize(
327
+ city: nil,
328
+ country: nil,
329
+ line1: nil,
330
+ line2: nil,
331
+ postal_code: nil,
332
+ state: nil
333
+ )
334
+ @city = city
335
+ @country = country
336
+ @line1 = line1
337
+ @line2 = line2
338
+ @postal_code = postal_code
339
+ @state = state
340
+ end
341
+ end
342
+
343
+ class ReturnAddress < ::Stripe::RequestParams
344
+ # City, district, suburb, town, or village.
345
+ attr_accessor :city
346
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
347
+ attr_accessor :country
348
+ # Address line 1, such as the street, PO Box, or company name.
349
+ attr_accessor :line1
350
+ # Address line 2, such as the apartment, suite, unit, or building.
351
+ attr_accessor :line2
352
+ # ZIP or postal code.
353
+ attr_accessor :postal_code
354
+ # State, county, province, or region.
355
+ attr_accessor :state
356
+
357
+ def initialize(
358
+ city: nil,
359
+ country: nil,
360
+ line1: nil,
361
+ line2: nil,
362
+ postal_code: nil,
363
+ state: nil
364
+ )
365
+ @city = city
366
+ @country = country
367
+ @line1 = line1
368
+ @line2 = line2
369
+ @postal_code = postal_code
370
+ @state = state
371
+ end
372
+ end
373
+ # Affiliate details for this purchase.
374
+ attr_accessor :affiliate
375
+ # The booking number associated with the car rental.
376
+ attr_accessor :booking_number
377
+ # Class code of the car.
378
+ attr_accessor :car_class_code
379
+ # Make of the car.
380
+ attr_accessor :car_make
381
+ # Model of the car.
382
+ attr_accessor :car_model
383
+ # The name of the rental car company.
384
+ attr_accessor :company
385
+ # The customer service phone number of the car rental company.
386
+ attr_accessor :customer_service_phone_number
387
+ # Number of days the car is being rented.
388
+ attr_accessor :days_rented
389
+ # Delivery details for this purchase.
390
+ attr_accessor :delivery
391
+ # The details of the distance traveled during the rental period.
392
+ attr_accessor :distance
393
+ # The details of the passengers in the travel reservation
394
+ attr_accessor :drivers
395
+ # List of additional charges being billed.
396
+ attr_accessor :extra_charges
397
+ # Indicates if the customer did not keep nor cancel their booking.
398
+ attr_accessor :no_show
399
+ # Car pick-up address.
400
+ attr_accessor :pickup_address
401
+ # Car pick-up time. Measured in seconds since the Unix epoch.
402
+ attr_accessor :pickup_at
403
+ # Name of the pickup location.
404
+ attr_accessor :pickup_location_name
405
+ # Rental rate.
406
+ attr_accessor :rate_amount
407
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
408
+ attr_accessor :rate_interval
409
+ # The name of the person or entity renting the car.
410
+ attr_accessor :renter_name
411
+ # Car return address.
412
+ attr_accessor :return_address
413
+ # Car return time. Measured in seconds since the Unix epoch.
414
+ attr_accessor :return_at
415
+ # Name of the return location.
416
+ attr_accessor :return_location_name
417
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
418
+ attr_accessor :tax_exempt
419
+ # The vehicle identification number.
420
+ attr_accessor :vehicle_identification_number
421
+
422
+ def initialize(
423
+ affiliate: nil,
424
+ booking_number: nil,
425
+ car_class_code: nil,
426
+ car_make: nil,
427
+ car_model: nil,
428
+ company: nil,
429
+ customer_service_phone_number: nil,
430
+ days_rented: nil,
431
+ delivery: nil,
432
+ distance: nil,
433
+ drivers: nil,
434
+ extra_charges: nil,
435
+ no_show: nil,
436
+ pickup_address: nil,
437
+ pickup_at: nil,
438
+ pickup_location_name: nil,
439
+ rate_amount: nil,
440
+ rate_interval: nil,
441
+ renter_name: nil,
442
+ return_address: nil,
443
+ return_at: nil,
444
+ return_location_name: nil,
445
+ tax_exempt: nil,
446
+ vehicle_identification_number: nil
447
+ )
448
+ @affiliate = affiliate
449
+ @booking_number = booking_number
450
+ @car_class_code = car_class_code
451
+ @car_make = car_make
452
+ @car_model = car_model
453
+ @company = company
454
+ @customer_service_phone_number = customer_service_phone_number
455
+ @days_rented = days_rented
456
+ @delivery = delivery
457
+ @distance = distance
458
+ @drivers = drivers
459
+ @extra_charges = extra_charges
460
+ @no_show = no_show
461
+ @pickup_address = pickup_address
462
+ @pickup_at = pickup_at
463
+ @pickup_location_name = pickup_location_name
464
+ @rate_amount = rate_amount
465
+ @rate_interval = rate_interval
466
+ @renter_name = renter_name
467
+ @return_address = return_address
468
+ @return_at = return_at
469
+ @return_location_name = return_location_name
470
+ @tax_exempt = tax_exempt
471
+ @vehicle_identification_number = vehicle_identification_number
472
+ end
473
+ end
474
+
475
+ class EventDetails < ::Stripe::RequestParams
476
+ class Address < ::Stripe::RequestParams
477
+ # City, district, suburb, town, or village.
478
+ attr_accessor :city
479
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
480
+ attr_accessor :country
481
+ # Address line 1, such as the street, PO Box, or company name.
482
+ attr_accessor :line1
483
+ # Address line 2, such as the apartment, suite, unit, or building.
484
+ attr_accessor :line2
485
+ # ZIP or postal code.
486
+ attr_accessor :postal_code
487
+ # State, county, province, or region.
488
+ attr_accessor :state
489
+
490
+ def initialize(
491
+ city: nil,
492
+ country: nil,
493
+ line1: nil,
494
+ line2: nil,
495
+ postal_code: nil,
496
+ state: nil
497
+ )
498
+ @city = city
499
+ @country = country
500
+ @line1 = line1
501
+ @line2 = line2
502
+ @postal_code = postal_code
503
+ @state = state
504
+ end
505
+ end
506
+
507
+ class Affiliate < ::Stripe::RequestParams
508
+ # The name of the affiliate that originated the purchase.
509
+ attr_accessor :name
510
+
511
+ def initialize(name: nil)
512
+ @name = name
513
+ end
514
+ end
515
+
516
+ class Delivery < ::Stripe::RequestParams
517
+ class Recipient < ::Stripe::RequestParams
518
+ # The email of the recipient the ticket is delivered to.
519
+ attr_accessor :email
520
+ # The name of the recipient the ticket is delivered to.
521
+ attr_accessor :name
522
+ # The phone number of the recipient the ticket is delivered to.
523
+ attr_accessor :phone
524
+
525
+ def initialize(email: nil, name: nil, phone: nil)
526
+ @email = email
527
+ @name = name
528
+ @phone = phone
529
+ end
530
+ end
531
+ # The delivery method for the payment
532
+ attr_accessor :mode
533
+ # Details of the recipient.
534
+ attr_accessor :recipient
535
+
536
+ def initialize(mode: nil, recipient: nil)
537
+ @mode = mode
538
+ @recipient = recipient
539
+ end
540
+ end
541
+ # Indicates if the tickets are digitally checked when entering the venue.
542
+ attr_accessor :access_controlled_venue
543
+ # The event location's address.
544
+ attr_accessor :address
545
+ # Affiliate details for this purchase.
546
+ attr_accessor :affiliate
547
+ # The name of the company
548
+ attr_accessor :company
549
+ # Delivery details for this purchase.
550
+ attr_accessor :delivery
551
+ # Event end time. Measured in seconds since the Unix epoch.
552
+ attr_accessor :ends_at
553
+ # Type of the event entertainment (concert, sports event etc)
554
+ attr_accessor :genre
555
+ # The name of the event.
556
+ attr_accessor :name
557
+ # Event start time. Measured in seconds since the Unix epoch.
558
+ attr_accessor :starts_at
559
+
560
+ def initialize(
561
+ access_controlled_venue: nil,
562
+ address: nil,
563
+ affiliate: nil,
564
+ company: nil,
565
+ delivery: nil,
566
+ ends_at: nil,
567
+ genre: nil,
568
+ name: nil,
569
+ starts_at: nil
570
+ )
571
+ @access_controlled_venue = access_controlled_venue
572
+ @address = address
573
+ @affiliate = affiliate
574
+ @company = company
575
+ @delivery = delivery
576
+ @ends_at = ends_at
577
+ @genre = genre
578
+ @name = name
579
+ @starts_at = starts_at
580
+ end
581
+ end
582
+
583
+ class Flight < ::Stripe::RequestParams
584
+ class Affiliate < ::Stripe::RequestParams
585
+ # The name of the affiliate that originated the purchase.
586
+ attr_accessor :name
587
+
588
+ def initialize(name: nil)
589
+ @name = name
590
+ end
591
+ end
592
+
593
+ class Delivery < ::Stripe::RequestParams
594
+ class Recipient < ::Stripe::RequestParams
595
+ # The email of the recipient the ticket is delivered to.
596
+ attr_accessor :email
597
+ # The name of the recipient the ticket is delivered to.
598
+ attr_accessor :name
599
+ # The phone number of the recipient the ticket is delivered to.
600
+ attr_accessor :phone
601
+
602
+ def initialize(email: nil, name: nil, phone: nil)
603
+ @email = email
604
+ @name = name
605
+ @phone = phone
606
+ end
607
+ end
608
+ # The delivery method for the payment
609
+ attr_accessor :mode
610
+ # Details of the recipient.
611
+ attr_accessor :recipient
612
+
613
+ def initialize(mode: nil, recipient: nil)
614
+ @mode = mode
615
+ @recipient = recipient
616
+ end
617
+ end
618
+
619
+ class Passenger < ::Stripe::RequestParams
620
+ # Full name of the person or entity on the flight reservation.
621
+ attr_accessor :name
622
+
623
+ def initialize(name: nil)
624
+ @name = name
625
+ end
626
+ end
627
+
628
+ class Segment < ::Stripe::RequestParams
629
+ # The flight segment amount.
630
+ attr_accessor :amount
631
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
632
+ attr_accessor :arrival_airport
633
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
634
+ attr_accessor :arrives_at
635
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
636
+ attr_accessor :carrier
637
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
638
+ attr_accessor :departs_at
639
+ # The International Air Transport Association (IATA) airport code for the departure airport.
640
+ attr_accessor :departure_airport
641
+ # The flight number associated with the segment
642
+ attr_accessor :flight_number
643
+ # The fare class for the segment.
644
+ attr_accessor :service_class
645
+
646
+ def initialize(
647
+ amount: nil,
648
+ arrival_airport: nil,
649
+ arrives_at: nil,
650
+ carrier: nil,
651
+ departs_at: nil,
652
+ departure_airport: nil,
653
+ flight_number: nil,
654
+ service_class: nil
655
+ )
656
+ @amount = amount
657
+ @arrival_airport = arrival_airport
658
+ @arrives_at = arrives_at
659
+ @carrier = carrier
660
+ @departs_at = departs_at
661
+ @departure_airport = departure_airport
662
+ @flight_number = flight_number
663
+ @service_class = service_class
664
+ end
665
+ end
666
+ # Affiliate details for this purchase.
667
+ attr_accessor :affiliate
668
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
669
+ attr_accessor :agency_number
670
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
671
+ attr_accessor :carrier
672
+ # Delivery details for this purchase.
673
+ attr_accessor :delivery
674
+ # The name of the person or entity on the reservation.
675
+ attr_accessor :passenger_name
676
+ # The details of the passengers in the travel reservation.
677
+ attr_accessor :passengers
678
+ # The individual flight segments associated with the trip.
679
+ attr_accessor :segments
680
+ # The ticket number associated with the travel reservation.
681
+ attr_accessor :ticket_number
682
+
683
+ def initialize(
684
+ affiliate: nil,
685
+ agency_number: nil,
686
+ carrier: nil,
687
+ delivery: nil,
688
+ passenger_name: nil,
689
+ passengers: nil,
690
+ segments: nil,
691
+ ticket_number: nil
692
+ )
693
+ @affiliate = affiliate
694
+ @agency_number = agency_number
695
+ @carrier = carrier
696
+ @delivery = delivery
697
+ @passenger_name = passenger_name
698
+ @passengers = passengers
699
+ @segments = segments
700
+ @ticket_number = ticket_number
701
+ end
702
+ end
703
+
704
+ class Lodging < ::Stripe::RequestParams
705
+ class Address < ::Stripe::RequestParams
706
+ # City, district, suburb, town, or village.
707
+ attr_accessor :city
708
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
709
+ attr_accessor :country
710
+ # Address line 1, such as the street, PO Box, or company name.
711
+ attr_accessor :line1
712
+ # Address line 2, such as the apartment, suite, unit, or building.
713
+ attr_accessor :line2
714
+ # ZIP or postal code.
715
+ attr_accessor :postal_code
716
+ # State, county, province, or region.
717
+ attr_accessor :state
718
+
719
+ def initialize(
720
+ city: nil,
721
+ country: nil,
722
+ line1: nil,
723
+ line2: nil,
724
+ postal_code: nil,
725
+ state: nil
726
+ )
727
+ @city = city
728
+ @country = country
729
+ @line1 = line1
730
+ @line2 = line2
731
+ @postal_code = postal_code
732
+ @state = state
733
+ end
734
+ end
735
+
736
+ class Affiliate < ::Stripe::RequestParams
737
+ # The name of the affiliate that originated the purchase.
738
+ attr_accessor :name
739
+
740
+ def initialize(name: nil)
741
+ @name = name
742
+ end
743
+ end
744
+
745
+ class Delivery < ::Stripe::RequestParams
746
+ class Recipient < ::Stripe::RequestParams
747
+ # The email of the recipient the ticket is delivered to.
748
+ attr_accessor :email
749
+ # The name of the recipient the ticket is delivered to.
750
+ attr_accessor :name
751
+ # The phone number of the recipient the ticket is delivered to.
752
+ attr_accessor :phone
753
+
754
+ def initialize(email: nil, name: nil, phone: nil)
755
+ @email = email
756
+ @name = name
757
+ @phone = phone
758
+ end
759
+ end
760
+ # The delivery method for the payment
761
+ attr_accessor :mode
762
+ # Details of the recipient.
763
+ attr_accessor :recipient
764
+
765
+ def initialize(mode: nil, recipient: nil)
766
+ @mode = mode
767
+ @recipient = recipient
768
+ end
769
+ end
770
+
771
+ class Passenger < ::Stripe::RequestParams
772
+ # Full name of the person or entity on the lodging reservation.
773
+ attr_accessor :name
774
+
775
+ def initialize(name: nil)
776
+ @name = name
777
+ end
778
+ end
779
+ # The lodging location's address.
780
+ attr_accessor :address
781
+ # The number of adults on the booking
782
+ attr_accessor :adults
783
+ # Affiliate details for this purchase.
784
+ attr_accessor :affiliate
785
+ # The booking number associated with the lodging reservation.
786
+ attr_accessor :booking_number
787
+ # The lodging category
788
+ attr_accessor :category
789
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
790
+ attr_accessor :checkin_at
791
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
792
+ attr_accessor :checkout_at
793
+ # The customer service phone number of the lodging company.
794
+ attr_accessor :customer_service_phone_number
795
+ # The daily lodging room rate.
796
+ attr_accessor :daily_room_rate_amount
797
+ # Delivery details for this purchase.
798
+ attr_accessor :delivery
799
+ # List of additional charges being billed.
800
+ attr_accessor :extra_charges
801
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
802
+ attr_accessor :fire_safety_act_compliance
803
+ # The name of the lodging location.
804
+ attr_accessor :name
805
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
806
+ attr_accessor :no_show
807
+ # The number of rooms on the booking
808
+ attr_accessor :number_of_rooms
809
+ # The details of the passengers in the travel reservation
810
+ attr_accessor :passengers
811
+ # The phone number of the lodging location.
812
+ attr_accessor :property_phone_number
813
+ # The room class for this purchase.
814
+ attr_accessor :room_class
815
+ # The number of room nights
816
+ attr_accessor :room_nights
817
+ # The total tax amount associating with the room reservation.
818
+ attr_accessor :total_room_tax_amount
819
+ # The total tax amount
820
+ attr_accessor :total_tax_amount
821
+
822
+ def initialize(
823
+ address: nil,
824
+ adults: nil,
825
+ affiliate: nil,
826
+ booking_number: nil,
827
+ category: nil,
828
+ checkin_at: nil,
829
+ checkout_at: nil,
830
+ customer_service_phone_number: nil,
831
+ daily_room_rate_amount: nil,
832
+ delivery: nil,
833
+ extra_charges: nil,
834
+ fire_safety_act_compliance: nil,
835
+ name: nil,
836
+ no_show: nil,
837
+ number_of_rooms: nil,
838
+ passengers: nil,
839
+ property_phone_number: nil,
840
+ room_class: nil,
841
+ room_nights: nil,
842
+ total_room_tax_amount: nil,
843
+ total_tax_amount: nil
844
+ )
845
+ @address = address
846
+ @adults = adults
847
+ @affiliate = affiliate
848
+ @booking_number = booking_number
849
+ @category = category
850
+ @checkin_at = checkin_at
851
+ @checkout_at = checkout_at
852
+ @customer_service_phone_number = customer_service_phone_number
853
+ @daily_room_rate_amount = daily_room_rate_amount
854
+ @delivery = delivery
855
+ @extra_charges = extra_charges
856
+ @fire_safety_act_compliance = fire_safety_act_compliance
857
+ @name = name
858
+ @no_show = no_show
859
+ @number_of_rooms = number_of_rooms
860
+ @passengers = passengers
861
+ @property_phone_number = property_phone_number
862
+ @room_class = room_class
863
+ @room_nights = room_nights
864
+ @total_room_tax_amount = total_room_tax_amount
865
+ @total_tax_amount = total_tax_amount
866
+ end
867
+ end
868
+
869
+ class Subscription < ::Stripe::RequestParams
870
+ class Affiliate < ::Stripe::RequestParams
871
+ # The name of the affiliate that originated the purchase.
872
+ attr_accessor :name
873
+
874
+ def initialize(name: nil)
875
+ @name = name
876
+ end
877
+ end
878
+
879
+ class BillingInterval < ::Stripe::RequestParams
880
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
881
+ attr_accessor :count
882
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
883
+ attr_accessor :interval
884
+
885
+ def initialize(count: nil, interval: nil)
886
+ @count = count
887
+ @interval = interval
888
+ end
889
+ end
890
+ # Affiliate details for this purchase.
891
+ attr_accessor :affiliate
892
+ # Info whether the subscription will be auto renewed upon expiry.
893
+ attr_accessor :auto_renewal
894
+ # Subscription billing details for this purchase.
895
+ attr_accessor :billing_interval
896
+ # Subscription end time. Measured in seconds since the Unix epoch.
897
+ attr_accessor :ends_at
898
+ # Name of the product on subscription. e.g. Apple Music Subscription
899
+ attr_accessor :name
900
+ # Subscription start time. Measured in seconds since the Unix epoch.
901
+ attr_accessor :starts_at
902
+
903
+ def initialize(
904
+ affiliate: nil,
905
+ auto_renewal: nil,
906
+ billing_interval: nil,
907
+ ends_at: nil,
908
+ name: nil,
909
+ starts_at: nil
910
+ )
911
+ @affiliate = affiliate
912
+ @auto_renewal = auto_renewal
913
+ @billing_interval = billing_interval
914
+ @ends_at = ends_at
915
+ @name = name
916
+ @starts_at = starts_at
917
+ end
918
+ end
919
+ # Benefit details for this PaymentIntent
920
+ attr_accessor :benefit
921
+ # Car rental details for this PaymentIntent.
922
+ attr_accessor :car_rental
923
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
220
924
  attr_accessor :customer_reference
221
- # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
222
- #
223
- # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
224
- #
225
- # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
925
+ # Event details for this PaymentIntent
926
+ attr_accessor :event_details
927
+ # Flight reservation details for this PaymentIntent
928
+ attr_accessor :flight
929
+ # Lodging reservation details for this PaymentIntent
930
+ attr_accessor :lodging
931
+ # A unique value assigned by the business to identify the transaction.
226
932
  attr_accessor :order_reference
933
+ # Subscription details for this PaymentIntent
934
+ attr_accessor :subscription
227
935
 
228
- def initialize(customer_reference: nil, order_reference: nil)
936
+ def initialize(
937
+ benefit: nil,
938
+ car_rental: nil,
939
+ customer_reference: nil,
940
+ event_details: nil,
941
+ flight: nil,
942
+ lodging: nil,
943
+ order_reference: nil,
944
+ subscription: nil
945
+ )
946
+ @benefit = benefit
947
+ @car_rental = car_rental
229
948
  @customer_reference = customer_reference
949
+ @event_details = event_details
950
+ @flight = flight
951
+ @lodging = lodging
230
952
  @order_reference = order_reference
953
+ @subscription = subscription
231
954
  end
232
955
  end
233
956
 
@@ -368,8 +1091,18 @@ module Stripe
368
1091
  end
369
1092
 
370
1093
  class Giropay < ::Stripe::RequestParams; end
1094
+ class Gopay < ::Stripe::RequestParams; end
371
1095
  class Grabpay < ::Stripe::RequestParams; end
372
1096
 
1097
+ class IdBankTransfer < ::Stripe::RequestParams
1098
+ # Bank where the account is held.
1099
+ attr_accessor :bank
1100
+
1101
+ def initialize(bank: nil)
1102
+ @bank = bank
1103
+ end
1104
+ end
1105
+
373
1106
  class Ideal < ::Stripe::RequestParams
374
1107
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
375
1108
  attr_accessor :bank
@@ -467,8 +1200,26 @@ module Stripe
467
1200
  class Payco < ::Stripe::RequestParams; end
468
1201
  class Paynow < ::Stripe::RequestParams; end
469
1202
  class Paypal < ::Stripe::RequestParams; end
1203
+ class Paypay < ::Stripe::RequestParams; end
1204
+
1205
+ class Payto < ::Stripe::RequestParams
1206
+ # The account number for the bank account.
1207
+ attr_accessor :account_number
1208
+ # Bank-State-Branch number of the bank account.
1209
+ attr_accessor :bsb_number
1210
+ # The PayID alias for the bank account.
1211
+ attr_accessor :pay_id
1212
+
1213
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1214
+ @account_number = account_number
1215
+ @bsb_number = bsb_number
1216
+ @pay_id = pay_id
1217
+ end
1218
+ end
1219
+
470
1220
  class Pix < ::Stripe::RequestParams; end
471
1221
  class Promptpay < ::Stripe::RequestParams; end
1222
+ class Qris < ::Stripe::RequestParams; end
472
1223
 
473
1224
  class RadarOptions < ::Stripe::RequestParams
474
1225
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -479,6 +1230,29 @@ module Stripe
479
1230
  end
480
1231
  end
481
1232
 
1233
+ class Rechnung < ::Stripe::RequestParams
1234
+ class Dob < ::Stripe::RequestParams
1235
+ # The day of birth, between 1 and 31.
1236
+ attr_accessor :day
1237
+ # The month of birth, between 1 and 12.
1238
+ attr_accessor :month
1239
+ # The four-digit year of birth.
1240
+ attr_accessor :year
1241
+
1242
+ def initialize(day: nil, month: nil, year: nil)
1243
+ @day = day
1244
+ @month = month
1245
+ @year = year
1246
+ end
1247
+ end
1248
+ # Customer's date of birth
1249
+ attr_accessor :dob
1250
+
1251
+ def initialize(dob: nil)
1252
+ @dob = dob
1253
+ end
1254
+ end
1255
+
482
1256
  class RevolutPay < ::Stripe::RequestParams; end
483
1257
  class SamsungPay < ::Stripe::RequestParams; end
484
1258
  class Satispay < ::Stripe::RequestParams; end
@@ -492,6 +1266,8 @@ module Stripe
492
1266
  end
493
1267
  end
494
1268
 
1269
+ class Shopeepay < ::Stripe::RequestParams; end
1270
+
495
1271
  class Sofort < ::Stripe::RequestParams
496
1272
  # Two-letter ISO code representing the country the bank account is located in.
497
1273
  attr_accessor :country
@@ -501,6 +1277,18 @@ module Stripe
501
1277
  end
502
1278
  end
503
1279
 
1280
+ class StripeBalance < ::Stripe::RequestParams
1281
+ # The connected account ID whose Stripe balance to use as the source of payment
1282
+ attr_accessor :account
1283
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1284
+ attr_accessor :source_type
1285
+
1286
+ def initialize(account: nil, source_type: nil)
1287
+ @account = account
1288
+ @source_type = source_type
1289
+ end
1290
+ end
1291
+
504
1292
  class Swish < ::Stripe::RequestParams; end
505
1293
  class Twint < ::Stripe::RequestParams; end
506
1294
 
@@ -573,8 +1361,12 @@ module Stripe
573
1361
  attr_accessor :fpx
574
1362
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
575
1363
  attr_accessor :giropay
1364
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1365
+ attr_accessor :gopay
576
1366
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
577
1367
  attr_accessor :grabpay
1368
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1369
+ attr_accessor :id_bank_transfer
578
1370
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
579
1371
  attr_accessor :ideal
580
1372
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -613,12 +1405,20 @@ module Stripe
613
1405
  attr_accessor :paynow
614
1406
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
615
1407
  attr_accessor :paypal
1408
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1409
+ attr_accessor :paypay
1410
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1411
+ attr_accessor :payto
616
1412
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
617
1413
  attr_accessor :pix
618
1414
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
619
1415
  attr_accessor :promptpay
1416
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1417
+ attr_accessor :qris
620
1418
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
621
1419
  attr_accessor :radar_options
1420
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1421
+ attr_accessor :rechnung
622
1422
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
623
1423
  attr_accessor :revolut_pay
624
1424
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -627,8 +1427,12 @@ module Stripe
627
1427
  attr_accessor :satispay
628
1428
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
629
1429
  attr_accessor :sepa_debit
1430
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1431
+ attr_accessor :shopeepay
630
1432
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
631
1433
  attr_accessor :sofort
1434
+ # This hash contains details about the Stripe balance payment method.
1435
+ attr_accessor :stripe_balance
632
1436
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
633
1437
  attr_accessor :swish
634
1438
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -663,7 +1467,9 @@ module Stripe
663
1467
  eps: nil,
664
1468
  fpx: nil,
665
1469
  giropay: nil,
1470
+ gopay: nil,
666
1471
  grabpay: nil,
1472
+ id_bank_transfer: nil,
667
1473
  ideal: nil,
668
1474
  interac_present: nil,
669
1475
  kakao_pay: nil,
@@ -683,14 +1489,20 @@ module Stripe
683
1489
  payco: nil,
684
1490
  paynow: nil,
685
1491
  paypal: nil,
1492
+ paypay: nil,
1493
+ payto: nil,
686
1494
  pix: nil,
687
1495
  promptpay: nil,
1496
+ qris: nil,
688
1497
  radar_options: nil,
1498
+ rechnung: nil,
689
1499
  revolut_pay: nil,
690
1500
  samsung_pay: nil,
691
1501
  satispay: nil,
692
1502
  sepa_debit: nil,
1503
+ shopeepay: nil,
693
1504
  sofort: nil,
1505
+ stripe_balance: nil,
694
1506
  swish: nil,
695
1507
  twint: nil,
696
1508
  type: nil,
@@ -718,7 +1530,9 @@ module Stripe
718
1530
  @eps = eps
719
1531
  @fpx = fpx
720
1532
  @giropay = giropay
1533
+ @gopay = gopay
721
1534
  @grabpay = grabpay
1535
+ @id_bank_transfer = id_bank_transfer
722
1536
  @ideal = ideal
723
1537
  @interac_present = interac_present
724
1538
  @kakao_pay = kakao_pay
@@ -738,14 +1552,20 @@ module Stripe
738
1552
  @payco = payco
739
1553
  @paynow = paynow
740
1554
  @paypal = paypal
1555
+ @paypay = paypay
1556
+ @payto = payto
741
1557
  @pix = pix
742
1558
  @promptpay = promptpay
1559
+ @qris = qris
743
1560
  @radar_options = radar_options
1561
+ @rechnung = rechnung
744
1562
  @revolut_pay = revolut_pay
745
1563
  @samsung_pay = samsung_pay
746
1564
  @satispay = satispay
747
1565
  @sepa_debit = sepa_debit
1566
+ @shopeepay = shopeepay
748
1567
  @sofort = sofort
1568
+ @stripe_balance = stripe_balance
749
1569
  @swish = swish
750
1570
  @twint = twint
751
1571
  @type = type
@@ -1116,6 +1936,48 @@ module Stripe
1116
1936
  end
1117
1937
  end
1118
1938
 
1939
+ class StatementDetails < ::Stripe::RequestParams
1940
+ class Address < ::Stripe::RequestParams
1941
+ # City, district, suburb, town, or village.
1942
+ attr_accessor :city
1943
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1944
+ attr_accessor :country
1945
+ # Address line 1, such as the street, PO Box, or company name.
1946
+ attr_accessor :line1
1947
+ # Address line 2, such as the apartment, suite, unit, or building.
1948
+ attr_accessor :line2
1949
+ # ZIP or postal code.
1950
+ attr_accessor :postal_code
1951
+ # State, county, province, or region.
1952
+ attr_accessor :state
1953
+
1954
+ def initialize(
1955
+ city: nil,
1956
+ country: nil,
1957
+ line1: nil,
1958
+ line2: nil,
1959
+ postal_code: nil,
1960
+ state: nil
1961
+ )
1962
+ @city = city
1963
+ @country = country
1964
+ @line1 = line1
1965
+ @line2 = line2
1966
+ @postal_code = postal_code
1967
+ @state = state
1968
+ end
1969
+ end
1970
+ # Please pass in an address that is within your Stripe user account country
1971
+ attr_accessor :address
1972
+ # Phone number (e.g., a toll-free number that customers can call)
1973
+ attr_accessor :phone
1974
+
1975
+ def initialize(address: nil, phone: nil)
1976
+ @address = address
1977
+ @phone = phone
1978
+ end
1979
+ end
1980
+
1119
1981
  class ThreeDSecure < ::Stripe::RequestParams
1120
1982
  class NetworkOptions < ::Stripe::RequestParams
1121
1983
  class CartesBancaires < ::Stripe::RequestParams
@@ -1210,6 +2072,8 @@ module Stripe
1210
2072
  attr_accessor :moto
1211
2073
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
1212
2074
  attr_accessor :network
2075
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2076
+ attr_accessor :request_decremental_authorization
1213
2077
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1214
2078
  attr_accessor :request_extended_authorization
1215
2079
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1218,6 +2082,8 @@ module Stripe
1218
2082
  attr_accessor :request_multicapture
1219
2083
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1220
2084
  attr_accessor :request_overcapture
2085
+ # Request partial authorization on this PaymentIntent.
2086
+ attr_accessor :request_partial_authorization
1221
2087
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1222
2088
  attr_accessor :request_three_d_secure
1223
2089
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -1236,6 +2102,8 @@ module Stripe
1236
2102
  attr_accessor :statement_descriptor_suffix_kana
1237
2103
  # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1238
2104
  attr_accessor :statement_descriptor_suffix_kanji
2105
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2106
+ attr_accessor :statement_details
1239
2107
  # If 3D Secure authentication was performed with a third-party provider,
1240
2108
  # the authentication details to use for this payment.
1241
2109
  attr_accessor :three_d_secure
@@ -1247,15 +2115,18 @@ module Stripe
1247
2115
  mandate_options: nil,
1248
2116
  moto: nil,
1249
2117
  network: nil,
2118
+ request_decremental_authorization: nil,
1250
2119
  request_extended_authorization: nil,
1251
2120
  request_incremental_authorization: nil,
1252
2121
  request_multicapture: nil,
1253
2122
  request_overcapture: nil,
2123
+ request_partial_authorization: nil,
1254
2124
  request_three_d_secure: nil,
1255
2125
  require_cvc_recollection: nil,
1256
2126
  setup_future_usage: nil,
1257
2127
  statement_descriptor_suffix_kana: nil,
1258
2128
  statement_descriptor_suffix_kanji: nil,
2129
+ statement_details: nil,
1259
2130
  three_d_secure: nil
1260
2131
  )
1261
2132
  @capture_method = capture_method
@@ -1264,15 +2135,18 @@ module Stripe
1264
2135
  @mandate_options = mandate_options
1265
2136
  @moto = moto
1266
2137
  @network = network
2138
+ @request_decremental_authorization = request_decremental_authorization
1267
2139
  @request_extended_authorization = request_extended_authorization
1268
2140
  @request_incremental_authorization = request_incremental_authorization
1269
2141
  @request_multicapture = request_multicapture
1270
2142
  @request_overcapture = request_overcapture
2143
+ @request_partial_authorization = request_partial_authorization
1271
2144
  @request_three_d_secure = request_three_d_secure
1272
2145
  @require_cvc_recollection = require_cvc_recollection
1273
2146
  @setup_future_usage = setup_future_usage
1274
2147
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1275
2148
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2149
+ @statement_details = statement_details
1276
2150
  @three_d_secure = three_d_secure
1277
2151
  end
1278
2152
  end
@@ -1443,6 +2317,23 @@ module Stripe
1443
2317
  end
1444
2318
  end
1445
2319
 
2320
+ class Gopay < ::Stripe::RequestParams
2321
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2322
+ #
2323
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2324
+ #
2325
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2326
+ #
2327
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2328
+ #
2329
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2330
+ attr_accessor :setup_future_usage
2331
+
2332
+ def initialize(setup_future_usage: nil)
2333
+ @setup_future_usage = setup_future_usage
2334
+ end
2335
+ end
2336
+
1446
2337
  class Grabpay < ::Stripe::RequestParams
1447
2338
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1448
2339
  #
@@ -1460,6 +2351,29 @@ module Stripe
1460
2351
  end
1461
2352
  end
1462
2353
 
2354
+ class IdBankTransfer < ::Stripe::RequestParams
2355
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
2356
+ attr_accessor :expires_after
2357
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2358
+ attr_accessor :expires_at
2359
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2360
+ #
2361
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2362
+ #
2363
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2364
+ #
2365
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2366
+ #
2367
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2368
+ attr_accessor :setup_future_usage
2369
+
2370
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2371
+ @expires_after = expires_after
2372
+ @expires_at = expires_at
2373
+ @setup_future_usage = setup_future_usage
2374
+ end
2375
+ end
2376
+
1463
2377
  class Ideal < ::Stripe::RequestParams
1464
2378
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1465
2379
  #
@@ -1861,12 +2775,65 @@ module Stripe
1861
2775
  end
1862
2776
 
1863
2777
  class Paypal < ::Stripe::RequestParams
2778
+ class LineItem < ::Stripe::RequestParams
2779
+ class Tax < ::Stripe::RequestParams
2780
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2781
+ attr_accessor :amount
2782
+ # The tax behavior for the line item.
2783
+ attr_accessor :behavior
2784
+
2785
+ def initialize(amount: nil, behavior: nil)
2786
+ @amount = amount
2787
+ @behavior = behavior
2788
+ end
2789
+ end
2790
+ # Type of the line item.
2791
+ attr_accessor :category
2792
+ # Description of the line item.
2793
+ attr_accessor :description
2794
+ # Descriptive name of the line item.
2795
+ attr_accessor :name
2796
+ # Quantity of the line item. Must be a positive number.
2797
+ attr_accessor :quantity
2798
+ # Client facing stock keeping unit, article number or similar.
2799
+ attr_accessor :sku
2800
+ # The Stripe account ID of the connected account that sells the item.
2801
+ attr_accessor :sold_by
2802
+ # The tax information for the line item.
2803
+ attr_accessor :tax
2804
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2805
+ attr_accessor :unit_amount
2806
+
2807
+ def initialize(
2808
+ category: nil,
2809
+ description: nil,
2810
+ name: nil,
2811
+ quantity: nil,
2812
+ sku: nil,
2813
+ sold_by: nil,
2814
+ tax: nil,
2815
+ unit_amount: nil
2816
+ )
2817
+ @category = category
2818
+ @description = description
2819
+ @name = name
2820
+ @quantity = quantity
2821
+ @sku = sku
2822
+ @sold_by = sold_by
2823
+ @tax = tax
2824
+ @unit_amount = unit_amount
2825
+ end
2826
+ end
1864
2827
  # Controls when the funds will be captured from the customer's account.
1865
2828
  attr_accessor :capture_method
2829
+ # The line items purchased by the customer.
2830
+ attr_accessor :line_items
1866
2831
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1867
2832
  attr_accessor :preferred_locale
1868
2833
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1869
2834
  attr_accessor :reference
2835
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2836
+ attr_accessor :reference_id
1870
2837
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1871
2838
  attr_accessor :risk_correlation_id
1872
2839
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1879,29 +2846,140 @@ module Stripe
1879
2846
  #
1880
2847
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1881
2848
  attr_accessor :setup_future_usage
2849
+ # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2850
+ attr_accessor :subsellers
1882
2851
 
1883
2852
  def initialize(
1884
2853
  capture_method: nil,
2854
+ line_items: nil,
1885
2855
  preferred_locale: nil,
1886
2856
  reference: nil,
2857
+ reference_id: nil,
1887
2858
  risk_correlation_id: nil,
1888
- setup_future_usage: nil
2859
+ setup_future_usage: nil,
2860
+ subsellers: nil
1889
2861
  )
1890
2862
  @capture_method = capture_method
2863
+ @line_items = line_items
1891
2864
  @preferred_locale = preferred_locale
1892
2865
  @reference = reference
2866
+ @reference_id = reference_id
1893
2867
  @risk_correlation_id = risk_correlation_id
1894
2868
  @setup_future_usage = setup_future_usage
2869
+ @subsellers = subsellers
2870
+ end
2871
+ end
2872
+
2873
+ class Paypay < ::Stripe::RequestParams
2874
+ # Controls when the funds are captured from the customer's account.
2875
+ #
2876
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2877
+ #
2878
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2879
+ attr_accessor :capture_method
2880
+
2881
+ def initialize(capture_method: nil)
2882
+ @capture_method = capture_method
2883
+ end
2884
+ end
2885
+
2886
+ class Payto < ::Stripe::RequestParams
2887
+ class MandateOptions < ::Stripe::RequestParams
2888
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2889
+ attr_accessor :amount
2890
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2891
+ attr_accessor :amount_type
2892
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2893
+ attr_accessor :end_date
2894
+ # The periodicity at which payments will be collected.
2895
+ attr_accessor :payment_schedule
2896
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2897
+ attr_accessor :payments_per_period
2898
+ # The purpose for which payments are made. Defaults to retail.
2899
+ attr_accessor :purpose
2900
+
2901
+ def initialize(
2902
+ amount: nil,
2903
+ amount_type: nil,
2904
+ end_date: nil,
2905
+ payment_schedule: nil,
2906
+ payments_per_period: nil,
2907
+ purpose: nil
2908
+ )
2909
+ @amount = amount
2910
+ @amount_type = amount_type
2911
+ @end_date = end_date
2912
+ @payment_schedule = payment_schedule
2913
+ @payments_per_period = payments_per_period
2914
+ @purpose = purpose
2915
+ end
2916
+ end
2917
+ # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
2918
+ attr_accessor :mandate_options
2919
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2920
+ #
2921
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2922
+ #
2923
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2924
+ #
2925
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2926
+ #
2927
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2928
+ attr_accessor :setup_future_usage
2929
+
2930
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2931
+ @mandate_options = mandate_options
2932
+ @setup_future_usage = setup_future_usage
1895
2933
  end
1896
2934
  end
1897
2935
 
1898
2936
  class Pix < ::Stripe::RequestParams
2937
+ class MandateOptions < ::Stripe::RequestParams
2938
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2939
+ attr_accessor :amount
2940
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
2941
+ attr_accessor :amount_includes_iof
2942
+ # Type of amount. Defaults to `maximum`.
2943
+ attr_accessor :amount_type
2944
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2945
+ attr_accessor :currency
2946
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2947
+ attr_accessor :end_date
2948
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
2949
+ attr_accessor :payment_schedule
2950
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2951
+ attr_accessor :reference
2952
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
2953
+ attr_accessor :start_date
2954
+
2955
+ def initialize(
2956
+ amount: nil,
2957
+ amount_includes_iof: nil,
2958
+ amount_type: nil,
2959
+ currency: nil,
2960
+ end_date: nil,
2961
+ payment_schedule: nil,
2962
+ reference: nil,
2963
+ start_date: nil
2964
+ )
2965
+ @amount = amount
2966
+ @amount_includes_iof = amount_includes_iof
2967
+ @amount_type = amount_type
2968
+ @currency = currency
2969
+ @end_date = end_date
2970
+ @payment_schedule = payment_schedule
2971
+ @reference = reference
2972
+ @start_date = start_date
2973
+ end
2974
+ end
1899
2975
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1900
2976
  attr_accessor :amount_includes_iof
1901
2977
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1902
2978
  attr_accessor :expires_after_seconds
1903
2979
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1904
2980
  attr_accessor :expires_at
2981
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2982
+ attr_accessor :mandate_options
1905
2983
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1906
2984
  #
1907
2985
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1917,11 +2995,13 @@ module Stripe
1917
2995
  amount_includes_iof: nil,
1918
2996
  expires_after_seconds: nil,
1919
2997
  expires_at: nil,
2998
+ mandate_options: nil,
1920
2999
  setup_future_usage: nil
1921
3000
  )
1922
3001
  @amount_includes_iof = amount_includes_iof
1923
3002
  @expires_after_seconds = expires_after_seconds
1924
3003
  @expires_at = expires_at
3004
+ @mandate_options = mandate_options
1925
3005
  @setup_future_usage = setup_future_usage
1926
3006
  end
1927
3007
  end
@@ -1943,6 +3023,25 @@ module Stripe
1943
3023
  end
1944
3024
  end
1945
3025
 
3026
+ class Qris < ::Stripe::RequestParams
3027
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3028
+ #
3029
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3030
+ #
3031
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3032
+ #
3033
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3034
+ #
3035
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3036
+ attr_accessor :setup_future_usage
3037
+
3038
+ def initialize(setup_future_usage: nil)
3039
+ @setup_future_usage = setup_future_usage
3040
+ end
3041
+ end
3042
+
3043
+ class Rechnung < ::Stripe::RequestParams; end
3044
+
1946
3045
  class RevolutPay < ::Stripe::RequestParams
1947
3046
  # Controls when the funds are captured from the customer's account.
1948
3047
  #
@@ -2022,6 +3121,23 @@ module Stripe
2022
3121
  end
2023
3122
  end
2024
3123
 
3124
+ class Shopeepay < ::Stripe::RequestParams
3125
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3126
+ #
3127
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3128
+ #
3129
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3130
+ #
3131
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3132
+ #
3133
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3134
+ attr_accessor :setup_future_usage
3135
+
3136
+ def initialize(setup_future_usage: nil)
3137
+ @setup_future_usage = setup_future_usage
3138
+ end
3139
+ end
3140
+
2025
3141
  class Sofort < ::Stripe::RequestParams
2026
3142
  # Language shown to the payer on redirect.
2027
3143
  attr_accessor :preferred_language
@@ -2042,6 +3158,23 @@ module Stripe
2042
3158
  end
2043
3159
  end
2044
3160
 
3161
+ class StripeBalance < ::Stripe::RequestParams
3162
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3163
+ #
3164
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3165
+ #
3166
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3167
+ #
3168
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3169
+ #
3170
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3171
+ attr_accessor :setup_future_usage
3172
+
3173
+ def initialize(setup_future_usage: nil)
3174
+ @setup_future_usage = setup_future_usage
3175
+ end
3176
+ end
3177
+
2045
3178
  class Swish < ::Stripe::RequestParams
2046
3179
  # A reference for this payment to be displayed in the Swish app.
2047
3180
  attr_accessor :reference
@@ -2084,13 +3217,27 @@ module Stripe
2084
3217
  class Filters < ::Stripe::RequestParams
2085
3218
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2086
3219
  attr_accessor :account_subcategories
3220
+ # ID of the institution to use to filter for selectable accounts.
3221
+ attr_accessor :institution
2087
3222
 
2088
- def initialize(account_subcategories: nil)
3223
+ def initialize(account_subcategories: nil, institution: nil)
2089
3224
  @account_subcategories = account_subcategories
3225
+ @institution = institution
3226
+ end
3227
+ end
3228
+
3229
+ class ManualEntry < ::Stripe::RequestParams
3230
+ # Settings for configuring manual entry of account details.
3231
+ attr_accessor :mode
3232
+
3233
+ def initialize(mode: nil)
3234
+ @mode = mode
2090
3235
  end
2091
3236
  end
2092
3237
  # Provide filters for the linked accounts that the customer can select for the payment method.
2093
3238
  attr_accessor :filters
3239
+ # Customize manual entry behavior
3240
+ attr_accessor :manual_entry
2094
3241
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2095
3242
  attr_accessor :permissions
2096
3243
  # List of data features that you would like to retrieve upon account creation.
@@ -2098,8 +3245,15 @@ module Stripe
2098
3245
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
2099
3246
  attr_accessor :return_url
2100
3247
 
2101
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3248
+ def initialize(
3249
+ filters: nil,
3250
+ manual_entry: nil,
3251
+ permissions: nil,
3252
+ prefetch: nil,
3253
+ return_url: nil
3254
+ )
2102
3255
  @filters = filters
3256
+ @manual_entry = manual_entry
2103
3257
  @permissions = permissions
2104
3258
  @prefetch = prefetch
2105
3259
  @return_url = return_url
@@ -2244,8 +3398,12 @@ module Stripe
2244
3398
  attr_accessor :fpx
2245
3399
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2246
3400
  attr_accessor :giropay
3401
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3402
+ attr_accessor :gopay
2247
3403
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2248
3404
  attr_accessor :grabpay
3405
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3406
+ attr_accessor :id_bank_transfer
2249
3407
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2250
3408
  attr_accessor :ideal
2251
3409
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2282,10 +3440,18 @@ module Stripe
2282
3440
  attr_accessor :paynow
2283
3441
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2284
3442
  attr_accessor :paypal
3443
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3444
+ attr_accessor :paypay
3445
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3446
+ attr_accessor :payto
2285
3447
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2286
3448
  attr_accessor :pix
2287
3449
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2288
3450
  attr_accessor :promptpay
3451
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3452
+ attr_accessor :qris
3453
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3454
+ attr_accessor :rechnung
2289
3455
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2290
3456
  attr_accessor :revolut_pay
2291
3457
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2294,8 +3460,12 @@ module Stripe
2294
3460
  attr_accessor :satispay
2295
3461
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2296
3462
  attr_accessor :sepa_debit
3463
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3464
+ attr_accessor :shopeepay
2297
3465
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2298
3466
  attr_accessor :sofort
3467
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3468
+ attr_accessor :stripe_balance
2299
3469
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2300
3470
  attr_accessor :swish
2301
3471
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2328,7 +3498,9 @@ module Stripe
2328
3498
  eps: nil,
2329
3499
  fpx: nil,
2330
3500
  giropay: nil,
3501
+ gopay: nil,
2331
3502
  grabpay: nil,
3503
+ id_bank_transfer: nil,
2332
3504
  ideal: nil,
2333
3505
  interac_present: nil,
2334
3506
  kakao_pay: nil,
@@ -2347,13 +3519,19 @@ module Stripe
2347
3519
  payco: nil,
2348
3520
  paynow: nil,
2349
3521
  paypal: nil,
3522
+ paypay: nil,
3523
+ payto: nil,
2350
3524
  pix: nil,
2351
3525
  promptpay: nil,
3526
+ qris: nil,
3527
+ rechnung: nil,
2352
3528
  revolut_pay: nil,
2353
3529
  samsung_pay: nil,
2354
3530
  satispay: nil,
2355
3531
  sepa_debit: nil,
3532
+ shopeepay: nil,
2356
3533
  sofort: nil,
3534
+ stripe_balance: nil,
2357
3535
  swish: nil,
2358
3536
  twint: nil,
2359
3537
  us_bank_account: nil,
@@ -2380,7 +3558,9 @@ module Stripe
2380
3558
  @eps = eps
2381
3559
  @fpx = fpx
2382
3560
  @giropay = giropay
3561
+ @gopay = gopay
2383
3562
  @grabpay = grabpay
3563
+ @id_bank_transfer = id_bank_transfer
2384
3564
  @ideal = ideal
2385
3565
  @interac_present = interac_present
2386
3566
  @kakao_pay = kakao_pay
@@ -2399,13 +3579,19 @@ module Stripe
2399
3579
  @payco = payco
2400
3580
  @paynow = paynow
2401
3581
  @paypal = paypal
3582
+ @paypay = paypay
3583
+ @payto = payto
2402
3584
  @pix = pix
2403
3585
  @promptpay = promptpay
3586
+ @qris = qris
3587
+ @rechnung = rechnung
2404
3588
  @revolut_pay = revolut_pay
2405
3589
  @samsung_pay = samsung_pay
2406
3590
  @satispay = satispay
2407
3591
  @sepa_debit = sepa_debit
3592
+ @shopeepay = shopeepay
2408
3593
  @sofort = sofort
3594
+ @stripe_balance = stripe_balance
2409
3595
  @swish = swish
2410
3596
  @twint = twint
2411
3597
  @us_bank_account = us_bank_account
@@ -2475,6 +3661,8 @@ module Stripe
2475
3661
  end
2476
3662
  # Provides industry-specific information about the amount.
2477
3663
  attr_accessor :amount_details
3664
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3665
+ attr_accessor :application_fee_amount
2478
3666
  # Controls when the funds will be captured from the customer's account.
2479
3667
  attr_accessor :capture_method
2480
3668
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -2487,6 +3675,10 @@ module Stripe
2487
3675
  attr_accessor :excluded_payment_method_types
2488
3676
  # Specifies which fields in the response should be expanded.
2489
3677
  attr_accessor :expand
3678
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3679
+ attr_accessor :fx_quote
3680
+ # Automations to be run during the PaymentIntent lifecycle
3681
+ attr_accessor :hooks
2490
3682
  # ID of the mandate that's used for this payment.
2491
3683
  attr_accessor :mandate
2492
3684
  # Attribute for param field mandate_data
@@ -2531,11 +3723,14 @@ module Stripe
2531
3723
 
2532
3724
  def initialize(
2533
3725
  amount_details: nil,
3726
+ application_fee_amount: nil,
2534
3727
  capture_method: nil,
2535
3728
  confirmation_token: nil,
2536
3729
  error_on_requires_action: nil,
2537
3730
  excluded_payment_method_types: nil,
2538
3731
  expand: nil,
3732
+ fx_quote: nil,
3733
+ hooks: nil,
2539
3734
  mandate: nil,
2540
3735
  mandate_data: nil,
2541
3736
  off_session: nil,
@@ -2552,11 +3747,14 @@ module Stripe
2552
3747
  use_stripe_sdk: nil
2553
3748
  )
2554
3749
  @amount_details = amount_details
3750
+ @application_fee_amount = application_fee_amount
2555
3751
  @capture_method = capture_method
2556
3752
  @confirmation_token = confirmation_token
2557
3753
  @error_on_requires_action = error_on_requires_action
2558
3754
  @excluded_payment_method_types = excluded_payment_method_types
2559
3755
  @expand = expand
3756
+ @fx_quote = fx_quote
3757
+ @hooks = hooks
2560
3758
  @mandate = mandate
2561
3759
  @mandate_data = mandate_data
2562
3760
  @off_session = off_session