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
@@ -188,6 +178,31 @@ module Stripe
188
178
  end
189
179
  end
190
180
 
181
+ class Hooks < ::Stripe::RequestParams
182
+ class Inputs < ::Stripe::RequestParams
183
+ class Tax < ::Stripe::RequestParams
184
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
185
+ attr_accessor :calculation
186
+
187
+ def initialize(calculation: nil)
188
+ @calculation = calculation
189
+ end
190
+ end
191
+ # Tax arguments for automations
192
+ attr_accessor :tax
193
+
194
+ def initialize(tax: nil)
195
+ @tax = tax
196
+ end
197
+ end
198
+ # Arguments passed in automations
199
+ attr_accessor :inputs
200
+
201
+ def initialize(inputs: nil)
202
+ @inputs = inputs
203
+ end
204
+ end
205
+
191
206
  class MandateData < ::Stripe::RequestParams
192
207
  class CustomerAcceptance < ::Stripe::RequestParams
193
208
  class Offline < ::Stripe::RequestParams; end
@@ -218,30 +233,738 @@ module Stripe
218
233
  @online = online
219
234
  @type = type
220
235
  end
221
- end
222
- # This hash contains details about the customer acceptance of the Mandate.
223
- attr_accessor :customer_acceptance
236
+ end
237
+ # This hash contains details about the customer acceptance of the Mandate.
238
+ attr_accessor :customer_acceptance
239
+
240
+ def initialize(customer_acceptance: nil)
241
+ @customer_acceptance = customer_acceptance
242
+ end
243
+ end
244
+
245
+ class PaymentDetails < ::Stripe::RequestParams
246
+ class Benefit < ::Stripe::RequestParams
247
+ class FrMealVoucher < ::Stripe::RequestParams
248
+ # The 14-digit SIRET of the meal voucher acceptor.
249
+ attr_accessor :siret
250
+
251
+ def initialize(siret: nil)
252
+ @siret = siret
253
+ end
254
+ end
255
+ # French meal voucher benefit details for this PaymentIntent.
256
+ attr_accessor :fr_meal_voucher
257
+
258
+ def initialize(fr_meal_voucher: nil)
259
+ @fr_meal_voucher = fr_meal_voucher
260
+ end
261
+ end
262
+
263
+ class CarRental < ::Stripe::RequestParams
264
+ class Affiliate < ::Stripe::RequestParams
265
+ # The name of the affiliate that originated the purchase.
266
+ attr_accessor :name
267
+
268
+ def initialize(name: nil)
269
+ @name = name
270
+ end
271
+ end
272
+
273
+ class Delivery < ::Stripe::RequestParams
274
+ class Recipient < ::Stripe::RequestParams
275
+ # The email of the recipient the ticket is delivered to.
276
+ attr_accessor :email
277
+ # The name of the recipient the ticket is delivered to.
278
+ attr_accessor :name
279
+ # The phone number of the recipient the ticket is delivered to.
280
+ attr_accessor :phone
281
+
282
+ def initialize(email: nil, name: nil, phone: nil)
283
+ @email = email
284
+ @name = name
285
+ @phone = phone
286
+ end
287
+ end
288
+ # The delivery method for the payment
289
+ attr_accessor :mode
290
+ # Details of the recipient.
291
+ attr_accessor :recipient
292
+
293
+ def initialize(mode: nil, recipient: nil)
294
+ @mode = mode
295
+ @recipient = recipient
296
+ end
297
+ end
298
+
299
+ class Distance < ::Stripe::RequestParams
300
+ # Distance traveled.
301
+ attr_accessor :amount
302
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
303
+ attr_accessor :unit
304
+
305
+ def initialize(amount: nil, unit: nil)
306
+ @amount = amount
307
+ @unit = unit
308
+ end
309
+ end
310
+
311
+ class Driver < ::Stripe::RequestParams
312
+ # Driver's identification number.
313
+ attr_accessor :driver_identification_number
314
+ # Driver's tax number.
315
+ attr_accessor :driver_tax_number
316
+ # Full name of the person or entity on the car reservation.
317
+ attr_accessor :name
318
+
319
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
320
+ @driver_identification_number = driver_identification_number
321
+ @driver_tax_number = driver_tax_number
322
+ @name = name
323
+ end
324
+ end
325
+
326
+ class PickupAddress < ::Stripe::RequestParams
327
+ # City, district, suburb, town, or village.
328
+ attr_accessor :city
329
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
330
+ attr_accessor :country
331
+ # Address line 1, such as the street, PO Box, or company name.
332
+ attr_accessor :line1
333
+ # Address line 2, such as the apartment, suite, unit, or building.
334
+ attr_accessor :line2
335
+ # ZIP or postal code.
336
+ attr_accessor :postal_code
337
+ # State, county, province, or region.
338
+ attr_accessor :state
339
+
340
+ def initialize(
341
+ city: nil,
342
+ country: nil,
343
+ line1: nil,
344
+ line2: nil,
345
+ postal_code: nil,
346
+ state: nil
347
+ )
348
+ @city = city
349
+ @country = country
350
+ @line1 = line1
351
+ @line2 = line2
352
+ @postal_code = postal_code
353
+ @state = state
354
+ end
355
+ end
356
+
357
+ class ReturnAddress < ::Stripe::RequestParams
358
+ # City, district, suburb, town, or village.
359
+ attr_accessor :city
360
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
361
+ attr_accessor :country
362
+ # Address line 1, such as the street, PO Box, or company name.
363
+ attr_accessor :line1
364
+ # Address line 2, such as the apartment, suite, unit, or building.
365
+ attr_accessor :line2
366
+ # ZIP or postal code.
367
+ attr_accessor :postal_code
368
+ # State, county, province, or region.
369
+ attr_accessor :state
370
+
371
+ def initialize(
372
+ city: nil,
373
+ country: nil,
374
+ line1: nil,
375
+ line2: nil,
376
+ postal_code: nil,
377
+ state: nil
378
+ )
379
+ @city = city
380
+ @country = country
381
+ @line1 = line1
382
+ @line2 = line2
383
+ @postal_code = postal_code
384
+ @state = state
385
+ end
386
+ end
387
+ # Affiliate details for this purchase.
388
+ attr_accessor :affiliate
389
+ # The booking number associated with the car rental.
390
+ attr_accessor :booking_number
391
+ # Class code of the car.
392
+ attr_accessor :car_class_code
393
+ # Make of the car.
394
+ attr_accessor :car_make
395
+ # Model of the car.
396
+ attr_accessor :car_model
397
+ # The name of the rental car company.
398
+ attr_accessor :company
399
+ # The customer service phone number of the car rental company.
400
+ attr_accessor :customer_service_phone_number
401
+ # Number of days the car is being rented.
402
+ attr_accessor :days_rented
403
+ # Delivery details for this purchase.
404
+ attr_accessor :delivery
405
+ # The details of the distance traveled during the rental period.
406
+ attr_accessor :distance
407
+ # The details of the passengers in the travel reservation
408
+ attr_accessor :drivers
409
+ # List of additional charges being billed.
410
+ attr_accessor :extra_charges
411
+ # Indicates if the customer did not keep nor cancel their booking.
412
+ attr_accessor :no_show
413
+ # Car pick-up address.
414
+ attr_accessor :pickup_address
415
+ # Car pick-up time. Measured in seconds since the Unix epoch.
416
+ attr_accessor :pickup_at
417
+ # Name of the pickup location.
418
+ attr_accessor :pickup_location_name
419
+ # Rental rate.
420
+ attr_accessor :rate_amount
421
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
422
+ attr_accessor :rate_interval
423
+ # The name of the person or entity renting the car.
424
+ attr_accessor :renter_name
425
+ # Car return address.
426
+ attr_accessor :return_address
427
+ # Car return time. Measured in seconds since the Unix epoch.
428
+ attr_accessor :return_at
429
+ # Name of the return location.
430
+ attr_accessor :return_location_name
431
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
432
+ attr_accessor :tax_exempt
433
+ # The vehicle identification number.
434
+ attr_accessor :vehicle_identification_number
435
+
436
+ def initialize(
437
+ affiliate: nil,
438
+ booking_number: nil,
439
+ car_class_code: nil,
440
+ car_make: nil,
441
+ car_model: nil,
442
+ company: nil,
443
+ customer_service_phone_number: nil,
444
+ days_rented: nil,
445
+ delivery: nil,
446
+ distance: nil,
447
+ drivers: nil,
448
+ extra_charges: nil,
449
+ no_show: nil,
450
+ pickup_address: nil,
451
+ pickup_at: nil,
452
+ pickup_location_name: nil,
453
+ rate_amount: nil,
454
+ rate_interval: nil,
455
+ renter_name: nil,
456
+ return_address: nil,
457
+ return_at: nil,
458
+ return_location_name: nil,
459
+ tax_exempt: nil,
460
+ vehicle_identification_number: nil
461
+ )
462
+ @affiliate = affiliate
463
+ @booking_number = booking_number
464
+ @car_class_code = car_class_code
465
+ @car_make = car_make
466
+ @car_model = car_model
467
+ @company = company
468
+ @customer_service_phone_number = customer_service_phone_number
469
+ @days_rented = days_rented
470
+ @delivery = delivery
471
+ @distance = distance
472
+ @drivers = drivers
473
+ @extra_charges = extra_charges
474
+ @no_show = no_show
475
+ @pickup_address = pickup_address
476
+ @pickup_at = pickup_at
477
+ @pickup_location_name = pickup_location_name
478
+ @rate_amount = rate_amount
479
+ @rate_interval = rate_interval
480
+ @renter_name = renter_name
481
+ @return_address = return_address
482
+ @return_at = return_at
483
+ @return_location_name = return_location_name
484
+ @tax_exempt = tax_exempt
485
+ @vehicle_identification_number = vehicle_identification_number
486
+ end
487
+ end
488
+
489
+ class EventDetails < ::Stripe::RequestParams
490
+ class Address < ::Stripe::RequestParams
491
+ # City, district, suburb, town, or village.
492
+ attr_accessor :city
493
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
494
+ attr_accessor :country
495
+ # Address line 1, such as the street, PO Box, or company name.
496
+ attr_accessor :line1
497
+ # Address line 2, such as the apartment, suite, unit, or building.
498
+ attr_accessor :line2
499
+ # ZIP or postal code.
500
+ attr_accessor :postal_code
501
+ # State, county, province, or region.
502
+ attr_accessor :state
503
+
504
+ def initialize(
505
+ city: nil,
506
+ country: nil,
507
+ line1: nil,
508
+ line2: nil,
509
+ postal_code: nil,
510
+ state: nil
511
+ )
512
+ @city = city
513
+ @country = country
514
+ @line1 = line1
515
+ @line2 = line2
516
+ @postal_code = postal_code
517
+ @state = state
518
+ end
519
+ end
520
+
521
+ class Affiliate < ::Stripe::RequestParams
522
+ # The name of the affiliate that originated the purchase.
523
+ attr_accessor :name
524
+
525
+ def initialize(name: nil)
526
+ @name = name
527
+ end
528
+ end
529
+
530
+ class Delivery < ::Stripe::RequestParams
531
+ class Recipient < ::Stripe::RequestParams
532
+ # The email of the recipient the ticket is delivered to.
533
+ attr_accessor :email
534
+ # The name of the recipient the ticket is delivered to.
535
+ attr_accessor :name
536
+ # The phone number of the recipient the ticket is delivered to.
537
+ attr_accessor :phone
538
+
539
+ def initialize(email: nil, name: nil, phone: nil)
540
+ @email = email
541
+ @name = name
542
+ @phone = phone
543
+ end
544
+ end
545
+ # The delivery method for the payment
546
+ attr_accessor :mode
547
+ # Details of the recipient.
548
+ attr_accessor :recipient
549
+
550
+ def initialize(mode: nil, recipient: nil)
551
+ @mode = mode
552
+ @recipient = recipient
553
+ end
554
+ end
555
+ # Indicates if the tickets are digitally checked when entering the venue.
556
+ attr_accessor :access_controlled_venue
557
+ # The event location's address.
558
+ attr_accessor :address
559
+ # Affiliate details for this purchase.
560
+ attr_accessor :affiliate
561
+ # The name of the company
562
+ attr_accessor :company
563
+ # Delivery details for this purchase.
564
+ attr_accessor :delivery
565
+ # Event end time. Measured in seconds since the Unix epoch.
566
+ attr_accessor :ends_at
567
+ # Type of the event entertainment (concert, sports event etc)
568
+ attr_accessor :genre
569
+ # The name of the event.
570
+ attr_accessor :name
571
+ # Event start time. Measured in seconds since the Unix epoch.
572
+ attr_accessor :starts_at
573
+
574
+ def initialize(
575
+ access_controlled_venue: nil,
576
+ address: nil,
577
+ affiliate: nil,
578
+ company: nil,
579
+ delivery: nil,
580
+ ends_at: nil,
581
+ genre: nil,
582
+ name: nil,
583
+ starts_at: nil
584
+ )
585
+ @access_controlled_venue = access_controlled_venue
586
+ @address = address
587
+ @affiliate = affiliate
588
+ @company = company
589
+ @delivery = delivery
590
+ @ends_at = ends_at
591
+ @genre = genre
592
+ @name = name
593
+ @starts_at = starts_at
594
+ end
595
+ end
596
+
597
+ class Flight < ::Stripe::RequestParams
598
+ class Affiliate < ::Stripe::RequestParams
599
+ # The name of the affiliate that originated the purchase.
600
+ attr_accessor :name
601
+
602
+ def initialize(name: nil)
603
+ @name = name
604
+ end
605
+ end
606
+
607
+ class Delivery < ::Stripe::RequestParams
608
+ class Recipient < ::Stripe::RequestParams
609
+ # The email of the recipient the ticket is delivered to.
610
+ attr_accessor :email
611
+ # The name of the recipient the ticket is delivered to.
612
+ attr_accessor :name
613
+ # The phone number of the recipient the ticket is delivered to.
614
+ attr_accessor :phone
615
+
616
+ def initialize(email: nil, name: nil, phone: nil)
617
+ @email = email
618
+ @name = name
619
+ @phone = phone
620
+ end
621
+ end
622
+ # The delivery method for the payment
623
+ attr_accessor :mode
624
+ # Details of the recipient.
625
+ attr_accessor :recipient
626
+
627
+ def initialize(mode: nil, recipient: nil)
628
+ @mode = mode
629
+ @recipient = recipient
630
+ end
631
+ end
632
+
633
+ class Passenger < ::Stripe::RequestParams
634
+ # Full name of the person or entity on the flight reservation.
635
+ attr_accessor :name
636
+
637
+ def initialize(name: nil)
638
+ @name = name
639
+ end
640
+ end
641
+
642
+ class Segment < ::Stripe::RequestParams
643
+ # The flight segment amount.
644
+ attr_accessor :amount
645
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
646
+ attr_accessor :arrival_airport
647
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
648
+ attr_accessor :arrives_at
649
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
650
+ attr_accessor :carrier
651
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
652
+ attr_accessor :departs_at
653
+ # The International Air Transport Association (IATA) airport code for the departure airport.
654
+ attr_accessor :departure_airport
655
+ # The flight number associated with the segment
656
+ attr_accessor :flight_number
657
+ # The fare class for the segment.
658
+ attr_accessor :service_class
659
+
660
+ def initialize(
661
+ amount: nil,
662
+ arrival_airport: nil,
663
+ arrives_at: nil,
664
+ carrier: nil,
665
+ departs_at: nil,
666
+ departure_airport: nil,
667
+ flight_number: nil,
668
+ service_class: nil
669
+ )
670
+ @amount = amount
671
+ @arrival_airport = arrival_airport
672
+ @arrives_at = arrives_at
673
+ @carrier = carrier
674
+ @departs_at = departs_at
675
+ @departure_airport = departure_airport
676
+ @flight_number = flight_number
677
+ @service_class = service_class
678
+ end
679
+ end
680
+ # Affiliate details for this purchase.
681
+ attr_accessor :affiliate
682
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
683
+ attr_accessor :agency_number
684
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
685
+ attr_accessor :carrier
686
+ # Delivery details for this purchase.
687
+ attr_accessor :delivery
688
+ # The name of the person or entity on the reservation.
689
+ attr_accessor :passenger_name
690
+ # The details of the passengers in the travel reservation.
691
+ attr_accessor :passengers
692
+ # The individual flight segments associated with the trip.
693
+ attr_accessor :segments
694
+ # The ticket number associated with the travel reservation.
695
+ attr_accessor :ticket_number
696
+
697
+ def initialize(
698
+ affiliate: nil,
699
+ agency_number: nil,
700
+ carrier: nil,
701
+ delivery: nil,
702
+ passenger_name: nil,
703
+ passengers: nil,
704
+ segments: nil,
705
+ ticket_number: nil
706
+ )
707
+ @affiliate = affiliate
708
+ @agency_number = agency_number
709
+ @carrier = carrier
710
+ @delivery = delivery
711
+ @passenger_name = passenger_name
712
+ @passengers = passengers
713
+ @segments = segments
714
+ @ticket_number = ticket_number
715
+ end
716
+ end
717
+
718
+ class Lodging < ::Stripe::RequestParams
719
+ class Address < ::Stripe::RequestParams
720
+ # City, district, suburb, town, or village.
721
+ attr_accessor :city
722
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
723
+ attr_accessor :country
724
+ # Address line 1, such as the street, PO Box, or company name.
725
+ attr_accessor :line1
726
+ # Address line 2, such as the apartment, suite, unit, or building.
727
+ attr_accessor :line2
728
+ # ZIP or postal code.
729
+ attr_accessor :postal_code
730
+ # State, county, province, or region.
731
+ attr_accessor :state
732
+
733
+ def initialize(
734
+ city: nil,
735
+ country: nil,
736
+ line1: nil,
737
+ line2: nil,
738
+ postal_code: nil,
739
+ state: nil
740
+ )
741
+ @city = city
742
+ @country = country
743
+ @line1 = line1
744
+ @line2 = line2
745
+ @postal_code = postal_code
746
+ @state = state
747
+ end
748
+ end
749
+
750
+ class Affiliate < ::Stripe::RequestParams
751
+ # The name of the affiliate that originated the purchase.
752
+ attr_accessor :name
753
+
754
+ def initialize(name: nil)
755
+ @name = name
756
+ end
757
+ end
758
+
759
+ class Delivery < ::Stripe::RequestParams
760
+ class Recipient < ::Stripe::RequestParams
761
+ # The email of the recipient the ticket is delivered to.
762
+ attr_accessor :email
763
+ # The name of the recipient the ticket is delivered to.
764
+ attr_accessor :name
765
+ # The phone number of the recipient the ticket is delivered to.
766
+ attr_accessor :phone
767
+
768
+ def initialize(email: nil, name: nil, phone: nil)
769
+ @email = email
770
+ @name = name
771
+ @phone = phone
772
+ end
773
+ end
774
+ # The delivery method for the payment
775
+ attr_accessor :mode
776
+ # Details of the recipient.
777
+ attr_accessor :recipient
778
+
779
+ def initialize(mode: nil, recipient: nil)
780
+ @mode = mode
781
+ @recipient = recipient
782
+ end
783
+ end
784
+
785
+ class Passenger < ::Stripe::RequestParams
786
+ # Full name of the person or entity on the lodging reservation.
787
+ attr_accessor :name
788
+
789
+ def initialize(name: nil)
790
+ @name = name
791
+ end
792
+ end
793
+ # The lodging location's address.
794
+ attr_accessor :address
795
+ # The number of adults on the booking
796
+ attr_accessor :adults
797
+ # Affiliate details for this purchase.
798
+ attr_accessor :affiliate
799
+ # The booking number associated with the lodging reservation.
800
+ attr_accessor :booking_number
801
+ # The lodging category
802
+ attr_accessor :category
803
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
804
+ attr_accessor :checkin_at
805
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
806
+ attr_accessor :checkout_at
807
+ # The customer service phone number of the lodging company.
808
+ attr_accessor :customer_service_phone_number
809
+ # The daily lodging room rate.
810
+ attr_accessor :daily_room_rate_amount
811
+ # Delivery details for this purchase.
812
+ attr_accessor :delivery
813
+ # List of additional charges being billed.
814
+ attr_accessor :extra_charges
815
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
816
+ attr_accessor :fire_safety_act_compliance
817
+ # The name of the lodging location.
818
+ attr_accessor :name
819
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
820
+ attr_accessor :no_show
821
+ # The number of rooms on the booking
822
+ attr_accessor :number_of_rooms
823
+ # The details of the passengers in the travel reservation
824
+ attr_accessor :passengers
825
+ # The phone number of the lodging location.
826
+ attr_accessor :property_phone_number
827
+ # The room class for this purchase.
828
+ attr_accessor :room_class
829
+ # The number of room nights
830
+ attr_accessor :room_nights
831
+ # The total tax amount associating with the room reservation.
832
+ attr_accessor :total_room_tax_amount
833
+ # The total tax amount
834
+ attr_accessor :total_tax_amount
835
+
836
+ def initialize(
837
+ address: nil,
838
+ adults: nil,
839
+ affiliate: nil,
840
+ booking_number: nil,
841
+ category: nil,
842
+ checkin_at: nil,
843
+ checkout_at: nil,
844
+ customer_service_phone_number: nil,
845
+ daily_room_rate_amount: nil,
846
+ delivery: nil,
847
+ extra_charges: nil,
848
+ fire_safety_act_compliance: nil,
849
+ name: nil,
850
+ no_show: nil,
851
+ number_of_rooms: nil,
852
+ passengers: nil,
853
+ property_phone_number: nil,
854
+ room_class: nil,
855
+ room_nights: nil,
856
+ total_room_tax_amount: nil,
857
+ total_tax_amount: nil
858
+ )
859
+ @address = address
860
+ @adults = adults
861
+ @affiliate = affiliate
862
+ @booking_number = booking_number
863
+ @category = category
864
+ @checkin_at = checkin_at
865
+ @checkout_at = checkout_at
866
+ @customer_service_phone_number = customer_service_phone_number
867
+ @daily_room_rate_amount = daily_room_rate_amount
868
+ @delivery = delivery
869
+ @extra_charges = extra_charges
870
+ @fire_safety_act_compliance = fire_safety_act_compliance
871
+ @name = name
872
+ @no_show = no_show
873
+ @number_of_rooms = number_of_rooms
874
+ @passengers = passengers
875
+ @property_phone_number = property_phone_number
876
+ @room_class = room_class
877
+ @room_nights = room_nights
878
+ @total_room_tax_amount = total_room_tax_amount
879
+ @total_tax_amount = total_tax_amount
880
+ end
881
+ end
882
+
883
+ class Subscription < ::Stripe::RequestParams
884
+ class Affiliate < ::Stripe::RequestParams
885
+ # The name of the affiliate that originated the purchase.
886
+ attr_accessor :name
887
+
888
+ def initialize(name: nil)
889
+ @name = name
890
+ end
891
+ end
892
+
893
+ class BillingInterval < ::Stripe::RequestParams
894
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
895
+ attr_accessor :count
896
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
897
+ attr_accessor :interval
898
+
899
+ def initialize(count: nil, interval: nil)
900
+ @count = count
901
+ @interval = interval
902
+ end
903
+ end
904
+ # Affiliate details for this purchase.
905
+ attr_accessor :affiliate
906
+ # Info whether the subscription will be auto renewed upon expiry.
907
+ attr_accessor :auto_renewal
908
+ # Subscription billing details for this purchase.
909
+ attr_accessor :billing_interval
910
+ # Subscription end time. Measured in seconds since the Unix epoch.
911
+ attr_accessor :ends_at
912
+ # Name of the product on subscription. e.g. Apple Music Subscription
913
+ attr_accessor :name
914
+ # Subscription start time. Measured in seconds since the Unix epoch.
915
+ attr_accessor :starts_at
224
916
 
