stripe 19.2.0 → 19.3.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1271) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +38 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +90 -0
  5. data/lib/stripe/event_types.rb +1308 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
  8. data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
  9. data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
  10. data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
  11. data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
  12. data/lib/stripe/events/v1_account_signals_including_delinquency_created_event.rb +68 -0
  13. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  14. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_application_fee_refund_updated_event.rb +44 -0
  16. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  17. data/lib/stripe/events/v1_balance_available_event.rb +44 -0
  18. data/lib/stripe/events/v1_billing_alert_triggered_event.rb +44 -0
  19. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  20. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  21. data/lib/stripe/events/v1_billing_portal_session_created_event.rb +20 -0
  22. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  23. data/lib/stripe/events/v1_cash_balance_funds_available_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  25. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  26. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  27. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  28. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  29. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  30. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  31. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  32. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  33. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  34. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  35. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  37. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  38. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  39. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  40. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  41. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  42. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  44. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  45. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  46. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  47. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  48. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  49. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  50. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  51. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  52. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  53. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_cash_balance_transaction_created_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  56. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  57. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  59. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  60. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  61. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  62. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  63. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  64. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  65. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  67. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  68. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  69. data/lib/stripe/events/v1_entitlements_active_entitlement_summary_updated_event.rb +20 -0
  70. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  72. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  73. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  74. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  75. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  76. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  77. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  78. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  79. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  80. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  81. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  82. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  83. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  89. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  90. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  91. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  92. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  93. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  94. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  95. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  96. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  97. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  98. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  99. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  100. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  101. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  102. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  111. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  112. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  113. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  114. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  115. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  116. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  117. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  118. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  119. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  120. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  123. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  125. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  127. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  128. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  129. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  130. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  132. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  133. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  134. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  135. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  136. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  137. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  139. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  140. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  141. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  143. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  144. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  145. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  147. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  148. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  149. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  150. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  151. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  154. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  156. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  157. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  158. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  160. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  161. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  162. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  164. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  165. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  166. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  167. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  168. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  169. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  170. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  171. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  172. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  173. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  174. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  175. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  176. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  177. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  178. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  179. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  180. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  181. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  182. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  183. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  184. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  185. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  186. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  187. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  188. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  189. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  190. data/lib/stripe/events/v1_tax_settings_updated_event.rb +44 -0
  191. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  192. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  193. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  194. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  195. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  196. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  197. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  198. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  199. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  200. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  201. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  202. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  203. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  204. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  205. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  206. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  208. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  210. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  213. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  216. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  217. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  218. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  219. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  230. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  231. data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +67 -0
  232. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  233. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  234. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  235. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  236. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  237. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  238. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  239. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  240. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  241. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  242. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  243. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  245. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  246. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  247. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  248. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_account_signals_fraudulent_website_ready_event.rb +48 -0
  250. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  255. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  256. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  257. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  258. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  259. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  260. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  261. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  262. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  263. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  264. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  265. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  266. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  267. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  268. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  269. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  270. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  271. data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
  272. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +115 -0
  273. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +117 -0
  274. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +113 -0
  275. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +115 -0
  276. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +96 -0
  277. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +98 -0
  278. data/lib/stripe/events/v2_core_health_elements_error_firing_event.rb +60 -0
  279. data/lib/stripe/events/v2_core_health_elements_error_resolved_event.rb +62 -0
  280. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  281. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  282. data/lib/stripe/events/v2_core_health_invoice_count_dropped_firing_event.rb +75 -0
  283. data/lib/stripe/events/v2_core_health_invoice_count_dropped_resolved_event.rb +77 -0
  284. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +64 -0
  285. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +66 -0
  286. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  287. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +66 -0
  288. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_firing_event.rb +58 -0
  289. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_resolved_event.rb +60 -0
  290. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +111 -0
  291. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +113 -0
  292. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +70 -0
  293. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +72 -0
  294. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +64 -0
  295. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +66 -0
  296. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  297. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +60 -0
  298. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  299. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  300. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  301. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  302. data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
  303. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  304. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  305. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  306. data/lib/stripe/events/v2_iam_api_key_created_event.rb +38 -0
  307. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +38 -0
  308. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +38 -0
  309. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +38 -0
  310. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +40 -0
  311. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +38 -0
  312. data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +38 -0
  313. data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +38 -0
  314. data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +38 -0
  315. data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +38 -0
  316. data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +38 -0
  317. data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +38 -0
  318. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  319. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  320. data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
  321. data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
  322. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  323. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  324. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  325. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  326. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  327. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  328. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  329. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  330. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  331. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  332. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  333. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  334. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  335. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  336. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  337. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  338. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  339. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  340. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  341. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  342. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  343. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  344. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  345. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  346. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  347. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  348. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  349. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  350. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  351. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  352. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  353. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  354. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  355. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  356. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
  357. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  358. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  359. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  360. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  361. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  362. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -0
  363. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  364. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  365. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  366. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  367. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  368. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +61 -0
  369. data/lib/stripe/events/v2_payments_off_session_payment_paused_event.rb +44 -0
  370. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  371. data/lib/stripe/events/v2_payments_off_session_payment_resumed_event.rb +44 -0
  372. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  373. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  374. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  375. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  376. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  377. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  378. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  379. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  380. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  381. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  382. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  383. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  384. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  385. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  386. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  387. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  388. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +88 -0
  389. data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
  390. data/lib/stripe/object_types.rb +125 -0
  391. data/lib/stripe/params/account_create_params.rb +461 -2
  392. data/lib/stripe/params/account_link_create_params.rb +4 -1
  393. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  394. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  395. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  396. data/lib/stripe/params/account_person_create_params.rb +60 -0
  397. data/lib/stripe/params/account_person_update_params.rb +60 -0
  398. data/lib/stripe/params/account_session_create_params.rb +301 -1
  399. data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/account_update_params.rb +423 -1
  401. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  402. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  403. data/lib/stripe/params/billing/alert_create_params.rb +264 -1
  404. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  405. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  406. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  407. data/lib/stripe/params/billing/credit_grant_create_params.rb +48 -2
  408. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  409. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -0
  410. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  411. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  412. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  413. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  414. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  415. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  416. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  417. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  418. data/lib/stripe/params/charge_capture_params.rb +1912 -0
  419. data/lib/stripe/params/charge_update_params.rb +1912 -0
  420. data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
  421. data/lib/stripe/params/checkout/session_create_params.rb +255 -4
  422. data/lib/stripe/params/checkout/session_update_params.rb +176 -1
  423. data/lib/stripe/params/confirmation_token_create_params.rb +91 -0
  424. data/lib/stripe/params/coupon_create_params.rb +47 -1
  425. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  426. data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
  427. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +168 -0
  428. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
  429. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  430. data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
  431. data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
  432. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  433. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +216 -0
  434. data/lib/stripe/params/dispute_update_params.rb +14 -1
  435. data/lib/stripe/params/external_account_create_params.rb +134 -0
  436. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  437. data/lib/stripe/params/external_account_list_params.rb +25 -0
  438. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  439. data/lib/stripe/params/external_account_update_params.rb +91 -0
  440. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  441. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  442. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  443. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  444. data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
  445. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
  446. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
  447. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
  448. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
  449. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  450. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  451. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  452. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  453. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  454. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  455. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  457. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  458. data/lib/stripe/params/identity/verification_session_update_params.rb +11 -1
  459. data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
  460. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  461. data/lib/stripe/params/invoice_create_params.rb +98 -3
  462. data/lib/stripe/params/invoice_create_preview_params.rb +1314 -9
  463. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  464. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  465. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  466. data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
  467. data/lib/stripe/params/invoice_list_params.rb +4 -0
  468. data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
  469. data/lib/stripe/params/invoice_update_params.rb +98 -3
  470. data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
  471. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  472. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  473. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  474. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  475. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  476. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  477. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  478. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  479. data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
  480. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  481. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  482. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
  483. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
  484. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
  485. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  486. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  487. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  488. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  489. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  490. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  491. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +8 -0
  492. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  493. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  494. data/lib/stripe/params/mandate_list_params.rb +39 -0
  495. data/lib/stripe/params/margin_create_params.rb +25 -0
  496. data/lib/stripe/params/margin_list_params.rb +25 -0
  497. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  498. data/lib/stripe/params/margin_update_params.rb +22 -0
  499. data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
  500. data/lib/stripe/params/order_create_params.rb +2114 -0
  501. data/lib/stripe/params/order_list_params.rb +25 -0
  502. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  503. data/lib/stripe/params/order_submit_params.rb +16 -0
  504. data/lib/stripe/params/order_update_params.rb +2118 -0
  505. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
  506. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
  507. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +22 -0
  508. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +54 -0
  509. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +50 -0
  510. data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
  511. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +79 -0
  512. data/lib/stripe/params/payment_intent_capture_params.rb +1928 -2
  513. data/lib/stripe/params/payment_intent_confirm_params.rb +3659 -158
  514. data/lib/stripe/params/payment_intent_create_params.rb +3639 -122
  515. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +315 -0
  516. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +56 -1
  517. data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
  518. data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
  519. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  520. data/lib/stripe/params/payment_intent_update_params.rb +3680 -148
  521. data/lib/stripe/params/payment_link_create_params.rb +34 -0
  522. data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
  523. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
  524. data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
  525. data/lib/stripe/params/payment_location_create_params.rb +54 -0
  526. data/lib/stripe/params/payment_location_delete_params.rb +6 -0
  527. data/lib/stripe/params/payment_location_list_params.rb +22 -0
  528. data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
  529. data/lib/stripe/params/payment_location_update_params.rb +63 -0
  530. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  531. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  532. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  533. data/lib/stripe/params/payment_method_create_params.rb +87 -0
  534. data/lib/stripe/params/payment_method_update_params.rb +16 -0
  535. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +4 -1
  536. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +36 -1
  537. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +32 -1
  538. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +60 -2
  539. data/lib/stripe/params/payment_record_report_payment_params.rb +60 -2
  540. data/lib/stripe/params/plan_create_params.rb +15 -0
  541. data/lib/stripe/params/price_create_params.rb +19 -0
  542. data/lib/stripe/params/price_update_params.rb +23 -0
  543. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  544. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  545. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  546. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  547. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  548. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  549. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  550. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  551. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  552. data/lib/stripe/params/product_create_params.rb +47 -0
  553. data/lib/stripe/params/product_update_params.rb +47 -0
  554. data/lib/stripe/params/quote_create_params.rb +1217 -3
  555. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  556. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  557. data/lib/stripe/params/quote_list_params.rb +4 -0
  558. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  559. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  560. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  561. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  562. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  563. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  564. data/lib/stripe/params/quote_update_params.rb +1225 -4
  565. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  566. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  567. data/lib/stripe/params/radar/account_evaluation_update_params.rb +72 -0
  568. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +69 -0
  569. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
  570. data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
  571. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +30 -1
  572. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  573. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  574. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  575. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  576. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  577. data/lib/stripe/params/setup_intent_confirm_params.rb +177 -3
  578. data/lib/stripe/params/setup_intent_create_params.rb +177 -3
  579. data/lib/stripe/params/setup_intent_update_params.rb +178 -4
  580. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -0
  581. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  582. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  583. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +70 -0
  584. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  585. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  586. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  587. data/lib/stripe/params/subscription_create_params.rb +325 -7
  588. data/lib/stripe/params/subscription_item_create_params.rb +114 -2
  589. data/lib/stripe/params/subscription_item_update_params.rb +97 -1
  590. data/lib/stripe/params/subscription_list_params.rb +4 -0
  591. data/lib/stripe/params/subscription_pause_params.rb +50 -0
  592. data/lib/stripe/params/subscription_resume_params.rb +4 -0
  593. data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
  594. data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
  595. data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
  596. data/lib/stripe/params/subscription_update_params.rb +308 -6
  597. data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
  598. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  599. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  600. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  601. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  602. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  603. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  604. data/lib/stripe/params/tax/registration_create_params.rb +117 -0
  605. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  606. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  607. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  608. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  609. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  610. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +91 -0
  611. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
  612. data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
  613. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
  614. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
  615. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
  616. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +8 -0
  617. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  618. data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
  619. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
  620. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  621. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  622. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  623. data/lib/stripe/params/token_create_params.rb +134 -0
  624. data/lib/stripe/params/transfer_create_params.rb +8 -0
  625. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  626. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  627. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  628. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  629. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
  630. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  631. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  632. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  633. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  634. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  635. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  636. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  637. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  638. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  639. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  640. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  641. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  642. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  643. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  644. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
  645. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
  646. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  647. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  648. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  649. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  650. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  651. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  652. data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
  653. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +17 -0
  654. data/lib/stripe/params/v2/billing/contract_create_params.rb +831 -0
  655. data/lib/stripe/params/v2/billing/contract_list_params.rb +20 -0
  656. data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
  657. data/lib/stripe/params/v2/billing/contract_update_params.rb +522 -0
  658. data/lib/stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params.rb +21 -0
  659. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  660. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  661. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  662. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  663. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  664. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  665. data/lib/stripe/params/v2/billing/intent_create_params.rb +899 -0
  666. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  667. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  668. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  669. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  670. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  671. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  672. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +121 -0
  673. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  674. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  675. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +102 -0
  676. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  677. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  678. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  679. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  680. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  681. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  682. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  683. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  684. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  685. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  686. data/lib/stripe/params/v2/billing/one_time_item_create_params.rb +48 -0
  687. data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
  688. data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
  689. data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -0
  690. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  691. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  692. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  693. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +54 -0
  694. data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
  695. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
  696. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  697. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  698. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  699. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  700. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  701. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  702. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  703. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  704. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  705. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  706. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  707. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  708. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  709. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  710. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  711. data/lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb +177 -0
  712. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  713. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  714. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  715. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  716. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  717. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  718. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  719. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params.rb +33 -0
  720. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
  721. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
  722. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
  723. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -0
  724. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  725. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  726. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  727. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  728. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  729. data/lib/stripe/params/v2/billing/service_action_create_params.rb +315 -0
  730. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  731. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  732. data/lib/stripe/params/v2/core/account_create_params.rb +1687 -6
  733. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
  734. data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
  735. data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
  736. data/lib/stripe/params/v2/core/account_update_params.rb +1667 -7
  737. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  738. data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
  739. data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
  740. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  741. data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
  742. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  743. data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
  744. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  745. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
  746. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
  747. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  748. data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
  749. data/lib/stripe/params/v2/core/connection_session_retrieve_params.rb +10 -0
  750. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  751. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  752. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
  753. data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
  754. data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
  755. data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
  756. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  757. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  758. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
  759. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  760. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  761. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  762. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  763. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  764. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
  765. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  766. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  767. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  768. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  769. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
  770. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  771. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
  772. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  773. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  774. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  775. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  776. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  777. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  778. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  779. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  780. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  781. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  782. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  783. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  784. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  785. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  786. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  787. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -0
  788. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  789. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  790. data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
  791. data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
  792. data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
  793. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  794. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +37 -0
  795. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
  796. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
  797. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
  798. data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
  799. data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
  800. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -0
  801. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  802. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  803. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  804. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  805. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  806. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  807. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +130 -0
  808. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  809. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +70 -0
  810. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  811. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  813. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +110 -0
  814. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  815. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  816. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
  817. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  818. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +85 -0
  819. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  820. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  821. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  822. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  823. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  824. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  825. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  826. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  827. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  828. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  829. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  831. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  832. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  833. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  834. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  835. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  836. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  837. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  838. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  839. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  840. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  841. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  842. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  843. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  844. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  845. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +178 -0
  846. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +362 -0
  847. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  848. data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
  849. data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
  850. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  851. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  852. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +35 -0
  853. data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -0
  854. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  855. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  856. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +20 -0
  857. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  858. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +28 -0
  859. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -0
  860. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  861. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  862. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  863. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +17 -0
  864. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  865. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  866. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -0
  867. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  868. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  869. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  870. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +124 -0
  871. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  872. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  873. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  874. data/lib/stripe/params.rb +909 -0
  875. data/lib/stripe/resources/account.rb +271 -1
  876. data/lib/stripe/resources/account_notice.rb +94 -0
  877. data/lib/stripe/resources/account_session.rb +302 -0
  878. data/lib/stripe/resources/account_signals.rb +104 -0
  879. data/lib/stripe/resources/application_fee.rb +24 -1
  880. data/lib/stripe/resources/balance.rb +166 -0
  881. data/lib/stripe/resources/balance_settings.rb +4 -0
  882. data/lib/stripe/resources/balance_transfer.rb +139 -0
  883. data/lib/stripe/resources/billing/alert.rb +274 -1
  884. data/lib/stripe/resources/billing/alert_recovered.rb +44 -0
  885. data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
  886. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  887. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  888. data/lib/stripe/resources/billing/credit_balance_summary.rb +172 -3
  889. data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
  890. data/lib/stripe/resources/billing/credit_grant.rb +77 -2
  891. data/lib/stripe/resources/billing/meter.rb +2 -0
  892. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  893. data/lib/stripe/resources/capability.rb +36 -1
  894. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  895. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  896. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  897. data/lib/stripe/resources/card.rb +20 -1
  898. data/lib/stripe/resources/charge.rb +328 -2
  899. data/lib/stripe/resources/checkout/session.rb +529 -3
  900. data/lib/stripe/resources/confirmation_token.rb +200 -1
  901. data/lib/stripe/resources/coupon.rb +60 -1
  902. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  903. data/lib/stripe/resources/customer_session.rb +36 -0
  904. data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
  905. data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
  906. data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
  907. data/lib/stripe/resources/discount.rb +20 -1
  908. data/lib/stripe/resources/dispute.rb +24 -0
  909. data/lib/stripe/resources/event.rb +64 -1
  910. data/lib/stripe/resources/financial_connections/account.rb +57 -0
  911. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  912. data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
  913. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  914. data/lib/stripe/resources/financial_connections/session.rb +125 -1
  915. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +153 -0
  916. data/lib/stripe/resources/fx_quote.rb +147 -0
  917. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  918. data/lib/stripe/resources/identity/verification_report.rb +24 -1
  919. data/lib/stripe/resources/invoice.rb +195 -1
  920. data/lib/stripe/resources/invoice_item.rb +126 -2
  921. data/lib/stripe/resources/invoice_line_item.rb +195 -1
  922. data/lib/stripe/resources/issuing/authorization.rb +268 -0
  923. data/lib/stripe/resources/issuing/card.rb +4 -0
  924. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  925. data/lib/stripe/resources/issuing/dispute.rb +289 -1
  926. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  927. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  928. data/lib/stripe/resources/issuing/program.rb +69 -0
  929. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  930. data/lib/stripe/resources/issuing/token.rb +8 -0
  931. data/lib/stripe/resources/issuing/transaction.rb +124 -0
  932. data/lib/stripe/resources/line_item.rb +42 -0
  933. data/lib/stripe/resources/mandate.rb +12 -0
  934. data/lib/stripe/resources/margin.rb +64 -0
  935. data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
  936. data/lib/stripe/resources/order.rb +927 -0
  937. data/lib/stripe/resources/payment_attempt_record.rb +382 -2
  938. data/lib/stripe/resources/payment_intent.rb +2269 -47
  939. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +19 -1
  940. data/lib/stripe/resources/payment_link.rb +22 -0
  941. data/lib/stripe/resources/payment_location.rb +165 -0
  942. data/lib/stripe/resources/payment_location_capability.rb +94 -0
  943. data/lib/stripe/resources/payment_method.rb +228 -1
  944. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  945. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  946. data/lib/stripe/resources/payment_record.rb +242 -2
  947. data/lib/stripe/resources/person.rb +62 -0
  948. data/lib/stripe/resources/price.rb +22 -0
  949. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  950. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  951. data/lib/stripe/resources/product.rb +46 -0
  952. data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
  953. data/lib/stripe/resources/profile.rb +80 -0
  954. data/lib/stripe/resources/quote.rb +806 -2
  955. data/lib/stripe/resources/quote_line.rb +731 -0
  956. data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
  957. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +911 -0
  958. data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
  959. data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
  960. data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
  961. data/lib/stripe/resources/radar/payment_evaluation.rb +23 -1
  962. data/lib/stripe/resources/refund.rb +18 -0
  963. data/lib/stripe/resources/reserve/hold.rb +7 -0
  964. data/lib/stripe/resources/reserve/release.rb +12 -0
  965. data/lib/stripe/resources/risk_signals.rb +24 -0
  966. data/lib/stripe/resources/setup_attempt.rb +35 -0
  967. data/lib/stripe/resources/setup_intent.rb +92 -1
  968. data/lib/stripe/resources/shared_payment/granted_token.rb +1822 -0
  969. data/lib/stripe/resources/shared_payment/issued_token.rb +293 -0
  970. data/lib/stripe/resources/source.rb +38 -0
  971. data/lib/stripe/resources/subscription.rb +250 -0
  972. data/lib/stripe/resources/subscription_item.rb +41 -1
  973. data/lib/stripe/resources/subscription_schedule.rb +373 -3
  974. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  975. data/lib/stripe/resources/tax/form.rb +264 -0
  976. data/lib/stripe/resources/tax/location.rb +72 -0
  977. data/lib/stripe/resources/tax/registration.rb +144 -0
  978. data/lib/stripe/resources/tax_code.rb +15 -1
  979. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  980. data/lib/stripe/resources/terminal/reader.rb +8 -0
  981. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  982. data/lib/stripe/resources/transfer.rb +6 -0
  983. data/lib/stripe/resources/transit_balance.rb +45 -0
  984. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  985. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  986. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  987. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  988. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  989. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  990. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  991. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  992. data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
  993. data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
  994. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  995. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  996. data/lib/stripe/resources/v2/billing/contract.rb +978 -0
  997. data/lib/stripe/resources/v2/billing/contract_license_pricing_quantity_change.rb +43 -0
  998. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  999. data/lib/stripe/resources/v2/billing/intent.rb +354 -0
  1000. data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
  1001. data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
  1002. data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -0
  1003. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  1004. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  1005. data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
  1006. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  1007. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
  1008. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
  1009. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
  1010. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  1011. data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
  1012. data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
  1013. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
  1014. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
  1015. data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
  1016. data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
  1017. data/lib/stripe/resources/v2/core/account.rb +2668 -20
  1018. data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
  1019. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  1020. data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
  1021. data/lib/stripe/resources/v2/core/batch_job.rb +567 -0
  1022. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
  1023. data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
  1024. data/lib/stripe/resources/v2/core/event.rb +66 -1
  1025. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  1026. data/lib/stripe/resources/v2/core/fee_batch.rb +142 -0
  1027. data/lib/stripe/resources/v2/core/fee_entry.rb +135 -0
  1028. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
  1029. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
  1030. data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
  1031. data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
  1032. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  1033. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  1034. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
  1035. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
  1036. data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
  1037. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  1038. data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
  1039. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
  1040. data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
  1041. data/lib/stripe/resources/v2/money_management/financial_account.rb +284 -0
  1042. data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
  1043. data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
  1044. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
  1045. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +303 -0
  1046. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
  1047. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1048. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  1049. data/lib/stripe/resources/v2/money_management/payout_method.rb +169 -0
  1050. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
  1051. data/lib/stripe/resources/v2/money_management/received_credit.rb +402 -0
  1052. data/lib/stripe/resources/v2/money_management/received_debit.rb +243 -0
  1053. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  1054. data/lib/stripe/resources/v2/money_management/transaction.rb +177 -0
  1055. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +147 -0
  1056. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  1057. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  1058. data/lib/stripe/resources/v2/payments/off_session_payment.rb +288 -0
  1059. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
  1060. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
  1061. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  1062. data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
  1063. data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
  1064. data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
  1065. data/lib/stripe/resources.rb +1729 -0
  1066. data/lib/stripe/services/account_notice_service.rb +39 -0
  1067. data/lib/stripe/services/account_service.rb +46 -1
  1068. data/lib/stripe/services/account_signals_service.rb +17 -0
  1069. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  1070. data/lib/stripe/services/billing/alert_service.rb +2 -0
  1071. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1072. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1073. data/lib/stripe/services/billing/credit_grant_service.rb +4 -0
  1074. data/lib/stripe/services/billing_service.rb +2 -1
  1075. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1076. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1077. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1078. data/lib/stripe/services/capital_service.rb +15 -0
  1079. data/lib/stripe/services/checkout/session_service.rb +11 -0
  1080. data/lib/stripe/services/coupon_service.rb +44 -0
  1081. data/lib/stripe/services/credit_note_service.rb +14 -0
  1082. data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
  1083. data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
  1084. data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
  1085. data/lib/stripe/services/customer_payment_source_service.rb +60 -0
  1086. data/lib/stripe/services/customer_service.rb +59 -0
  1087. data/lib/stripe/services/customer_session_service.rb +14 -0
  1088. data/lib/stripe/services/customer_tax_id_service.rb +30 -0
  1089. data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
  1090. data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
  1091. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
  1092. data/lib/stripe/services/delegated_checkout_service.rb +14 -0
  1093. data/lib/stripe/services/dispute_service.rb +15 -0
  1094. data/lib/stripe/services/external_account_service.rb +68 -0
  1095. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1096. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  1097. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  1098. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1099. data/lib/stripe/services/financial_connections_service.rb +3 -1
  1100. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +57 -0
  1101. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1102. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  1103. data/lib/stripe/services/identity_service.rb +2 -1
  1104. data/lib/stripe/services/invoice_item_service.rb +44 -0
  1105. data/lib/stripe/services/invoice_line_item_service.rb +15 -0
  1106. data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
  1107. data/lib/stripe/services/invoice_service.rb +189 -0
  1108. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1109. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1110. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1111. data/lib/stripe/services/issuing/program_service.rb +52 -0
  1112. data/lib/stripe/services/issuing_service.rb +6 -1
  1113. data/lib/stripe/services/mandate_service.rb +5 -0
  1114. data/lib/stripe/services/margin_service.rb +50 -0
  1115. data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
  1116. data/lib/stripe/services/orchestration_service.rb +13 -0
  1117. data/lib/stripe/services/order_service.rb +53 -0
  1118. data/lib/stripe/services/payment_attempt_record_service.rb +77 -0
  1119. data/lib/stripe/services/payment_intent_service.rb +55 -0
  1120. data/lib/stripe/services/payment_location_capability_service.rb +39 -0
  1121. data/lib/stripe/services/payment_location_service.rb +61 -0
  1122. data/lib/stripe/services/payment_method_service.rb +26 -0
  1123. data/lib/stripe/services/price_service.rb +29 -0
  1124. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1125. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1126. data/lib/stripe/services/privacy_service.rb +13 -0
  1127. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  1128. data/lib/stripe/services/product_catalog_service.rb +13 -0
  1129. data/lib/stripe/services/product_feature_service.rb +30 -0
  1130. data/lib/stripe/services/product_service.rb +44 -0
  1131. data/lib/stripe/services/promotion_code_service.rb +29 -0
  1132. data/lib/stripe/services/quote_line_service.rb +17 -0
  1133. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1134. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1135. data/lib/stripe/services/quote_service.rb +49 -1
  1136. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  1137. data/lib/stripe/services/radar/customer_evaluation_service.rb +30 -0
  1138. data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
  1139. data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
  1140. data/lib/stripe/services/radar_service.rb +5 -1
  1141. data/lib/stripe/services/refund_service.rb +29 -0
  1142. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1143. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1144. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1145. data/lib/stripe/services/reserve_service.rb +15 -0
  1146. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  1147. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  1148. data/lib/stripe/services/shared_payment_service.rb +14 -0
  1149. data/lib/stripe/services/subscription_item_service.rb +44 -0
  1150. data/lib/stripe/services/subscription_schedule_service.rb +70 -0
  1151. data/lib/stripe/services/subscription_service.rb +111 -0
  1152. data/lib/stripe/services/tax/form_service.rb +37 -0
  1153. data/lib/stripe/services/tax/location_service.rb +45 -0
  1154. data/lib/stripe/services/tax/registration_service.rb +29 -0
  1155. data/lib/stripe/services/tax/settings_service.rb +14 -0
  1156. data/lib/stripe/services/tax/transaction_service.rb +14 -0
  1157. data/lib/stripe/services/tax_id_service.rb +14 -0
  1158. data/lib/stripe/services/tax_rate_service.rb +29 -0
  1159. data/lib/stripe/services/tax_service.rb +3 -1
  1160. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1161. data/lib/stripe/services/terminal_service.rb +2 -1
  1162. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  1163. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  1164. data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +54 -0
  1165. data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
  1166. data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
  1167. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  1168. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  1169. data/lib/stripe/services/test_helpers_service.rb +4 -1
  1170. data/lib/stripe/services/v1_services.rb +17 -1
  1171. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1172. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1173. data/lib/stripe/services/v2/billing/cadence_service.rb +73 -0
  1174. data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
  1175. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  1176. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1177. data/lib/stripe/services/v2/billing/contract_service.rb +91 -0
  1178. data/lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb +25 -0
  1179. data/lib/stripe/services/v2/billing/contracts/license_pricing_service.rb +20 -0
  1180. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  1181. data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
  1182. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  1183. data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -0
  1184. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  1185. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  1186. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  1187. data/lib/stripe/services/v2/billing/one_time_item_service.rb +54 -0
  1188. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  1189. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +54 -0
  1190. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  1191. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  1192. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1193. data/lib/stripe/services/v2/billing/rate_card_service.rb +79 -0
  1194. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  1195. data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
  1196. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
  1197. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  1198. data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
  1199. data/lib/stripe/services/v2/billing_service.rb +18 -1
  1200. data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
  1201. data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
  1202. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  1203. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
  1204. data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
  1205. data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
  1206. data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
  1207. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1208. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  1209. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1210. data/lib/stripe/services/v2/core_service.rb +9 -1
  1211. data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
  1212. data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
  1213. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  1214. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  1215. data/lib/stripe/services/v2/data_service.rb +16 -0
  1216. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  1217. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  1218. data/lib/stripe/services/v2/extend_service.rb +16 -0
  1219. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  1220. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  1221. data/lib/stripe/services/v2/iam_service.rb +16 -0
  1222. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1223. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
  1224. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
  1225. data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
  1226. data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
  1227. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1228. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1229. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1230. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1231. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1232. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1233. data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
  1234. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1235. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1236. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1237. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  1238. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1239. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1240. data/lib/stripe/services/v2/money_management_service.rb +36 -0
  1241. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  1242. data/lib/stripe/services/v2/network_service.rb +15 -0
  1243. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  1244. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  1245. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
  1246. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
  1247. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
  1248. data/lib/stripe/services/v2/payments_service.rb +17 -0
  1249. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  1250. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  1251. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  1252. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  1253. data/lib/stripe/services/v2/signals_service.rb +15 -0
  1254. data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
  1255. data/lib/stripe/services/v2/tax_service.rb +15 -0
  1256. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  1257. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1258. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  1259. data/lib/stripe/services/v2_services.rb +12 -1
  1260. data/lib/stripe/services.rb +396 -0
  1261. data/lib/stripe/stripe_client.rb +8 -1
  1262. data/lib/stripe/stripe_configuration.rb +3 -1
  1263. data/lib/stripe/stripe_event_notification_handler.rb +2520 -0
  1264. data/lib/stripe/stripe_object.rb +1 -1
  1265. data/lib/stripe/util.rb +7 -1
  1266. data/lib/stripe/version.rb +1 -1
  1267. data/lib/stripe.rb +54 -0
  1268. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  1269. data/rbi/stripe/stripe_client.rbi +13 -0
  1270. data/rbi/stripe.rbi +219739 -104589
  1271. metadata +1029 -4
