stripe 16.0.0 → 16.1.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (880) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +1032 -0
  6. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  7. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  8. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  9. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  10. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  11. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  12. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  13. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  14. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  16. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  17. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  18. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  19. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  20. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  21. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  22. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  23. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  25. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  26. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  27. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  28. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  29. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  30. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  31. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  32. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  33. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  34. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  35. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  36. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  37. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  38. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  39. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  40. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  41. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  42. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  44. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  46. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  47. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  48. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  49. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  50. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  51. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  52. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  53. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  56. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  57. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  59. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  60. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  61. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  62. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  63. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  64. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  65. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  67. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  68. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  69. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  70. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  72. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  73. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  74. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  75. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  76. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  77. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  78. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  79. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  80. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  81. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  82. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  83. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  89. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  90. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  91. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  92. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  93. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  94. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  95. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  96. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  97. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  98. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  99. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  100. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  101. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  102. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  111. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  113. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  114. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  115. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  116. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  117. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  118. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  119. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  120. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  123. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  125. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  127. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  128. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  129. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  130. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  132. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  133. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  134. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  135. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  136. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  137. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  139. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  140. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  141. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  143. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  144. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  145. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  147. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  148. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  149. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  150. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  151. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  154. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  156. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  157. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  158. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  160. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  161. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  162. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  164. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  165. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  166. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  167. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  168. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  169. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  170. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  171. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  172. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  173. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  174. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  175. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  176. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  177. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  178. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  179. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  180. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  181. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  182. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  183. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  184. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  185. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  186. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  187. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  188. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  189. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  190. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  191. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  192. data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  194. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  195. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  196. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  198. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  217. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  230. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  240. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  244. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  245. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  248. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  254. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  260. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  261. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  271. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  272. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  308. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  315. data/lib/stripe/object_types.rb +79 -0
  316. data/lib/stripe/params/account_create_params.rb +300 -1
  317. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  318. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  319. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  320. data/lib/stripe/params/account_session_create_params.rb +226 -1
  321. data/lib/stripe/params/account_update_params.rb +262 -0
  322. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  323. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  324. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  325. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  326. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  327. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  328. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  329. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  330. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  331. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  332. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  333. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  334. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  335. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  336. data/lib/stripe/params/charge_capture_params.rb +709 -0
  337. data/lib/stripe/params/charge_update_params.rb +709 -0
  338. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  339. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  340. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  341. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  342. data/lib/stripe/params/coupon_create_params.rb +17 -1
  343. data/lib/stripe/params/credit_note_create_params.rb +18 -1
  344. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  345. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +18 -1
  346. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +18 -1
  347. data/lib/stripe/params/credit_note_preview_params.rb +18 -1
  348. data/lib/stripe/params/customer_session_create_params.rb +4 -1
  349. data/lib/stripe/params/dispute_update_params.rb +10 -1
  350. data/lib/stripe/params/external_account_create_params.rb +134 -0
  351. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  352. data/lib/stripe/params/external_account_list_params.rb +25 -0
  353. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  354. data/lib/stripe/params/external_account_update_params.rb +91 -0
  355. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  356. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  357. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  358. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  360. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  361. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  362. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  363. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  364. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  365. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  366. data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
  367. data/lib/stripe/params/invoice_create_params.rb +112 -2
  368. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  369. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  370. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  371. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  372. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  373. data/lib/stripe/params/invoice_list_params.rb +8 -0
  374. data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
  375. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  376. data/lib/stripe/params/invoice_update_params.rb +108 -2
  377. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  378. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  379. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  380. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  381. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  382. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  383. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  384. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  385. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  386. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  387. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  388. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  389. data/lib/stripe/params/mandate_list_params.rb +39 -0
  390. data/lib/stripe/params/margin_create_params.rb +25 -0
  391. data/lib/stripe/params/margin_list_params.rb +25 -0
  392. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  393. data/lib/stripe/params/margin_update_params.rb +22 -0
  394. data/lib/stripe/params/order_cancel_params.rb +13 -0
  395. data/lib/stripe/params/order_create_params.rb +1124 -0
  396. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  397. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  398. data/lib/stripe/params/order_list_params.rb +25 -0
  399. data/lib/stripe/params/order_reopen_params.rb +13 -0
  400. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  401. data/lib/stripe/params/order_submit_params.rb +16 -0
  402. data/lib/stripe/params/order_update_params.rb +1128 -0
  403. data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
  404. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  405. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  406. data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
  407. data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
  408. data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
  409. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  410. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
  411. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  412. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  413. data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
  414. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  415. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  416. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  417. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  418. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  419. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  420. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  421. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  422. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  423. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  424. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  425. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  426. data/lib/stripe/params/price_update_params.rb +19 -0
  427. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  428. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  429. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  430. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  431. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  432. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  433. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  434. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  435. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  436. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  437. data/lib/stripe/params/quote_create_params.rb +805 -3
  438. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  439. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  440. data/lib/stripe/params/quote_list_params.rb +8 -0
  441. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  442. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  443. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  444. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  445. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  446. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  447. data/lib/stripe/params/quote_update_params.rb +813 -4
  448. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  449. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  450. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  451. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  452. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  453. data/lib/stripe/params/subscription_create_params.rb +259 -5
  454. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  455. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  456. data/lib/stripe/params/subscription_list_params.rb +4 -0
  457. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  458. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  459. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  460. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  461. data/lib/stripe/params/subscription_update_params.rb +238 -4
  462. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  463. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  464. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  465. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  466. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  467. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  468. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  469. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  470. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  471. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  472. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  473. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  474. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  475. data/lib/stripe/params/transfer_create_params.rb +4 -0
  476. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  477. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  478. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  479. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  480. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  481. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  482. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  483. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  484. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  485. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  486. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  487. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  488. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  489. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  490. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  491. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  492. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  493. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  494. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  495. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  496. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  497. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  498. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  499. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  500. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  501. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  502. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  503. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  504. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  505. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  506. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  507. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  508. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  509. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  510. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  511. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  512. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  513. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  514. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  515. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  516. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  517. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  518. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  519. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  520. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  521. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  522. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  523. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  524. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  525. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  526. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  527. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  528. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  529. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  530. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  531. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  532. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  533. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  534. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  535. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  536. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  537. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  538. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  539. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  540. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  541. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  542. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  543. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  544. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  545. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  546. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  547. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  548. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  549. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  550. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  551. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  552. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  553. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  554. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  555. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  556. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  557. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  558. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  559. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  560. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  561. data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
  562. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  563. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  564. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  565. data/lib/stripe/params/v2/core/account_create_params.rb +2234 -0
  566. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  567. data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
  568. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  569. data/lib/stripe/params/v2/core/account_update_params.rb +2262 -0
  570. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  571. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  572. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  573. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  574. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  575. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  576. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  577. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  578. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  579. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  580. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  581. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  582. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  583. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  584. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  585. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  586. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  587. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  588. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  589. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  590. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  591. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  593. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  594. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  595. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  596. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  597. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  598. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  599. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  600. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  601. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  602. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  603. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  604. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  605. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  606. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  607. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  608. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  609. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  610. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  611. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  612. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  613. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  614. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  615. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  616. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  617. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  618. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  619. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  620. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  621. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  622. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  623. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  624. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  626. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  627. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  628. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  629. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  630. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  631. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  632. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  633. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  634. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  635. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  636. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  637. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  638. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  639. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  640. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  641. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +23 -0
  642. data/lib/stripe/params.rb +240 -0
  643. data/lib/stripe/resources/account.rb +166 -1
  644. data/lib/stripe/resources/account_notice.rb +94 -0
  645. data/lib/stripe/resources/account_session.rb +81 -0
  646. data/lib/stripe/resources/billing/alert.rb +105 -1
  647. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  648. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  649. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  650. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  651. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  652. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  653. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  654. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  655. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  656. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  657. data/lib/stripe/resources/card.rb +2 -0
  658. data/lib/stripe/resources/cash_balance.rb +2 -0
  659. data/lib/stripe/resources/charge.rb +234 -1
  660. data/lib/stripe/resources/checkout/session.rb +246 -4
  661. data/lib/stripe/resources/confirmation_token.rb +155 -0
  662. data/lib/stripe/resources/coupon.rb +26 -1
  663. data/lib/stripe/resources/credit_note.rb +21 -1
  664. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  665. data/lib/stripe/resources/customer.rb +2 -0
  666. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  667. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  668. data/lib/stripe/resources/customer_session.rb +2 -0
  669. data/lib/stripe/resources/discount.rb +2 -0
  670. data/lib/stripe/resources/dispute.rb +22 -0
  671. data/lib/stripe/resources/event.rb +64 -1
  672. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  673. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  674. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  675. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  676. data/lib/stripe/resources/fx_quote.rb +147 -0
  677. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  678. data/lib/stripe/resources/invoice.rb +152 -1
  679. data/lib/stripe/resources/invoice_item.rb +94 -2
  680. data/lib/stripe/resources/invoice_line_item.rb +131 -1
  681. data/lib/stripe/resources/invoice_payment.rb +2 -0
  682. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  683. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  684. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  685. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  686. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  687. data/lib/stripe/resources/line_item.rb +68 -1
  688. data/lib/stripe/resources/mandate.rb +71 -0
  689. data/lib/stripe/resources/margin.rb +64 -0
  690. data/lib/stripe/resources/order.rb +987 -0
  691. data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
  692. data/lib/stripe/resources/payment_intent.rb +848 -4
  693. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  694. data/lib/stripe/resources/payment_method.rb +157 -0
  695. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  696. data/lib/stripe/resources/payment_record.rb +2208 -0
  697. data/lib/stripe/resources/price.rb +20 -0
  698. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  699. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  700. data/lib/stripe/resources/promotion_code.rb +2 -0
  701. data/lib/stripe/resources/quote.rb +571 -2
  702. data/lib/stripe/resources/quote_line.rb +521 -0
  703. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  704. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  705. data/lib/stripe/resources/refund.rb +18 -0
  706. data/lib/stripe/resources/setup_attempt.rb +63 -0
  707. data/lib/stripe/resources/setup_intent.rb +132 -1
  708. data/lib/stripe/resources/source.rb +38 -0
  709. data/lib/stripe/resources/subscription.rb +232 -0
  710. data/lib/stripe/resources/subscription_item.rb +20 -1
  711. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  712. data/lib/stripe/resources/tax/association.rb +86 -0
  713. data/lib/stripe/resources/tax/form.rb +264 -0
  714. data/lib/stripe/resources/tax_id.rb +4 -0
  715. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  716. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  717. data/lib/stripe/resources/terminal/reader.rb +8 -0
  718. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  719. data/lib/stripe/resources/transfer.rb +2 -0
  720. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  721. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  722. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  723. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  724. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  725. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  726. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  727. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  728. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  729. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  730. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  731. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  732. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  733. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  734. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  735. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  736. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  737. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  738. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  739. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  740. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  741. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  742. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  743. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  744. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  745. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  746. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  747. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  748. data/lib/stripe/resources/v2/core/account.rb +3885 -0
  749. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  750. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  751. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  752. data/lib/stripe/resources/v2/core/event.rb +4 -0
  753. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  754. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  755. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  756. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  757. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  758. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  759. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  760. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  761. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  762. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  763. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  764. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  765. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  766. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  767. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  768. data/lib/stripe/resources/v2/money_management/received_debit.rb +138 -0
  769. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  770. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  771. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  772. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  773. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  774. data/lib/stripe/resources.rb +384 -0
  775. data/lib/stripe/services/account_notice_service.rb +39 -0
  776. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  777. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  778. data/lib/stripe/services/billing_service.rb +2 -1
  779. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  780. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  781. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  782. data/lib/stripe/services/capital_service.rb +15 -0
  783. data/lib/stripe/services/external_account_service.rb +68 -0
  784. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  785. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  786. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  787. data/lib/stripe/services/financial_connections_service.rb +2 -1
  788. data/lib/stripe/services/fx_quote_service.rb +27 -0
  789. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  790. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  791. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  792. data/lib/stripe/services/issuing_service.rb +5 -1
  793. data/lib/stripe/services/mandate_service.rb +5 -0
  794. data/lib/stripe/services/margin_service.rb +50 -0
  795. data/lib/stripe/services/order_line_item_service.rb +17 -0
  796. data/lib/stripe/services/order_service.rb +78 -0
  797. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  798. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  799. data/lib/stripe/services/payment_intent_service.rb +44 -0
  800. data/lib/stripe/services/payment_record_service.rb +89 -0
  801. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  802. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  803. data/lib/stripe/services/privacy_service.rb +13 -0
  804. data/lib/stripe/services/quote_line_service.rb +17 -0
  805. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  806. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  807. data/lib/stripe/services/quote_service.rb +49 -1
  808. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  809. data/lib/stripe/services/subscription_service.rb +11 -0
  810. data/lib/stripe/services/tax/association_service.rb +19 -0
  811. data/lib/stripe/services/tax/form_service.rb +37 -0
  812. data/lib/stripe/services/tax_service.rb +3 -1
  813. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  814. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  815. data/lib/stripe/services/terminal_service.rb +3 -1
  816. data/lib/stripe/services/v1_services.rb +10 -1
  817. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  818. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  819. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  820. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  821. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  822. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  823. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  824. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  825. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  826. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  827. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  828. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  829. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  830. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  831. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +43 -0
  832. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  833. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  834. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  835. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  836. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  837. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  838. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  839. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  840. data/lib/stripe/services/v2/billing_service.rb +18 -1
  841. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  842. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  843. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  844. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  845. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
  846. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
  847. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  848. data/lib/stripe/services/v2/core_service.rb +5 -1
  849. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  850. data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
  851. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  852. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  853. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  854. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  855. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  856. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  857. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  858. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  859. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  860. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  861. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  862. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  863. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  864. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  865. data/lib/stripe/services/v2/payment_service.rb +15 -0
  866. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  867. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  868. data/lib/stripe/services/v2/tax_service.rb +15 -0
  869. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  870. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  871. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  872. data/lib/stripe/services/v2_services.rb +5 -1
  873. data/lib/stripe/services.rb +83 -0
  874. data/lib/stripe/stripe_configuration.rb +3 -1
  875. data/lib/stripe/stripe_object.rb +1 -1
  876. data/lib/stripe/util.rb +7 -1
  877. data/lib/stripe/version.rb +1 -1
  878. data/lib/stripe.rb +53 -0
  879. data/rbi/stripe.rbi +165861 -94330
  880. metadata +711 -4