225
- def initialize(customer_acceptance: nil)
226
- @customer_acceptance = customer_acceptance
917
+ def initialize(
918
+ affiliate: nil,
919
+ auto_renewal: nil,
920
+ billing_interval: nil,
921
+ ends_at: nil,
922
+ name: nil,
923
+ starts_at: nil
924
+ )
925
+ @affiliate = affiliate
926
+ @auto_renewal = auto_renewal
927
+ @billing_interval = billing_interval
928
+ @ends_at = ends_at
929
+ @name = name
930
+ @starts_at = starts_at
931
+ end
227
932
  end
228
- end
229
-
230
- class PaymentDetails < ::Stripe::RequestParams
231
- # A unique value to identify the customer. This field is available only for card payments.
232
- #
233
- # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
933
+ # Benefit details for this PaymentIntent
934
+ attr_accessor :benefit
935
+ # Car rental details for this PaymentIntent.
936
+ attr_accessor :car_rental
937
+ # 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.
234
938
  attr_accessor :customer_reference
235
- # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
236
- #
237
- # 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`.
238
- #
239
- # 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.
939
+ # Event details for this PaymentIntent
940
+ attr_accessor :event_details
941
+ # Flight reservation details for this PaymentIntent
942
+ attr_accessor :flight
943
+ # Lodging reservation details for this PaymentIntent
944
+ attr_accessor :lodging
945
+ # A unique value assigned by the business to identify the transaction.
240
946
  attr_accessor :order_reference