@@ -3,15 +3,38 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentCreateParams < ::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
9
18
  class Card < ::Stripe::RequestParams
19
+ class FleetData < ::Stripe::RequestParams
20
+ # The type of product being purchased at this line item.
21
+ attr_accessor :product_type
22
+ # The type of service received at the acceptor location.
23
+ attr_accessor :service_type
24
+
25
+ def initialize(product_type: nil, service_type: nil)
26
+ @product_type = product_type
27
+ @service_type = service_type
28
+ end
29
+ end
10
30
  # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
11
31
  attr_accessor :commodity_code
32
+ # Fleet data for this line item.
33
+ attr_accessor :fleet_data
12
34
 
13
- def initialize(commodity_code: nil)
35
+ def initialize(commodity_code: nil, fleet_data: nil)
14
36
  @commodity_code = commodity_code
37
+ @fleet_data = fleet_data
15
38
  end
16
39
  end
17
40
 
@@ -102,6 +125,8 @@ module Stripe
102
125
  attr_accessor :product_name
103
126
  # The quantity of items. Required for L3 rates. An integer greater than 0.
104
127
  attr_accessor :quantity
128
+ # The number of decimal places implied in the quantity. For example, if quantity is 10000 and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided.
129
+ attr_accessor :quantity_precision
105
130
  # Contains information about the tax on the item.
106
131
  attr_accessor :tax
107
132
  # The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
@@ -115,6 +140,7 @@ module Stripe
115
140
  product_code: nil,
116
141
  product_name: nil,
117
142
  quantity: nil,
143
+ quantity_precision: nil,
118
144
  tax: nil,
119
145
  unit_cost: nil,
120
146
  unit_of_measure: nil
@@ -124,160 +150,2097 @@ module Stripe
124
150
  @product_code = product_code
125
151
  @product_name = product_name
126
152
  @quantity = quantity
153
+ @quantity_precision = quantity_precision
127
154
  @tax = tax
128
155
  @unit_cost = unit_cost
129
156
  @unit_of_measure = unit_of_measure
130
157
  end