@@ -3,6 +3,184 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentConfirmParams < Stripe::RequestParams
6
+ class AmountDetails < Stripe::RequestParams
7
+ class LineItem < Stripe::RequestParams
8
+ class PaymentMethodOptions < Stripe::RequestParams
9
+ class Card < Stripe::RequestParams
10
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
11
+ attr_accessor :commodity_code
12
+
13
+ def initialize(commodity_code: nil)
14
+ @commodity_code = commodity_code
15
+ end
16
+ end
17
+
18
+ class CardPresent < Stripe::RequestParams
19
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
20
+ attr_accessor :commodity_code
21
+
22
+ def initialize(commodity_code: nil)
23
+ @commodity_code = commodity_code
24
+ end
25
+ end
26
+
27
+ class Klarna < Stripe::RequestParams
28
+ # URL to an image for the product. Max length, 4096 characters.
29
+ attr_accessor :image_url
30
+ # URL to the product page. Max length, 4096 characters.
31
+ attr_accessor :product_url
32
+ # Reference for the subscription this line item is for.
33
+ attr_accessor :subscription_reference
34
+
35
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
36
+ @image_url = image_url
37
+ @product_url = product_url
38
+ @subscription_reference = subscription_reference
39
+ end
40
+ end
41
+
42
+ class Paypal < Stripe::RequestParams
43
+ # Type of the line item.
44
+ attr_accessor :category
45
+ # Description of the line item.
46
+ attr_accessor :description
47
+ # The Stripe account ID of the connected account that sells the item.
48
+ attr_accessor :sold_by
49
+
50
+ def initialize(category: nil, description: nil, sold_by: nil)
51
+ @category = category
52
+ @description = description
53
+ @sold_by = sold_by
54
+ end
55
+ end
56
+ # This sub-hash contains line item details that are specific to `card` payment method."
57
+ attr_accessor :card
58
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
59
+ attr_accessor :card_present
60
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
61
+ attr_accessor :klarna
62
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
63
+ attr_accessor :paypal
64
+
65
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
66
+ @card = card
67
+ @card_present = card_present
68
+ @klarna = klarna
69
+ @paypal = paypal
70
+ end
71
+ end
72
+
73
+ class Tax < Stripe::RequestParams
74
+ # The total tax on an item. Non-negative integer.
75
+ attr_accessor :total_tax_amount
76
+
77
+ def initialize(total_tax_amount: nil)
78
+ @total_tax_amount = total_tax_amount
79
+ end
80
+ end
81
+ # The amount an item was discounted for. Positive integer.
82
+ attr_accessor :discount_amount
83
+ # Payment method-specific information for line items.
84
+ attr_accessor :payment_method_options
85
+ # Unique identifier of the product. At most 12 characters long.
86
+ attr_accessor :product_code
87
+ # Name of the product. At most 100 characters long.
88
+ attr_accessor :product_name
89
+ # Number of items of the product. Positive integer.
90
+ attr_accessor :quantity
91
+ # Contains information about the tax on the item.
92
+ attr_accessor :tax
93
+ # Cost of the product. Non-negative integer.
94
+ attr_accessor :unit_cost
95
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
96
+ attr_accessor :unit_of_measure
97
+
98
+ def initialize(
99
+ discount_amount: nil,
100
+ payment_method_options: nil,
101
+ product_code: nil,
102
+ product_name: nil,
103
+ quantity: nil,
104
+ tax: nil,
105
+ unit_cost: nil,
106
+ unit_of_measure: nil
107
+ )
108
+ @discount_amount = discount_amount
109
+ @payment_method_options = payment_method_options
110
+ @product_code = product_code
111
+ @product_name = product_name
112
+ @quantity = quantity
113
+ @tax = tax
114
+ @unit_cost = unit_cost
115
+ @unit_of_measure = unit_of_measure
116
+ end
117
+ end
118
+
119
+ class Shipping < Stripe::RequestParams
120
+ # Portion of the amount that is for shipping.
121
+ attr_accessor :amount
122
+ # The postal code that represents the shipping source.
123
+ attr_accessor :from_postal_code
124
+ # The postal code that represents the shipping destination.
125
+ attr_accessor :to_postal_code
126
+
127
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
128
+ @amount = amount
129
+ @from_postal_code = from_postal_code
130
+ @to_postal_code = to_postal_code
131
+ end
132
+ end
133
+
134
+ class Tax < Stripe::RequestParams
135
+ # Total portion of the amount that is for tax.
136
+ attr_accessor :total_tax_amount
137
+
138
+ def initialize(total_tax_amount: nil)
139
+ @total_tax_amount = total_tax_amount
140
+ end
141
+ end
142
+ # The total discount applied on the transaction.
143
+ attr_accessor :discount_amount
144
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
145
+ attr_accessor :line_items
146
+ # Contains information about the shipping portion of the amount.
147
+ attr_accessor :shipping
148
+ # Contains information about the tax portion of the amount.
149
+ attr_accessor :tax
150
+
151
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
152
+ @discount_amount = discount_amount
153
+ @line_items = line_items
154
+ @shipping = shipping
155
+ @tax = tax
156
+ end
157
+ end
158
+
159
+ class Hooks < Stripe::RequestParams
160
+ class Inputs < Stripe::RequestParams
161
+ class Tax < Stripe::RequestParams
162
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
163
+ attr_accessor :calculation
164
+
165
+ def initialize(calculation: nil)
166
+ @calculation = calculation
167
+ end
168
+ end
169
+ # Tax arguments for automations
170
+ attr_accessor :tax
171
+
172
+ def initialize(tax: nil)
173
+ @tax = tax
174
+ end
175
+ end
176
+ # Arguments passed in automations
177
+ attr_accessor :inputs
178
+
179
+ def initialize(inputs: nil)
180
+ @inputs = inputs
181
+ end
182
+ end
183
+
6
184
  class MandateData < Stripe::RequestParams