947
+ # Subscription details for this PaymentIntent
948
+ attr_accessor :subscription
241
949
 
242
- def initialize(customer_reference: nil, order_reference: nil)
950
+ def initialize(
951
+ benefit: nil,
952
+ car_rental: nil,
953
+ customer_reference: nil,
954
+ event_details: nil,
955
+ flight: nil,
956
+ lodging: nil,
957
+ order_reference: nil,
958
+ subscription: nil
959
+ )
960
+ @benefit = benefit
961
+ @car_rental = car_rental
243
962
  @customer_reference = customer_reference
963
+ @event_details = event_details
964
+ @flight = flight
965
+ @lodging = lodging
244
966
  @order_reference = order_reference
967
+ @subscription = subscription
245
968
  end
246
969
  end
247
970
 
@@ -382,8 +1105,18 @@ module Stripe
382
1105
  end
383
1106
 
384
1107
  class Giropay < ::Stripe::RequestParams; end
1108
+ class Gopay < ::Stripe::RequestParams; end
385
1109
  class Grabpay < ::Stripe::RequestParams; end
386
1110
 
1111
+ class IdBankTransfer < ::Stripe::RequestParams
1112
+ # Bank where the account is held.
1113
+ attr_accessor :bank
1114
+
1115
+ def initialize(bank: nil)
1116
+ @bank = bank
1117
+ end
1118
+ end
1119
+
387
1120
  class Ideal < ::Stripe::RequestParams