131
- end
158
+ end
159
+
160
+ class Shipping < ::Stripe::RequestParams
161
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
162
+ attr_accessor :amount
163
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
164
+ attr_accessor :from_postal_code
165
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
166
+ attr_accessor :to_postal_code
167
+
168
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
169
+ @amount = amount
170
+ @from_postal_code = from_postal_code
171
+ @to_postal_code = to_postal_code
172
+ end
173
+ end
174
+
175
+ class Surcharge < ::Stripe::RequestParams
176
+ # Portion of the amount that corresponds to a surcharge.
177
+ attr_accessor :amount
178
+ # Indicate whether to enforce validations on the surcharge amount.
179
+ attr_accessor :enforce_validation
180
+
181
+ def initialize(amount: nil, enforce_validation: nil)
182
+ @amount = amount
183
+ @enforce_validation = enforce_validation
184
+ end
185
+ end
186
+
187
+ class Tax < ::Stripe::RequestParams
188
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
189
+ #
190
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
191
+ attr_accessor :total_tax_amount
192
+
193
+ def initialize(total_tax_amount: nil)
194
+ @total_tax_amount = total_tax_amount
195
+ end
196
+ end
197
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
198
+ #
199
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
200
+ attr_accessor :discount_amount
201
+ # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
202
+ #
203
+ # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
204
+ #
205
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
206
+ attr_accessor :enforce_arithmetic_validation
207
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
208
+ attr_accessor :line_items
209
+ # Contains information about the shipping portion of the amount.
210
+ attr_accessor :shipping
211
+ # Contains information about the surcharge portion of the amount.
212
+ attr_accessor :surcharge
213
+ # Contains information about the tax portion of the amount.
214
+ attr_accessor :tax
215
+
216
+ def initialize(
217
+ discount_amount: nil,
218
+ enforce_arithmetic_validation: nil,
219
+ line_items: nil,
220
+ shipping: nil,
221
+ surcharge: nil,
222
+ tax: nil
223
+ )
224
+ @discount_amount = discount_amount
225
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
226
+ @line_items = line_items
227
+ @shipping = shipping
228
+ @surcharge = surcharge
229
+ @tax = tax
230
+ end
231
+ end
232
+
233
+ class AutomaticPaymentMethods < ::Stripe::RequestParams
234
+ # Controls whether this PaymentIntent will accept redirect-based payment methods.
235
+ #
236
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
237
+ attr_accessor :allow_redirects
238
+ # Whether this feature is enabled.
239
+ attr_accessor :enabled
240
+
241
+ def initialize(allow_redirects: nil, enabled: nil)
242
+ @allow_redirects = allow_redirects
243
+ @enabled = enabled
244
+ end
245
+ end
246
+
247
+ class Hooks < ::Stripe::RequestParams
248
+ class Inputs < ::Stripe::RequestParams
249
+ class Tax < ::Stripe::RequestParams
250
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
251
+ attr_accessor :calculation
252
+
253
+ def initialize(calculation: nil)
254
+ @calculation = calculation
255
+ end
256
+ end
257
+ # Tax arguments for automations
258
+ attr_accessor :tax
259
+
260
+ def initialize(tax: nil)
261
+ @tax = tax
262
+ end
263
+ end
264
+ # Arguments passed in automations
265
+ attr_accessor :inputs
266
+
267
+ def initialize(inputs: nil)
268
+ @inputs = inputs
269
+ end
270
+ end
271
+
272
+ class MandateData < ::Stripe::RequestParams
273
+ class CustomerAcceptance < ::Stripe::RequestParams
274
+ class Offline < ::Stripe::RequestParams; end
275
+
276
+ class Online < ::Stripe::RequestParams
277
+ # The IP address from which the Mandate was accepted by the customer.
278
+ attr_accessor :ip_address
279
+ # The user agent of the browser from which the Mandate was accepted by the customer.
280
+ attr_accessor :user_agent
281
+
282
+ def initialize(ip_address: nil, user_agent: nil)
283
+ @ip_address = ip_address
284
+ @user_agent = user_agent
285
+ end
286
+ end
287
+ # The time at which the customer accepted the Mandate.
288
+ attr_accessor :accepted_at
289
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
290
+ attr_accessor :offline
291
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
292
+ attr_accessor :online
293
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
294
+ attr_accessor :type
295
+
296
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
297
+ @accepted_at = accepted_at
298
+ @offline = offline
299
+ @online = online
300
+ @type = type
301
+ end
302
+ end
303
+ # This hash contains details about the customer acceptance of the Mandate.
304
+ attr_accessor :customer_acceptance
305
+
306
+ def initialize(customer_acceptance: nil)
307
+ @customer_acceptance = customer_acceptance
308
+ end
309
+ end
310
+
311
+ class PaymentDetails < ::Stripe::RequestParams
312
+ class Benefit < ::Stripe::RequestParams
313
+ class FrMealVoucher < ::Stripe::RequestParams
314
+ # Whether to enable meal voucher benefit for this payment.
315
+ attr_accessor :enabled
316
+ # The 14-digit SIRET of the meal voucher acceptor.
317
+ attr_accessor :siret
318
+
319
+ def initialize(enabled: nil, siret: nil)
320
+ @enabled = enabled
321
+ @siret = siret
322
+ end
323
+ end
324
+ # French meal voucher benefit details for this PaymentIntent.
325
+ attr_accessor :fr_meal_voucher
326
+
327
+ def initialize(fr_meal_voucher: nil)
328
+ @fr_meal_voucher = fr_meal_voucher
329
+ end
330
+ end
331
+
332
+ class CarRental < ::Stripe::RequestParams
333
+ class Affiliate < ::Stripe::RequestParams
334
+ # The name of the affiliate that originated the purchase.
335
+ attr_accessor :name
336
+
337
+ def initialize(name: nil)
338
+ @name = name
339
+ end
340
+ end
341
+
342
+ class Delivery < ::Stripe::RequestParams
343
+ class Recipient < ::Stripe::RequestParams
344
+ # The email of the recipient the ticket is delivered to.
345
+ attr_accessor :email
346
+ # The name of the recipient the ticket is delivered to.
347
+ attr_accessor :name
348
+ # The phone number of the recipient the ticket is delivered to.
349
+ attr_accessor :phone
350
+
351
+ def initialize(email: nil, name: nil, phone: nil)
352
+ @email = email
353
+ @name = name
354
+ @phone = phone
355
+ end
356
+ end
357
+ # The delivery method for the payment
358
+ attr_accessor :mode
359
+ # Details of the recipient.
360
+ attr_accessor :recipient
361
+
362
+ def initialize(mode: nil, recipient: nil)
363
+ @mode = mode
364
+ @recipient = recipient
365
+ end
366
+ end
367
+
368
+ class Distance < ::Stripe::RequestParams
369
+ # Distance traveled.
370
+ attr_accessor :amount
371
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
372
+ attr_accessor :unit
373
+
374
+ def initialize(amount: nil, unit: nil)
375
+ @amount = amount
376
+ @unit = unit
377
+ end
378
+ end
379
+
380
+ class Driver < ::Stripe::RequestParams
381
+ # Driver's identification number.
382
+ attr_accessor :driver_identification_number
383
+ # Driver's tax number.
384
+ attr_accessor :driver_tax_number
385
+ # Full name of the person or entity on the car reservation.
386
+ attr_accessor :name
387
+
388
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
389
+ @driver_identification_number = driver_identification_number
390
+ @driver_tax_number = driver_tax_number
391
+ @name = name
392
+ end
393
+ end
394
+
395
+ class PickupAddress < ::Stripe::RequestParams
396
+ # City, district, suburb, town, or village.
397
+ attr_accessor :city
398
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
399
+ attr_accessor :country
400
+ # Address line 1, such as the street, PO Box, or company name.
401
+ attr_accessor :line1
402
+ # Address line 2, such as the apartment, suite, unit, or building.
403
+ attr_accessor :line2
404
+ # ZIP or postal code.
405
+ attr_accessor :postal_code
406
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
407
+ attr_accessor :state
408
+
409
+ def initialize(
410
+ city: nil,
411
+ country: nil,
412
+ line1: nil,
413
+ line2: nil,
414
+ postal_code: nil,
415
+ state: nil
416
+ )
417
+ @city = city
418
+ @country = country
419
+ @line1 = line1
420
+ @line2 = line2
421
+ @postal_code = postal_code
422
+ @state = state
423
+ end
424
+ end
425
+
426
+ class ReturnAddress < ::Stripe::RequestParams
427
+ # City, district, suburb, town, or village.
428
+ attr_accessor :city
429
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
430
+ attr_accessor :country
431
+ # Address line 1, such as the street, PO Box, or company name.
432
+ attr_accessor :line1
433
+ # Address line 2, such as the apartment, suite, unit, or building.
434
+ attr_accessor :line2
435
+ # ZIP or postal code.
436
+ attr_accessor :postal_code
437
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
438
+ attr_accessor :state
439
+
440
+ def initialize(
441
+ city: nil,
442
+ country: nil,
443
+ line1: nil,
444
+ line2: nil,
445
+ postal_code: nil,
446
+ state: nil
447
+ )
448
+ @city = city
449
+ @country = country
450
+ @line1 = line1
451
+ @line2 = line2
452
+ @postal_code = postal_code
453
+ @state = state
454
+ end
455
+ end
456
+ # Affiliate details for this purchase.
457
+ attr_accessor :affiliate
458
+ # The booking number associated with the car rental.
459
+ attr_accessor :booking_number
460
+ # Class code of the car.
461
+ attr_accessor :car_class_code
462
+ # Make of the car.
463
+ attr_accessor :car_make
464
+ # Model of the car.
465
+ attr_accessor :car_model
466
+ # The name of the rental car company.
467
+ attr_accessor :company
468
+ # The customer service phone number of the car rental company.
469
+ attr_accessor :customer_service_phone_number
470
+ # Number of days the car is being rented.
471
+ attr_accessor :days_rented
472
+ # Delivery details for this purchase.
473
+ attr_accessor :delivery
474
+ # The details of the distance traveled during the rental period.
475
+ attr_accessor :distance
476
+ # The details of the passengers in the travel reservation
477
+ attr_accessor :drivers
478
+ # List of additional charges being billed.
479
+ attr_accessor :extra_charges
480
+ # Indicates if the customer did not keep nor cancel their booking.
481
+ attr_accessor :no_show
482
+ # Car pick-up address.
483
+ attr_accessor :pickup_address
484
+ # Car pick-up time. Measured in seconds since the Unix epoch.
485
+ attr_accessor :pickup_at
486
+ # Name of the pickup location.
487
+ attr_accessor :pickup_location_name
488
+ # Rental rate.
489
+ attr_accessor :rate_amount
490
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
491
+ attr_accessor :rate_interval
492
+ # The name of the person or entity renting the car.
493
+ attr_accessor :renter_name
494
+ # Car return address.
495
+ attr_accessor :return_address
496
+ # Car return time. Measured in seconds since the Unix epoch.
497
+ attr_accessor :return_at
498
+ # Name of the return location.
499
+ attr_accessor :return_location_name
500
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
501
+ attr_accessor :tax_exempt
502
+ # The vehicle identification number.
503
+ attr_accessor :vehicle_identification_number
504
+
505
+ def initialize(
506
+ affiliate: nil,
507
+ booking_number: nil,
508
+ car_class_code: nil,
509
+ car_make: nil,
510
+ car_model: nil,
511
+ company: nil,
512
+ customer_service_phone_number: nil,
513
+ days_rented: nil,
514
+ delivery: nil,
515
+ distance: nil,
516
+ drivers: nil,
517
+ extra_charges: nil,
518
+ no_show: nil,
519
+ pickup_address: nil,
520
+ pickup_at: nil,
521
+ pickup_location_name: nil,
522
+ rate_amount: nil,
523
+ rate_interval: nil,
524
+ renter_name: nil,
525
+ return_address: nil,
526
+ return_at: nil,
527
+ return_location_name: nil,
528
+ tax_exempt: nil,
529
+ vehicle_identification_number: nil
530
+ )
531
+ @affiliate = affiliate
532
+ @booking_number = booking_number
533
+ @car_class_code = car_class_code
534
+ @car_make = car_make
535
+ @car_model = car_model
536
+ @company = company
537
+ @customer_service_phone_number = customer_service_phone_number
538
+ @days_rented = days_rented
539
+ @delivery = delivery
540
+ @distance = distance
541
+ @drivers = drivers
542
+ @extra_charges = extra_charges
543
+ @no_show = no_show
544
+ @pickup_address = pickup_address
545
+ @pickup_at = pickup_at
546
+ @pickup_location_name = pickup_location_name
547
+ @rate_amount = rate_amount
548
+ @rate_interval = rate_interval
549
+ @renter_name = renter_name
550
+ @return_address = return_address
551
+ @return_at = return_at
552
+ @return_location_name = return_location_name
553
+ @tax_exempt = tax_exempt
554
+ @vehicle_identification_number = vehicle_identification_number
555
+ end
556
+ end
557
+
558
+ class CarRentalDatum < ::Stripe::RequestParams
559
+ class Affiliate < ::Stripe::RequestParams
560
+ # Affiliate partner code.
561
+ attr_accessor :code
562
+ # Name of affiliate partner.
563
+ attr_accessor :name
564
+
565
+ def initialize(code: nil, name: nil)
566
+ @code = code
567
+ @name = name
568
+ end
569
+ end
570
+
571
+ class Distance < ::Stripe::RequestParams
572
+ # Distance traveled.
573
+ attr_accessor :amount
574
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
575
+ attr_accessor :unit
576
+
577
+ def initialize(amount: nil, unit: nil)
578
+ @amount = amount
579
+ @unit = unit
580
+ end
581
+ end
582
+
583
+ class Driver < ::Stripe::RequestParams
584
+ class DateOfBirth < ::Stripe::RequestParams
585
+ # Day of birth (1-31).
586
+ attr_accessor :day
587
+ # Month of birth (1-12).
588
+ attr_accessor :month
589
+ # Year of birth (must be greater than 1900).
590
+ attr_accessor :year
591
+
592
+ def initialize(day: nil, month: nil, year: nil)
593
+ @day = day
594
+ @month = month
595
+ @year = year
596
+ end
597
+ end
598
+ # Driver's date of birth.
599
+ attr_accessor :date_of_birth
600
+ # Driver's identification number.
601
+ attr_accessor :driver_identification_number
602
+ # Driver's tax number.
603
+ attr_accessor :driver_tax_number
604
+ # Driver's full name.
605
+ attr_accessor :name
606
+
607
+ def initialize(
608
+ date_of_birth: nil,
609
+ driver_identification_number: nil,
610
+ driver_tax_number: nil,
611
+ name: nil
612
+ )
613
+ @date_of_birth = date_of_birth
614
+ @driver_identification_number = driver_identification_number
615
+ @driver_tax_number = driver_tax_number
616
+ @name = name
617
+ end
618
+ end
619
+
620
+ class DropOff < ::Stripe::RequestParams
621
+ class Address < ::Stripe::RequestParams
622
+ # City, district, suburb, town, or village.
623
+ attr_accessor :city
624
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
625
+ attr_accessor :country
626
+ # Address line 1, such as the street, PO Box, or company name.
627
+ attr_accessor :line1
628
+ # Address line 2, such as the apartment, suite, unit, or building.
629
+ attr_accessor :line2
630
+ # ZIP or postal code.
631
+ attr_accessor :postal_code
632
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
633
+ attr_accessor :state
634
+
635
+ def initialize(
636
+ city: nil,
637
+ country: nil,
638
+ line1: nil,
639
+ line2: nil,
640
+ postal_code: nil,
641
+ state: nil
642
+ )
643
+ @city = city
644
+ @country = country
645
+ @line1 = line1
646
+ @line2 = line2
647
+ @postal_code = postal_code
648
+ @state = state
649
+ end
650
+ end
651
+ # Address of the rental location.
652
+ attr_accessor :address
653
+ # Location name.
654
+ attr_accessor :location_name
655
+ # Timestamp for the location.
656
+ attr_accessor :time
657
+
658
+ def initialize(address: nil, location_name: nil, time: nil)
659
+ @address = address
660
+ @location_name = location_name
661
+ @time = time
662
+ end
663
+ end
664
+
665
+ class Insurance < ::Stripe::RequestParams
666
+ # Amount of the insurance coverage in cents.
667
+ attr_accessor :amount
668
+ # Currency of the insurance amount.
669
+ attr_accessor :currency
670
+ # Name of the insurance company.
671
+ attr_accessor :insurance_company_name
672
+ # Type of insurance coverage.
673
+ attr_accessor :insurance_type
674
+
675
+ def initialize(
676
+ amount: nil,
677
+ currency: nil,
678
+ insurance_company_name: nil,
679
+ insurance_type: nil
680
+ )
681
+ @amount = amount
682
+ @currency = currency
683
+ @insurance_company_name = insurance_company_name
684
+ @insurance_type = insurance_type
685
+ end
686
+ end
687
+
688
+ class Pickup < ::Stripe::RequestParams
689
+ class Address < ::Stripe::RequestParams
690
+ # City, district, suburb, town, or village.
691
+ attr_accessor :city
692
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
693
+ attr_accessor :country
694
+ # Address line 1, such as the street, PO Box, or company name.
695
+ attr_accessor :line1
696
+ # Address line 2, such as the apartment, suite, unit, or building.
697
+ attr_accessor :line2
698
+ # ZIP or postal code.
699
+ attr_accessor :postal_code
700
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
701
+ attr_accessor :state
702
+
703
+ def initialize(
704
+ city: nil,
705
+ country: nil,
706
+ line1: nil,
707
+ line2: nil,
708
+ postal_code: nil,
709
+ state: nil
710
+ )
711
+ @city = city
712
+ @country = country
713
+ @line1 = line1
714
+ @line2 = line2
715
+ @postal_code = postal_code
716
+ @state = state
717
+ end
718
+ end
719
+ # Address of the rental location.
720
+ attr_accessor :address
721
+ # Location name.
722
+ attr_accessor :location_name
723
+ # Timestamp for the location.
724
+ attr_accessor :time
725
+
726
+ def initialize(address: nil, location_name: nil, time: nil)
727
+ @address = address
728
+ @location_name = location_name
729
+ @time = time
730
+ end
731
+ end
732
+
733
+ class Total < ::Stripe::RequestParams
734
+ class Discounts < ::Stripe::RequestParams
735
+ # Corporate client discount code.
736
+ attr_accessor :corporate_client_code
737
+ # Coupon code applied to the rental.
738
+ attr_accessor :coupon
739
+ # Maximum number of free miles or kilometers included.
740
+ attr_accessor :maximum_free_miles_or_kilometers
741
+
742
+ def initialize(
743
+ corporate_client_code: nil,
744
+ coupon: nil,
745
+ maximum_free_miles_or_kilometers: nil
746
+ )
747
+ @corporate_client_code = corporate_client_code
748
+ @coupon = coupon
749
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
750
+ end
751
+ end
752
+
753
+ class ExtraCharge < ::Stripe::RequestParams
754
+ # Amount of the extra charge in cents.
755
+ attr_accessor :amount
756
+ # Type of extra charge.
757
+ attr_accessor :type
758
+
759
+ def initialize(amount: nil, type: nil)
760
+ @amount = amount
761
+ @type = type
762
+ end
763
+ end
764
+
765
+ class Tax < ::Stripe::RequestParams
766
+ class Tax < ::Stripe::RequestParams
767
+ # Tax amount.
768
+ attr_accessor :amount
769
+ # Tax rate applied.
770
+ attr_accessor :rate
771
+ # Type of tax applied.
772
+ attr_accessor :type
773
+
774
+ def initialize(amount: nil, rate: nil, type: nil)
775
+ @amount = amount
776
+ @rate = rate
777
+ @type = type
778
+ end
779
+ end
780
+ # Indicates if the transaction is tax exempt.
781
+ attr_accessor :tax_exempt_indicator
782
+ # Array of tax details.
783
+ attr_accessor :taxes
784
+
785
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
786
+ @tax_exempt_indicator = tax_exempt_indicator
787
+ @taxes = taxes
788
+ end
789
+ end
790
+ # Total amount in cents.
791
+ attr_accessor :amount
792
+ # Currency of the amount.
793
+ attr_accessor :currency
794
+ # Discount details for the rental.
795
+ attr_accessor :discounts
796
+ # Additional charges for the rental.
797
+ attr_accessor :extra_charges
798
+ # Rate per unit for the rental.
799
+ attr_accessor :rate_per_unit
800
+ # Unit of measurement for the rate.
801
+ attr_accessor :rate_unit
802
+ # Tax breakdown for the rental.
803
+ attr_accessor :tax
804
+
805
+ def initialize(
806
+ amount: nil,
807
+ currency: nil,
808
+ discounts: nil,
809
+ extra_charges: nil,
810
+ rate_per_unit: nil,
811
+ rate_unit: nil,
812
+ tax: nil
813
+ )
814
+ @amount = amount
815
+ @currency = currency
816
+ @discounts = discounts
817
+ @extra_charges = extra_charges
818
+ @rate_per_unit = rate_per_unit
819
+ @rate_unit = rate_unit
820
+ @tax = tax
821
+ end
822
+ end
823
+
824
+ class Vehicle < ::Stripe::RequestParams
825
+ # Make of the rental vehicle.
826
+ attr_accessor :make
827
+ # Model of the rental vehicle.
828
+ attr_accessor :model
829
+ # Odometer reading at the time of rental.
830
+ attr_accessor :odometer
831
+ # Type of the rental vehicle.
832
+ attr_accessor :type
833
+ # Class of the rental vehicle.
834
+ attr_accessor :vehicle_class
835
+ # Vehicle identification number (VIN).
836
+ attr_accessor :vehicle_identification_number
837
+
838
+ def initialize(
839
+ make: nil,
840
+ model: nil,
841
+ odometer: nil,
842
+ type: nil,
843
+ vehicle_class: nil,
844
+ vehicle_identification_number: nil
845
+ )
846
+ @make = make
847
+ @model = model
848
+ @odometer = odometer
849
+ @type = type
850
+ @vehicle_class = vehicle_class
851
+ @vehicle_identification_number = vehicle_identification_number
852
+ end
853
+ end
854
+ # Affiliate (such as travel agency) details for the rental.
855
+ attr_accessor :affiliate
856
+ # Booking confirmation number for the car rental.
857
+ attr_accessor :booking_number
858
+ # Name of the car rental company.
859
+ attr_accessor :carrier_name
860
+ # Customer service phone number for the car rental company.
861
+ attr_accessor :customer_service_phone_number
862
+ # Number of days the car is being rented.
863
+ attr_accessor :days_rented
864
+ # Distance details for the rental.
865
+ attr_accessor :distance
866
+ # List of drivers for the rental.
867
+ attr_accessor :drivers
868
+ # Drop-off location details.
869
+ attr_accessor :drop_off
870
+ # Insurance details for the rental.
871
+ attr_accessor :insurances
872
+ # Indicates if the customer was a no-show.
873
+ attr_accessor :no_show_indicator
874
+ # Pickup location details.
875
+ attr_accessor :pickup
876
+ # Name of the person renting the vehicle.
877
+ attr_accessor :renter_name
878
+ # Total cost breakdown for the rental.
879
+ attr_accessor :total
880
+ # Vehicle details for the rental.
881
+ attr_accessor :vehicle
882
+
883
+ def initialize(
884
+ affiliate: nil,
885
+ booking_number: nil,
886
+ carrier_name: nil,
887
+ customer_service_phone_number: nil,
888
+ days_rented: nil,
889
+ distance: nil,
890
+ drivers: nil,
891
+ drop_off: nil,
892
+ insurances: nil,
893
+ no_show_indicator: nil,
894
+ pickup: nil,
895
+ renter_name: nil,
896
+ total: nil,
897
+ vehicle: nil
898
+ )
899
+ @affiliate = affiliate
900
+ @booking_number = booking_number
901
+ @carrier_name = carrier_name
902
+ @customer_service_phone_number = customer_service_phone_number
903
+ @days_rented = days_rented
904
+ @distance = distance
905
+ @drivers = drivers
906
+ @drop_off = drop_off
907
+ @insurances = insurances
908
+ @no_show_indicator = no_show_indicator
909
+ @pickup = pickup
910
+ @renter_name = renter_name
911
+ @total = total
912
+ @vehicle = vehicle
913
+ end
914
+ end
915
+
916
+ class EventDetails < ::Stripe::RequestParams
917
+ class Address < ::Stripe::RequestParams
918
+ # City, district, suburb, town, or village.
919
+ attr_accessor :city
920
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
921
+ attr_accessor :country
922
+ # Address line 1, such as the street, PO Box, or company name.
923
+ attr_accessor :line1
924
+ # Address line 2, such as the apartment, suite, unit, or building.
925
+ attr_accessor :line2
926
+ # ZIP or postal code.
927
+ attr_accessor :postal_code
928
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
929
+ attr_accessor :state
930
+
931
+ def initialize(
932
+ city: nil,
933
+ country: nil,
934
+ line1: nil,
935
+ line2: nil,
936
+ postal_code: nil,
937
+ state: nil
938
+ )
939
+ @city = city
940
+ @country = country
941
+ @line1 = line1
942
+ @line2 = line2
943
+ @postal_code = postal_code
944
+ @state = state
945
+ end
946
+ end
947
+
948
+ class Affiliate < ::Stripe::RequestParams
949
+ # The name of the affiliate that originated the purchase.
950
+ attr_accessor :name
951
+
952
+ def initialize(name: nil)
953
+ @name = name
954
+ end
955
+ end
956
+
957
+ class Delivery < ::Stripe::RequestParams
958
+ class Recipient < ::Stripe::RequestParams
959
+ # The email of the recipient the ticket is delivered to.
960
+ attr_accessor :email
961
+ # The name of the recipient the ticket is delivered to.
962
+ attr_accessor :name
963
+ # The phone number of the recipient the ticket is delivered to.
964
+ attr_accessor :phone
965
+
966
+ def initialize(email: nil, name: nil, phone: nil)
967
+ @email = email
968
+ @name = name
969
+ @phone = phone
970
+ end
971
+ end
972
+ # The delivery method for the payment
973
+ attr_accessor :mode
974
+ # Details of the recipient.
975
+ attr_accessor :recipient
976
+
977
+ def initialize(mode: nil, recipient: nil)
978
+ @mode = mode
979
+ @recipient = recipient
980
+ end
981
+ end
982
+ # Indicates if the tickets are digitally checked when entering the venue.
983
+ attr_accessor :access_controlled_venue
984
+ # The event location's address.
985
+ attr_accessor :address
986
+ # Affiliate details for this purchase.
987
+ attr_accessor :affiliate
988
+ # The name of the company
989
+ attr_accessor :company
990
+ # Delivery details for this purchase.
991
+ attr_accessor :delivery
992
+ # Event end time. Measured in seconds since the Unix epoch.
993
+ attr_accessor :ends_at
994
+ # Type of the event entertainment (concert, sports event etc)
995
+ attr_accessor :genre
996
+ # The name of the event.
997
+ attr_accessor :name
998
+ # Event start time. Measured in seconds since the Unix epoch.
999
+ attr_accessor :starts_at
1000
+
1001
+ def initialize(
1002
+ access_controlled_venue: nil,
1003
+ address: nil,
1004
+ affiliate: nil,
1005
+ company: nil,
1006
+ delivery: nil,
1007
+ ends_at: nil,
1008
+ genre: nil,
1009
+ name: nil,
1010
+ starts_at: nil
1011
+ )
1012
+ @access_controlled_venue = access_controlled_venue
1013
+ @address = address
1014
+ @affiliate = affiliate
1015
+ @company = company
1016
+ @delivery = delivery
1017
+ @ends_at = ends_at
1018
+ @genre = genre
1019
+ @name = name
1020
+ @starts_at = starts_at
1021
+ end
1022
+ end
1023
+
1024
+ class FleetDatum < ::Stripe::RequestParams
1025
+ class PrimaryFuelFields < ::Stripe::RequestParams
1026
+ # The fuel brand.
1027
+ attr_accessor :brand
1028
+
1029
+ def initialize(brand: nil)
1030
+ @brand = brand
1031
+ end
1032
+ end
1033
+
1034
+ class Station < ::Stripe::RequestParams
1035
+ class ServiceLocation < ::Stripe::RequestParams
1036
+ # City, district, suburb, town, or village.
1037
+ attr_accessor :city
1038
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1039
+ attr_accessor :country
1040
+ # Address line 1, such as the street, PO Box, or company name.
1041
+ attr_accessor :line1
1042
+ # Address line 2, such as the apartment, suite, unit, or building.
1043
+ attr_accessor :line2
1044
+ # ZIP or postal code.
1045
+ attr_accessor :postal_code
1046
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1047
+ attr_accessor :state
1048
+
1049
+ def initialize(
1050
+ city: nil,
1051
+ country: nil,
1052
+ line1: nil,
1053
+ line2: nil,
1054
+ postal_code: nil,
1055
+ state: nil
1056
+ )
1057
+ @city = city
1058
+ @country = country
1059
+ @line1 = line1
1060
+ @line2 = line2
1061
+ @postal_code = postal_code
1062
+ @state = state
1063
+ end
1064
+ end
1065
+ # Additional contact information for the station.
1066
+ attr_accessor :additional_contact_info
1067
+ # The customer service phone number of the station.
1068
+ attr_accessor :customer_service_phone_number
1069
+ # The partner ID code of the station.
1070
+ attr_accessor :partner_id_code
1071
+ # The phone number of the station.
1072
+ attr_accessor :phone_number
1073
+ # The physical location of the station.
1074
+ attr_accessor :service_location
1075
+ # The URL of the station.
1076
+ attr_accessor :url
1077
+
1078
+ def initialize(
1079
+ additional_contact_info: nil,
1080
+ customer_service_phone_number: nil,
1081
+ partner_id_code: nil,
1082
+ phone_number: nil,
1083
+ service_location: nil,
1084
+ url: nil
1085
+ )
1086
+ @additional_contact_info = additional_contact_info
1087
+ @customer_service_phone_number = customer_service_phone_number
1088
+ @partner_id_code = partner_id_code
1089
+ @phone_number = phone_number
1090
+ @service_location = service_location
1091
+ @url = url
1092
+ end
1093
+ end
1094
+
1095
+ class Vat < ::Stripe::RequestParams
1096
+ # Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
1097
+ attr_accessor :iob_indicator
1098
+
1099
+ def initialize(iob_indicator: nil)
1100
+ @iob_indicator = iob_indicator
1101
+ end
1102
+ end
1103
+ # Primary fuel fields for the transaction.
1104
+ attr_accessor :primary_fuel_fields
1105
+ # Station and acceptor location details.
1106
+ attr_accessor :station
1107
+ # VAT and Invoice on Behalf (IOB) details.
1108
+ attr_accessor :vat
1109
+
1110
+ def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
1111
+ @primary_fuel_fields = primary_fuel_fields
1112
+ @station = station
1113
+ @vat = vat
1114
+ end
1115
+ end
1116
+
1117
+ class Flight < ::Stripe::RequestParams
1118
+ class Affiliate < ::Stripe::RequestParams
1119
+ # The name of the affiliate that originated the purchase.
1120
+ attr_accessor :name
1121
+
1122
+ def initialize(name: nil)
1123
+ @name = name
1124
+ end
1125
+ end
1126
+
1127
+ class Delivery < ::Stripe::RequestParams
1128
+ class Recipient < ::Stripe::RequestParams
1129
+ # The email of the recipient the ticket is delivered to.
1130
+ attr_accessor :email
1131
+ # The name of the recipient the ticket is delivered to.
1132
+ attr_accessor :name
1133
+ # The phone number of the recipient the ticket is delivered to.
1134
+ attr_accessor :phone
1135
+
1136
+ def initialize(email: nil, name: nil, phone: nil)
1137
+ @email = email
1138
+ @name = name
1139
+ @phone = phone
1140
+ end
1141
+ end
1142
+ # The delivery method for the payment
1143
+ attr_accessor :mode
1144
+ # Details of the recipient.
1145
+ attr_accessor :recipient
1146
+
1147
+ def initialize(mode: nil, recipient: nil)
1148
+ @mode = mode
1149
+ @recipient = recipient
1150
+ end
1151
+ end
1152
+
1153
+ class Passenger < ::Stripe::RequestParams
1154
+ # Full name of the person or entity on the flight reservation.
1155
+ attr_accessor :name
1156
+
1157
+ def initialize(name: nil)
1158
+ @name = name
1159
+ end
1160
+ end
1161
+
1162
+ class Segment < ::Stripe::RequestParams
1163
+ # The flight segment amount.
1164
+ attr_accessor :amount
1165
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1166
+ attr_accessor :arrival_airport
1167
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1168
+ attr_accessor :arrives_at
1169
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1170
+ attr_accessor :carrier
1171
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1172
+ attr_accessor :departs_at
1173
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1174
+ attr_accessor :departure_airport
1175
+ # The flight number associated with the segment
1176
+ attr_accessor :flight_number
1177
+ # The fare class for the segment.
1178
+ attr_accessor :service_class
1179
+
1180
+ def initialize(
1181
+ amount: nil,
1182
+ arrival_airport: nil,
1183
+ arrives_at: nil,
1184
+ carrier: nil,
1185
+ departs_at: nil,
1186
+ departure_airport: nil,
1187
+ flight_number: nil,
1188
+ service_class: nil
1189
+ )
1190
+ @amount = amount
1191
+ @arrival_airport = arrival_airport
1192
+ @arrives_at = arrives_at
1193
+ @carrier = carrier
1194
+ @departs_at = departs_at
1195
+ @departure_airport = departure_airport
1196
+ @flight_number = flight_number
1197
+ @service_class = service_class
1198
+ end
1199
+ end
1200
+ # Affiliate details for this purchase.
1201
+ attr_accessor :affiliate
1202
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1203
+ attr_accessor :agency_number
1204
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1205
+ attr_accessor :carrier
1206
+ # Delivery details for this purchase.
1207
+ attr_accessor :delivery
1208
+ # The name of the person or entity on the reservation.
1209
+ attr_accessor :passenger_name
1210
+ # The details of the passengers in the travel reservation.
1211
+ attr_accessor :passengers
1212
+ # The individual flight segments associated with the trip.
1213
+ attr_accessor :segments
1214
+ # The ticket number associated with the travel reservation.
1215
+ attr_accessor :ticket_number
1216
+
1217
+ def initialize(
1218
+ affiliate: nil,
1219
+ agency_number: nil,
1220
+ carrier: nil,
1221
+ delivery: nil,
1222
+ passenger_name: nil,
1223
+ passengers: nil,
1224
+ segments: nil,
1225
+ ticket_number: nil
1226
+ )
1227
+ @affiliate = affiliate
1228
+ @agency_number = agency_number
1229
+ @carrier = carrier
1230
+ @delivery = delivery
1231
+ @passenger_name = passenger_name
1232
+ @passengers = passengers
1233
+ @segments = segments
1234
+ @ticket_number = ticket_number
1235
+ end
1236
+ end
1237
+
1238
+ class FlightDatum < ::Stripe::RequestParams
1239
+ class Affiliate < ::Stripe::RequestParams
1240
+ # Affiliate partner code.
1241
+ attr_accessor :code
1242
+ # Name of affiliate partner.
1243
+ attr_accessor :name
1244
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1245
+ attr_accessor :travel_authorization_code
1246
+
1247
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1248
+ @code = code
1249
+ @name = name
1250
+ @travel_authorization_code = travel_authorization_code
1251
+ end
1252
+ end
1253
+
1254
+ class Insurance < ::Stripe::RequestParams
1255
+ # Insurance cost.
1256
+ attr_accessor :amount
1257
+ # Insurance currency.
1258
+ attr_accessor :currency
1259
+ # Insurance company name.
1260
+ attr_accessor :insurance_company_name
1261
+ # Type of insurance.
1262
+ attr_accessor :insurance_type
1263
+
1264
+ def initialize(
1265
+ amount: nil,
1266
+ currency: nil,
1267
+ insurance_company_name: nil,
1268
+ insurance_type: nil
1269
+ )
1270
+ @amount = amount
1271
+ @currency = currency
1272
+ @insurance_company_name = insurance_company_name
1273
+ @insurance_type = insurance_type
1274
+ end
1275
+ end
1276
+
1277
+ class Passenger < ::Stripe::RequestParams
1278
+ # Passenger's full name.
1279
+ attr_accessor :name
1280
+
1281
+ def initialize(name: nil)
1282
+ @name = name
1283
+ end
1284
+ end
1285
+
1286
+ class Segment < ::Stripe::RequestParams
1287
+ class Arrival < ::Stripe::RequestParams
1288
+ # Arrival airport IATA code.
1289
+ attr_accessor :airport
1290
+ # Arrival date/time.
1291
+ attr_accessor :arrives_at
1292
+ # Arrival city.
1293
+ attr_accessor :city
1294
+ # Arrival country.
1295
+ attr_accessor :country
1296
+
1297
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1298
+ @airport = airport
1299
+ @arrives_at = arrives_at
1300
+ @city = city
1301
+ @country = country
1302
+ end
1303
+ end
1304
+
1305
+ class Departure < ::Stripe::RequestParams
1306
+ # Departure airport IATA code.
1307
+ attr_accessor :airport
1308
+ # Departure city.
1309
+ attr_accessor :city
1310
+ # Departure country.
1311
+ attr_accessor :country
1312
+ # Departure date/time.
1313
+ attr_accessor :departs_at
1314
+
1315
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1316
+ @airport = airport
1317
+ @city = city
1318
+ @country = country
1319
+ @departs_at = departs_at
1320
+ end
1321
+ end
1322
+ # Segment fare amount.
1323
+ attr_accessor :amount
1324
+ # Arrival details.
1325
+ attr_accessor :arrival
1326
+ # Airline carrier code.
1327
+ attr_accessor :carrier_code
1328
+ # Carrier name.
1329
+ attr_accessor :carrier_name
1330
+ # Segment currency.
1331
+ attr_accessor :currency
1332
+ # Departure details.
1333
+ attr_accessor :departure
1334
+ # Exchange ticket number.
1335
+ attr_accessor :exchange_ticket_number
1336
+ # Fare basis code.
1337
+ attr_accessor :fare_basis_code
1338
+ # Additional fees.
1339
+ attr_accessor :fees
1340
+ # Flight number.
1341
+ attr_accessor :flight_number
1342
+ # Stopover indicator.
1343
+ attr_accessor :is_stop_over_indicator
1344
+ # Refundable ticket indicator.
1345
+ attr_accessor :refundable
1346
+ # Class of service.
1347
+ attr_accessor :service_class
1348
+ # Tax amount for segment.
1349
+ attr_accessor :tax_amount
1350
+ # Ticket number.
1351
+ attr_accessor :ticket_number
1352
+
1353
+ def initialize(
1354
+ amount: nil,
1355
+ arrival: nil,
1356
+ carrier_code: nil,
1357
+ carrier_name: nil,
1358
+ currency: nil,
1359
+ departure: nil,
1360
+ exchange_ticket_number: nil,
1361
+ fare_basis_code: nil,
1362
+ fees: nil,
1363
+ flight_number: nil,
1364
+ is_stop_over_indicator: nil,
1365
+ refundable: nil,
1366
+ service_class: nil,
1367
+ tax_amount: nil,
1368
+ ticket_number: nil
1369
+ )
1370
+ @amount = amount
1371
+ @arrival = arrival
1372
+ @carrier_code = carrier_code
1373
+ @carrier_name = carrier_name
1374
+ @currency = currency
1375
+ @departure = departure
1376
+ @exchange_ticket_number = exchange_ticket_number
1377
+ @fare_basis_code = fare_basis_code
1378
+ @fees = fees
1379
+ @flight_number = flight_number
1380
+ @is_stop_over_indicator = is_stop_over_indicator
1381
+ @refundable = refundable
1382
+ @service_class = service_class
1383
+ @tax_amount = tax_amount
1384
+ @ticket_number = ticket_number
1385
+ end
1386
+ end
1387
+
1388
+ class Total < ::Stripe::RequestParams
1389
+ class Discounts < ::Stripe::RequestParams
1390
+ # Corporate client discount code.
1391
+ attr_accessor :corporate_client_code
1392
+
1393
+ def initialize(corporate_client_code: nil)
1394
+ @corporate_client_code = corporate_client_code
1395
+ end
1396
+ end
1397
+
1398
+ class ExtraCharge < ::Stripe::RequestParams
1399
+ # Amount of additional charges.
1400
+ attr_accessor :amount
1401
+ # Type of additional charges.
1402
+ attr_accessor :type
1403
+
1404
+ def initialize(amount: nil, type: nil)
1405
+ @amount = amount
1406
+ @type = type
1407
+ end
1408
+ end
1409
+
1410
+ class Tax < ::Stripe::RequestParams
1411
+ class Tax < ::Stripe::RequestParams
1412
+ # Tax amount.
1413
+ attr_accessor :amount
1414
+ # Tax rate.
1415
+ attr_accessor :rate
1416
+ # Type of tax.
1417
+ attr_accessor :type
1418
+
1419
+ def initialize(amount: nil, rate: nil, type: nil)
1420
+ @amount = amount
1421
+ @rate = rate
1422
+ @type = type
1423
+ end
1424
+ end
1425
+ # Array of tax details.
1426
+ attr_accessor :taxes
1427
+
1428
+ def initialize(taxes: nil)
1429
+ @taxes = taxes
1430
+ end
1431
+ end
1432
+ # Total flight amount.
1433
+ attr_accessor :amount
1434
+ # Reason for credit.
1435
+ attr_accessor :credit_reason
1436
+ # Total currency.
1437
+ attr_accessor :currency
1438
+ # Discount details.
1439
+ attr_accessor :discounts
1440
+ # Additional charges.
1441
+ attr_accessor :extra_charges
1442
+ # Tax breakdown.
1443
+ attr_accessor :tax
1444
+
1445
+ def initialize(
1446
+ amount: nil,
1447
+ credit_reason: nil,
1448
+ currency: nil,
1449
+ discounts: nil,
1450
+ extra_charges: nil,
1451
+ tax: nil
1452
+ )
1453
+ @amount = amount
1454
+ @credit_reason = credit_reason
1455
+ @currency = currency
1456
+ @discounts = discounts
1457
+ @extra_charges = extra_charges
1458
+ @tax = tax
1459
+ end
1460
+ end
1461
+ # Affiliate details if applicable.
1462
+ attr_accessor :affiliate
1463
+ # Reservation reference.
1464
+ attr_accessor :booking_number
1465
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1466
+ attr_accessor :computerized_reservation_system
1467
+ # Ticket restrictions.
1468
+ attr_accessor :endorsements_and_restrictions
1469
+ # List of insurances.
1470
+ attr_accessor :insurances
1471
+ # List of passengers.
1472
+ attr_accessor :passengers
1473
+ # List of flight segments.
1474
+ attr_accessor :segments
1475
+ # Electronic ticket indicator.
1476
+ attr_accessor :ticket_electronically_issued_indicator
1477
+ # Total cost breakdown.
1478
+ attr_accessor :total
1479
+ # Type of flight transaction.
1480
+ attr_accessor :transaction_type
1481
+
1482
+ def initialize(
1483
+ affiliate: nil,
1484
+ booking_number: nil,
1485
+ computerized_reservation_system: nil,
1486
+ endorsements_and_restrictions: nil,
1487
+ insurances: nil,
1488
+ passengers: nil,
1489
+ segments: nil,
1490
+ ticket_electronically_issued_indicator: nil,
1491
+ total: nil,
1492
+ transaction_type: nil
1493
+ )
1494
+ @affiliate = affiliate
1495
+ @booking_number = booking_number
1496
+ @computerized_reservation_system = computerized_reservation_system
1497
+ @endorsements_and_restrictions = endorsements_and_restrictions
1498
+ @insurances = insurances
1499
+ @passengers = passengers
1500
+ @segments = segments
1501
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1502
+ @total = total
1503
+ @transaction_type = transaction_type
1504
+ end
1505
+ end
1506
+
1507
+ class Lodging < ::Stripe::RequestParams
1508
+ class Address < ::Stripe::RequestParams
1509
+ # City, district, suburb, town, or village.
1510
+ attr_accessor :city
1511
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1512
+ attr_accessor :country
1513
+ # Address line 1, such as the street, PO Box, or company name.
1514
+ attr_accessor :line1
1515
+ # Address line 2, such as the apartment, suite, unit, or building.
1516
+ attr_accessor :line2
1517
+ # ZIP or postal code.
1518
+ attr_accessor :postal_code
1519
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1520
+ attr_accessor :state
1521
+
1522
+ def initialize(
1523
+ city: nil,
1524
+ country: nil,
1525
+ line1: nil,
1526
+ line2: nil,
1527
+ postal_code: nil,
1528
+ state: nil
1529
+ )
1530
+ @city = city
1531
+ @country = country
1532
+ @line1 = line1
1533
+ @line2 = line2
1534
+ @postal_code = postal_code
1535
+ @state = state
1536
+ end
1537
+ end
1538
+
1539
+ class Affiliate < ::Stripe::RequestParams
1540
+ # The name of the affiliate that originated the purchase.
1541
+ attr_accessor :name
1542
+
1543
+ def initialize(name: nil)
1544
+ @name = name
1545
+ end
1546
+ end
1547
+
1548
+ class Delivery < ::Stripe::RequestParams
1549
+ class Recipient < ::Stripe::RequestParams
1550
+ # The email of the recipient the ticket is delivered to.
1551
+ attr_accessor :email
1552
+ # The name of the recipient the ticket is delivered to.
1553
+ attr_accessor :name
1554
+ # The phone number of the recipient the ticket is delivered to.
1555
+ attr_accessor :phone
1556
+
1557
+ def initialize(email: nil, name: nil, phone: nil)
1558
+ @email = email
1559
+ @name = name
1560
+ @phone = phone
1561
+ end
1562
+ end
1563
+ # The delivery method for the payment
1564
+ attr_accessor :mode
1565
+ # Details of the recipient.
1566
+ attr_accessor :recipient
1567
+
1568
+ def initialize(mode: nil, recipient: nil)
1569
+ @mode = mode
1570
+ @recipient = recipient
1571
+ end
1572
+ end
1573
+
1574
+ class Passenger < ::Stripe::RequestParams
1575
+ # Full name of the person or entity on the lodging reservation.
1576
+ attr_accessor :name
1577
+
1578
+ def initialize(name: nil)
1579
+ @name = name
1580
+ end
1581
+ end
1582
+ # The lodging location's address.
1583
+ attr_accessor :address
1584
+ # The number of adults on the booking
1585
+ attr_accessor :adults
1586
+ # Affiliate details for this purchase.
1587
+ attr_accessor :affiliate
1588
+ # The booking number associated with the lodging reservation.
1589
+ attr_accessor :booking_number
1590
+ # The lodging category
1591
+ attr_accessor :category
1592
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1593
+ attr_accessor :checkin_at
1594
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1595
+ attr_accessor :checkout_at
1596
+ # The customer service phone number of the lodging company.
1597
+ attr_accessor :customer_service_phone_number
1598
+ # The daily lodging room rate.
1599
+ attr_accessor :daily_room_rate_amount
1600
+ # Delivery details for this purchase.
1601
+ attr_accessor :delivery
1602
+ # List of additional charges being billed.
1603
+ attr_accessor :extra_charges
1604
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1605
+ attr_accessor :fire_safety_act_compliance
1606
+ # The name of the lodging location.
1607
+ attr_accessor :name
1608
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1609
+ attr_accessor :no_show
1610
+ # The number of rooms on the booking
1611
+ attr_accessor :number_of_rooms
1612
+ # The details of the passengers in the travel reservation
1613
+ attr_accessor :passengers
1614
+ # The phone number of the lodging location.
1615
+ attr_accessor :property_phone_number
1616
+ # The room class for this purchase.
1617
+ attr_accessor :room_class
1618
+ # The number of room nights
1619
+ attr_accessor :room_nights
1620
+ # The total tax amount associating with the room reservation.
1621
+ attr_accessor :total_room_tax_amount
1622
+ # The total tax amount
1623
+ attr_accessor :total_tax_amount
1624
+
1625
+ def initialize(
1626
+ address: nil,
1627
+ adults: nil,
1628
+ affiliate: nil,
1629
+ booking_number: nil,
1630
+ category: nil,
1631
+ checkin_at: nil,
1632
+ checkout_at: nil,
1633
+ customer_service_phone_number: nil,
1634
+ daily_room_rate_amount: nil,
1635
+ delivery: nil,
1636
+ extra_charges: nil,
1637
+ fire_safety_act_compliance: nil,
1638
+ name: nil,
1639
+ no_show: nil,
1640
+ number_of_rooms: nil,
1641
+ passengers: nil,
1642
+ property_phone_number: nil,
1643
+ room_class: nil,
1644
+ room_nights: nil,
1645
+ total_room_tax_amount: nil,
1646
+ total_tax_amount: nil
1647
+ )
1648
+ @address = address
1649
+ @adults = adults
1650
+ @affiliate = affiliate
1651
+ @booking_number = booking_number
1652
+ @category = category
1653
+ @checkin_at = checkin_at
1654
+ @checkout_at = checkout_at
1655
+ @customer_service_phone_number = customer_service_phone_number
1656
+ @daily_room_rate_amount = daily_room_rate_amount
1657
+ @delivery = delivery
1658
+ @extra_charges = extra_charges
1659
+ @fire_safety_act_compliance = fire_safety_act_compliance
1660
+ @name = name
1661
+ @no_show = no_show
1662
+ @number_of_rooms = number_of_rooms
1663
+ @passengers = passengers
1664
+ @property_phone_number = property_phone_number
1665
+ @room_class = room_class
1666
+ @room_nights = room_nights
1667
+ @total_room_tax_amount = total_room_tax_amount
1668
+ @total_tax_amount = total_tax_amount
1669
+ end
1670
+ end
1671
+
1672
+ class LodgingDatum < ::Stripe::RequestParams
1673
+ class Accommodation < ::Stripe::RequestParams
1674
+ # Type of accommodation.
1675
+ attr_accessor :accommodation_type
1676
+ # Bed type.
1677
+ attr_accessor :bed_type
1678
+ # Daily accommodation rate in cents.
1679
+ attr_accessor :daily_rate_amount
1680
+ # Number of nights.
1681
+ attr_accessor :nights
1682
+ # Number of rooms, cabanas, apartments, and so on.
1683
+ attr_accessor :number_of_rooms
1684
+ # Rate type.
1685
+ attr_accessor :rate_type
1686
+ # Whether smoking is allowed.
1687
+ attr_accessor :smoking_indicator
1688
+
1689
+ def initialize(
1690
+ accommodation_type: nil,
1691
+ bed_type: nil,
1692
+ daily_rate_amount: nil,
1693
+ nights: nil,
1694
+ number_of_rooms: nil,
1695
+ rate_type: nil,
1696
+ smoking_indicator: nil
1697
+ )
1698
+ @accommodation_type = accommodation_type
1699
+ @bed_type = bed_type
1700
+ @daily_rate_amount = daily_rate_amount
1701
+ @nights = nights
1702
+ @number_of_rooms = number_of_rooms
1703
+ @rate_type = rate_type
1704
+ @smoking_indicator = smoking_indicator
1705
+ end
1706
+ end
1707
+
1708
+ class Affiliate < ::Stripe::RequestParams
1709
+ # Affiliate partner code.
1710
+ attr_accessor :code
1711
+ # Affiliate partner name.
1712
+ attr_accessor :name
1713
+
1714
+ def initialize(code: nil, name: nil)
1715
+ @code = code
1716
+ @name = name
1717
+ end
1718
+ end
1719
+
1720
+ class Guest < ::Stripe::RequestParams
1721
+ # Guest's full name.
1722
+ attr_accessor :name
1723
+
1724
+ def initialize(name: nil)
1725
+ @name = name
1726
+ end
1727
+ end
1728
+
1729
+ class Host < ::Stripe::RequestParams
1730
+ class Address < ::Stripe::RequestParams
1731
+ # City, district, suburb, town, or village.
1732
+ attr_accessor :city
1733
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1734
+ attr_accessor :country
1735
+ # Address line 1, such as the street, PO Box, or company name.
1736
+ attr_accessor :line1
1737
+ # Address line 2, such as the apartment, suite, unit, or building.
1738
+ attr_accessor :line2
1739
+ # ZIP or postal code.
1740
+ attr_accessor :postal_code
1741
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1742
+ attr_accessor :state
1743
+
1744
+ def initialize(
1745
+ city: nil,
1746
+ country: nil,
1747
+ line1: nil,
1748
+ line2: nil,
1749
+ postal_code: nil,
1750
+ state: nil
1751
+ )
1752
+ @city = city
1753
+ @country = country
1754
+ @line1 = line1
1755
+ @line2 = line2
1756
+ @postal_code = postal_code
1757
+ @state = state
1758
+ end
1759
+ end
1760
+ # Address of the host.
1761
+ attr_accessor :address
1762
+ # Host's country of domicile.
1763
+ attr_accessor :country_of_domicile
1764
+ # Reference number for the host.
1765
+ attr_accessor :host_reference
1766
+ # Type of host.
1767
+ attr_accessor :host_type
1768
+ # Name of the lodging property or host.
1769
+ attr_accessor :name
1770
+ # Total number of reservations for the host.
1771
+ attr_accessor :number_of_reservations
1772
+ # Property phone number.
1773
+ attr_accessor :property_phone_number
1774
+ # Host's registration date.
1775
+ attr_accessor :registered_at
1776
+
1777
+ def initialize(
1778
+ address: nil,
1779
+ country_of_domicile: nil,
1780
+ host_reference: nil,
1781
+ host_type: nil,
1782
+ name: nil,
1783
+ number_of_reservations: nil,
1784
+ property_phone_number: nil,
1785
+ registered_at: nil
1786
+ )
1787
+ @address = address
1788
+ @country_of_domicile = country_of_domicile
1789
+ @host_reference = host_reference
1790
+ @host_type = host_type
1791
+ @name = name
1792
+ @number_of_reservations = number_of_reservations
1793
+ @property_phone_number = property_phone_number
1794
+ @registered_at = registered_at
1795
+ end
1796
+ end
132
1797
 