7
185
  class CustomerAcceptance < Stripe::RequestParams
8
186
  class Offline < Stripe::RequestParams; end
@@ -34,11 +212,716 @@ module Stripe
34
212
  @type = type
35
213
  end
36
214
  end
37
- # This hash contains details about the customer acceptance of the Mandate.
38
- attr_accessor :customer_acceptance
215
+ # This hash contains details about the customer acceptance of the Mandate.
216
+ attr_accessor :customer_acceptance
217
+
218
+ def initialize(customer_acceptance: nil)
219
+ @customer_acceptance = customer_acceptance
220
+ end
221
+ end
222
+
223
+ class PaymentDetails < Stripe::RequestParams
224
+ class CarRental < Stripe::RequestParams
225
+ class Affiliate < Stripe::RequestParams
226
+ # The name of the affiliate that originated the purchase.
227
+ attr_accessor :name
228
+
229
+ def initialize(name: nil)
230
+ @name = name
231
+ end
232
+ end
233
+
234
+ class Delivery < Stripe::RequestParams
235
+ class Recipient < Stripe::RequestParams
236
+ # The email of the recipient the ticket is delivered to.
237
+ attr_accessor :email
238
+ # The name of the recipient the ticket is delivered to.
239
+ attr_accessor :name
240
+ # The phone number of the recipient the ticket is delivered to.
241
+ attr_accessor :phone
242
+
243
+ def initialize(email: nil, name: nil, phone: nil)
244
+ @email = email
245
+ @name = name
246
+ @phone = phone
247
+ end
248
+ end
249
+ # The delivery method for the payment
250
+ attr_accessor :mode
251
+ # Details of the recipient.
252
+ attr_accessor :recipient
253
+
254
+ def initialize(mode: nil, recipient: nil)
255
+ @mode = mode
256
+ @recipient = recipient
257
+ end
258
+ end
259
+
260
+ class Distance < Stripe::RequestParams
261
+ # Distance traveled.
262
+ attr_accessor :amount
263
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
264
+ attr_accessor :unit
265
+
266
+ def initialize(amount: nil, unit: nil)
267
+ @amount = amount
268
+ @unit = unit
269
+ end
270
+ end
271
+
272
+ class Driver < Stripe::RequestParams
273
+ # Driver's identification number.
274
+ attr_accessor :driver_identification_number
275
+ # Driver's tax number.
276
+ attr_accessor :driver_tax_number
277
+ # Full name of the person or entity on the car reservation.
278
+ attr_accessor :name
279
+
280
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
281
+ @driver_identification_number = driver_identification_number
282
+ @driver_tax_number = driver_tax_number
283
+ @name = name
284
+ end
285
+ end
286
+
287
+ class PickupAddress < Stripe::RequestParams
288
+ # City, district, suburb, town, or village.
289
+ attr_accessor :city
290
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
291
+ attr_accessor :country
292
+ # Address line 1, such as the street, PO Box, or company name.
293
+ attr_accessor :line1
294
+ # Address line 2, such as the apartment, suite, unit, or building.
295
+ attr_accessor :line2
296
+ # ZIP or postal code.
297
+ attr_accessor :postal_code
298
+ # State, county, province, or region.
299
+ attr_accessor :state
300
+
301
+ def initialize(
302
+ city: nil,
303
+ country: nil,
304
+ line1: nil,
305
+ line2: nil,
306
+ postal_code: nil,
307
+ state: nil
308
+ )
309
+ @city = city
310
+ @country = country
311
+ @line1 = line1
312
+ @line2 = line2
313
+ @postal_code = postal_code
314
+ @state = state
315
+ end
316
+ end
317
+
318
+ class ReturnAddress < Stripe::RequestParams
319
+ # City, district, suburb, town, or village.
320
+ attr_accessor :city
321
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
322
+ attr_accessor :country
323
+ # Address line 1, such as the street, PO Box, or company name.
324
+ attr_accessor :line1
325
+ # Address line 2, such as the apartment, suite, unit, or building.
326
+ attr_accessor :line2
327
+ # ZIP or postal code.
328
+ attr_accessor :postal_code
329
+ # State, county, province, or region.
330
+ attr_accessor :state
331
+
332
+ def initialize(
333
+ city: nil,
334
+ country: nil,
335
+ line1: nil,
336
+ line2: nil,
337
+ postal_code: nil,
338
+ state: nil
339
+ )
340
+ @city = city
341
+ @country = country
342
+ @line1 = line1
343
+ @line2 = line2
344
+ @postal_code = postal_code
345
+ @state = state
346
+ end
347
+ end
348
+ # Affiliate details for this purchase.
349
+ attr_accessor :affiliate
350
+ # The booking number associated with the car rental.
351
+ attr_accessor :booking_number
352
+ # Class code of the car.
353
+ attr_accessor :car_class_code
354
+ # Make of the car.
355
+ attr_accessor :car_make
356
+ # Model of the car.
357
+ attr_accessor :car_model
358
+ # The name of the rental car company.
359
+ attr_accessor :company
360
+ # The customer service phone number of the car rental company.
361
+ attr_accessor :customer_service_phone_number
362
+ # Number of days the car is being rented.
363
+ attr_accessor :days_rented
364
+ # Delivery details for this purchase.
365
+ attr_accessor :delivery
366
+ # The details of the distance traveled during the rental period.
367
+ attr_accessor :distance
368
+ # The details of the passengers in the travel reservation
369
+ attr_accessor :drivers
370
+ # List of additional charges being billed.
371
+ attr_accessor :extra_charges
372
+ # Indicates if the customer did not keep nor cancel their booking.
373
+ attr_accessor :no_show
374
+ # Car pick-up address.
375
+ attr_accessor :pickup_address
376
+ # Car pick-up time. Measured in seconds since the Unix epoch.
377
+ attr_accessor :pickup_at
378
+ # Name of the pickup location.
379
+ attr_accessor :pickup_location_name
380
+ # Rental rate.
381
+ attr_accessor :rate_amount
382
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
383
+ attr_accessor :rate_interval
384
+ # The name of the person or entity renting the car.
385
+ attr_accessor :renter_name
386
+ # Car return address.
387
+ attr_accessor :return_address
388
+ # Car return time. Measured in seconds since the Unix epoch.
389
+ attr_accessor :return_at
390
+ # Name of the return location.
391
+ attr_accessor :return_location_name
392
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
393
+ attr_accessor :tax_exempt
394
+ # The vehicle identification number.
395
+ attr_accessor :vehicle_identification_number
396
+
397
+ def initialize(
398
+ affiliate: nil,
399
+ booking_number: nil,
400
+ car_class_code: nil,
401
+ car_make: nil,
402
+ car_model: nil,
403
+ company: nil,
404
+ customer_service_phone_number: nil,
405
+ days_rented: nil,
406
+ delivery: nil,
407
+ distance: nil,
408
+ drivers: nil,
409
+ extra_charges: nil,
410
+ no_show: nil,
411
+ pickup_address: nil,
412
+ pickup_at: nil,
413
+ pickup_location_name: nil,
414
+ rate_amount: nil,
415
+ rate_interval: nil,
416
+ renter_name: nil,
417
+ return_address: nil,
418
+ return_at: nil,
419
+ return_location_name: nil,
420
+ tax_exempt: nil,
421
+ vehicle_identification_number: nil
422
+ )
423
+ @affiliate = affiliate
424
+ @booking_number = booking_number
425
+ @car_class_code = car_class_code
426
+ @car_make = car_make
427
+ @car_model = car_model
428
+ @company = company
429
+ @customer_service_phone_number = customer_service_phone_number
430
+ @days_rented = days_rented
431
+ @delivery = delivery
432
+ @distance = distance
433
+ @drivers = drivers
434
+ @extra_charges = extra_charges
435
+ @no_show = no_show
436
+ @pickup_address = pickup_address
437
+ @pickup_at = pickup_at
438
+ @pickup_location_name = pickup_location_name
439
+ @rate_amount = rate_amount
440
+ @rate_interval = rate_interval
441
+ @renter_name = renter_name
442
+ @return_address = return_address
443
+ @return_at = return_at
444
+ @return_location_name = return_location_name
445
+ @tax_exempt = tax_exempt
446
+ @vehicle_identification_number = vehicle_identification_number
447
+ end
448
+ end
449
+
450
+ class EventDetails < Stripe::RequestParams
451
+ class Address < Stripe::RequestParams
452
+ # City, district, suburb, town, or village.
453
+ attr_accessor :city
454
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
455
+ attr_accessor :country
456
+ # Address line 1, such as the street, PO Box, or company name.
457
+ attr_accessor :line1
458
+ # Address line 2, such as the apartment, suite, unit, or building.
459
+ attr_accessor :line2
460
+ # ZIP or postal code.
461
+ attr_accessor :postal_code
462
+ # State, county, province, or region.
463
+ attr_accessor :state
464
+
465
+ def initialize(
466
+ city: nil,
467
+ country: nil,
468
+ line1: nil,
469
+ line2: nil,
470
+ postal_code: nil,
471
+ state: nil
472
+ )
473
+ @city = city
474
+ @country = country
475
+ @line1 = line1
476
+ @line2 = line2
477
+ @postal_code = postal_code
478
+ @state = state
479
+ end
480
+ end
481
+
482
+ class Affiliate < Stripe::RequestParams
483
+ # The name of the affiliate that originated the purchase.
484
+ attr_accessor :name
485
+
486
+ def initialize(name: nil)
487
+ @name = name
488
+ end
489
+ end
490
+
491
+ class Delivery < Stripe::RequestParams
492
+ class Recipient < Stripe::RequestParams
493
+ # The email of the recipient the ticket is delivered to.
494
+ attr_accessor :email
495
+ # The name of the recipient the ticket is delivered to.
496
+ attr_accessor :name
497
+ # The phone number of the recipient the ticket is delivered to.
498
+ attr_accessor :phone
499
+
500
+ def initialize(email: nil, name: nil, phone: nil)
501
+ @email = email
502
+ @name = name
503
+ @phone = phone
504
+ end
505
+ end
506
+ # The delivery method for the payment
507
+ attr_accessor :mode
508
+ # Details of the recipient.
509
+ attr_accessor :recipient
510
+
511
+ def initialize(mode: nil, recipient: nil)
512
+ @mode = mode
513
+ @recipient = recipient
514
+ end
515
+ end
516
+ # Indicates if the tickets are digitally checked when entering the venue.
517
+ attr_accessor :access_controlled_venue
518
+ # The event location's address.
519
+ attr_accessor :address
520
+ # Affiliate details for this purchase.
521
+ attr_accessor :affiliate
522
+ # The name of the company
523
+ attr_accessor :company
524
+ # Delivery details for this purchase.
525
+ attr_accessor :delivery
526
+ # Event end time. Measured in seconds since the Unix epoch.
527
+ attr_accessor :ends_at
528
+ # Type of the event entertainment (concert, sports event etc)
529
+ attr_accessor :genre
530
+ # The name of the event.
531
+ attr_accessor :name
532
+ # Event start time. Measured in seconds since the Unix epoch.
533
+ attr_accessor :starts_at
534
+
535
+ def initialize(
536
+ access_controlled_venue: nil,
537
+ address: nil,
538
+ affiliate: nil,
539
+ company: nil,
540
+ delivery: nil,
541
+ ends_at: nil,
542
+ genre: nil,
543
+ name: nil,
544
+ starts_at: nil
545
+ )
546
+ @access_controlled_venue = access_controlled_venue
547
+ @address = address
548
+ @affiliate = affiliate
549
+ @company = company
550
+ @delivery = delivery
551
+ @ends_at = ends_at
552
+ @genre = genre
553
+ @name = name
554
+ @starts_at = starts_at
555
+ end
556
+ end
557
+
558
+ class Flight < Stripe::RequestParams
559
+ class Affiliate < Stripe::RequestParams
560
+ # The name of the affiliate that originated the purchase.
561
+ attr_accessor :name
562
+
563
+ def initialize(name: nil)
564
+ @name = name
565
+ end
566
+ end
567
+
568
+ class Delivery < Stripe::RequestParams
569
+ class Recipient < Stripe::RequestParams
570
+ # The email of the recipient the ticket is delivered to.
571
+ attr_accessor :email
572
+ # The name of the recipient the ticket is delivered to.
573
+ attr_accessor :name
574
+ # The phone number of the recipient the ticket is delivered to.
575
+ attr_accessor :phone
576
+
577
+ def initialize(email: nil, name: nil, phone: nil)
578
+ @email = email
579
+ @name = name
580
+ @phone = phone
581
+ end
582
+ end
583
+ # The delivery method for the payment
584
+ attr_accessor :mode
585
+ # Details of the recipient.
586
+ attr_accessor :recipient
587
+
588
+ def initialize(mode: nil, recipient: nil)
589
+ @mode = mode
590
+ @recipient = recipient
591
+ end
592
+ end
593
+
594
+ class Passenger < Stripe::RequestParams
595
+ # Full name of the person or entity on the flight reservation.
596
+ attr_accessor :name
597
+
598
+ def initialize(name: nil)
599
+ @name = name
600
+ end
601
+ end
602
+
603
+ class Segment < Stripe::RequestParams
604
+ # The flight segment amount.
605
+ attr_accessor :amount
606
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
607
+ attr_accessor :arrival_airport
608
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
609
+ attr_accessor :arrives_at
610
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
611
+ attr_accessor :carrier
612
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
613
+ attr_accessor :departs_at
614
+ # The International Air Transport Association (IATA) airport code for the departure airport.
615
+ attr_accessor :departure_airport
616
+ # The flight number associated with the segment
617
+ attr_accessor :flight_number
618
+ # The fare class for the segment.
619
+ attr_accessor :service_class
620
+
621
+ def initialize(
622
+ amount: nil,
623
+ arrival_airport: nil,
624
+ arrives_at: nil,
625
+ carrier: nil,
626
+ departs_at: nil,
627
+ departure_airport: nil,
628
+ flight_number: nil,
629
+ service_class: nil
630
+ )
631
+ @amount = amount
632
+ @arrival_airport = arrival_airport
633
+ @arrives_at = arrives_at
634
+ @carrier = carrier
635
+ @departs_at = departs_at
636
+ @departure_airport = departure_airport
637
+ @flight_number = flight_number
638
+ @service_class = service_class
639
+ end
640
+ end
641
+ # Affiliate details for this purchase.
642
+ attr_accessor :affiliate
643
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
644
+ attr_accessor :agency_number
645
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
646
+ attr_accessor :carrier
647
+ # Delivery details for this purchase.
648
+ attr_accessor :delivery
649
+ # The name of the person or entity on the reservation.
650
+ attr_accessor :passenger_name
651
+ # The details of the passengers in the travel reservation.
652
+ attr_accessor :passengers
653
+ # The individual flight segments associated with the trip.
654
+ attr_accessor :segments
655
+ # The ticket number associated with the travel reservation.
656
+ attr_accessor :ticket_number
657
+
658
+ def initialize(
659
+ affiliate: nil,
660
+ agency_number: nil,
661
+ carrier: nil,
662
+ delivery: nil,
663
+ passenger_name: nil,
664
+ passengers: nil,
665
+ segments: nil,
666
+ ticket_number: nil
667
+ )
668
+ @affiliate = affiliate
669
+ @agency_number = agency_number
670
+ @carrier = carrier
671
+ @delivery = delivery
672
+ @passenger_name = passenger_name
673
+ @passengers = passengers
674
+ @segments = segments
675
+ @ticket_number = ticket_number
676
+ end
677
+ end
678
+
679
+ class Lodging < Stripe::RequestParams
680
+ class Address < Stripe::RequestParams
681
+ # City, district, suburb, town, or village.
682
+ attr_accessor :city
683
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
684
+ attr_accessor :country
685
+ # Address line 1, such as the street, PO Box, or company name.
686
+ attr_accessor :line1
687
+ # Address line 2, such as the apartment, suite, unit, or building.
688
+ attr_accessor :line2
689
+ # ZIP or postal code.
690
+ attr_accessor :postal_code
691
+ # State, county, province, or region.
692
+ attr_accessor :state
693
+
694
+ def initialize(
695
+ city: nil,
696
+ country: nil,
697
+ line1: nil,
698
+ line2: nil,
699
+ postal_code: nil,
700
+ state: nil
701
+ )
702
+ @city = city
703
+ @country = country
704
+ @line1 = line1
705
+ @line2 = line2
706
+ @postal_code = postal_code
707
+ @state = state
708
+ end
709
+ end
710
+
711
+ class Affiliate < Stripe::RequestParams
712
+ # The name of the affiliate that originated the purchase.
713
+ attr_accessor :name
714
+
715
+ def initialize(name: nil)
716
+ @name = name
717
+ end
718
+ end
719
+
720
+ class Delivery < Stripe::RequestParams
721
+ class Recipient < Stripe::RequestParams
722
+ # The email of the recipient the ticket is delivered to.
723
+ attr_accessor :email
724
+ # The name of the recipient the ticket is delivered to.
725
+ attr_accessor :name
726
+ # The phone number of the recipient the ticket is delivered to.
727
+ attr_accessor :phone
728
+
729
+ def initialize(email: nil, name: nil, phone: nil)
730
+ @email = email
731
+ @name = name
732
+ @phone = phone
733
+ end
734
+ end
735
+ # The delivery method for the payment
736
+ attr_accessor :mode
737
+ # Details of the recipient.
738
+ attr_accessor :recipient
739
+
740
+ def initialize(mode: nil, recipient: nil)
741
+ @mode = mode
742
+ @recipient = recipient
743
+ end
744
+ end
745
+
746
+ class Passenger < Stripe::RequestParams
747
+ # Full name of the person or entity on the lodging reservation.
748
+ attr_accessor :name
749
+
750
+ def initialize(name: nil)
751
+ @name = name
752
+ end
753
+ end
754
+ # The lodging location's address.
755
+ attr_accessor :address
756
+ # The number of adults on the booking
757
+ attr_accessor :adults
758
+ # Affiliate details for this purchase.
759
+ attr_accessor :affiliate
760
+ # The booking number associated with the lodging reservation.
761
+ attr_accessor :booking_number
762
+ # The lodging category
763
+ attr_accessor :category
764
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
765
+ attr_accessor :checkin_at
766
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
767
+ attr_accessor :checkout_at
768
+ # The customer service phone number of the lodging company.
769
+ attr_accessor :customer_service_phone_number
770
+ # The daily lodging room rate.
771
+ attr_accessor :daily_room_rate_amount
772
+ # Delivery details for this purchase.
773
+ attr_accessor :delivery
774
+ # List of additional charges being billed.
775
+ attr_accessor :extra_charges
776
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
777
+ attr_accessor :fire_safety_act_compliance
778
+ # The name of the lodging location.
779
+ attr_accessor :name
780
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
781
+ attr_accessor :no_show
782
+ # The number of rooms on the booking
783
+ attr_accessor :number_of_rooms
784
+ # The details of the passengers in the travel reservation
785
+ attr_accessor :passengers
786
+ # The phone number of the lodging location.
787
+ attr_accessor :property_phone_number
788
+ # The room class for this purchase.
789
+ attr_accessor :room_class
790
+ # The number of room nights
791
+ attr_accessor :room_nights
792
+ # The total tax amount associating with the room reservation.
793
+ attr_accessor :total_room_tax_amount
794
+ # The total tax amount
795
+ attr_accessor :total_tax_amount
796
+
797
+ def initialize(
798
+ address: nil,
799
+ adults: nil,
800
+ affiliate: nil,
801
+ booking_number: nil,
802
+ category: nil,
803
+ checkin_at: nil,
804
+ checkout_at: nil,
805
+ customer_service_phone_number: nil,
806
+ daily_room_rate_amount: nil,
807
+ delivery: nil,
808
+ extra_charges: nil,
809
+ fire_safety_act_compliance: nil,
810
+ name: nil,
811
+ no_show: nil,
812
+ number_of_rooms: nil,
813
+ passengers: nil,
814
+ property_phone_number: nil,
815
+ room_class: nil,
816
+ room_nights: nil,
817
+ total_room_tax_amount: nil,
818
+ total_tax_amount: nil
819
+ )
820
+ @address = address
821
+ @adults = adults
822
+ @affiliate = affiliate
823
+ @booking_number = booking_number
824
+ @category = category
825
+ @checkin_at = checkin_at
826
+ @checkout_at = checkout_at
827
+ @customer_service_phone_number = customer_service_phone_number
828
+ @daily_room_rate_amount = daily_room_rate_amount
829
+ @delivery = delivery
830
+ @extra_charges = extra_charges
831
+ @fire_safety_act_compliance = fire_safety_act_compliance
832
+ @name = name
833
+ @no_show = no_show
834
+ @number_of_rooms = number_of_rooms
835
+ @passengers = passengers
836
+ @property_phone_number = property_phone_number
837
+ @room_class = room_class
838
+ @room_nights = room_nights
839
+ @total_room_tax_amount = total_room_tax_amount
840
+ @total_tax_amount = total_tax_amount
841
+ end
842
+ end
39
843
 