388
1121
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
389
1122
  attr_accessor :bank
@@ -481,8 +1214,26 @@ module Stripe
481
1214
  class Payco < ::Stripe::RequestParams; end
482
1215
  class Paynow < ::Stripe::RequestParams; end
483
1216
  class Paypal < ::Stripe::RequestParams; end
1217
+ class Paypay < ::Stripe::RequestParams; end
1218
+
1219
+ class Payto < ::Stripe::RequestParams
1220
+ # The account number for the bank account.
1221
+ attr_accessor :account_number
1222
+ # Bank-State-Branch number of the bank account.
1223
+ attr_accessor :bsb_number
1224
+ # The PayID alias for the bank account.
1225
+ attr_accessor :pay_id
1226
+
1227
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1228
+ @account_number = account_number
1229
+ @bsb_number = bsb_number
1230
+ @pay_id = pay_id
1231
+ end
1232
+ end
1233
+
484
1234
  class Pix < ::Stripe::RequestParams; end
485
1235
  class Promptpay < ::Stripe::RequestParams; end
1236
+ class Qris < ::Stripe::RequestParams; end
486
1237
 
487
1238
  class RadarOptions < ::Stripe::RequestParams
488
1239
  # 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.
@@ -493,6 +1244,29 @@ module Stripe
493
1244
  end
494
1245
  end
495
1246
 
1247
+ class Rechnung < ::Stripe::RequestParams
1248
+ class Dob < ::Stripe::RequestParams
1249
+ # The day of birth, between 1 and 31.
1250
+ attr_accessor :day
1251
+ # The month of birth, between 1 and 12.
1252
+ attr_accessor :month
1253
+ # The four-digit year of birth.
1254
+ attr_accessor :year
1255
+
1256
+ def initialize(day: nil, month: nil, year: nil)
1257
+ @day = day
1258
+ @month = month
1259
+ @year = year
1260
+ end
1261
+ end
1262
+ # Customer's date of birth
1263
+ attr_accessor :dob
1264
+
1265
+ def initialize(dob: nil)
1266
+ @dob = dob
1267
+ end
1268
+ end
1269
+
496
1270
  class RevolutPay < ::Stripe::RequestParams; end
497
1271
  class SamsungPay < ::Stripe::RequestParams; end
498
1272
  class Satispay < ::Stripe::RequestParams; end
@@ -506,6 +1280,8 @@ module Stripe
506
1280
  end
507
1281
  end
508
1282
 
1283
+ class Shopeepay < ::Stripe::RequestParams; end
1284
+
509
1285
  class Sofort < ::Stripe::RequestParams
510
1286
  # Two-letter ISO code representing the country the bank account is located in.