133
- class Shipping < ::Stripe::RequestParams
134
- # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
- 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 and spaces are allowed.
137
- 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 and spaces are allowed.
139
- attr_accessor :to_postal_code
1798
+ class Insurance < ::Stripe::RequestParams
1799
+ # Price of the insurance coverage in cents.
1800
+ attr_accessor :amount
1801
+ # Currency of the insurance amount.
1802
+ attr_accessor :currency
1803
+ # Name of the insurance company.
1804
+ attr_accessor :insurance_company_name
1805
+ # Type of insurance coverage.
1806
+ attr_accessor :insurance_type
140
1807
 
141
- def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
142
- @amount = amount
143
- @from_postal_code = from_postal_code
144
- @to_postal_code = to_postal_code
1808
+ def initialize(
1809
+ amount: nil,
1810
+ currency: nil,
1811
+ insurance_company_name: nil,
1812
+ insurance_type: nil
1813
+ )
1814
+ @amount = amount
1815
+ @currency = currency
1816
+ @insurance_company_name = insurance_company_name
1817
+ @insurance_type = insurance_type
1818
+ end
145
1819
  end
146
- end
147
1820
 
148
- class Tax < ::Stripe::RequestParams
149
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/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
- attr_accessor :total_tax_amount
1821
+ class Total < ::Stripe::RequestParams
1822
+ class Discounts < ::Stripe::RequestParams
1823
+ # Corporate client discount code.
1824
+ attr_accessor :corporate_client_code
1825
+ # Coupon code.
1826
+ attr_accessor :coupon
153
1827
 
154
- def initialize(total_tax_amount: nil)
155
- @total_tax_amount = total_tax_amount
1828
+ def initialize(corporate_client_code: nil, coupon: nil)
1829
+ @corporate_client_code = corporate_client_code
1830
+ @coupon = coupon
1831
+ end
1832
+ end
1833
+
1834
+ class ExtraCharge < ::Stripe::RequestParams
1835
+ # Amount of the extra charge in cents.
1836
+ attr_accessor :amount
1837
+ # Type of extra charge.
1838
+ attr_accessor :type
1839
+
1840
+ def initialize(amount: nil, type: nil)
1841
+ @amount = amount
1842
+ @type = type
1843
+ end
1844
+ end
1845
+
1846
+ class Tax < ::Stripe::RequestParams
1847
+ class Tax < ::Stripe::RequestParams
1848
+ # Tax amount in cents.
1849
+ attr_accessor :amount
1850
+ # Tax rate.
1851
+ attr_accessor :rate
1852
+ # Type of tax applied.
1853
+ attr_accessor :type
1854
+
1855
+ def initialize(amount: nil, rate: nil, type: nil)
1856
+ @amount = amount
1857
+ @rate = rate
1858
+ @type = type
1859
+ end
1860
+ end
1861
+ # Indicates whether the transaction is tax exempt.
1862
+ attr_accessor :tax_exempt_indicator
1863
+ # Tax details.
1864
+ attr_accessor :taxes
1865
+
1866
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1867
+ @tax_exempt_indicator = tax_exempt_indicator
1868
+ @taxes = taxes
1869
+ end
1870
+ end
1871
+ # Total price of the lodging reservation in cents.
1872
+ attr_accessor :amount
1873
+ # Cash advances in cents.
1874
+ attr_accessor :cash_advances
1875
+ # Currency of the total amount.
1876
+ attr_accessor :currency
1877
+ # Discount details for the lodging.
1878
+ attr_accessor :discounts
1879
+ # Additional charges for the lodging.
1880
+ attr_accessor :extra_charges
1881
+ # Prepaid amount in cents.
1882
+ attr_accessor :prepaid_amount
1883
+ # Tax breakdown for the lodging reservation.
1884
+ attr_accessor :tax
1885
+
1886
+ def initialize(
1887
+ amount: nil,
1888
+ cash_advances: nil,
1889
+ currency: nil,
1890
+ discounts: nil,
1891
+ extra_charges: nil,
1892
+ prepaid_amount: nil,
1893
+ tax: nil
1894
+ )
1895
+ @amount = amount
1896
+ @cash_advances = cash_advances
1897
+ @currency = currency
1898
+ @discounts = discounts
1899
+ @extra_charges = extra_charges
1900
+ @prepaid_amount = prepaid_amount
1901
+ @tax = tax
1902
+ end
156
1903
  end