40
- def initialize(customer_acceptance: nil)
41
- @customer_acceptance = customer_acceptance
844
+ class Subscription < Stripe::RequestParams
845
+ class Affiliate < Stripe::RequestParams
846
+ # The name of the affiliate that originated the purchase.
847
+ attr_accessor :name
848
+
849
+ def initialize(name: nil)
850
+ @name = name
851
+ end
852
+ end
853
+
854
+ class BillingInterval < Stripe::RequestParams
855
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
856
+ attr_accessor :count
857
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
858
+ attr_accessor :interval
859
+
860
+ def initialize(count: nil, interval: nil)
861
+ @count = count
862
+ @interval = interval
863
+ end
864
+ end
865
+ # Affiliate details for this purchase.
866
+ attr_accessor :affiliate
867
+ # Info whether the subscription will be auto renewed upon expiry.
868
+ attr_accessor :auto_renewal
869
+ # Subscription billing details for this purchase.
870
+ attr_accessor :billing_interval
871
+ # Subscription end time. Measured in seconds since the Unix epoch.
872
+ attr_accessor :ends_at
873
+ # Name of the product on subscription. e.g. Apple Music Subscription
874
+ attr_accessor :name
875
+ # Subscription start time. Measured in seconds since the Unix epoch.
876
+ attr_accessor :starts_at
877
+
878
+ def initialize(
879
+ affiliate: nil,
880
+ auto_renewal: nil,
881
+ billing_interval: nil,
882
+ ends_at: nil,
883
+ name: nil,
884
+ starts_at: nil
885
+ )
886
+ @affiliate = affiliate
887
+ @auto_renewal = auto_renewal
888
+ @billing_interval = billing_interval
889
+ @ends_at = ends_at
890
+ @name = name
891
+ @starts_at = starts_at
892
+ end
893
+ end
894
+ # Car rental details for this PaymentIntent.
895
+ attr_accessor :car_rental
896
+ # 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.
897
+ attr_accessor :customer_reference
898
+ # Event details for this PaymentIntent
899
+ attr_accessor :event_details
900
+ # Flight reservation details for this PaymentIntent
901
+ attr_accessor :flight
902
+ # Lodging reservation details for this PaymentIntent
903
+ attr_accessor :lodging
904
+ # A unique value assigned by the business to identify the transaction.
905
+ attr_accessor :order_reference
906
+ # Subscription details for this PaymentIntent
907
+ attr_accessor :subscription
908
+
909
+ def initialize(
910
+ car_rental: nil,
911
+ customer_reference: nil,
912
+ event_details: nil,
913
+ flight: nil,
914
+ lodging: nil,
915
+ order_reference: nil,
916
+ subscription: nil
917
+ )
918
+ @car_rental = car_rental
919
+ @customer_reference = customer_reference
920
+ @event_details = event_details
921
+ @flight = flight
922
+ @lodging = lodging
923
+ @order_reference = order_reference
924
+ @subscription = subscription
42
925
  end