511
1287
  attr_accessor :country
@@ -515,6 +1291,18 @@ module Stripe
515
1291
  end
516
1292
  end
517
1293
 
1294
+ class StripeBalance < ::Stripe::RequestParams
1295
+ # The connected account ID whose Stripe balance to use as the source of payment
1296
+ attr_accessor :account
1297
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1298
+ attr_accessor :source_type
1299
+
1300
+ def initialize(account: nil, source_type: nil)
1301
+ @account = account
1302
+ @source_type = source_type
1303
+ end
1304
+ end
1305
+
518
1306
  class Swish < ::Stripe::RequestParams; end
519
1307
  class Twint < ::Stripe::RequestParams; end
520
1308
 
@@ -587,8 +1375,12 @@ module Stripe
587
1375
  attr_accessor :fpx
588
1376
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
589
1377
  attr_accessor :giropay
1378
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1379
+ attr_accessor :gopay
590
1380
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
591
1381
  attr_accessor :grabpay
1382
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1383
+ attr_accessor :id_bank_transfer
592
1384
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
593
1385
  attr_accessor :ideal
594
1386
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -627,12 +1419,20 @@ module Stripe
627
1419
  attr_accessor :paynow
628
1420
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
629
1421
  attr_accessor :paypal
1422
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1423
+ attr_accessor :paypay
1424
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1425
+ attr_accessor :payto
630
1426
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
631
1427
  attr_accessor :pix
632
1428
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
633
1429
  attr_accessor :promptpay
1430
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1431
+ attr_accessor :qris
634
1432
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
635
1433
  attr_accessor :radar_options
1434
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1435
+ attr_accessor :rechnung
636
1436
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
637
1437
  attr_accessor :revolut_pay
638
1438
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -641,8 +1441,12 @@ module Stripe
641
1441
  attr_accessor :satispay
642
1442
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
643
1443
  attr_accessor :sepa_debit
1444
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1445
+ attr_accessor :shopeepay
644
1446
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
645
1447
  attr_accessor :sofort
1448
+ # This hash contains details about the Stripe balance payment method.
1449
+ attr_accessor :stripe_balance
646
1450
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
647
1451
  attr_accessor :swish
648
1452
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -677,7 +1481,9 @@ module Stripe
677
1481
  eps: nil,
678
1482
  fpx: nil,
679
1483
  giropay: nil,
1484
+ gopay: nil,
680
1485
  grabpay: nil,
1486
+ id_bank_transfer: nil,
681
1487
  ideal: nil,
682
1488
  interac_present: nil,
683
1489
  kakao_pay: nil,
@@ -697,14 +1503,20 @@ module Stripe
697
1503
  payco: nil,
698
1504
  paynow: nil,
699
1505
  paypal: nil,
1506
+ paypay: nil,
1507
+ payto: nil,
700
1508
  pix: nil,
701
1509
  promptpay: nil,
1510
+ qris: nil,
702
1511
  radar_options: nil,
1512
+ rechnung: nil,
703
1513
  revolut_pay: nil,
704
1514
  samsung_pay: nil,
705
1515
  satispay: nil,
706
1516
  sepa_debit: nil,
1517
+ shopeepay: nil,
707
1518
  sofort: nil,
1519
+ stripe_balance: nil,
708
1520
  swish: nil,
709
1521
  twint: nil,
710
1522
  type: nil,
@@ -732,7 +1544,9 @@ module Stripe
732
1544
  @eps = eps
733
1545
  @fpx = fpx
734
1546
  @giropay = giropay
1547
+ @gopay = gopay
735
1548
  @grabpay = grabpay
1549
+ @id_bank_transfer = id_bank_transfer
736
1550
  @ideal = ideal
737
1551
  @interac_present = interac_present
738
1552
  @kakao_pay = kakao_pay
@@ -752,14 +1566,20 @@ module Stripe
752
1566
  @payco = payco
753
1567
  @paynow = paynow
754
1568
  @paypal = paypal
1569
+ @paypay = paypay
1570
+ @payto = payto
755
1571
  @pix = pix
756
1572
  @promptpay = promptpay
1573
+ @qris = qris
757
1574
  @radar_options = radar_options
1575
+ @rechnung = rechnung
758
1576
  @revolut_pay = revolut_pay
759
1577
  @samsung_pay = samsung_pay
760
1578
  @satispay = satispay
761
1579
  @sepa_debit = sepa_debit
1580
+ @shopeepay = shopeepay
762
1581
  @sofort = sofort
1582
+ @stripe_balance = stripe_balance
763
1583
  @swish = swish
764
1584
  @twint = twint
765
1585
  @type = type
@@ -1130,6 +1950,48 @@ module Stripe
1130
1950
  end
1131
1951
  end
1132
1952
 
1953
+ class StatementDetails < ::Stripe::RequestParams
1954
+ class Address < ::Stripe::RequestParams
1955
+ # City, district, suburb, town, or village.
1956
+ attr_accessor :city
1957
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1958
+ attr_accessor :country
1959
+ # Address line 1, such as the street, PO Box, or company name.
1960
+ attr_accessor :line1
1961
+ # Address line 2, such as the apartment, suite, unit, or building.
1962
+ attr_accessor :line2
1963
+ # ZIP or postal code.
1964
+ attr_accessor :postal_code
1965
+ # State, county, province, or region.
1966
+ attr_accessor :state
1967
+
1968
+ def initialize(
1969
+ city: nil,
1970
+ country: nil,
1971
+ line1: nil,
1972
+ line2: nil,
1973
+ postal_code: nil,
1974
+ state: nil
1975
+ )
1976
+ @city = city
1977
+ @country = country
1978
+ @line1 = line1
1979
+ @line2 = line2
1980
+ @postal_code = postal_code
1981
+ @state = state
1982
+ end
1983
+ end
1984
+ # Please pass in an address that is within your Stripe user account country
1985
+ attr_accessor :address
1986
+ # Phone number (e.g., a toll-free number that customers can call)
1987
+ attr_accessor :phone
1988
+
1989
+ def initialize(address: nil, phone: nil)
1990
+ @address = address
1991
+ @phone = phone
1992
+ end
1993
+ end
1994
+
1133
1995
  class ThreeDSecure < ::Stripe::RequestParams
1134
1996
  class NetworkOptions < ::Stripe::RequestParams
1135
1997
  class CartesBancaires < ::Stripe::RequestParams
@@ -1224,6 +2086,8 @@ module Stripe
1224
2086
  attr_accessor :moto
1225
2087
  # 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.
1226
2088
  attr_accessor :network
2089
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2090
+ attr_accessor :request_decremental_authorization
1227
2091
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1228
2092
  attr_accessor :request_extended_authorization
1229
2093
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1232,6 +2096,8 @@ module Stripe
1232
2096
  attr_accessor :request_multicapture
1233
2097
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1234
2098
  attr_accessor :request_overcapture
2099
+ # Request partial authorization on this PaymentIntent.
2100
+ attr_accessor :request_partial_authorization
1235
2101
  # 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.
1236
2102
  attr_accessor :request_three_d_secure
1237
2103
  # 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).
@@ -1250,6 +2116,8 @@ module Stripe
1250
2116
  attr_accessor :statement_descriptor_suffix_kana
1251
2117
  # 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.
1252
2118
  attr_accessor :statement_descriptor_suffix_kanji
2119
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2120
+ attr_accessor :statement_details
1253
2121
  # If 3D Secure authentication was performed with a third-party provider,