157
- end
158
- # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
159
- #
160
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
- attr_accessor :discount_amount
162
- # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
163
- #
164
- # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
165
- #
166
- # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
167
- attr_accessor :enforce_arithmetic_validation
168
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
169
- attr_accessor :line_items
170
- # Contains information about the shipping portion of the amount.
171
- attr_accessor :shipping
172
- # Contains information about the tax portion of the amount.
173
- attr_accessor :tax
1904
+ # Accommodation details for the lodging.
1905
+ attr_accessor :accommodation
1906
+ # Affiliate details if applicable.
1907
+ attr_accessor :affiliate
1908
+ # Booking confirmation number for the lodging.
1909
+ attr_accessor :booking_number
1910
+ # Check-in date.
1911
+ attr_accessor :checkin_at
1912
+ # Check-out date.
1913
+ attr_accessor :checkout_at
1914
+ # Customer service phone number for the lodging company.
1915
+ attr_accessor :customer_service_phone_number
1916
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1917
+ attr_accessor :fire_safety_act_compliance_indicator
1918
+ # List of guests for the lodging.
1919
+ attr_accessor :guests
1920
+ # Host details for the lodging.
1921
+ attr_accessor :host
1922
+ # List of insurances for the lodging.
1923
+ attr_accessor :insurances
1924
+ # Whether the renter is a no-show.
1925
+ attr_accessor :no_show_indicator
1926
+ # Renter ID number for the lodging.
1927
+ attr_accessor :renter_id_number
1928
+ # Renter name for the lodging.
1929
+ attr_accessor :renter_name
1930
+ # Total details for the lodging.
1931
+ attr_accessor :total
174
1932
 
175
- def initialize(
176
- discount_amount: nil,
177
- enforce_arithmetic_validation: nil,
178
- line_items: nil,
179
- shipping: nil,
180
- tax: nil
181
- )
182
- @discount_amount = discount_amount
183
- @enforce_arithmetic_validation = enforce_arithmetic_validation
184
- @line_items = line_items
185
- @shipping = shipping
186
- @tax = tax
1933
+ def initialize(
1934
+ accommodation: nil,
1935
+ affiliate: nil,
1936
+ booking_number: nil,
1937
+ checkin_at: nil,
1938
+ checkout_at: nil,
1939
+ customer_service_phone_number: nil,
1940
+ fire_safety_act_compliance_indicator: nil,
1941
+ guests: nil,
1942
+ host: nil,
1943
+ insurances: nil,
1944
+ no_show_indicator: nil,
1945
+ renter_id_number: nil,
1946
+ renter_name: nil,
1947
+ total: nil
1948
+ )
1949
+ @accommodation = accommodation
1950
+ @affiliate = affiliate
1951
+ @booking_number = booking_number
1952
+ @checkin_at = checkin_at
1953
+ @checkout_at = checkout_at
1954
+ @customer_service_phone_number = customer_service_phone_number
1955
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1956
+ @guests = guests
1957
+ @host = host
1958
+ @insurances = insurances
1959
+ @no_show_indicator = no_show_indicator
1960
+ @renter_id_number = renter_id_number
1961
+ @renter_name = renter_name
1962
+ @total = total
1963
+ end
187
1964
  end
188
- end
189
1965
 
190
- class AutomaticPaymentMethods < ::Stripe::RequestParams
191
- # Controls whether this PaymentIntent will accept redirect-based payment methods.
192
- #
193
- # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
194
- attr_accessor :allow_redirects
195
- # Whether this feature is enabled.
196
- attr_accessor :enabled
1966
+ class MoneyServices < ::Stripe::RequestParams
1967
+ class AccountFunding < ::Stripe::RequestParams
1968
+ class BeneficiaryDetails < ::Stripe::RequestParams
1969
+ class Address < ::Stripe::RequestParams
1970
+ # City, district, suburb, town, or village.
1971
+ attr_accessor :city
1972
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1973
+ attr_accessor :country
1974
+ # Address line 1, such as the street, PO Box, or company name.
1975
+ attr_accessor :line1
1976
+ # Address line 2, such as the apartment, suite, unit, or building.
1977
+ attr_accessor :line2
1978
+ # ZIP or postal code.
1979
+ attr_accessor :postal_code
1980
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1981
+ attr_accessor :state
1982
+
1983
+ def initialize(
1984
+ city: nil,
1985
+ country: nil,
1986
+ line1: nil,
1987
+ line2: nil,
1988
+ postal_code: nil,
1989
+ state: nil
1990
+ )
1991
+ @city = city
1992
+ @country = country
1993
+ @line1 = line1
1994
+ @line2 = line2
1995
+ @postal_code = postal_code
1996
+ @state = state
1997
+ end
1998
+ end
197
1999
 
198
- def initialize(allow_redirects: nil, enabled: nil)
199
- @allow_redirects = allow_redirects
200
- @enabled = enabled
201
- end
202
- end
2000
+ class DateOfBirth < ::Stripe::RequestParams
2001
+ # Day of birth, between 1 and 31.
2002
+ attr_accessor :day
2003
+ # Month of birth, between 1 and 12.
2004
+ attr_accessor :month
2005
+ # Four-digit year of birth.
2006
+ attr_accessor :year
2007
+
2008
+ def initialize(day: nil, month: nil, year: nil)
2009
+ @day = day
2010
+ @month = month
2011
+ @year = year
2012
+ end
2013
+ end
2014
+ # Address.
2015
+ attr_accessor :address
2016
+ # Date of birth.
2017
+ attr_accessor :date_of_birth
2018
+ # Email address.
2019
+ attr_accessor :email
2020
+ # Full name.
2021
+ attr_accessor :name
2022
+ # Phone number.
2023
+ attr_accessor :phone
2024
+
2025
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
2026
+ @address = address
2027
+ @date_of_birth = date_of_birth
2028
+ @email = email
2029
+ @name = name
2030
+ @phone = phone
2031
+ end
2032
+ end
203
2033
 
204
- class Hooks < ::Stripe::RequestParams
205
- class Inputs < ::Stripe::RequestParams
206
- class Tax < ::Stripe::RequestParams
207
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
208
- attr_accessor :calculation
2034
+ class SenderDetails < ::Stripe::RequestParams
2035
+ class Address < ::Stripe::RequestParams
2036
+ # City, district, suburb, town, or village.
2037
+ attr_accessor :city
2038
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2039
+ attr_accessor :country
2040
+ # Address line 1, such as the street, PO Box, or company name.
2041
+ attr_accessor :line1
2042
+ # Address line 2, such as the apartment, suite, unit, or building.
2043
+ attr_accessor :line2
2044
+ # ZIP or postal code.
2045
+ attr_accessor :postal_code
2046
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2047
+ attr_accessor :state
2048
+
2049
+ def initialize(
2050
+ city: nil,
2051
+ country: nil,
2052
+ line1: nil,
2053
+ line2: nil,
2054
+ postal_code: nil,
2055
+ state: nil
2056
+ )
2057
+ @city = city
2058
+ @country = country
2059
+ @line1 = line1
2060
+ @line2 = line2
2061
+ @postal_code = postal_code
2062
+ @state = state
2063
+ end
2064
+ end
209
2065
 
210
- def initialize(calculation: nil)
211
- @calculation = calculation
2066
+ class DateOfBirth < ::Stripe::RequestParams
2067
+ # Day of birth, between 1 and 31.
2068
+ attr_accessor :day
2069
+ # Month of birth, between 1 and 12.
2070
+ attr_accessor :month
2071
+ # Four-digit year of birth.
2072
+ attr_accessor :year
2073
+
2074
+ def initialize(day: nil, month: nil, year: nil)
2075
+ @day = day
2076
+ @month = month
2077
+ @year = year
2078
+ end
2079
+ end
2080
+ # Address.
2081
+ attr_accessor :address
2082
+ # Date of birth.
2083
+ attr_accessor :date_of_birth
2084
+ # Email address.
2085
+ attr_accessor :email
2086
+ # Full name.
2087
+ attr_accessor :name
2088
+ # Phone number.
2089
+ attr_accessor :phone
2090
+
2091
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
2092
+ @address = address
2093
+ @date_of_birth = date_of_birth
2094
+ @email = email
2095
+ @name = name
2096
+ @phone = phone
2097
+ end
212
2098
  end
213
- end
214
- # Tax arguments for automations
215
- attr_accessor :tax
2099
+ # ID of the Account representing the beneficiary in this account funding transaction.
2100
+ attr_accessor :beneficiary_account
2101
+ # Inline identity details for the beneficiary of this account funding transaction.
2102
+ attr_accessor :beneficiary_details
2103
+ # ID of the Account representing the sender in this account funding transaction.
2104
+ attr_accessor :sender_account
2105
+ # Inline identity details for the sender of this account funding transaction.
2106
+ attr_accessor :sender_details
216
2107
 
217
- def initialize(tax: nil)
218
- @tax = tax
2108
+ def initialize(
2109
+ beneficiary_account: nil,
2110
+ beneficiary_details: nil,
2111
+ sender_account: nil,
2112
+ sender_details: nil
2113
+ )
2114
+ @beneficiary_account = beneficiary_account
2115
+ @beneficiary_details = beneficiary_details
2116
+ @sender_account = sender_account
2117
+ @sender_details = sender_details
2118
+ end
2119
+ end
2120
+ # Account funding transaction details including sender and beneficiary information.
2121
+ attr_accessor :account_funding
2122
+ # The type of money services transaction.
2123
+ attr_accessor :transaction_type
2124
+
2125
+ def initialize(account_funding: nil, transaction_type: nil)
2126
+ @account_funding = account_funding
2127
+ @transaction_type = transaction_type
219
2128
  end
220
2129
  end
221
- # Arguments passed in automations
222
- attr_accessor :inputs
223
2130
 
224
- def initialize(inputs: nil)
225
- @inputs = inputs
226
- end
227
- end
2131
+ class Subscription < ::Stripe::RequestParams
2132
+ class Affiliate < ::Stripe::RequestParams
2133
+ # The name of the affiliate that originated the purchase.
2134
+ attr_accessor :name
228
2135
 
229
- class MandateData < ::Stripe::RequestParams
230
- class CustomerAcceptance < ::Stripe::RequestParams
231
- class Offline < ::Stripe::RequestParams; end
2136
+ def initialize(name: nil)
2137
+ @name = name
2138
+ end
2139
+ end
232
2140
 
233
- class Online < ::Stripe::RequestParams
234
- # The IP address from which the Mandate was accepted by the customer.
235
- attr_accessor :ip_address
236
- # The user agent of the browser from which the Mandate was accepted by the customer.
237
- attr_accessor :user_agent
2141
+ class BillingInterval < ::Stripe::RequestParams
2142
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2143
+ attr_accessor :count
2144
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2145
+ attr_accessor :interval
238
2146
 
239
- def initialize(ip_address: nil, user_agent: nil)
240
- @ip_address = ip_address
241
- @user_agent = user_agent
2147
+ def initialize(count: nil, interval: nil)
2148
+ @count = count
2149
+ @interval = interval
242
2150
  end
243
2151
  end
244
- # The time at which the customer accepted the Mandate.
245
- attr_accessor :accepted_at
246
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
247
- attr_accessor :offline
248
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
249
- attr_accessor :online
250
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
251
- attr_accessor :type
2152
+ # Affiliate details for this purchase.
2153
+ attr_accessor :affiliate
2154
+ # Info whether the subscription will be auto renewed upon expiry.
2155
+ attr_accessor :auto_renewal
2156
+ # Subscription billing details for this purchase.
2157
+ attr_accessor :billing_interval
2158
+ # Subscription end time. Measured in seconds since the Unix epoch.
2159
+ attr_accessor :ends_at
2160
+ # Name of the product on subscription. e.g. Apple Music Subscription
2161
+ attr_accessor :name
2162
+ # Subscription start time. Measured in seconds since the Unix epoch.
2163
+ attr_accessor :starts_at
252
2164
 
253
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
254
- @accepted_at = accepted_at
255
- @offline = offline
256
- @online = online
257
- @type = type
2165
+ def initialize(
2166
+ affiliate: nil,
2167
+ auto_renewal: nil,
2168
+ billing_interval: nil,
2169
+ ends_at: nil,
2170
+ name: nil,
2171
+ starts_at: nil
2172
+ )
2173
+ @affiliate = affiliate
2174
+ @auto_renewal = auto_renewal
2175
+ @billing_interval = billing_interval
2176
+ @ends_at = ends_at
2177
+ @name = name
2178
+ @starts_at = starts_at
258
2179
  end
259
2180
  end
260
- # This hash contains details about the customer acceptance of the Mandate.
261
- attr_accessor :customer_acceptance
262
-
263
- def initialize(customer_acceptance: nil)
264
- @customer_acceptance = customer_acceptance
265
- end
266
- end
267
-
268
- class PaymentDetails < ::Stripe::RequestParams
2181
+ # Benefit details for this PaymentIntent
2182
+ attr_accessor :benefit
2183
+ # Car rental details for this PaymentIntent.
2184
+ attr_accessor :car_rental
2185
+ # Car rental data for this PaymentIntent.
2186
+ attr_accessor :car_rental_data
269
2187
  # A unique value to identify the customer. This field is available only for card payments.
270
2188
  #
271
2189
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
272
2190
  attr_accessor :customer_reference
2191
+ # Event details for this PaymentIntent
2192
+ attr_accessor :event_details
2193
+ # Fleet data for this PaymentIntent.
2194
+ attr_accessor :fleet_data
2195
+ # Flight reservation details for this PaymentIntent
2196
+ attr_accessor :flight
2197
+ # Flight data for this PaymentIntent.
2198
+ attr_accessor :flight_data
2199
+ # The ID of the Payment Location for this PaymentIntent.
2200
+ attr_accessor :location
2201
+ # Lodging reservation details for this PaymentIntent
2202
+ attr_accessor :lodging
2203
+ # Lodging data for this PaymentIntent.
2204
+ attr_accessor :lodging_data
2205
+ # Money services details for this PaymentIntent.
2206
+ attr_accessor :money_services
273
2207
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
274
2208
  #
275
2209
  # 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.
276
2210
  attr_accessor :order_reference
2211
+ # Subscription details for this PaymentIntent
2212
+ attr_accessor :subscription
277
2213
 
278
- def initialize(customer_reference: nil, order_reference: nil)
2214
+ def initialize(
2215
+ benefit: nil,
2216
+ car_rental: nil,
2217
+ car_rental_data: nil,
2218
+ customer_reference: nil,
2219
+ event_details: nil,
2220
+ fleet_data: nil,
2221
+ flight: nil,
2222
+ flight_data: nil,
2223
+ location: nil,
2224
+ lodging: nil,
2225
+ lodging_data: nil,
2226
+ money_services: nil,
2227
+ order_reference: nil,
2228
+ subscription: nil
2229
+ )
2230
+ @benefit = benefit
2231
+ @car_rental = car_rental
2232
+ @car_rental_data = car_rental_data
279
2233
  @customer_reference = customer_reference
2234
+ @event_details = event_details
2235
+ @fleet_data = fleet_data
2236
+ @flight = flight
2237
+ @flight_data = flight_data
2238
+ @location = location
2239
+ @lodging = lodging
2240
+ @lodging_data = lodging_data
2241
+ @money_services = money_services
280
2242
  @order_reference = order_reference
2243
+ @subscription = subscription
281
2244
  end
282
2245
  end
283
2246
 
@@ -418,9 +2381,28 @@ module Stripe
418
2381
  end
419
2382
  end
420
2383
 
2384
+ class GiftCard < ::Stripe::RequestParams
2385
+ # The gift card ID to redeem
2386
+ attr_accessor :gift_card
2387
+
2388
+ def initialize(gift_card: nil)
2389
+ @gift_card = gift_card
2390
+ end
2391
+ end
2392
+
421
2393
  class Giropay < ::Stripe::RequestParams; end
2394
+ class Gopay < ::Stripe::RequestParams; end
422
2395
  class Grabpay < ::Stripe::RequestParams; end
423
2396
 
2397
+ class IdBankTransfer < ::Stripe::RequestParams
2398
+ # Bank where the account is held.
2399
+ attr_accessor :bank
2400
+
2401
+ def initialize(bank: nil)
2402
+ @bank = bank
2403
+ end
2404
+ end
2405
+
424
2406
  class Ideal < ::Stripe::RequestParams
425
2407
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
426
2408
  attr_accessor :bank
@@ -518,6 +2500,7 @@ module Stripe
518
2500
  class Payco < ::Stripe::RequestParams; end
519
2501
  class Paynow < ::Stripe::RequestParams; end
520
2502
  class Paypal < ::Stripe::RequestParams; end
2503
+ class Paypay < ::Stripe::RequestParams; end
521
2504
 
522
2505
  class Payto < ::Stripe::RequestParams
523
2506
  # The account number for the bank account.
@@ -536,6 +2519,7 @@ module Stripe
536
2519
 
537
2520
  class Pix < ::Stripe::RequestParams; end
538
2521
  class Promptpay < ::Stripe::RequestParams; end
2522
+ class Qris < ::Stripe::RequestParams; end
539
2523
 
540
2524
  class RadarOptions < ::Stripe::RequestParams
541
2525
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -546,6 +2530,29 @@ module Stripe
546
2530
  end
547
2531
  end
548
2532
 
2533
+ class Rechnung < ::Stripe::RequestParams
2534
+ class Dob < ::Stripe::RequestParams
2535
+ # The day of birth, between 1 and 31.
2536
+ attr_accessor :day
2537
+ # The month of birth, between 1 and 12.
2538
+ attr_accessor :month
2539
+ # The four-digit year of birth.
2540
+ attr_accessor :year
2541
+
2542
+ def initialize(day: nil, month: nil, year: nil)
2543
+ @day = day
2544
+ @month = month
2545
+ @year = year
2546
+ end
2547
+ end
2548
+ # Customer's date of birth
2549
+ attr_accessor :dob
2550
+
2551
+ def initialize(dob: nil)
2552
+ @dob = dob
2553
+ end
2554
+ end
2555
+
549
2556
  class RevolutPay < ::Stripe::RequestParams; end
550
2557
  class SamsungPay < ::Stripe::RequestParams; end
551
2558
  class Satispay < ::Stripe::RequestParams; end
@@ -560,6 +2567,8 @@ module Stripe
560
2567
  end
561
2568
  end
562
2569
 
2570
+ class Shopeepay < ::Stripe::RequestParams; end
2571
+
563
2572
  class Sofort < ::Stripe::RequestParams
564
2573
  # Two-letter ISO code representing the country the bank account is located in.
565
2574
  attr_accessor :country
@@ -569,6 +2578,15 @@ module Stripe
569
2578
  end
570
2579
  end
571
2580
 
2581
+ class StripeBalance < ::Stripe::RequestParams
2582
+ # The connected account ID whose Stripe balance to use as the source of payment
2583
+ attr_accessor :account
2584
+
2585
+ def initialize(account: nil)
2586
+ @account = account
2587
+ end
2588
+ end
2589
+
572
2590
  class Sunbit < ::Stripe::RequestParams; end
573
2591
  class Swish < ::Stripe::RequestParams; end
574
2592
  class Twint < ::Stripe::RequestParams; end
@@ -668,10 +2686,16 @@ module Stripe
668
2686
  attr_accessor :eps
669
2687
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
670
2688
  attr_accessor :fpx
2689
+ # If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
2690
+ attr_accessor :gift_card
671
2691
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
672
2692
  attr_accessor :giropay
2693
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2694
+ attr_accessor :gopay
673
2695
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
674
2696
  attr_accessor :grabpay
2697
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2698
+ attr_accessor :id_bank_transfer
675
2699
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
676
2700
  attr_accessor :ideal
677
2701
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -710,14 +2734,20 @@ module Stripe
710
2734
  attr_accessor :paynow
711
2735
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
712
2736
  attr_accessor :paypal
2737
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2738
+ attr_accessor :paypay
713
2739
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
714
2740
  attr_accessor :payto
715
2741
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
716
2742
  attr_accessor :pix
717
2743
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
718
2744
  attr_accessor :promptpay
2745
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2746
+ attr_accessor :qris
719
2747
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
720
2748
  attr_accessor :radar_options
2749
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2750
+ attr_accessor :rechnung
721
2751
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
722
2752
  attr_accessor :revolut_pay
723
2753
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -728,8 +2758,14 @@ module Stripe
728
2758
  attr_accessor :scalapay
729
2759
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
730
2760
  attr_accessor :sepa_debit
2761
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2762
+ attr_accessor :shared_payment_granted_token
2763
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2764
+ attr_accessor :shopeepay
731
2765
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
732
2766
  attr_accessor :sofort
2767
+ # This hash contains details about the Stripe balance payment method.
2768
+ attr_accessor :stripe_balance
733
2769
  # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
734
2770
  attr_accessor :sunbit
735
2771
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -768,8 +2804,11 @@ module Stripe
768
2804
  customer_balance: nil,
769
2805
  eps: nil,
770
2806
  fpx: nil,
2807
+ gift_card: nil,
771
2808
  giropay: nil,
2809
+ gopay: nil,
772
2810
  grabpay: nil,
2811
+ id_bank_transfer: nil,
773
2812
  ideal: nil,
774
2813
  interac_present: nil,
775
2814
  kakao_pay: nil,
@@ -789,16 +2828,22 @@ module Stripe
789
2828
  payco: nil,
790
2829
  paynow: nil,
791
2830
  paypal: nil,
2831
+ paypay: nil,
792
2832
  payto: nil,
793
2833
  pix: nil,
794
2834
  promptpay: nil,
2835
+ qris: nil,
795
2836
  radar_options: nil,
2837
+ rechnung: nil,
796
2838
  revolut_pay: nil,
797
2839
  samsung_pay: nil,
798
2840
  satispay: nil,
799
2841
  scalapay: nil,
800
2842
  sepa_debit: nil,
2843
+ shared_payment_granted_token: nil,
2844
+ shopeepay: nil,
801
2845
  sofort: nil,
2846
+ stripe_balance: nil,
802
2847
  sunbit: nil,
803
2848
  swish: nil,
804
2849
  twint: nil,
@@ -828,8 +2873,11 @@ module Stripe
828
2873
  @customer_balance = customer_balance
829
2874
  @eps = eps
830
2875
  @fpx = fpx