43
926
  end
44
927
 
@@ -179,8 +1062,18 @@ module Stripe
179
1062
  end
180
1063
 
181
1064
  class Giropay < Stripe::RequestParams; end
1065
+ class Gopay < Stripe::RequestParams; end
182
1066
  class Grabpay < Stripe::RequestParams; end
183
1067
 
1068
+ class IdBankTransfer < Stripe::RequestParams
1069
+ # Bank where the account is held.
1070
+ attr_accessor :bank
1071
+
1072
+ def initialize(bank: nil)
1073
+ @bank = bank
1074
+ end
1075
+ end
1076
+
184
1077
  class Ideal < Stripe::RequestParams
185
1078
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
186
1079
  attr_accessor :bank
@@ -278,8 +1171,26 @@ module Stripe
278
1171
  class Payco < Stripe::RequestParams; end
279
1172
  class Paynow < Stripe::RequestParams; end
280
1173
  class Paypal < Stripe::RequestParams; end
1174
+ class Paypay < Stripe::RequestParams; end
1175
+
1176
+ class Payto < Stripe::RequestParams
1177
+ # The account number for the bank account.
1178
+ attr_accessor :account_number
1179
+ # Bank-State-Branch number of the bank account.
1180
+ attr_accessor :bsb_number
1181
+ # The PayID alias for the bank account.
1182
+ attr_accessor :pay_id
1183
+
1184
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1185
+ @account_number = account_number
1186
+ @bsb_number = bsb_number
1187
+ @pay_id = pay_id
1188
+ end
1189
+ end
1190
+
281
1191
  class Pix < Stripe::RequestParams; end
282
1192
  class Promptpay < Stripe::RequestParams; end
1193
+ class Qris < Stripe::RequestParams; end
283
1194
 
284
1195
  class RadarOptions < Stripe::RequestParams
285
1196
  # 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.
@@ -290,6 +1201,29 @@ module Stripe
290
1201
  end
291
1202
  end
292
1203
 
1204
+ class Rechnung < Stripe::RequestParams
1205
+ class Dob < Stripe::RequestParams
1206
+ # The day of birth, between 1 and 31.
1207
+ attr_accessor :day
1208
+ # The month of birth, between 1 and 12.
1209
+ attr_accessor :month
1210
+ # The four-digit year of birth.
1211
+ attr_accessor :year
1212
+
1213
+ def initialize(day: nil, month: nil, year: nil)
1214
+ @day = day
1215
+ @month = month
1216
+ @year = year
1217
+ end
1218
+ end
1219
+ # Customer's date of birth
1220
+ attr_accessor :dob
1221
+
1222
+ def initialize(dob: nil)
1223
+ @dob = dob
1224
+ end
1225
+ end
1226
+
293
1227
  class RevolutPay < Stripe::RequestParams; end
294
1228
  class SamsungPay < Stripe::RequestParams; end
295
1229
  class Satispay < Stripe::RequestParams; end
@@ -303,6 +1237,8 @@ module Stripe
303
1237
  end
304
1238
  end
305
1239
 
1240
+ class Shopeepay < Stripe::RequestParams; end
1241
+
306
1242
  class Sofort < Stripe::RequestParams
307
1243
  # Two-letter ISO code representing the country the bank account is located in.
308
1244
  attr_accessor :country
@@ -312,6 +1248,18 @@ module Stripe
312
1248
  end
313
1249
  end
314
1250
 
1251
+ class StripeBalance < Stripe::RequestParams
1252
+ # The connected account ID whose Stripe balance to use as the source of payment
1253
+ attr_accessor :account
1254
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1255
+ attr_accessor :source_type
1256
+
1257
+ def initialize(account: nil, source_type: nil)
1258
+ @account = account
1259
+ @source_type = source_type
1260
+ end
1261
+ end
1262
+
315
1263
  class Swish < Stripe::RequestParams; end