1254
2122
  # the authentication details to use for this payment.
1255
2123
  attr_accessor :three_d_secure
@@ -1261,15 +2129,18 @@ module Stripe
1261
2129
  mandate_options: nil,
1262
2130
  moto: nil,
1263
2131
  network: nil,
2132
+ request_decremental_authorization: nil,
1264
2133
  request_extended_authorization: nil,
1265
2134
  request_incremental_authorization: nil,
1266
2135
  request_multicapture: nil,
1267
2136
  request_overcapture: nil,
2137
+ request_partial_authorization: nil,
1268
2138
  request_three_d_secure: nil,
1269
2139
  require_cvc_recollection: nil,
1270
2140
  setup_future_usage: nil,
1271
2141
  statement_descriptor_suffix_kana: nil,
1272
2142
  statement_descriptor_suffix_kanji: nil,
2143
+ statement_details: nil,
1273
2144
  three_d_secure: nil
1274
2145
  )
1275
2146
  @capture_method = capture_method
@@ -1278,15 +2149,18 @@ module Stripe
1278
2149
  @mandate_options = mandate_options
1279
2150
  @moto = moto
1280
2151
  @network = network
2152
+ @request_decremental_authorization = request_decremental_authorization
1281
2153
  @request_extended_authorization = request_extended_authorization
1282
2154
  @request_incremental_authorization = request_incremental_authorization
1283
2155
  @request_multicapture = request_multicapture
1284
2156
  @request_overcapture = request_overcapture
2157
+ @request_partial_authorization = request_partial_authorization
1285
2158
  @request_three_d_secure = request_three_d_secure
1286
2159
  @require_cvc_recollection = require_cvc_recollection
1287
2160
  @setup_future_usage = setup_future_usage
1288
2161
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1289
2162
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2163
+ @statement_details = statement_details
1290
2164
  @three_d_secure = three_d_secure
1291
2165
  end
1292
2166
  end
@@ -1457,6 +2331,23 @@ module Stripe
1457
2331
  end
1458
2332
  end
1459
2333
 
2334
+ class Gopay < ::Stripe::RequestParams
2335
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2336
+ #
2337
+ # 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.
2338
+ #
2339
+ # 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.
2340
+ #
2341
+ # 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).
2342
+ #
2343
+ # 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`.
2344
+ attr_accessor :setup_future_usage
2345
+
2346
+ def initialize(setup_future_usage: nil)
2347
+ @setup_future_usage = setup_future_usage
2348
+ end
2349
+ end
2350
+
1460
2351
  class Grabpay < ::Stripe::RequestParams
1461
2352
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1462
2353
  #
@@ -1474,6 +2365,29 @@ module Stripe
1474
2365
  end
1475
2366
  end
1476
2367
 
2368
+ class IdBankTransfer < ::Stripe::RequestParams
2369
+ # 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.
2370
+ attr_accessor :expires_after
2371
+ # 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.
2372
+ attr_accessor :expires_at
2373
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2374
+ #
2375
+ # 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.
2376
+ #
2377
+ # 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.
2378
+ #
2379
+ # 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).
2380
+ #
2381
+ # 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`.
2382
+ attr_accessor :setup_future_usage
2383
+
2384
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2385
+ @expires_after = expires_after
2386
+ @expires_at = expires_at
2387
+ @setup_future_usage = setup_future_usage
2388
+ end
2389
+ end
2390
+
1477
2391
  class Ideal < ::Stripe::RequestParams
1478
2392
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1479
2393
  #
@@ -1875,12 +2789,65 @@ module Stripe
1875
2789
  end
1876
2790
 
1877
2791
  class Paypal < ::Stripe::RequestParams
2792
+ class LineItem < ::Stripe::RequestParams
2793
+ class Tax < ::Stripe::RequestParams
2794
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2795
+ attr_accessor :amount
2796
+ # The tax behavior for the line item.
2797
+ attr_accessor :behavior
2798
+
2799
+ def initialize(amount: nil, behavior: nil)
2800
+ @amount = amount
2801
+ @behavior = behavior
2802
+ end
2803
+ end
2804
+ # Type of the line item.
2805
+ attr_accessor :category
2806
+ # Description of the line item.
2807
+ attr_accessor :description
2808
+ # Descriptive name of the line item.
2809
+ attr_accessor :name
2810
+ # Quantity of the line item. Must be a positive number.
2811
+ attr_accessor :quantity
2812
+ # Client facing stock keeping unit, article number or similar.
2813
+ attr_accessor :sku
2814
+ # The Stripe account ID of the connected account that sells the item.
2815
+ attr_accessor :sold_by
2816
+ # The tax information for the line item.
2817
+ attr_accessor :tax
2818
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2819
+ attr_accessor :unit_amount
2820
+
2821
+ def initialize(
2822
+ category: nil,
2823
+ description: nil,
2824
+ name: nil,
2825
+ quantity: nil,
2826
+ sku: nil,
2827
+ sold_by: nil,
2828
+ tax: nil,
2829
+ unit_amount: nil
2830
+ )
2831
+ @category = category
2832
+ @description = description
2833
+ @name = name
2834
+ @quantity = quantity
2835
+ @sku = sku
2836
+ @sold_by = sold_by
2837
+ @tax = tax
2838
+ @unit_amount = unit_amount
2839
+ end
2840
+ end
1878
2841
  # Controls when the funds will be captured from the customer's account.
1879
2842
  attr_accessor :capture_method
2843
+ # The line items purchased by the customer.
2844
+ attr_accessor :line_items
1880
2845
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1881
2846
  attr_accessor :preferred_locale
1882
2847
  # 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.
1883
2848
  attr_accessor :reference
2849
+ # 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.
2850
+ attr_accessor :reference_id
1884
2851
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1885
2852
  attr_accessor :risk_correlation_id
1886
2853
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1893,29 +2860,140 @@ module Stripe
1893
2860
  #
1894
2861
  # 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`.
1895
2862
  attr_accessor :setup_future_usage
2863
+ # 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.
2864
+ attr_accessor :subsellers
1896
2865
 
1897
2866
  def initialize(
1898
2867
  capture_method: nil,
2868
+ line_items: nil,
1899
2869
  preferred_locale: nil,
1900
2870
  reference: nil,
2871
+ reference_id: nil,
1901
2872
  risk_correlation_id: nil,
1902
- setup_future_usage: nil
2873
+ setup_future_usage: nil,
2874
+ subsellers: nil
1903
2875
  )
1904
2876
  @capture_method = capture_method
2877
+ @line_items = line_items
1905
2878
  @preferred_locale = preferred_locale
1906
2879
  @reference = reference
2880
+ @reference_id = reference_id
1907
2881
  @risk_correlation_id = risk_correlation_id
1908
2882
  @setup_future_usage = setup_future_usage