2876
+ @gift_card = gift_card
831
2877
  @giropay = giropay
2878
+ @gopay = gopay
832
2879
  @grabpay = grabpay
2880
+ @id_bank_transfer = id_bank_transfer
833
2881
  @ideal = ideal
834
2882
  @interac_present = interac_present
835
2883
  @kakao_pay = kakao_pay
@@ -849,16 +2897,22 @@ module Stripe
849
2897
  @payco = payco
850
2898
  @paynow = paynow
851
2899
  @paypal = paypal
2900
+ @paypay = paypay
852
2901
  @payto = payto
853
2902
  @pix = pix
854
2903
  @promptpay = promptpay
2904
+ @qris = qris
855
2905
  @radar_options = radar_options
2906
+ @rechnung = rechnung
856
2907
  @revolut_pay = revolut_pay
857
2908
  @samsung_pay = samsung_pay
858
2909
  @satispay = satispay
859
2910
  @scalapay = scalapay
860
2911
  @sepa_debit = sepa_debit
2912
+ @shared_payment_granted_token = shared_payment_granted_token
2913
+ @shopeepay = shopeepay
861
2914
  @sofort = sofort
2915
+ @stripe_balance = stripe_balance
862
2916
  @sunbit = sunbit
863
2917
  @swish = swish
864
2918
  @twint = twint
@@ -1233,6 +3287,135 @@ module Stripe
1233
3287
  end
1234
3288
  end
1235
3289
 
3290
+ class PaymentDetails < ::Stripe::RequestParams
3291
+ class MoneyServices < ::Stripe::RequestParams
3292
+ class AccountFunding < ::Stripe::RequestParams
3293
+ class LiquidAsset < ::Stripe::RequestParams
3294
+ class Crypto < ::Stripe::RequestParams
3295
+ # The cryptocurrency currency code (e.g. BTC, ETH).
3296
+ attr_accessor :currency_code
3297
+
3298
+ def initialize(currency_code: nil)
3299
+ @currency_code = currency_code
3300
+ end
3301
+ end
3302
+
3303
+ class Security < ::Stripe::RequestParams
3304
+ # The security's ticker symbol (e.g. AAPL).
3305
+ attr_accessor :ticker_symbol
3306
+
3307
+ def initialize(ticker_symbol: nil)
3308
+ @ticker_symbol = ticker_symbol
3309
+ end
3310
+ end
3311
+ # Details for a cryptocurrency liquid asset funding transaction.
3312
+ attr_accessor :crypto
3313
+ # Details for a security liquid asset funding transaction.
3314
+ attr_accessor :security
3315
+
3316
+ def initialize(crypto: nil, security: nil)
3317
+ @crypto = crypto
3318
+ @security = security
3319
+ end
3320
+ end
3321
+
3322
+ class Wallet < ::Stripe::RequestParams
3323
+ class StagedPurchase < ::Stripe::RequestParams
3324
+ class Merchant < ::Stripe::RequestParams
3325
+ # The merchant category code of the merchant.
3326
+ attr_accessor :mcc
3327
+ # The merchant's name.
3328
+ attr_accessor :name
3329
+
3330
+ def initialize(mcc: nil, name: nil)
3331
+ @mcc = mcc
3332
+ @name = name
3333
+ end
3334
+ end
3335
+ # The merchant where the staged wallet purchase is made.
3336
+ attr_accessor :merchant
3337
+
3338
+ def initialize(merchant: nil)
3339
+ @merchant = merchant
3340
+ end
3341
+ end
3342
+ # Details for a staged purchase.
3343
+ attr_accessor :staged_purchase
3344
+
3345
+ def initialize(staged_purchase: nil)
3346
+ @staged_purchase = staged_purchase
3347
+ end
3348
+ end
3349
+ # The category of digital asset being acquired through this account funding transaction.
3350
+ attr_accessor :digital_asset_category
3351
+ # Details for a liquid asset (crypto or security) funding transaction.
3352
+ attr_accessor :liquid_asset
3353
+ # Details for a wallet funding transaction.
3354
+ attr_accessor :wallet
3355
+
3356
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3357
+ @digital_asset_category = digital_asset_category
3358
+ @liquid_asset = liquid_asset
3359
+ @wallet = wallet
3360
+ end
3361
+ end
3362
+ # Payment method specific account funding transaction details.
3363
+ attr_accessor :account_funding
3364
+
3365
+ def initialize(account_funding: nil)
3366
+ @account_funding = account_funding
3367
+ end
3368
+ end
3369
+ # Money services details for payment method specific funding fields.
3370
+ attr_accessor :money_services
3371
+
3372
+ def initialize(money_services: nil)
3373
+ @money_services = money_services
3374
+ end
3375
+ end
3376
+
3377
+ class StatementDetails < ::Stripe::RequestParams
3378
+ class Address < ::Stripe::RequestParams
3379
+ # City, district, suburb, town, or village.
3380
+ attr_accessor :city
3381
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3382
+ attr_accessor :country
3383
+ # Address line 1, such as the street, PO Box, or company name.
3384
+ attr_accessor :line1
3385
+ # Address line 2, such as the apartment, suite, unit, or building.
3386
+ attr_accessor :line2
3387
+ # ZIP or postal code.
3388
+ attr_accessor :postal_code
3389
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3390
+ attr_accessor :state
3391
+
3392
+ def initialize(
3393
+ city: nil,
3394
+ country: nil,
3395
+ line1: nil,
3396
+ line2: nil,
3397
+ postal_code: nil,
3398
+ state: nil
3399
+ )
3400
+ @city = city
3401
+ @country = country
3402
+ @line1 = line1
3403
+ @line2 = line2
3404
+ @postal_code = postal_code
3405
+ @state = state
3406
+ end
3407
+ end
3408
+ # Please pass in an address that is within your Stripe user account country
3409
+ attr_accessor :address
3410
+ # Phone number (e.g., a toll-free number that customers can call)
3411
+ attr_accessor :phone
3412
+
3413
+ def initialize(address: nil, phone: nil)
3414
+ @address = address
3415
+ @phone = phone
3416
+ end
3417
+ end
3418
+
1236
3419
  class ThreeDSecure < ::Stripe::RequestParams
1237
3420
  class NetworkOptions < ::Stripe::RequestParams
1238
3421
  class CartesBancaires < ::Stripe::RequestParams
@@ -1327,6 +3510,10 @@ module Stripe
1327
3510
  attr_accessor :moto
1328
3511
  # 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.
1329
3512
  attr_accessor :network
3513
+ # Payment details for payment method specific funding fields.
3514
+ attr_accessor :payment_details
3515
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3516
+ attr_accessor :request_decremental_authorization
1330
3517
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1331
3518
  attr_accessor :request_extended_authorization
1332
3519
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1335,6 +3522,10 @@ module Stripe
1335
3522
  attr_accessor :request_multicapture
1336
3523
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1337
3524
  attr_accessor :request_overcapture
3525
+ # Request partial authorization on this PaymentIntent.
3526
+ attr_accessor :request_partial_authorization
3527
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3528
+ attr_accessor :request_reauthorization
1338
3529
  # 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://docs.stripe.com/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://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1339
3530
  attr_accessor :request_three_d_secure
1340
3531
  # 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).
@@ -1353,6 +3544,8 @@ module Stripe
1353
3544
  attr_accessor :statement_descriptor_suffix_kana
1354
3545
  # 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.
1355
3546
  attr_accessor :statement_descriptor_suffix_kanji
3547
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3548
+ attr_accessor :statement_details
1356
3549
  # If 3D Secure authentication was performed with a third-party provider,
1357
3550
  # the authentication details to use for this payment.
1358
3551
  attr_accessor :three_d_secure
@@ -1364,15 +3557,20 @@ module Stripe
1364
3557
  mandate_options: nil,
1365
3558
  moto: nil,
1366
3559
  network: nil,
3560
+ payment_details: nil,
3561
+ request_decremental_authorization: nil,
1367
3562
  request_extended_authorization: nil,
1368
3563
  request_incremental_authorization: nil,
1369
3564
  request_multicapture: nil,
1370
3565
  request_overcapture: nil,
3566
+ request_partial_authorization: nil,
3567
+ request_reauthorization: nil,
1371
3568
  request_three_d_secure: nil,
1372
3569
  require_cvc_recollection: nil,
1373
3570
  setup_future_usage: nil,
1374
3571
  statement_descriptor_suffix_kana: nil,
1375
3572
  statement_descriptor_suffix_kanji: nil,
3573
+ statement_details: nil,
1376
3574
  three_d_secure: nil
1377
3575
  )
1378
3576
  @capture_method = capture_method
@@ -1381,20 +3579,112 @@ module Stripe
1381
3579
  @mandate_options = mandate_options
1382
3580
  @moto = moto
1383
3581
  @network = network
3582
+ @payment_details = payment_details
3583
+ @request_decremental_authorization = request_decremental_authorization
1384
3584
  @request_extended_authorization = request_extended_authorization
1385
3585
  @request_incremental_authorization = request_incremental_authorization
1386
3586
  @request_multicapture = request_multicapture
1387
3587
  @request_overcapture = request_overcapture
3588
+ @request_partial_authorization = request_partial_authorization
3589
+ @request_reauthorization = request_reauthorization
1388
3590
  @request_three_d_secure = request_three_d_secure
1389
3591
  @require_cvc_recollection = require_cvc_recollection
1390
3592
  @setup_future_usage = setup_future_usage
1391
3593
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1392
3594
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3595
+ @statement_details = statement_details
1393
3596
  @three_d_secure = three_d_secure
1394
3597
  end
1395
- end
3598
+ end
3599
+
3600
+ class CardPresent < ::Stripe::RequestParams
3601
+ class PaymentDetails < ::Stripe::RequestParams
3602
+ class MoneyServices < ::Stripe::RequestParams
3603
+ class AccountFunding < ::Stripe::RequestParams
3604
+ class LiquidAsset < ::Stripe::RequestParams
3605
+ class Crypto < ::Stripe::RequestParams
3606
+ # The cryptocurrency currency code (e.g. BTC, ETH).
3607
+ attr_accessor :currency_code
3608
+
3609
+ def initialize(currency_code: nil)
3610
+ @currency_code = currency_code
3611
+ end
3612
+ end
3613
+
3614
+ class Security < ::Stripe::RequestParams
3615
+ # The security's ticker symbol (e.g. AAPL).
3616
+ attr_accessor :ticker_symbol
3617
+
3618
+ def initialize(ticker_symbol: nil)
3619
+ @ticker_symbol = ticker_symbol
3620
+ end
3621
+ end
3622
+ # Details for a cryptocurrency liquid asset funding transaction.
3623
+ attr_accessor :crypto
3624
+ # Details for a security liquid asset funding transaction.
3625
+ attr_accessor :security
3626
+
3627
+ def initialize(crypto: nil, security: nil)
3628
+ @crypto = crypto
3629
+ @security = security
3630
+ end
3631
+ end
3632
+
3633
+ class Wallet < ::Stripe::RequestParams
3634
+ class StagedPurchase < ::Stripe::RequestParams
3635
+ class Merchant < ::Stripe::RequestParams
3636
+ # The merchant category code of the merchant.
3637
+ attr_accessor :mcc
3638
+ # The merchant's name.
3639
+ attr_accessor :name
3640
+
3641
+ def initialize(mcc: nil, name: nil)
3642
+ @mcc = mcc
3643
+ @name = name
3644
+ end
3645
+ end
3646
+ # The merchant where the staged wallet purchase is made.
3647
+ attr_accessor :merchant
3648
+
3649
+ def initialize(merchant: nil)
3650
+ @merchant = merchant
3651
+ end
3652
+ end
3653
+ # Details for a staged purchase.
3654
+ attr_accessor :staged_purchase
3655
+
3656
+ def initialize(staged_purchase: nil)
3657
+ @staged_purchase = staged_purchase
3658
+ end
3659
+ end
3660
+ # The category of digital asset being acquired through this account funding transaction.
3661
+ attr_accessor :digital_asset_category
3662
+ # Details for a liquid asset (crypto or security) funding transaction.
3663
+ attr_accessor :liquid_asset
3664
+ # Details for a wallet funding transaction.
3665
+ attr_accessor :wallet
3666
+
3667
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3668
+ @digital_asset_category = digital_asset_category
3669
+ @liquid_asset = liquid_asset
3670
+ @wallet = wallet
3671
+ end
3672
+ end
3673
+ # Payment method specific account funding transaction details.
3674
+ attr_accessor :account_funding
3675
+
3676
+ def initialize(account_funding: nil)
3677
+ @account_funding = account_funding
3678
+ end
3679
+ end
3680
+ # Money services details for payment method specific funding fields.
3681
+ attr_accessor :money_services
3682
+
3683
+ def initialize(money_services: nil)
3684
+ @money_services = money_services
3685
+ end
3686
+ end
1396
3687
 
1397
- class CardPresent < ::Stripe::RequestParams
1398
3688
  class Routing < ::Stripe::RequestParams
1399
3689
  # Routing requested priority
1400
3690
  attr_accessor :requested_priority
@@ -1409,22 +3699,30 @@ module Stripe
1409
3699
  #
1410
3700
  # 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.
1411
3701
  attr_accessor :capture_method
3702
+ # Payment details for payment method specific funding transaction fields.
3703
+ attr_accessor :payment_details
1412
3704
  # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
1413
3705
  attr_accessor :request_extended_authorization
1414
3706
  # Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
1415
3707
  attr_accessor :request_incremental_authorization_support
3708
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3709
+ attr_accessor :request_reauthorization
1416
3710
  # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1417
3711
  attr_accessor :routing
1418
3712
 
1419
3713
  def initialize(
1420
3714
  capture_method: nil,
3715
+ payment_details: nil,
1421
3716
  request_extended_authorization: nil,
1422
3717
  request_incremental_authorization_support: nil,
3718
+ request_reauthorization: nil,
1423
3719
  routing: nil
1424
3720
  )
1425
3721
  @capture_method = capture_method
3722
+ @payment_details = payment_details
1426
3723
  @request_extended_authorization = request_extended_authorization
1427
3724
  @request_incremental_authorization_support = request_incremental_authorization_support
3725
+ @request_reauthorization = request_reauthorization
1428
3726
  @routing = routing
1429
3727
  end
1430
3728
  end
@@ -1454,6 +3752,21 @@ module Stripe
1454
3752
  end
1455
3753
 
1456
3754
  class Crypto < ::Stripe::RequestParams
3755
+ class DepositOptions < ::Stripe::RequestParams
3756
+ # The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
3757
+ attr_accessor :networks
3758
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3759
+ attr_accessor :static_address
3760
+
3761
+ def initialize(networks: nil, static_address: nil)
3762
+ @networks = networks
3763
+ @static_address = static_address
3764
+ end
3765
+ end
3766
+ # Specific configuration for this PaymentIntent when the mode is `deposit`.
3767
+ attr_accessor :deposit_options
3768
+ # The mode of the crypto payment.
3769
+ attr_accessor :mode
1457
3770
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1458
3771
  #
1459
3772
  # 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.
@@ -1465,7 +3778,9 @@ module Stripe
1465
3778
  # 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`.
1466
3779
  attr_accessor :setup_future_usage
1467
3780
 
1468
- def initialize(setup_future_usage: nil)
3781
+ def initialize(deposit_options: nil, mode: nil, setup_future_usage: nil)
3782
+ @deposit_options = deposit_options
3783
+ @mode = mode
1469
3784
  @setup_future_usage = setup_future_usage
1470
3785
  end
1471
3786
  end
@@ -1551,6 +3866,8 @@ module Stripe
1551
3866
  end
1552
3867
  end
1553
3868
 
3869
+ class GiftCard < ::Stripe::RequestParams; end
3870
+
1554
3871
  class Giropay < ::Stripe::RequestParams
1555
3872
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1556
3873
  #
@@ -1568,6 +3885,23 @@ module Stripe
1568
3885
  end
1569
3886
  end
1570
3887
 
3888
+ class Gopay < ::Stripe::RequestParams
3889
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3890
+ #
3891
+ # 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.
3892
+ #
3893
+ # 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.
3894
+ #
3895
+ # 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).
3896
+ #
3897
+ # 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`.
3898
+ attr_accessor :setup_future_usage
3899
+
3900
+ def initialize(setup_future_usage: nil)
3901
+ @setup_future_usage = setup_future_usage
3902
+ end
3903
+ end
3904
+
1571
3905
  class Grabpay < ::Stripe::RequestParams
1572
3906
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1573
3907
  #
@@ -1585,6 +3919,29 @@ module Stripe
1585
3919
  end
1586
3920
  end
1587
3921
 
3922
+ class IdBankTransfer < ::Stripe::RequestParams
3923
+ # 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.
3924
+ attr_accessor :expires_after
3925
+ # 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.
3926
+ attr_accessor :expires_at
3927
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3928
+ #
3929
+ # 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.
3930
+ #
3931
+ # 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.
3932
+ #
3933
+ # 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).
3934
+ #
3935
+ # 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`.
3936
+ attr_accessor :setup_future_usage
3937
+
3938
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3939
+ @expires_after = expires_after
3940
+ @expires_at = expires_at
3941
+ @setup_future_usage = setup_future_usage
3942
+ end
3943
+ end
3944
+
1588
3945
  class Ideal < ::Stripe::RequestParams
1589
3946
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1590
3947
  #
@@ -1691,6 +4048,939 @@ module Stripe
1691
4048
  @reference = reference
1692
4049
  end
1693
4050
  end