316
1264
  class Twint < Stripe::RequestParams; end
317
1265
 
@@ -384,8 +1332,12 @@ module Stripe
384
1332
  attr_accessor :fpx
385
1333
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
386
1334
  attr_accessor :giropay
1335
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1336
+ attr_accessor :gopay
387
1337
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
388
1338
  attr_accessor :grabpay
1339
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1340
+ attr_accessor :id_bank_transfer
389
1341
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
390
1342
  attr_accessor :ideal
391
1343
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -424,12 +1376,20 @@ module Stripe
424
1376
  attr_accessor :paynow
425
1377
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
426
1378
  attr_accessor :paypal
1379
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1380
+ attr_accessor :paypay
1381
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1382
+ attr_accessor :payto
427
1383
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
428
1384
  attr_accessor :pix
429
1385
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
430
1386
  attr_accessor :promptpay
1387
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1388
+ attr_accessor :qris
431
1389
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
432
1390
  attr_accessor :radar_options
1391
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1392
+ attr_accessor :rechnung
433
1393
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
434
1394
  attr_accessor :revolut_pay
435
1395
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -438,8 +1398,12 @@ module Stripe
438
1398
  attr_accessor :satispay
439
1399
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
440
1400
  attr_accessor :sepa_debit
1401
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1402
+ attr_accessor :shopeepay
441
1403
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
442
1404
  attr_accessor :sofort
1405
+ # This hash contains details about the Stripe balance payment method.
1406
+ attr_accessor :stripe_balance
443
1407
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
444
1408
  attr_accessor :swish
445
1409
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -474,7 +1438,9 @@ module Stripe
474
1438
  eps: nil,
475
1439
  fpx: nil,
476
1440
  giropay: nil,
1441
+ gopay: nil,
477
1442
  grabpay: nil,
1443
+ id_bank_transfer: nil,
478
1444
  ideal: nil,
479
1445
  interac_present: nil,
480
1446
  kakao_pay: nil,
@@ -494,14 +1460,20 @@ module Stripe
494
1460
  payco: nil,
495
1461
  paynow: nil,
496
1462
  paypal: nil,
1463
+ paypay: nil,
1464
+ payto: nil,
497
1465
  pix: nil,
498
1466
  promptpay: nil,
1467
+ qris: nil,
499
1468
  radar_options: nil,
1469
+ rechnung: nil,
500
1470
  revolut_pay: nil,
501
1471
  samsung_pay: nil,
502
1472
  satispay: nil,
503
1473
  sepa_debit: nil,
1474
+ shopeepay: nil,
504
1475
  sofort: nil,
1476
+ stripe_balance: nil,
505
1477
  swish: nil,
506
1478
  twint: nil,
507
1479
  type: nil,
@@ -529,7 +1501,9 @@ module Stripe
529
1501
  @eps = eps
530
1502
  @fpx = fpx
531
1503
  @giropay = giropay
1504
+ @gopay = gopay
532
1505
  @grabpay = grabpay
1506
+ @id_bank_transfer = id_bank_transfer
533
1507
  @ideal = ideal
534
1508
  @interac_present = interac_present
535
1509
  @kakao_pay = kakao_pay
@@ -549,14 +1523,20 @@ module Stripe
549
1523
  @payco = payco
550
1524
  @paynow = paynow
551
1525
  @paypal = paypal
1526
+ @paypay = paypay
1527
+ @payto = payto
552
1528
  @pix = pix
553
1529
  @promptpay = promptpay
1530
+ @qris = qris
554
1531
  @radar_options = radar_options
1532
+ @rechnung = rechnung
555
1533
  @revolut_pay = revolut_pay
556
1534
  @samsung_pay = samsung_pay
557
1535
  @satispay = satispay
558
1536
  @sepa_debit = sepa_debit
1537
+ @shopeepay = shopeepay
559
1538
  @sofort = sofort
1539
+ @stripe_balance = stripe_balance
560
1540
  @swish = swish
561
1541
  @twint = twint
562
1542
  @type = type
@@ -927,6 +1907,48 @@ module Stripe
927
1907
  end
928
1908
  end
929
1909
 
1910
+ class StatementDetails < Stripe::RequestParams
1911
+ class Address < Stripe::RequestParams
1912
+ # City, district, suburb, town, or village.
1913
+ attr_accessor :city
1914
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1915
+ attr_accessor :country
1916
+ # Address line 1, such as the street, PO Box, or company name.
1917
+ attr_accessor :line1
1918
+ # Address line 2, such as the apartment, suite, unit, or building.
1919
+ attr_accessor :line2
1920
+ # ZIP or postal code.
1921
+ attr_accessor :postal_code
1922
+ # State, county, province, or region.
1923
+ attr_accessor :state
1924
+
1925
+ def initialize(
1926
+ city: nil,
1927
+ country: nil,
1928
+ line1: nil,
1929
+ line2: nil,
1930
+ postal_code: nil,
1931
+ state: nil
1932
+ )
1933
+ @city = city
1934
+ @country = country
1935
+ @line1 = line1
1936
+ @line2 = line2
1937
+ @postal_code = postal_code
1938
+ @state = state
1939
+ end
1940
+ end
1941
+ # Please pass in an address that is within your Stripe user account country
1942
+ attr_accessor :address
1943
+ # Phone number (e.g., a toll-free number that customers can call)
1944
+ attr_accessor :phone
1945
+
1946
+ def initialize(address: nil, phone: nil)
1947
+ @address = address
1948
+ @phone = phone
1949
+ end
1950
+ end
1951
+
930
1952
  class ThreeDSecure < Stripe::RequestParams
931
1953
  class NetworkOptions < Stripe::RequestParams
932
1954
  class CartesBancaires < Stripe::RequestParams
@@ -1021,6 +2043,8 @@ module Stripe
1021
2043
  attr_accessor :moto
1022
2044
  # 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.
1023
2045
  attr_accessor :network
2046
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2047
+ attr_accessor :request_decremental_authorization
1024
2048
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1025
2049
  attr_accessor :request_extended_authorization
1026
2050
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1029,6 +2053,8 @@ module Stripe
1029
2053
  attr_accessor :request_multicapture
1030
2054
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1031
2055
  attr_accessor :request_overcapture
2056
+ # Request partial authorization on this PaymentIntent.
2057
+ attr_accessor :request_partial_authorization
1032
2058
  # 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.
1033
2059
  attr_accessor :request_three_d_secure
1034
2060
  # 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).
@@ -1047,6 +2073,8 @@ module Stripe
1047
2073
  attr_accessor :statement_descriptor_suffix_kana
1048
2074
  # 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.
1049
2075
  attr_accessor :statement_descriptor_suffix_kanji
2076
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2077
+ attr_accessor :statement_details
1050
2078
  # If 3D Secure authentication was performed with a third-party provider,
1051
2079
  # the authentication details to use for this payment.
1052
2080
  attr_accessor :three_d_secure
@@ -1058,15 +2086,18 @@ module Stripe
1058
2086
  mandate_options: nil,
1059
2087
  moto: nil,
1060
2088
  network: nil,
2089
+ request_decremental_authorization: nil,
1061
2090
  request_extended_authorization: nil,
1062
2091
  request_incremental_authorization: nil,
1063
2092
  request_multicapture: nil,
1064
2093
  request_overcapture: nil,
2094
+ request_partial_authorization: nil,
1065
2095
  request_three_d_secure: nil,
1066
2096
  require_cvc_recollection: nil,
1067
2097
  setup_future_usage: nil,
1068
2098
  statement_descriptor_suffix_kana: nil,
1069
2099
  statement_descriptor_suffix_kanji: nil,
2100
+ statement_details: nil,
1070
2101
  three_d_secure: nil
1071
2102
  )
1072
2103
  @capture_method = capture_method
@@ -1075,15 +2106,18 @@ module Stripe
1075
2106
  @mandate_options = mandate_options
1076
2107
  @moto = moto
1077
2108
  @network = network
2109
+ @request_decremental_authorization = request_decremental_authorization
1078
2110
  @request_extended_authorization = request_extended_authorization
1079
2111
  @request_incremental_authorization = request_incremental_authorization
1080
2112
  @request_multicapture = request_multicapture
1081
2113
  @request_overcapture = request_overcapture
2114
+ @request_partial_authorization = request_partial_authorization
1082
2115
  @request_three_d_secure = request_three_d_secure
1083
2116
  @require_cvc_recollection = require_cvc_recollection
1084
2117
  @setup_future_usage = setup_future_usage
1085
2118
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1086
2119
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2120
+ @statement_details = statement_details
1087
2121
  @three_d_secure = three_d_secure
1088
2122
  end
1089
2123
  end
@@ -1254,6 +2288,23 @@ module Stripe
1254
2288
  end
1255
2289
  end
1256
2290
 
2291
+ class Gopay < Stripe::RequestParams
2292
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2293
+ #
2294
+ # 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.
2295
+ #
2296
+ # 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.
2297
+ #
2298
+ # 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).
2299
+ #
2300
+ # 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`.
2301
+ attr_accessor :setup_future_usage
2302
+
2303
+ def initialize(setup_future_usage: nil)
2304
+ @setup_future_usage = setup_future_usage
2305
+ end
2306
+ end
2307
+
1257
2308
  class Grabpay < Stripe::RequestParams
1258
2309
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1259
2310
  #
@@ -1271,6 +2322,29 @@ module Stripe
1271
2322
  end
1272
2323
  end