2883
+ @subsellers = subsellers
2884
+ end
2885
+ end
2886
+
2887
+ class Paypay < ::Stripe::RequestParams
2888
+ # Controls when the funds are captured from the customer's account.
2889
+ #
2890
+ # 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.
2891
+ #
2892
+ # 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.
2893
+ attr_accessor :capture_method
2894
+
2895
+ def initialize(capture_method: nil)
2896
+ @capture_method = capture_method
2897
+ end
2898
+ end
2899
+
2900
+ class Payto < ::Stripe::RequestParams
2901
+ class MandateOptions < ::Stripe::RequestParams
2902
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2903
+ attr_accessor :amount
2904
+ # 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.
2905
+ attr_accessor :amount_type
2906
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2907
+ attr_accessor :end_date
2908
+ # The periodicity at which payments will be collected.
2909
+ attr_accessor :payment_schedule
2910
+ # 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.
2911
+ attr_accessor :payments_per_period
2912
+ # The purpose for which payments are made. Defaults to retail.
2913
+ attr_accessor :purpose
2914
+
2915
+ def initialize(
2916
+ amount: nil,
2917
+ amount_type: nil,
2918
+ end_date: nil,
2919
+ payment_schedule: nil,
2920
+ payments_per_period: nil,
2921
+ purpose: nil
2922
+ )
2923
+ @amount = amount
2924
+ @amount_type = amount_type
2925
+ @end_date = end_date
2926
+ @payment_schedule = payment_schedule
2927
+ @payments_per_period = payments_per_period
2928
+ @purpose = purpose
2929
+ end
2930
+ end
2931
+ # 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`
2932
+ attr_accessor :mandate_options
2933
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2934
+ #
2935
+ # 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.
2936
+ #
2937
+ # 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.
2938
+ #
2939
+ # 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).
2940
+ #
2941
+ # 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`.
2942
+ attr_accessor :setup_future_usage
2943
+
2944
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2945
+ @mandate_options = mandate_options
2946
+ @setup_future_usage = setup_future_usage
1909
2947
  end
1910
2948
  end
1911
2949
 
1912
2950
  class Pix < ::Stripe::RequestParams
2951
+ class MandateOptions < ::Stripe::RequestParams
2952
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2953
+ attr_accessor :amount
2954
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
2955
+ attr_accessor :amount_includes_iof
2956
+ # Type of amount. Defaults to `maximum`.
2957
+ attr_accessor :amount_type
2958
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2959
+ attr_accessor :currency
2960
+ # 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.
2961
+ attr_accessor :end_date
2962
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
2963
+ attr_accessor :payment_schedule
2964
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2965
+ attr_accessor :reference
2966
+ # 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.
2967
+ attr_accessor :start_date
2968
+
2969
+ def initialize(
2970
+ amount: nil,
2971
+ amount_includes_iof: nil,
2972
+ amount_type: nil,
2973
+ currency: nil,
2974
+ end_date: nil,
2975
+ payment_schedule: nil,
2976
+ reference: nil,
2977
+ start_date: nil
2978
+ )
2979
+ @amount = amount
2980
+ @amount_includes_iof = amount_includes_iof
2981
+ @amount_type = amount_type
2982
+ @currency = currency
2983
+ @end_date = end_date
2984
+ @payment_schedule = payment_schedule
2985
+ @reference = reference
2986
+ @start_date = start_date
2987
+ end
2988
+ end
1913
2989
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1914
2990
  attr_accessor :amount_includes_iof
1915
2991
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1916
2992
  attr_accessor :expires_after_seconds
1917
2993
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1918
2994
  attr_accessor :expires_at
2995
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2996
+ attr_accessor :mandate_options
1919
2997
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1920
2998
  #
1921
2999
  # 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.
@@ -1931,11 +3009,13 @@ module Stripe
1931
3009
  amount_includes_iof: nil,
1932
3010
  expires_after_seconds: nil,
1933
3011
  expires_at: nil,
3012
+ mandate_options: nil,
1934
3013
  setup_future_usage: nil
1935
3014
  )
1936
3015
  @amount_includes_iof = amount_includes_iof
1937
3016
  @expires_after_seconds = expires_after_seconds
1938
3017
  @expires_at = expires_at
3018
+ @mandate_options = mandate_options
1939
3019
  @setup_future_usage = setup_future_usage
1940
3020
  end
1941
3021
  end
@@ -1957,6 +3037,25 @@ module Stripe
1957
3037
  end
1958
3038
  end
1959
3039
 
3040
+ class Qris < ::Stripe::RequestParams
3041
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3042
+ #
3043
+ # 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.
3044
+ #
3045
+ # 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.
3046
+ #
3047
+ # 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).
3048
+ #
3049
+ # 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`.
3050
+ attr_accessor :setup_future_usage
3051
+
3052
+ def initialize(setup_future_usage: nil)
3053
+ @setup_future_usage = setup_future_usage
3054
+ end
3055
+ end
3056
+
3057
+ class Rechnung < ::Stripe::RequestParams; end
3058
+
1960
3059
  class RevolutPay < ::Stripe::RequestParams
1961
3060
  # Controls when the funds are captured from the customer's account.
1962
3061
  #
@@ -2036,6 +3135,23 @@ module Stripe
2036
3135
  end
2037
3136
  end
2038
3137
 
3138
+ class Shopeepay < ::Stripe::RequestParams
3139
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3140
+ #
3141
+ # 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.
3142
+ #
3143
+ # 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.
3144
+ #
3145
+ # 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).
3146
+ #
3147
+ # 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`.
3148
+ attr_accessor :setup_future_usage
3149
+
3150
+ def initialize(setup_future_usage: nil)
3151
+ @setup_future_usage = setup_future_usage
3152
+ end
3153
+ end
3154
+
2039
3155
  class Sofort < ::Stripe::RequestParams
2040
3156
  # Language shown to the payer on redirect.
2041
3157
  attr_accessor :preferred_language
@@ -2056,6 +3172,23 @@ module Stripe
2056
3172
  end
2057
3173
  end
2058
3174
 
3175
+ class StripeBalance < ::Stripe::RequestParams
3176
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3177
+ #
3178
+ # 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.
3179
+ #
3180
+ # 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.
3181
+ #
3182
+ # 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).
3183
+ #
3184
+ # 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`.
3185
+ attr_accessor :setup_future_usage
3186
+
3187
+ def initialize(setup_future_usage: nil)
3188
+ @setup_future_usage = setup_future_usage
3189
+ end
3190
+ end
3191
+
2059
3192
  class Swish < ::Stripe::RequestParams
2060
3193
  # A reference for this payment to be displayed in the Swish app.
2061
3194
  attr_accessor :reference
@@ -2098,13 +3231,27 @@ module Stripe
2098
3231
  class Filters < ::Stripe::RequestParams
2099
3232
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2100
3233
  attr_accessor :account_subcategories
3234
+ # ID of the institution to use to filter for selectable accounts.
3235
+ attr_accessor :institution
2101
3236
 
2102
- def initialize(account_subcategories: nil)
3237
+ def initialize(account_subcategories: nil, institution: nil)
2103
3238
  @account_subcategories = account_subcategories
3239
+ @institution = institution
3240
+ end
3241
+ end
3242
+
3243
+ class ManualEntry < ::Stripe::RequestParams
3244
+ # Settings for configuring manual entry of account details.
3245
+ attr_accessor :mode
3246
+
3247
+ def initialize(mode: nil)
3248
+ @mode = mode
2104
3249
  end
2105
3250
  end
2106
3251
  # Provide filters for the linked accounts that the customer can select for the payment method.
2107
3252
  attr_accessor :filters
3253
+ # Customize manual entry behavior
3254
+ attr_accessor :manual_entry
2108
3255
  # 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`.
2109
3256
  attr_accessor :permissions
2110
3257
  # List of data features that you would like to retrieve upon account creation.
@@ -2112,8 +3259,15 @@ module Stripe
2112
3259
  # 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.
2113
3260
  attr_accessor :return_url
2114
3261
 