4051
+
4052
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
4053
+ class BusReservationDetail < ::Stripe::RequestParams
4054
+ class Arrival < ::Stripe::RequestParams
4055
+ class Address < ::Stripe::RequestParams
4056
+ # The city or town.
4057
+ attr_accessor :city
4058
+ # The country in ISO 3166-1 alpha-2 format.
4059
+ attr_accessor :country
4060
+ # The postal code formatted according to country.
4061
+ attr_accessor :postal_code
4062
+ # The state, county, province, or region formatted according to country.
4063
+ attr_accessor :region
4064
+ # Line 1 of the street address.
4065
+ attr_accessor :street_address
4066
+ # Line 2 of the street address.
4067
+ attr_accessor :street_address2
4068
+
4069
+ def initialize(
4070
+ city: nil,
4071
+ country: nil,
4072
+ postal_code: nil,
4073
+ region: nil,
4074
+ street_address: nil,
4075
+ street_address2: nil
4076
+ )
4077
+ @city = city
4078
+ @country = country
4079
+ @postal_code = postal_code
4080
+ @region = region
4081
+ @street_address = street_address
4082
+ @street_address2 = street_address2
4083
+ end
4084
+ end
4085
+ # Address of the arrival location.
4086
+ attr_accessor :address
4087
+ # Identifier name or reference for the arrival location.
4088
+ attr_accessor :arrival_location
4089
+
4090
+ def initialize(address: nil, arrival_location: nil)
4091
+ @address = address
4092
+ @arrival_location = arrival_location
4093
+ end
4094
+ end
4095
+
4096
+ class Departure < ::Stripe::RequestParams
4097
+ class Address < ::Stripe::RequestParams
4098
+ # The city or town.
4099
+ attr_accessor :city
4100
+ # The country in ISO 3166-1 alpha-2 format.
4101
+ attr_accessor :country
4102
+ # The postal code formatted according to country.
4103
+ attr_accessor :postal_code
4104
+ # The state, county, province, or region formatted according to country.
4105
+ attr_accessor :region
4106
+ # Line 1 of the street address.
4107
+ attr_accessor :street_address
4108
+ # Line 2 of the street address.
4109
+ attr_accessor :street_address2
4110
+
4111
+ def initialize(
4112
+ city: nil,
4113
+ country: nil,
4114
+ postal_code: nil,
4115
+ region: nil,
4116
+ street_address: nil,
4117
+ street_address2: nil
4118
+ )
4119
+ @city = city
4120
+ @country = country
4121
+ @postal_code = postal_code
4122
+ @region = region
4123
+ @street_address = street_address
4124
+ @street_address2 = street_address2
4125
+ end
4126
+ end
4127
+ # Address of the departure location.
4128
+ attr_accessor :address
4129
+ # Timestamp of departure.
4130
+ attr_accessor :departs_at
4131
+ # Identifier name or reference for the origin location.
4132
+ attr_accessor :departure_location
4133
+
4134
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4135
+ @address = address
4136
+ @departs_at = departs_at
4137
+ @departure_location = departure_location
4138
+ end
4139
+ end
4140
+
4141
+ class Insurance < ::Stripe::RequestParams
4142
+ # Insurance currency.
4143
+ attr_accessor :currency
4144
+ # Name of the company providing the insurance.
4145
+ attr_accessor :insurance_company_name
4146
+ # Type of insurance.
4147
+ attr_accessor :insurance_type
4148
+ # Price of insurance in cents.
4149
+ attr_accessor :price
4150
+
4151
+ def initialize(
4152
+ currency: nil,
4153
+ insurance_company_name: nil,
4154
+ insurance_type: nil,
4155
+ price: nil
4156
+ )
4157
+ @currency = currency
4158
+ @insurance_company_name = insurance_company_name
4159
+ @insurance_type = insurance_type
4160
+ @price = price
4161
+ end
4162
+ end
4163
+
4164
+ class Passenger < ::Stripe::RequestParams
4165
+ # The family name of the person.
4166
+ attr_accessor :family_name
4167
+ # The given name of the person.
4168
+ attr_accessor :given_name
4169
+
4170
+ def initialize(family_name: nil, given_name: nil)
4171
+ @family_name = family_name
4172
+ @given_name = given_name
4173
+ end
4174
+ end
4175
+ # Name of associated or partner company for the service.
4176
+ attr_accessor :affiliate_name
4177
+ # Arrival details.
4178
+ attr_accessor :arrival
4179
+ # Name of transportation company.
4180
+ attr_accessor :carrier_name
4181
+ # Currency.
4182
+ attr_accessor :currency
4183
+ # Departure details.
4184
+ attr_accessor :departure
4185
+ # List of insurances for this reservation.
4186
+ attr_accessor :insurances
4187
+ # List of passengers that this reservation applies to.
4188
+ attr_accessor :passengers
4189
+ # Price in cents.
4190
+ attr_accessor :price
4191
+ # Ticket class.
4192
+ attr_accessor :ticket_class
4193
+
4194
+ def initialize(
4195
+ affiliate_name: nil,
4196
+ arrival: nil,
4197
+ carrier_name: nil,
4198
+ currency: nil,
4199
+ departure: nil,
4200
+ insurances: nil,
4201
+ passengers: nil,
4202
+ price: nil,
4203
+ ticket_class: nil
4204
+ )
4205
+ @affiliate_name = affiliate_name
4206
+ @arrival = arrival
4207
+ @carrier_name = carrier_name
4208
+ @currency = currency
4209
+ @departure = departure
4210
+ @insurances = insurances
4211
+ @passengers = passengers
4212
+ @price = price
4213
+ @ticket_class = ticket_class
4214
+ end
4215
+ end
4216
+
4217
+ class EventReservationDetail < ::Stripe::RequestParams
4218
+ class Address < ::Stripe::RequestParams
4219
+ # The city or town.
4220
+ attr_accessor :city
4221
+ # The country in ISO 3166-1 alpha-2 format.
4222
+ attr_accessor :country
4223
+ # The postal code formatted according to country.
4224
+ attr_accessor :postal_code
4225
+ # The state, county, province, or region formatted according to country.
4226
+ attr_accessor :region
4227
+ # Line 1 of the street address.
4228
+ attr_accessor :street_address
4229
+ # Line 2 of the street address.
4230
+ attr_accessor :street_address2
4231
+
4232
+ def initialize(
4233
+ city: nil,
4234
+ country: nil,
4235
+ postal_code: nil,
4236
+ region: nil,
4237
+ street_address: nil,
4238
+ street_address2: nil
4239
+ )
4240
+ @city = city
4241
+ @country = country
4242
+ @postal_code = postal_code
4243
+ @region = region
4244
+ @street_address = street_address
4245
+ @street_address2 = street_address2
4246
+ end
4247
+ end
4248
+
4249
+ class Insurance < ::Stripe::RequestParams
4250
+ # Insurance currency.
4251
+ attr_accessor :currency
4252
+ # Name of the company providing the insurance.
4253
+ attr_accessor :insurance_company_name
4254
+ # Type of insurance.
4255
+ attr_accessor :insurance_type
4256
+ # Price of insurance in cents.
4257
+ attr_accessor :price
4258
+
4259
+ def initialize(
4260
+ currency: nil,
4261
+ insurance_company_name: nil,
4262
+ insurance_type: nil,
4263
+ price: nil
4264
+ )
4265
+ @currency = currency
4266
+ @insurance_company_name = insurance_company_name
4267
+ @insurance_type = insurance_type
4268
+ @price = price
4269
+ end
4270
+ end
4271
+ # Indicates if the tickets are digitally checked when entering the venue.
4272
+ attr_accessor :access_controlled_venue
4273
+ # Address of the event.
4274
+ attr_accessor :address
4275
+ # Name of associated or partner company for the service.
4276
+ attr_accessor :affiliate_name
4277
+ # End timestamp of the event.
4278
+ attr_accessor :ends_at
4279
+ # Company selling the ticket.
4280
+ attr_accessor :event_company_name
4281
+ # Name of the event.
4282
+ attr_accessor :event_name
4283
+ # Type of the event.
4284
+ attr_accessor :event_type
4285
+ # List of insurances for this event.
4286
+ attr_accessor :insurances
4287
+ # Start timestamp of the event.
4288
+ attr_accessor :starts_at
4289
+ # Name of the venue where the event takes place.
4290
+ attr_accessor :venue_name
4291
+
4292
+ def initialize(
4293
+ access_controlled_venue: nil,
4294
+ address: nil,
4295
+ affiliate_name: nil,
4296
+ ends_at: nil,
4297
+ event_company_name: nil,
4298
+ event_name: nil,
4299
+ event_type: nil,
4300
+ insurances: nil,
4301
+ starts_at: nil,
4302
+ venue_name: nil
4303
+ )
4304
+ @access_controlled_venue = access_controlled_venue
4305
+ @address = address
4306
+ @affiliate_name = affiliate_name
4307
+ @ends_at = ends_at
4308
+ @event_company_name = event_company_name
4309
+ @event_name = event_name
4310
+ @event_type = event_type
4311
+ @insurances = insurances
4312
+ @starts_at = starts_at
4313
+ @venue_name = venue_name
4314
+ end
4315
+ end
4316
+
4317
+ class FerryReservationDetail < ::Stripe::RequestParams
4318
+ class Arrival < ::Stripe::RequestParams
4319
+ class Address < ::Stripe::RequestParams
4320
+ # The city or town.
4321
+ attr_accessor :city
4322
+ # The country in ISO 3166-1 alpha-2 format.
4323
+ attr_accessor :country
4324
+ # The postal code formatted according to country.
4325
+ attr_accessor :postal_code
4326
+ # The state, county, province, or region formatted according to country.
4327
+ attr_accessor :region
4328
+ # Line 1 of the street address.
4329
+ attr_accessor :street_address
4330
+ # Line 2 of the street address.
4331
+ attr_accessor :street_address2
4332
+
4333
+ def initialize(
4334
+ city: nil,
4335
+ country: nil,
4336
+ postal_code: nil,
4337
+ region: nil,
4338
+ street_address: nil,
4339
+ street_address2: nil
4340
+ )
4341
+ @city = city
4342
+ @country = country
4343
+ @postal_code = postal_code
4344
+ @region = region
4345
+ @street_address = street_address
4346
+ @street_address2 = street_address2
4347
+ end
4348
+ end
4349
+ # Address of the arrival location.
4350
+ attr_accessor :address
4351
+ # Identifier name or reference for the arrival location.
4352
+ attr_accessor :arrival_location
4353
+
4354
+ def initialize(address: nil, arrival_location: nil)
4355
+ @address = address
4356
+ @arrival_location = arrival_location
4357
+ end
4358
+ end
4359
+
4360
+ class Departure < ::Stripe::RequestParams
4361
+ class Address < ::Stripe::RequestParams
4362
+ # The city or town.
4363
+ attr_accessor :city
4364
+ # The country in ISO 3166-1 alpha-2 format.
4365
+ attr_accessor :country
4366
+ # The postal code formatted according to country.
4367
+ attr_accessor :postal_code
4368
+ # The state, county, province, or region formatted according to country.
4369
+ attr_accessor :region
4370
+ # Line 1 of the street address.
4371
+ attr_accessor :street_address
4372
+ # Line 2 of the street address.
4373
+ attr_accessor :street_address2
4374
+
4375
+ def initialize(
4376
+ city: nil,
4377
+ country: nil,
4378
+ postal_code: nil,
4379
+ region: nil,
4380
+ street_address: nil,
4381
+ street_address2: nil
4382
+ )
4383
+ @city = city
4384
+ @country = country
4385
+ @postal_code = postal_code
4386
+ @region = region
4387
+ @street_address = street_address
4388
+ @street_address2 = street_address2
4389
+ end
4390
+ end
4391
+ # Address of the departure location.
4392
+ attr_accessor :address
4393
+ # Timestamp of departure.
4394
+ attr_accessor :departs_at
4395
+ # Identifier name or reference for the origin location.
4396
+ attr_accessor :departure_location
4397
+
4398
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4399
+ @address = address
4400
+ @departs_at = departs_at
4401
+ @departure_location = departure_location
4402
+ end
4403
+ end
4404
+
4405
+ class Insurance < ::Stripe::RequestParams
4406
+ # Insurance currency.
4407
+ attr_accessor :currency
4408
+ # Name of the company providing the insurance.
4409
+ attr_accessor :insurance_company_name
4410
+ # Type of insurance.
4411
+ attr_accessor :insurance_type
4412
+ # Price of insurance in cents.
4413
+ attr_accessor :price
4414
+
4415
+ def initialize(
4416
+ currency: nil,
4417
+ insurance_company_name: nil,
4418
+ insurance_type: nil,
4419
+ price: nil
4420
+ )
4421
+ @currency = currency
4422
+ @insurance_company_name = insurance_company_name
4423
+ @insurance_type = insurance_type
4424
+ @price = price
4425
+ end
4426
+ end
4427
+
4428
+ class Passenger < ::Stripe::RequestParams
4429
+ # The family name of the person.
4430
+ attr_accessor :family_name
4431
+ # The given name of the person.
4432
+ attr_accessor :given_name
4433
+
4434
+ def initialize(family_name: nil, given_name: nil)
4435
+ @family_name = family_name
4436
+ @given_name = given_name
4437
+ end
4438
+ end
4439
+ # Name of associated or partner company for the service.
4440
+ attr_accessor :affiliate_name
4441
+ # Arrival details.
4442
+ attr_accessor :arrival
4443
+ # Name of transportation company.
4444
+ attr_accessor :carrier_name
4445
+ # Currency.
4446
+ attr_accessor :currency
4447
+ # Departure details.
4448
+ attr_accessor :departure
4449
+ # List of insurances for this reservation.
4450
+ attr_accessor :insurances
4451
+ # List of passengers that this reservation applies to.
4452
+ attr_accessor :passengers
4453
+ # Price in cents.
4454
+ attr_accessor :price
4455
+ # Ticket class.
4456
+ attr_accessor :ticket_class
4457
+
4458
+ def initialize(
4459
+ affiliate_name: nil,
4460
+ arrival: nil,
4461
+ carrier_name: nil,
4462
+ currency: nil,
4463
+ departure: nil,
4464
+ insurances: nil,
4465
+ passengers: nil,
4466
+ price: nil,
4467
+ ticket_class: nil
4468
+ )
4469
+ @affiliate_name = affiliate_name
4470
+ @arrival = arrival
4471
+ @carrier_name = carrier_name
4472
+ @currency = currency
4473
+ @departure = departure
4474
+ @insurances = insurances
4475
+ @passengers = passengers
4476
+ @price = price
4477
+ @ticket_class = ticket_class
4478
+ end
4479
+ end
4480
+
4481
+ class Insurance < ::Stripe::RequestParams
4482
+ # Insurance currency.
4483
+ attr_accessor :currency
4484
+ # Name of the company providing the insurance.
4485
+ attr_accessor :insurance_company_name
4486
+ # Type of insurance
4487
+ attr_accessor :insurance_type
4488
+ # Price of insurance in cents.
4489
+ attr_accessor :price
4490
+
4491
+ def initialize(
4492
+ currency: nil,
4493
+ insurance_company_name: nil,
4494
+ insurance_type: nil,
4495
+ price: nil
4496
+ )
4497
+ @currency = currency
4498
+ @insurance_company_name = insurance_company_name
4499
+ @insurance_type = insurance_type
4500
+ @price = price
4501
+ end
4502
+ end
4503
+
4504
+ class MarketplaceSeller < ::Stripe::RequestParams
4505
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4506
+ # The city or town.
4507
+ attr_accessor :city
4508
+ # The country in ISO 3166-1 alpha-2 format.
4509
+ attr_accessor :country
4510
+ # The postal code formatted according to country.
4511
+ attr_accessor :postal_code
4512
+ # The state, county, province, or region formatted according to country.
4513
+ attr_accessor :region
4514
+ # Line 1 of the street address.
4515
+ attr_accessor :street_address
4516
+ # Line 2 of the street address.
4517
+ attr_accessor :street_address2
4518
+
4519
+ def initialize(
4520
+ city: nil,
4521
+ country: nil,
4522
+ postal_code: nil,
4523
+ region: nil,
4524
+ street_address: nil,
4525
+ street_address2: nil
4526
+ )
4527
+ @city = city
4528
+ @country = country
4529
+ @postal_code = postal_code
4530
+ @region = region
4531
+ @street_address = street_address
4532
+ @street_address2 = street_address2
4533
+ end
4534
+ end
4535
+ # The references to line items for purchases with multiple associated sub-sellers.
4536
+ attr_accessor :line_item_references
4537
+ # The address of the selling or delivering merchant.
4538
+ attr_accessor :marketplace_seller_address
4539
+ # The name of the marketplace seller.
4540
+ attr_accessor :marketplace_seller_name
4541
+ # The unique identifier for the marketplace seller.
4542
+ attr_accessor :marketplace_seller_reference
4543
+ # The number of transactions the sub-seller completed in the last 12 months.
4544
+ attr_accessor :number_of_transactions
4545
+ # The category of the product.
4546
+ attr_accessor :product_category
4547
+ # The date when the seller's account with the marketplace was last logged in.
4548
+ attr_accessor :seller_last_login_at
4549
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4550
+ attr_accessor :seller_rating
4551
+ # The date when the seller's account with the marketplace was created.
4552
+ attr_accessor :seller_registered_at
4553
+ # The date when the seller's account with the marketplace was last updated.
4554
+ attr_accessor :seller_updated_at
4555
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4556
+ attr_accessor :shipping_references
4557
+ # The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
4558
+ attr_accessor :volume_of_transactions
4559
+
4560
+ def initialize(
4561
+ line_item_references: nil,
4562
+ marketplace_seller_address: nil,
4563
+ marketplace_seller_name: nil,
4564
+ marketplace_seller_reference: nil,
4565
+ number_of_transactions: nil,
4566
+ product_category: nil,
4567
+ seller_last_login_at: nil,
4568
+ seller_rating: nil,
4569
+ seller_registered_at: nil,
4570
+ seller_updated_at: nil,
4571
+ shipping_references: nil,
4572
+ volume_of_transactions: nil
4573
+ )
4574
+ @line_item_references = line_item_references
4575
+ @marketplace_seller_address = marketplace_seller_address
4576
+ @marketplace_seller_name = marketplace_seller_name
4577
+ @marketplace_seller_reference = marketplace_seller_reference
4578
+ @number_of_transactions = number_of_transactions
4579
+ @product_category = product_category
4580
+ @seller_last_login_at = seller_last_login_at
4581
+ @seller_rating = seller_rating
4582
+ @seller_registered_at = seller_registered_at
4583
+ @seller_updated_at = seller_updated_at
4584
+ @shipping_references = shipping_references
4585
+ @volume_of_transactions = volume_of_transactions
4586
+ end
4587
+ end
4588
+
4589
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4590
+ class Arrival < ::Stripe::RequestParams
4591
+ class Address < ::Stripe::RequestParams
4592
+ # The city or town.
4593
+ attr_accessor :city
4594
+ # The country in ISO 3166-1 alpha-2 format.
4595
+ attr_accessor :country
4596
+ # The postal code formatted according to country.
4597
+ attr_accessor :postal_code
4598
+ # The state, county, province, or region formatted according to country.
4599
+ attr_accessor :region
4600
+ # Line 1 of the street address.
4601
+ attr_accessor :street_address
4602
+ # Line 2 of the street address.
4603
+ attr_accessor :street_address2
4604
+
4605
+ def initialize(
4606
+ city: nil,
4607
+ country: nil,
4608
+ postal_code: nil,
4609
+ region: nil,
4610
+ street_address: nil,
4611
+ street_address2: nil
4612
+ )
4613
+ @city = city
4614
+ @country = country
4615
+ @postal_code = postal_code
4616
+ @region = region
4617
+ @street_address = street_address
4618
+ @street_address2 = street_address2
4619
+ end
4620
+ end
4621
+ # Address of the arrival location.
4622
+ attr_accessor :address
4623
+ # Identifier name or reference for the arrival location.
4624
+ attr_accessor :arrival_location
4625
+
4626
+ def initialize(address: nil, arrival_location: nil)
4627
+ @address = address
4628
+ @arrival_location = arrival_location
4629
+ end
4630
+ end
4631
+
4632
+ class Departure < ::Stripe::RequestParams
4633
+ class Address < ::Stripe::RequestParams
4634
+ # The city or town.
4635
+ attr_accessor :city
4636
+ # The country in ISO 3166-1 alpha-2 format.
4637
+ attr_accessor :country
4638
+ # The postal code formatted according to country.
4639
+ attr_accessor :postal_code
4640
+ # The state, county, province, or region formatted according to country.
4641
+ attr_accessor :region
4642
+ # Line 1 of the street address.
4643
+ attr_accessor :street_address
4644
+ # Line 2 of the street address.
4645
+ attr_accessor :street_address2
4646
+
4647
+ def initialize(
4648
+ city: nil,
4649
+ country: nil,
4650
+ postal_code: nil,
4651
+ region: nil,
4652
+ street_address: nil,
4653
+ street_address2: nil
4654
+ )
4655
+ @city = city
4656
+ @country = country
4657
+ @postal_code = postal_code
4658
+ @region = region
4659
+ @street_address = street_address
4660
+ @street_address2 = street_address2
4661
+ end
4662
+ end
4663
+ # Address of the departure location.
4664
+ attr_accessor :address
4665
+ # Timestamp of departure.
4666
+ attr_accessor :departs_at
4667
+ # Identifier name or reference for the origin location.
4668
+ attr_accessor :departure_location
4669
+
4670
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4671
+ @address = address
4672
+ @departs_at = departs_at
4673
+ @departure_location = departure_location
4674
+ end
4675
+ end
4676
+
4677
+ class Insurance < ::Stripe::RequestParams
4678
+ # Insurance currency.
4679
+ attr_accessor :currency
4680
+ # Name of the company providing the insurance.
4681
+ attr_accessor :insurance_company_name
4682
+ # Type of insurance.
4683
+ attr_accessor :insurance_type
4684
+ # Price of insurance in cents.
4685
+ attr_accessor :price
4686
+
4687
+ def initialize(
4688
+ currency: nil,
4689
+ insurance_company_name: nil,
4690
+ insurance_type: nil,
4691
+ price: nil
4692
+ )
4693
+ @currency = currency
4694
+ @insurance_company_name = insurance_company_name
4695
+ @insurance_type = insurance_type
4696
+ @price = price
4697
+ end
4698
+ end
4699
+
4700
+ class Passenger < ::Stripe::RequestParams
4701
+ # The family name of the person.
4702
+ attr_accessor :family_name
4703
+ # The given name of the person.
4704
+ attr_accessor :given_name
4705
+
4706
+ def initialize(family_name: nil, given_name: nil)
4707
+ @family_name = family_name
4708
+ @given_name = given_name
4709
+ end
4710
+ end
4711
+ # Name of associated or partner company for the service.
4712
+ attr_accessor :affiliate_name
4713
+ # Arrival details.
4714
+ attr_accessor :arrival
4715
+ # Name of transportation company.
4716
+ attr_accessor :carrier_name
4717
+ # Currency.
4718
+ attr_accessor :currency
4719
+ # Departure details.
4720
+ attr_accessor :departure
4721
+ # List of insurances for this reservation.
4722
+ attr_accessor :insurances
4723
+ # List of passengers that this reservation applies to.
4724
+ attr_accessor :passengers
4725
+ # Price in cents.
4726
+ attr_accessor :price
4727
+ # Ticket class.
4728
+ attr_accessor :ticket_class
4729
+
4730
+ def initialize(
4731
+ affiliate_name: nil,
4732
+ arrival: nil,
4733
+ carrier_name: nil,
4734
+ currency: nil,
4735
+ departure: nil,
4736
+ insurances: nil,
4737
+ passengers: nil,
4738
+ price: nil,
4739
+ ticket_class: nil
4740
+ )
4741
+ @affiliate_name = affiliate_name
4742
+ @arrival = arrival
4743
+ @carrier_name = carrier_name
4744
+ @currency = currency
4745
+ @departure = departure
4746
+ @insurances = insurances
4747
+ @passengers = passengers
4748
+ @price = price
4749
+ @ticket_class = ticket_class
4750
+ end
4751
+ end
4752
+
4753
+ class TrainReservationDetail < ::Stripe::RequestParams
4754
+ class Arrival < ::Stripe::RequestParams
4755
+ class Address < ::Stripe::RequestParams
4756
+ # The city or town.
4757
+ attr_accessor :city
4758
+ # The country in ISO 3166-1 alpha-2 format.
4759
+ attr_accessor :country
4760
+ # The postal code formatted according to country.
4761
+ attr_accessor :postal_code
4762
+ # The state, county, province, or region formatted according to country.
4763
+ attr_accessor :region
4764
+ # Line 1 of the street address.
4765
+ attr_accessor :street_address
4766
+ # Line 2 of the street address.
4767
+ attr_accessor :street_address2
4768
+
4769
+ def initialize(
4770
+ city: nil,
4771
+ country: nil,
4772
+ postal_code: nil,
4773
+ region: nil,
4774
+ street_address: nil,
4775
+ street_address2: nil
4776
+ )
4777
+ @city = city
4778
+ @country = country
4779
+ @postal_code = postal_code
4780
+ @region = region
4781
+ @street_address = street_address
4782
+ @street_address2 = street_address2
4783
+ end
4784
+ end
4785
+ # Address of the arrival location.
4786
+ attr_accessor :address
4787
+ # Identifier name or reference for the arrival location.
4788
+ attr_accessor :arrival_location
4789
+
4790
+ def initialize(address: nil, arrival_location: nil)
4791
+ @address = address
4792
+ @arrival_location = arrival_location
4793
+ end
4794
+ end
4795
+
4796
+ class Departure < ::Stripe::RequestParams
4797
+ class Address < ::Stripe::RequestParams
4798
+ # The city or town.
4799
+ attr_accessor :city
4800
+ # The country in ISO 3166-1 alpha-2 format.
4801
+ attr_accessor :country
4802
+ # The postal code formatted according to country.
4803
+ attr_accessor :postal_code
4804
+ # The state, county, province, or region formatted according to country.
4805
+ attr_accessor :region
4806
+ # Line 1 of the street address.
4807
+ attr_accessor :street_address
4808
+ # Line 2 of the street address.
4809
+ attr_accessor :street_address2
4810
+
4811
+ def initialize(
4812
+ city: nil,
4813
+ country: nil,
4814
+ postal_code: nil,
4815
+ region: nil,
4816
+ street_address: nil,
4817
+ street_address2: nil
4818
+ )
4819
+ @city = city
4820
+ @country = country
4821
+ @postal_code = postal_code
4822
+ @region = region
4823
+ @street_address = street_address
4824
+ @street_address2 = street_address2
4825
+ end
4826
+ end
4827
+ # Address of the departure location.
4828
+ attr_accessor :address
4829
+ # Timestamp of departure.
4830
+ attr_accessor :departs_at
4831
+ # Identifier name or reference for the origin location.
4832
+ attr_accessor :departure_location
4833
+
4834
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4835
+ @address = address
4836
+ @departs_at = departs_at
4837
+ @departure_location = departure_location
4838
+ end
4839
+ end
4840
+
4841
+ class Insurance < ::Stripe::RequestParams
4842
+ # Insurance currency.
4843
+ attr_accessor :currency
4844
+ # Name of the company providing the insurance.
4845
+ attr_accessor :insurance_company_name
4846
+ # Type of insurance.
4847
+ attr_accessor :insurance_type
4848
+ # Price of insurance in cents.
4849
+ attr_accessor :price
4850
+
4851
+ def initialize(
4852
+ currency: nil,
4853
+ insurance_company_name: nil,
4854
+ insurance_type: nil,
4855
+ price: nil
4856
+ )
4857
+ @currency = currency
4858
+ @insurance_company_name = insurance_company_name
4859
+ @insurance_type = insurance_type
4860
+ @price = price
4861
+ end
4862
+ end
4863
+
4864
+ class Passenger < ::Stripe::RequestParams
4865
+ # The family name of the person.
4866
+ attr_accessor :family_name
4867
+ # The given name of the person.
4868
+ attr_accessor :given_name
4869
+
4870
+ def initialize(family_name: nil, given_name: nil)
4871
+ @family_name = family_name
4872
+ @given_name = given_name
4873
+ end
4874
+ end
4875
+ # Name of associated or partner company for the service.
4876
+ attr_accessor :affiliate_name
4877
+ # Arrival details.
4878
+ attr_accessor :arrival
4879
+ # Name of transportation company.
4880
+ attr_accessor :carrier_name
4881
+ # Currency.
4882
+ attr_accessor :currency
4883
+ # Departure details.
4884
+ attr_accessor :departure
4885
+ # List of insurances for this reservation.
4886
+ attr_accessor :insurances
4887
+ # List of passengers that this reservation applies to.
4888
+ attr_accessor :passengers
4889
+ # Price in cents.
4890
+ attr_accessor :price
4891
+ # Ticket class.
4892
+ attr_accessor :ticket_class
4893
+
4894
+ def initialize(
4895
+ affiliate_name: nil,
4896
+ arrival: nil,
4897
+ carrier_name: nil,
4898
+ currency: nil,
4899
+ departure: nil,
4900
+ insurances: nil,
4901
+ passengers: nil,
4902
+ price: nil,
4903
+ ticket_class: nil
4904
+ )
4905
+ @affiliate_name = affiliate_name
4906
+ @arrival = arrival
4907
+ @carrier_name = carrier_name
4908
+ @currency = currency
4909
+ @departure = departure
4910
+ @insurances = insurances
4911
+ @passengers = passengers
4912
+ @price = price
4913
+ @ticket_class = ticket_class
4914
+ end
4915
+ end
4916
+
4917
+ class Voucher < ::Stripe::RequestParams
4918
+ # Name of associated or partner company for this voucher.
4919
+ attr_accessor :affiliate_name
4920
+ # The voucher validity end time.
4921
+ attr_accessor :ends_at
4922
+ # The voucher validity start time.
4923
+ attr_accessor :starts_at
4924
+ # The issuer or provider of this voucher.
4925
+ attr_accessor :voucher_company
4926
+ # The name or reference to identify the voucher.
4927
+ attr_accessor :voucher_name
4928
+ # The type of this voucher.
4929
+ attr_accessor :voucher_type
4930
+
4931
+ def initialize(
4932
+ affiliate_name: nil,
4933
+ ends_at: nil,
4934
+ starts_at: nil,
4935
+ voucher_company: nil,
4936
+ voucher_name: nil,
4937
+ voucher_type: nil
4938
+ )
4939
+ @affiliate_name = affiliate_name
4940
+ @ends_at = ends_at
4941
+ @starts_at = starts_at
4942
+ @voucher_company = voucher_company
4943
+ @voucher_name = voucher_name
4944
+ @voucher_type = voucher_type
4945
+ end
4946
+ end
4947
+ # Supplementary bus reservation details.
4948
+ attr_accessor :bus_reservation_details
4949
+ # Supplementary event reservation details.
4950
+ attr_accessor :event_reservation_details
4951
+ # Supplementary ferry reservation details.
4952
+ attr_accessor :ferry_reservation_details
4953
+ # Supplementary insurance details.
4954
+ attr_accessor :insurances
4955
+ # Supplementary marketplace seller details.
4956
+ attr_accessor :marketplace_sellers
4957
+ # Supplementary round trip reservation details.
4958
+ attr_accessor :round_trip_reservation_details
4959
+ # Supplementary train reservation details.
4960
+ attr_accessor :train_reservation_details
4961
+ # Voucher details, such as a gift card or discount code.
4962
+ attr_accessor :vouchers
4963
+
4964
+ def initialize(
4965
+ bus_reservation_details: nil,
4966
+ event_reservation_details: nil,
4967
+ ferry_reservation_details: nil,
4968
+ insurances: nil,
4969
+ marketplace_sellers: nil,
4970
+ round_trip_reservation_details: nil,
4971
+ train_reservation_details: nil,
4972
+ vouchers: nil
4973
+ )
4974
+ @bus_reservation_details = bus_reservation_details
4975
+ @event_reservation_details = event_reservation_details
4976
+ @ferry_reservation_details = ferry_reservation_details
4977
+ @insurances = insurances
4978
+ @marketplace_sellers = marketplace_sellers
4979
+ @round_trip_reservation_details = round_trip_reservation_details
4980
+ @train_reservation_details = train_reservation_details
4981
+ @vouchers = vouchers
4982
+ end
4983
+ end
1694
4984
  # Controls when the funds are captured from the customer's account.