1273
2324
 
2325
+ class IdBankTransfer < Stripe::RequestParams
2326
+ # 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.
2327
+ attr_accessor :expires_after
2328
+ # 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.
2329
+ attr_accessor :expires_at
2330
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2331
+ #
2332
+ # 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.
2333
+ #
2334
+ # 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.
2335
+ #
2336
+ # 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).
2337
+ #
2338
+ # 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`.
2339
+ attr_accessor :setup_future_usage
2340
+
2341
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2342
+ @expires_after = expires_after
2343
+ @expires_at = expires_at
2344
+ @setup_future_usage = setup_future_usage
2345
+ end
2346
+ end
2347
+
1274
2348
  class Ideal < Stripe::RequestParams
1275
2349
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1276
2350
  #
@@ -1672,12 +2746,65 @@ module Stripe
1672
2746
  end
1673
2747
 
1674
2748
  class Paypal < Stripe::RequestParams
2749
+ class LineItem < Stripe::RequestParams
2750
+ class Tax < Stripe::RequestParams
2751
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2752
+ attr_accessor :amount
2753
+ # The tax behavior for the line item.
2754
+ attr_accessor :behavior
2755
+
2756
+ def initialize(amount: nil, behavior: nil)
2757
+ @amount = amount
2758
+ @behavior = behavior
2759
+ end
2760
+ end
2761
+ # Type of the line item.
2762
+ attr_accessor :category
2763
+ # Description of the line item.
2764
+ attr_accessor :description
2765
+ # Descriptive name of the line item.
2766
+ attr_accessor :name
2767
+ # Quantity of the line item. Must be a positive number.
2768
+ attr_accessor :quantity
2769
+ # Client facing stock keeping unit, article number or similar.
2770
+ attr_accessor :sku
2771
+ # The Stripe account ID of the connected account that sells the item.
2772
+ attr_accessor :sold_by
2773
+ # The tax information for the line item.
2774
+ attr_accessor :tax
2775
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2776
+ attr_accessor :unit_amount
2777
+
2778
+ def initialize(
2779
+ category: nil,
2780
+ description: nil,
2781
+ name: nil,
2782
+ quantity: nil,
2783
+ sku: nil,
2784
+ sold_by: nil,
2785
+ tax: nil,
2786
+ unit_amount: nil
2787
+ )
2788
+ @category = category
2789
+ @description = description
2790
+ @name = name
2791
+ @quantity = quantity
2792
+ @sku = sku
2793
+ @sold_by = sold_by
2794
+ @tax = tax
2795
+ @unit_amount = unit_amount
2796
+ end
2797
+ end
1675
2798
  # Controls when the funds will be captured from the customer's account.
1676
2799
  attr_accessor :capture_method
2800
+ # The line items purchased by the customer.
2801
+ attr_accessor :line_items
1677
2802
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1678
2803
  attr_accessor :preferred_locale
1679
2804
  # 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.
1680
2805
  attr_accessor :reference
2806
+ # 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.
2807
+ attr_accessor :reference_id
1681
2808
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1682
2809
  attr_accessor :risk_correlation_id
1683
2810
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1690,29 +2817,140 @@ module Stripe
1690
2817
  #
1691
2818
  # 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`.
1692
2819
  attr_accessor :setup_future_usage
2820
+ # 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.
2821
+ attr_accessor :subsellers
1693
2822
 
1694
2823
  def initialize(
1695
2824
  capture_method: nil,
2825
+ line_items: nil,
1696
2826
  preferred_locale: nil,
1697
2827
  reference: nil,
2828
+ reference_id: nil,
1698
2829
  risk_correlation_id: nil,
1699
- setup_future_usage: nil
2830
+ setup_future_usage: nil,
2831
+ subsellers: nil
1700
2832
  )
1701
2833
  @capture_method = capture_method
2834
+ @line_items = line_items
1702
2835
  @preferred_locale = preferred_locale
1703
2836
  @reference = reference
2837
+ @reference_id = reference_id
1704
2838
  @risk_correlation_id = risk_correlation_id
1705
2839
  @setup_future_usage = setup_future_usage
2840
+ @subsellers = subsellers
2841
+ end
2842
+ end
2843
+
2844
+ class Paypay < Stripe::RequestParams
2845
+ # Controls when the funds are captured from the customer's account.
2846
+ #
2847
+ # 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.
2848
+ #
2849
+ # 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.
2850
+ attr_accessor :capture_method
2851
+
2852
+ def initialize(capture_method: nil)
2853
+ @capture_method = capture_method
2854
+ end
2855
+ end
2856
+
2857
+ class Payto < Stripe::RequestParams
2858
+ class MandateOptions < Stripe::RequestParams
2859
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2860
+ attr_accessor :amount
2861
+ # 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.
2862
+ attr_accessor :amount_type
2863
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2864
+ attr_accessor :end_date
2865
+ # The periodicity at which payments will be collected.
2866
+ attr_accessor :payment_schedule
2867
+ # 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.
2868
+ attr_accessor :payments_per_period
2869
+ # The purpose for which payments are made. Defaults to retail.
2870
+ attr_accessor :purpose
2871
+
2872
+ def initialize(
2873
+ amount: nil,
2874
+ amount_type: nil,
2875
+ end_date: nil,
2876
+ payment_schedule: nil,
2877
+ payments_per_period: nil,
2878
+ purpose: nil
2879
+ )
2880
+ @amount = amount
2881
+ @amount_type = amount_type
2882
+ @end_date = end_date
2883
+ @payment_schedule = payment_schedule
2884
+ @payments_per_period = payments_per_period
2885
+ @purpose = purpose
2886
+ end
2887
+ end
2888
+ # 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`
2889
+ attr_accessor :mandate_options
2890
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2891
+ #
2892
+ # 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.
2893
+ #
2894
+ # 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.
2895
+ #
2896
+ # 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).
2897
+ #
2898
+ # 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`.
2899
+ attr_accessor :setup_future_usage
2900
+
2901
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2902
+ @mandate_options = mandate_options
2903
+ @setup_future_usage = setup_future_usage
1706
2904
  end
1707
2905
  end
1708
2906
 
1709
2907
  class Pix < Stripe::RequestParams
2908
+ class MandateOptions < Stripe::RequestParams
2909
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2910
+ attr_accessor :amount
2911
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
2912
+ attr_accessor :amount_includes_iof
2913
+ # Type of amount. Defaults to `maximum`.
2914
+ attr_accessor :amount_type
2915
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2916
+ attr_accessor :currency
2917
+ # 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.
2918
+ attr_accessor :end_date
2919
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
2920
+ attr_accessor :payment_schedule
2921
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2922
+ attr_accessor :reference
2923
+ # 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.
2924
+ attr_accessor :start_date
2925
+
2926
+ def initialize(
2927
+ amount: nil,
2928
+ amount_includes_iof: nil,
2929
+ amount_type: nil,
2930
+ currency: nil,
2931
+ end_date: nil,
2932
+ payment_schedule: nil,
2933
+ reference: nil,
2934
+ start_date: nil
2935
+ )
2936
+ @amount = amount
2937
+ @amount_includes_iof = amount_includes_iof
2938
+ @amount_type = amount_type
2939
+ @currency = currency
2940
+ @end_date = end_date
2941
+ @payment_schedule = payment_schedule
2942
+ @reference = reference
2943
+ @start_date = start_date
2944
+ end
2945
+ end
1710
2946
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1711
2947
  attr_accessor :amount_includes_iof
1712
2948
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1713
2949
  attr_accessor :expires_after_seconds
1714
2950
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1715
2951
  attr_accessor :expires_at
2952
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2953
+ attr_accessor :mandate_options
1716
2954
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1717
2955
  #
1718
2956
  # 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.
@@ -1728,11 +2966,13 @@ module Stripe
1728
2966
  amount_includes_iof: nil,
1729
2967
  expires_after_seconds: nil,
1730
2968
  expires_at: nil,
2969
+ mandate_options: nil,
1731
2970
  setup_future_usage: nil
1732
2971
  )
1733
2972
  @amount_includes_iof = amount_includes_iof
1734
2973
  @expires_after_seconds = expires_after_seconds
1735
2974
  @expires_at = expires_at
2975
+ @mandate_options = mandate_options
1736
2976
  @setup_future_usage = setup_future_usage
1737
2977
  end
1738
2978
  end
@@ -1754,6 +2994,25 @@ module Stripe
1754
2994
  end
1755
2995
  end
1756
2996
 
2997
+ class Qris < Stripe::RequestParams
2998
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2999
+ #
3000
+ # 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.
3001
+ #
3002
+ # 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.
3003
+ #
3004
+ # 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).
3005
+ #
3006
+ # 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`.
3007
+ attr_accessor :setup_future_usage
3008
+
3009
+ def initialize(setup_future_usage: nil)
3010
+ @setup_future_usage = setup_future_usage
3011
+ end
3012
+ end
3013
+
3014
+ class Rechnung < Stripe::RequestParams; end
3015
+
1757
3016
  class RevolutPay < Stripe::RequestParams
1758
3017
  # Controls when the funds are captured from the customer's account.
1759
3018
  #
@@ -1833,6 +3092,23 @@ module Stripe
1833
3092
  end
1834
3093
  end
1835
3094
 
3095
+ class Shopeepay < Stripe::RequestParams
3096
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3097
+ #
3098
+ # 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.
3099
+ #
3100
+ # 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.
3101
+ #
3102
+ # 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).
3103
+ #
3104
+ # 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`.
3105
+ attr_accessor :setup_future_usage
3106
+
3107
+ def initialize(setup_future_usage: nil)
3108
+ @setup_future_usage = setup_future_usage
3109
+ end
3110
+ end
3111
+
1836
3112
  class Sofort < Stripe::RequestParams