2115
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3262
+ def initialize(
3263
+ filters: nil,
3264
+ manual_entry: nil,
3265
+ permissions: nil,
3266
+ prefetch: nil,
3267
+ return_url: nil
3268
+ )
2116
3269
  @filters = filters
3270
+ @manual_entry = manual_entry
2117
3271
  @permissions = permissions
2118
3272
  @prefetch = prefetch
2119
3273
  @return_url = return_url
@@ -2258,8 +3412,12 @@ module Stripe
2258
3412
  attr_accessor :fpx
2259
3413
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2260
3414
  attr_accessor :giropay
3415
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3416
+ attr_accessor :gopay
2261
3417
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2262
3418
  attr_accessor :grabpay
3419
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3420
+ attr_accessor :id_bank_transfer
2263
3421
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2264
3422
  attr_accessor :ideal
2265
3423
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2296,10 +3454,18 @@ module Stripe
2296
3454
  attr_accessor :paynow
2297
3455
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2298
3456
  attr_accessor :paypal
3457
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3458
+ attr_accessor :paypay
3459
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3460
+ attr_accessor :payto
2299
3461
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2300
3462
  attr_accessor :pix
2301
3463
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2302
3464
  attr_accessor :promptpay
3465
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3466
+ attr_accessor :qris
3467
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3468
+ attr_accessor :rechnung
2303
3469
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2304
3470
  attr_accessor :revolut_pay
2305
3471
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2308,8 +3474,12 @@ module Stripe
2308
3474
  attr_accessor :satispay
2309
3475
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2310
3476
  attr_accessor :sepa_debit
3477
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3478
+ attr_accessor :shopeepay
2311
3479
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2312
3480
  attr_accessor :sofort
3481
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3482
+ attr_accessor :stripe_balance
2313
3483
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2314
3484
  attr_accessor :swish
2315
3485
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2342,7 +3512,9 @@ module Stripe
2342
3512
  eps: nil,
2343
3513
  fpx: nil,
2344
3514
  giropay: nil,
3515
+ gopay: nil,
2345
3516
  grabpay: nil,
3517
+ id_bank_transfer: nil,
2346
3518
  ideal: nil,
2347
3519
  interac_present: nil,
2348
3520
  kakao_pay: nil,
@@ -2361,13 +3533,19 @@ module Stripe
2361
3533
  payco: nil,
2362
3534
  paynow: nil,
2363
3535
  paypal: nil,
3536
+ paypay: nil,
3537
+ payto: nil,
2364
3538
  pix: nil,
2365
3539
  promptpay: nil,
3540
+ qris: nil,
3541
+ rechnung: nil,
2366
3542
  revolut_pay: nil,
2367
3543
  samsung_pay: nil,
2368
3544
  satispay: nil,
2369
3545
  sepa_debit: nil,
3546
+ shopeepay: nil,
2370
3547
  sofort: nil,
3548
+ stripe_balance: nil,
2371
3549
  swish: nil,
2372
3550
  twint: nil,
2373
3551
  us_bank_account: nil,
@@ -2394,7 +3572,9 @@ module Stripe
2394
3572
  @eps = eps
2395
3573
  @fpx = fpx
2396
3574
  @giropay = giropay
3575
+ @gopay = gopay
2397
3576
  @grabpay = grabpay
3577
+ @id_bank_transfer = id_bank_transfer
2398
3578
  @ideal = ideal
2399
3579
  @interac_present = interac_present
2400
3580
  @kakao_pay = kakao_pay
@@ -2413,13 +3593,19 @@ module Stripe
2413
3593
  @payco = payco
2414
3594
  @paynow = paynow
2415
3595
  @paypal = paypal
3596
+ @paypay = paypay
3597
+ @payto = payto
2416
3598
  @pix = pix
2417
3599
  @promptpay = promptpay
3600
+ @qris = qris
3601
+ @rechnung = rechnung
2418
3602
  @revolut_pay = revolut_pay
2419
3603
  @samsung_pay = samsung_pay
2420
3604
  @satispay = satispay
2421
3605
  @sepa_debit = sepa_debit
3606
+ @shopeepay = shopeepay
2422
3607
  @sofort = sofort
3608
+ @stripe_balance = stripe_balance
2423
3609
  @swish = swish
2424
3610
  @twint = twint
2425
3611
  @us_bank_account = us_bank_account
@@ -2534,6 +3720,12 @@ module Stripe
2534
3720
  #
2535
3721
  # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2536
3722
  attr_accessor :customer
3723
+ # ID of the Account this PaymentIntent belongs to, if one exists.
3724
+ #
3725
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3726
+ #
3727
+ # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
3728
+ attr_accessor :customer_account
2537
3729
  # An arbitrary string attached to the object. Often useful for displaying to users.
2538
3730
  attr_accessor :description
2539
3731
  # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2542,6 +3734,10 @@ module Stripe
2542
3734
  attr_accessor :excluded_payment_method_types
2543
3735
  # Specifies which fields in the response should be expanded.
2544
3736
  attr_accessor :expand
3737
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3738
+ attr_accessor :fx_quote
3739
+ # Automations to be run during the PaymentIntent lifecycle
3740
+ attr_accessor :hooks
2545
3741
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2546
3742
  attr_accessor :mandate
2547
3743
  # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2576,6 +3772,8 @@ module Stripe
2576
3772
  attr_accessor :receipt_email
2577
3773
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2578
3774
  attr_accessor :return_url
3775
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3776
+ attr_accessor :secret_key_confirmation
2579
3777
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2580
3778
  #
2581
3779
  # 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.
@@ -2611,10 +3809,13 @@ module Stripe
2611
3809
  confirmation_token: nil,
2612
3810
  currency: nil,
2613
3811
  customer: nil,
3812
+ customer_account: nil,
2614
3813
  description: nil,
2615
3814
  error_on_requires_action: nil,
2616
3815
  excluded_payment_method_types: nil,
2617
3816
  expand: nil,
3817
+ fx_quote: nil,
3818
+ hooks: nil,
2618
3819
  mandate: nil,
2619
3820
  mandate_data: nil,
2620
3821
  metadata: nil,
@@ -2629,6 +3830,7 @@ module Stripe
2629
3830
  radar_options: nil,
2630
3831
  receipt_email: nil,
2631
3832
  return_url: nil,
3833
+ secret_key_confirmation: nil,
2632
3834
  setup_future_usage: nil,
2633
3835
  shipping: nil,
2634
3836
  statement_descriptor: nil,
@@ -2647,10 +3849,13 @@ module Stripe
2647
3849
  @confirmation_token = confirmation_token
2648
3850
  @currency = currency
2649
3851
  @customer = customer
3852
+ @customer_account = customer_account
2650
3853
  @description = description
2651
3854
  @error_on_requires_action = error_on_requires_action
2652
3855
  @excluded_payment_method_types = excluded_payment_method_types
2653
3856
  @expand = expand
3857
+ @fx_quote = fx_quote
3858
+ @hooks = hooks
2654
3859
  @mandate = mandate
2655
3860
  @mandate_data = mandate_data
2656
3861
  @metadata = metadata
@@ -2665,6 +3870,7 @@ module Stripe
2665
3870
  @radar_options = radar_options
2666
3871
  @receipt_email = receipt_email
2667
3872
  @return_url = return_url
3873
+ @secret_key_confirmation = secret_key_confirmation
2668
3874
  @setup_future_usage = setup_future_usage
2669
3875
  @shipping = shipping
2670
3876
  @statement_descriptor = statement_descriptor