1695
4985
  #
1696
4986
  # 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.
@@ -1713,19 +5003,23 @@ module Stripe
1713
5003
  attr_accessor :setup_future_usage
1714
5004
  # Subscription details if setting up or charging a subscription.
1715
5005
  attr_accessor :subscriptions
5006
+ # Supplementary Purchase Data for the corresponding Klarna payment
5007
+ attr_accessor :supplementary_purchase_data
1716
5008
 
1717
5009
  def initialize(
1718
5010
  capture_method: nil,
1719
5011
  on_demand: nil,
1720
5012
  preferred_locale: nil,
1721
5013
  setup_future_usage: nil,
1722
- subscriptions: nil
5014
+ subscriptions: nil,
5015
+ supplementary_purchase_data: nil
1723
5016
  )
1724
5017
  @capture_method = capture_method
1725
5018
  @on_demand = on_demand
1726
5019
  @preferred_locale = preferred_locale
1727
5020
  @setup_future_usage = setup_future_usage
1728
5021
  @subscriptions = subscriptions
5022
+ @supplementary_purchase_data = supplementary_purchase_data
1729
5023
  end
1730
5024
  end
1731
5025
 
@@ -1986,12 +5280,65 @@ module Stripe
1986
5280
  end
1987
5281
 
1988
5282
  class Paypal < ::Stripe::RequestParams
5283
+ class LineItem < ::Stripe::RequestParams
5284
+ class Tax < ::Stripe::RequestParams
5285
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
5286
+ attr_accessor :amount
5287
+ # The tax behavior for the line item.
5288
+ attr_accessor :behavior
5289
+
5290
+ def initialize(amount: nil, behavior: nil)
5291
+ @amount = amount
5292
+ @behavior = behavior
5293
+ end
5294
+ end
5295
+ # Type of the line item.
5296
+ attr_accessor :category
5297
+ # Description of the line item.
5298
+ attr_accessor :description
5299
+ # Descriptive name of the line item.
5300
+ attr_accessor :name
5301
+ # Quantity of the line item. Must be a positive number.
5302
+ attr_accessor :quantity
5303
+ # Client facing stock keeping unit, article number or similar.
5304
+ attr_accessor :sku
5305
+ # The Stripe account ID of the connected account that sells the item.
5306
+ attr_accessor :sold_by
5307
+ # The tax information for the line item.
5308
+ attr_accessor :tax
5309
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
5310
+ attr_accessor :unit_amount
5311
+
5312
+ def initialize(
5313
+ category: nil,
5314
+ description: nil,
5315
+ name: nil,
5316
+ quantity: nil,
5317
+ sku: nil,
5318
+ sold_by: nil,
5319
+ tax: nil,
5320
+ unit_amount: nil
5321
+ )
5322
+ @category = category
5323
+ @description = description
5324
+ @name = name
5325
+ @quantity = quantity
5326
+ @sku = sku
5327
+ @sold_by = sold_by
5328
+ @tax = tax
5329
+ @unit_amount = unit_amount
5330
+ end
5331
+ end
1989
5332
  # Controls when the funds will be captured from the customer's account.
1990
5333
  attr_accessor :capture_method
5334
+ # The line items purchased by the customer.
5335
+ attr_accessor :line_items
1991
5336
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1992
5337
  attr_accessor :preferred_locale
1993
5338
  # 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.
1994
5339
  attr_accessor :reference
5340
+ # 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.
5341
+ attr_accessor :reference_id
1995
5342
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1996
5343
  attr_accessor :risk_correlation_id
1997
5344
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2004,19 +5351,40 @@ module Stripe
2004
5351
  #
2005
5352
  # 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`.
2006
5353
  attr_accessor :setup_future_usage
5354
+ # 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.
5355
+ attr_accessor :subsellers
2007
5356
 
2008
5357
  def initialize(
2009
5358
  capture_method: nil,
5359
+ line_items: nil,
2010
5360
  preferred_locale: nil,
2011
5361
  reference: nil,
5362
+ reference_id: nil,
2012
5363
  risk_correlation_id: nil,
2013
- setup_future_usage: nil
5364
+ setup_future_usage: nil,
5365
+ subsellers: nil
2014
5366
  )
2015
5367
  @capture_method = capture_method
5368
+ @line_items = line_items
2016
5369
  @preferred_locale = preferred_locale
2017
5370
  @reference = reference
5371
+ @reference_id = reference_id
2018
5372
  @risk_correlation_id = risk_correlation_id
2019
5373
  @setup_future_usage = setup_future_usage
5374
+ @subsellers = subsellers
5375
+ end
5376
+ end
5377
+
5378
+ class Paypay < ::Stripe::RequestParams
5379
+ # Controls when the funds are captured from the customer's account.
5380
+ #
5381
+ # 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.
5382
+ #
5383
+ # 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.
5384
+ attr_accessor :capture_method
5385
+
5386
+ def initialize(capture_method: nil)
5387
+ @capture_method = capture_method
2020
5388
  end
2021
5389
  end
2022
5390
 
@@ -2158,6 +5526,25 @@ module Stripe
2158
5526
  end
2159
5527
  end
2160
5528
 
5529
+ class Qris < ::Stripe::RequestParams
5530
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5531
+ #
5532
+ # 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.
5533
+ #
5534
+ # 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.
5535
+ #
5536
+ # 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).
5537
+ #
5538
+ # 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`.
5539
+ attr_accessor :setup_future_usage
5540
+
5541
+ def initialize(setup_future_usage: nil)
5542
+ @setup_future_usage = setup_future_usage
5543
+ end
5544
+ end
5545
+
5546
+ class Rechnung < ::Stripe::RequestParams; end
5547
+
2161
5548
  class RevolutPay < ::Stripe::RequestParams
2162
5549
  # Controls when the funds are captured from the customer's account.
2163
5550
  #
@@ -2250,6 +5637,23 @@ module Stripe
2250
5637
  end
2251
5638
  end
2252
5639
 
5640
+ class Shopeepay < ::Stripe::RequestParams
5641
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5642
+ #
5643
+ # 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.
5644
+ #
5645
+ # 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.
5646
+ #
5647
+ # 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).
5648
+ #
5649
+ # 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`.
5650
+ attr_accessor :setup_future_usage
5651
+
5652
+ def initialize(setup_future_usage: nil)
5653
+ @setup_future_usage = setup_future_usage
5654
+ end
5655
+ end
5656
+
2253
5657
  class Sofort < ::Stripe::RequestParams
2254
5658
  # Language shown to the payer on redirect.
2255
5659
  attr_accessor :preferred_language
@@ -2270,6 +5674,34 @@ module Stripe
2270
5674
  end
2271
5675
  end
2272
5676
 
5677
+ class StripeBalance < ::Stripe::RequestParams
5678
+ class MandateOptions < ::Stripe::RequestParams
5679
+ # The ID of the Stripe Balance Debit Agreement used for this mandate.
5680
+ attr_accessor :stripe_balance_debit_agreement
5681
+
5682
+ def initialize(stripe_balance_debit_agreement: nil)
5683
+ @stripe_balance_debit_agreement = stripe_balance_debit_agreement
5684
+ end
5685
+ end
5686
+ # Additional fields for mandate creation.
5687
+ attr_accessor :mandate_options
5688
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5689
+ #
5690
+ # 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.
5691
+ #
5692
+ # 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.
5693
+ #
5694
+ # 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).
5695
+ #
5696
+ # 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`.
5697
+ attr_accessor :setup_future_usage
5698
+
5699
+ def initialize(mandate_options: nil, setup_future_usage: nil)
5700
+ @mandate_options = mandate_options
5701
+ @setup_future_usage = setup_future_usage
5702
+ end
5703
+ end
5704
+
2273
5705
  class Swish < ::Stripe::RequestParams
2274
5706
  # A reference for this payment to be displayed in the Swish app.
2275
5707
  attr_accessor :reference
@@ -2341,13 +5773,27 @@ module Stripe
2341
5773
  class Filters < ::Stripe::RequestParams
2342
5774
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2343
5775
  attr_accessor :account_subcategories
5776
+ # ID of the institution to use to filter for selectable accounts.
5777
+ attr_accessor :institution
2344
5778
 
2345
- def initialize(account_subcategories: nil)
5779
+ def initialize(account_subcategories: nil, institution: nil)
2346
5780
  @account_subcategories = account_subcategories
5781
+ @institution = institution
5782
+ end
5783
+ end
5784
+
5785
+ class ManualEntry < ::Stripe::RequestParams
5786
+ # Settings for configuring manual entry of account details.
5787
+ attr_accessor :mode
5788
+
5789
+ def initialize(mode: nil)
5790
+ @mode = mode
2347
5791
  end
2348
5792
  end
2349
5793
  # Provide filters for the linked accounts that the customer can select for the payment method.
2350
5794
  attr_accessor :filters
5795
+ # Customize manual entry behavior
5796
+ attr_accessor :manual_entry
2351
5797
  # 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`.
2352
5798
  attr_accessor :permissions
2353
5799
  # List of data features that you would like to retrieve upon account creation.
@@ -2355,8 +5801,15 @@ module Stripe
2355
5801
  # 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.
2356
5802
  attr_accessor :return_url
2357
5803
 
2358
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5804
+ def initialize(
5805
+ filters: nil,
5806
+ manual_entry: nil,
5807
+ permissions: nil,
5808
+ prefetch: nil,
5809
+ return_url: nil
5810
+ )
2359
5811
  @filters = filters
5812
+ @manual_entry = manual_entry
2360
5813
  @permissions = permissions
2361
5814
  @prefetch = prefetch
2362
5815
  @return_url = return_url
@@ -2501,10 +5954,16 @@ module Stripe
2501
5954
  attr_accessor :eps
2502
5955
  # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
2503
5956
  attr_accessor :fpx
5957
+ # If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
5958
+ attr_accessor :gift_card
2504
5959
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2505
5960
  attr_accessor :giropay
5961
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5962
+ attr_accessor :gopay
2506
5963
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2507
5964
  attr_accessor :grabpay
5965
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5966
+ attr_accessor :id_bank_transfer
2508
5967
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2509
5968
  attr_accessor :ideal
2510
5969
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2541,12 +6000,18 @@ module Stripe
2541
6000
  attr_accessor :paynow
2542
6001
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2543
6002
  attr_accessor :paypal
6003
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
6004
+ attr_accessor :paypay
2544
6005
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
2545
6006
  attr_accessor :payto
2546
6007
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2547
6008
  attr_accessor :pix
2548
6009
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2549
6010
  attr_accessor :promptpay
6011
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
6012
+ attr_accessor :qris
6013
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
6014
+ attr_accessor :rechnung
2550
6015
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2551
6016
  attr_accessor :revolut_pay
2552
6017
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2557,8 +6022,12 @@ module Stripe
2557
6022
  attr_accessor :scalapay
2558
6023
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2559
6024
  attr_accessor :sepa_debit
6025
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
6026
+ attr_accessor :shopeepay
2560
6027
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2561
6028
  attr_accessor :sofort
6029
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
6030
+ attr_accessor :stripe_balance
2562
6031
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2563
6032
  attr_accessor :swish
2564
6033
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2593,8 +6062,11 @@ module Stripe
2593
6062
  customer_balance: nil,
2594
6063
  eps: nil,
2595
6064
  fpx: nil,
6065
+ gift_card: nil,
2596
6066
  giropay: nil,
6067
+ gopay: nil,
2597
6068
  grabpay: nil,
6069
+ id_bank_transfer: nil,
2598
6070
  ideal: nil,
2599
6071
  interac_present: nil,
2600
6072
  kakao_pay: nil,
@@ -2613,15 +6085,20 @@ module Stripe
2613
6085
  payco: nil,
2614
6086
  paynow: nil,
2615
6087
  paypal: nil,
6088
+ paypay: nil,
2616
6089
  payto: nil,
2617
6090
  pix: nil,
2618
6091
  promptpay: nil,
6092
+ qris: nil,
6093
+ rechnung: nil,
2619
6094
  revolut_pay: nil,
2620
6095
  samsung_pay: nil,
2621
6096
  satispay: nil,
2622
6097
  scalapay: nil,
2623
6098
  sepa_debit: nil,
6099
+ shopeepay: nil,
2624
6100
  sofort: nil,
6101
+ stripe_balance: nil,
2625
6102
  swish: nil,
2626
6103
  twint: nil,
2627
6104
  upi: nil,
@@ -2649,8 +6126,11 @@ module Stripe
2649
6126
  @customer_balance = customer_balance
2650
6127
  @eps = eps
2651
6128
  @fpx = fpx
6129
+ @gift_card = gift_card
2652
6130
  @giropay = giropay
6131
+ @gopay = gopay
2653
6132
  @grabpay = grabpay
6133
+ @id_bank_transfer = id_bank_transfer
2654
6134
  @ideal = ideal
2655
6135
  @interac_present = interac_present
2656
6136
  @kakao_pay = kakao_pay
@@ -2669,15 +6149,20 @@ module Stripe
2669
6149
  @payco = payco
2670
6150
  @paynow = paynow
2671
6151
  @paypal = paypal
6152
+ @paypay = paypay
2672
6153
  @payto = payto
2673
6154
  @pix = pix
2674
6155
  @promptpay = promptpay
6156
+ @qris = qris
6157
+ @rechnung = rechnung
2675
6158
  @revolut_pay = revolut_pay
2676
6159
  @samsung_pay = samsung_pay
2677
6160
  @satispay = satispay
2678
6161
  @scalapay = scalapay
2679
6162
  @sepa_debit = sepa_debit
6163
+ @shopeepay = shopeepay
2680
6164
  @sofort = sofort
6165
+ @stripe_balance = stripe_balance
2681
6166
  @swish = swish
2682
6167
  @twint = twint
2683
6168
  @upi = upi
@@ -2687,6 +6172,18 @@ module Stripe
2687
6172
  end
2688
6173
  end
2689
6174
 
6175
+ class PaymentsOrchestration < ::Stripe::RequestParams
6176
+ # Whether this feature is enabled.
6177
+ attr_accessor :enabled
6178
+ # Merchant-provided reference for this payment, used for reconciliation.
6179
+ attr_accessor :payment_reference
6180
+
6181
+ def initialize(enabled: nil, payment_reference: nil)
6182
+ @enabled = enabled
6183
+ @payment_reference = payment_reference
6184
+ end
6185
+ end
6186
+
2690
6187
  class RadarOptions < ::Stripe::RequestParams
2691
6188
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
2692
6189
  attr_accessor :session
@@ -2793,6 +6290,10 @@ module Stripe
2793
6290
  @payment_data = payment_data
2794
6291
  end
2795
6292
  end
6293
+ # Allocated Funds configuration for this PaymentIntent.
6294
+ attr_accessor :allocated_funds
6295
+ # The list of payment method types allowed for use with this payment. Stripe automatically returns compatible payment methods from this list in the `payment_method_types` field of the response, based on the other PaymentIntent parameters, such as `currency`, `amount`, and `customer`.
6296
+ attr_accessor :allowed_payment_method_types
2796
6297
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2797
6298
  attr_accessor :amount
2798
6299
  # Provides industry-specific information about the amount.
@@ -2833,6 +6334,8 @@ module Stripe
2833
6334
  attr_accessor :excluded_payment_method_types
2834
6335
  # Specifies which fields in the response should be expanded.
2835
6336
  attr_accessor :expand
6337
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
6338
+ attr_accessor :fx_quote
2836
6339
  # Automations to be run during the PaymentIntent lifecycle
2837
6340
  attr_accessor :hooks
2838
6341
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
@@ -2863,12 +6366,16 @@ module Stripe
2863
6366
  attr_accessor :payment_method_options
2864
6367
  # The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
2865
6368
  attr_accessor :payment_method_types
6369
+ # When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
6370
+ attr_accessor :payments_orchestration
2866
6371
  # Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
2867
6372
  attr_accessor :radar_options
2868
6373
  # Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
2869
6374
  attr_accessor :receipt_email
2870
6375
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2871
6376
  attr_accessor :return_url
6377
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
6378
+ attr_accessor :secret_key_confirmation
2872
6379
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2873
6380
  #
2874
6381
  # 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.
@@ -2894,6 +6401,8 @@ module Stripe
2894
6401
  attr_accessor :use_stripe_sdk
2895
6402
 
2896
6403
  def initialize(
6404
+ allocated_funds: nil,
6405
+ allowed_payment_method_types: nil,
2897
6406
  amount: nil,
2898
6407
  amount_details: nil,
2899
6408
  application_fee_amount: nil,
@@ -2909,6 +6418,7 @@ module Stripe
2909
6418
  error_on_requires_action: nil,
2910
6419
  excluded_payment_method_types: nil,
2911
6420
  expand: nil,
6421
+ fx_quote: nil,
2912
6422
  hooks: nil,
2913
6423
  mandate: nil,
2914
6424
  mandate_data: nil,
@@ -2921,9 +6431,11 @@ module Stripe
2921
6431
  payment_method_data: nil,
2922
6432
  payment_method_options: nil,
2923
6433
  payment_method_types: nil,
6434
+ payments_orchestration: nil,
2924
6435
  radar_options: nil,
2925
6436
  receipt_email: nil,
2926
6437
  return_url: nil,
6438
+ secret_key_confirmation: nil,
2927
6439
  setup_future_usage: nil,
2928
6440
  shipping: nil,
2929
6441
  statement_descriptor: nil,
@@ -2932,6 +6444,8 @@ module Stripe
2932
6444
  transfer_group: nil,
2933
6445
  use_stripe_sdk: nil
2934
6446
  )
6447
+ @allocated_funds = allocated_funds
6448
+ @allowed_payment_method_types = allowed_payment_method_types
2935
6449
  @amount = amount
2936
6450
  @amount_details = amount_details
2937
6451
  @application_fee_amount = application_fee_amount
@@ -2947,6 +6461,7 @@ module Stripe
2947
6461
  @error_on_requires_action = error_on_requires_action
2948
6462
  @excluded_payment_method_types = excluded_payment_method_types
2949
6463
  @expand = expand
6464
+ @fx_quote = fx_quote
2950
6465
  @hooks = hooks
2951
6466
  @mandate = mandate
2952
6467
  @mandate_data = mandate_data
@@ -2959,9 +6474,11 @@ module Stripe
2959
6474
  @payment_method_data = payment_method_data
2960
6475
  @payment_method_options = payment_method_options
2961
6476
  @payment_method_types = payment_method_types
6477
+ @payments_orchestration = payments_orchestration
2962
6478
  @radar_options = radar_options
2963
6479
  @receipt_email = receipt_email
2964
6480
  @return_url = return_url
6481
+ @secret_key_confirmation = secret_key_confirmation
2965
6482
  @setup_future_usage = setup_future_usage
2966
6483
  @shipping = shipping
2967
6484
  @statement_descriptor = statement_descriptor