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