1837
3113
  # Language shown to the payer on redirect.
1838
3114
  attr_accessor :preferred_language
@@ -1853,6 +3129,23 @@ module Stripe
1853
3129
  end
1854
3130
  end
1855
3131
 
3132
+ class StripeBalance < Stripe::RequestParams
3133
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3134
+ #
3135
+ # 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.
3136
+ #
3137
+ # 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.
3138
+ #
3139
+ # 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).
3140
+ #
3141
+ # 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`.
3142
+ attr_accessor :setup_future_usage
3143
+
3144
+ def initialize(setup_future_usage: nil)
3145
+ @setup_future_usage = setup_future_usage
3146
+ end
3147
+ end
3148
+
1856
3149
  class Swish < Stripe::RequestParams
1857
3150
  # A reference for this payment to be displayed in the Swish app.
1858
3151
  attr_accessor :reference
@@ -1895,13 +3188,27 @@ module Stripe
1895
3188
  class Filters < Stripe::RequestParams
1896
3189
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1897
3190
  attr_accessor :account_subcategories
3191
+ # ID of the institution to use to filter for selectable accounts.
3192
+ attr_accessor :institution
1898
3193
 
1899
- def initialize(account_subcategories: nil)
3194
+ def initialize(account_subcategories: nil, institution: nil)
1900
3195
  @account_subcategories = account_subcategories
3196
+ @institution = institution
3197
+ end
3198
+ end
3199
+
3200
+ class ManualEntry < Stripe::RequestParams
3201
+ # Settings for configuring manual entry of account details.
3202
+ attr_accessor :mode
3203
+
3204
+ def initialize(mode: nil)
3205
+ @mode = mode
1901
3206
  end
1902
3207
  end
1903
3208
  # Provide filters for the linked accounts that the customer can select for the payment method.
1904
3209
  attr_accessor :filters
3210
+ # Customize manual entry behavior
3211
+ attr_accessor :manual_entry
1905
3212
  # 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`.
1906
3213
  attr_accessor :permissions
1907
3214
  # List of data features that you would like to retrieve upon account creation.
@@ -1909,8 +3216,15 @@ module Stripe
1909
3216
  # 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.
1910
3217
  attr_accessor :return_url
1911
3218
 
1912
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3219
+ def initialize(
3220
+ filters: nil,
3221
+ manual_entry: nil,
3222
+ permissions: nil,
3223
+ prefetch: nil,
3224
+ return_url: nil
3225
+ )
1913
3226
  @filters = filters
3227
+ @manual_entry = manual_entry
1914
3228
  @permissions = permissions
1915
3229
  @prefetch = prefetch
1916
3230
  @return_url = return_url
@@ -2055,8 +3369,12 @@ module Stripe
2055
3369
  attr_accessor :fpx
2056
3370
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2057
3371
  attr_accessor :giropay
3372
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3373
+ attr_accessor :gopay
2058
3374
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2059
3375
  attr_accessor :grabpay
3376
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3377
+ attr_accessor :id_bank_transfer
2060
3378
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2061
3379
  attr_accessor :ideal
2062
3380
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2093,10 +3411,18 @@ module Stripe
2093
3411
  attr_accessor :paynow
2094
3412
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2095
3413
  attr_accessor :paypal
3414
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3415
+ attr_accessor :paypay
3416
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3417
+ attr_accessor :payto
2096
3418
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2097
3419
  attr_accessor :pix
2098
3420
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2099
3421
  attr_accessor :promptpay
3422
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3423
+ attr_accessor :qris
3424
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3425
+ attr_accessor :rechnung
2100
3426
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2101
3427
  attr_accessor :revolut_pay
2102
3428
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2105,8 +3431,12 @@ module Stripe
2105
3431
  attr_accessor :satispay
2106
3432
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2107
3433
  attr_accessor :sepa_debit
3434
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3435
+ attr_accessor :shopeepay
2108
3436
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2109
3437
  attr_accessor :sofort
3438
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3439
+ attr_accessor :stripe_balance
2110
3440
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2111
3441
  attr_accessor :swish
2112
3442
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2139,7 +3469,9 @@ module Stripe
2139
3469
  eps: nil,
2140
3470
  fpx: nil,
2141
3471
  giropay: nil,
3472
+ gopay: nil,
2142
3473
  grabpay: nil,
3474
+ id_bank_transfer: nil,
2143
3475
  ideal: nil,
2144
3476
  interac_present: nil,
2145
3477
  kakao_pay: nil,
@@ -2158,13 +3490,19 @@ module Stripe
2158
3490
  payco: nil,
2159
3491
  paynow: nil,
2160
3492
  paypal: nil,
3493
+ paypay: nil,
3494
+ payto: nil,
2161
3495
  pix: nil,
2162
3496
  promptpay: nil,
3497
+ qris: nil,
3498
+ rechnung: nil,
2163
3499
  revolut_pay: nil,
2164
3500
  samsung_pay: nil,
2165
3501
  satispay: nil,
2166
3502
  sepa_debit: nil,
3503
+ shopeepay: nil,
2167
3504
  sofort: nil,
3505
+ stripe_balance: nil,
2168
3506
  swish: nil,
2169
3507
  twint: nil,
2170
3508
  us_bank_account: nil,
@@ -2191,7 +3529,9 @@ module Stripe
2191
3529
  @eps = eps
2192
3530
  @fpx = fpx
2193
3531
  @giropay = giropay
3532
+ @gopay = gopay
2194
3533
  @grabpay = grabpay
3534
+ @id_bank_transfer = id_bank_transfer
2195
3535
  @ideal = ideal
2196
3536
  @interac_present = interac_present
2197
3537
  @kakao_pay = kakao_pay
@@ -2210,13 +3550,19 @@ module Stripe
2210
3550
  @payco = payco
2211
3551
  @paynow = paynow
2212
3552
  @paypal = paypal
3553
+ @paypay = paypay
3554
+ @payto = payto
2213
3555
  @pix = pix
2214
3556
  @promptpay = promptpay
3557
+ @qris = qris
3558
+ @rechnung = rechnung
2215
3559
  @revolut_pay = revolut_pay
2216
3560
  @samsung_pay = samsung_pay
2217
3561
  @satispay = satispay
2218
3562
  @sepa_debit = sepa_debit
3563
+ @shopeepay = shopeepay
2219
3564
  @sofort = sofort
3565
+ @stripe_balance = stripe_balance
2220
3566
  @swish = swish
2221
3567
  @twint = twint
2222
3568
  @us_bank_account = us_bank_account
@@ -2284,6 +3630,10 @@ module Stripe
2284
3630
  @tracking_number = tracking_number
2285
3631
  end
2286
3632
  end
3633
+ # Provides industry-specific information about the amount.
3634
+ attr_accessor :amount_details
3635
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3636
+ attr_accessor :application_fee_amount
2287
3637
  # Controls when the funds will be captured from the customer's account.
2288
3638
  attr_accessor :capture_method
2289
3639
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -2296,12 +3646,18 @@ module Stripe
2296
3646
  attr_accessor :excluded_payment_method_types
2297
3647
  # Specifies which fields in the response should be expanded.
2298
3648
  attr_accessor :expand
3649
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3650
+ attr_accessor :fx_quote
3651
+ # Automations to be run during the PaymentIntent lifecycle
3652
+ attr_accessor :hooks
2299
3653
  # ID of the mandate that's used for this payment.
2300
3654
  attr_accessor :mandate
2301
3655
  # Attribute for param field mandate_data
2302
3656
  attr_accessor :mandate_data
2303
3657
  # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
2304
3658
  attr_accessor :off_session
3659
+ # Provides industry-specific information about the charge.
3660
+ attr_accessor :payment_details
2305
3661
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
2306
3662
  # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent.
2307
3663
  attr_accessor :payment_method
@@ -2337,14 +3693,19 @@ module Stripe
2337
3693
  attr_accessor :use_stripe_sdk
2338
3694
 
2339
3695
  def initialize(
3696
+ amount_details: nil,
3697
+ application_fee_amount: nil,
2340
3698
  capture_method: nil,
2341
3699
  confirmation_token: nil,
2342
3700
  error_on_requires_action: nil,
2343
3701
  excluded_payment_method_types: nil,
2344
3702
  expand: nil,
3703
+ fx_quote: nil,
3704
+ hooks: nil,
2345
3705
  mandate: nil,
2346
3706
  mandate_data: nil,
2347
3707
  off_session: nil,
3708
+ payment_details: nil,
2348
3709
  payment_method: nil,
2349
3710
  payment_method_data: nil,
2350
3711
  payment_method_options: nil,
@@ -2356,14 +3717,19 @@ module Stripe
2356
3717
  shipping: nil,
2357
3718
  use_stripe_sdk: nil
2358
3719
  )
3720
+ @amount_details = amount_details
3721
+ @application_fee_amount = application_fee_amount
2359
3722
  @capture_method = capture_method
2360
3723
  @confirmation_token = confirmation_token
2361
3724
  @error_on_requires_action = error_on_requires_action
2362
3725
  @excluded_payment_method_types = excluded_payment_method_types
2363
3726
  @expand = expand
3727
+ @fx_quote = fx_quote
3728
+ @hooks = hooks
2364
3729
  @mandate = mandate
2365
3730
  @mandate_data = mandate_data
2366
3731
  @off_session = off_session
3732
+ @payment_details = payment_details
2367
3733
  @payment_method = payment_method
2368
3734
  @payment_method_data = payment_method_data
2369
3735
  @payment_method_options = payment_method_options