stripe 19.4.0 → 19.5.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 (1408) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +38 -0
  3. data/lib/stripe/api_version.rb +2 -2
  4. data/lib/stripe/connection_manager.rb +30 -0
  5. data/lib/stripe/error_object.rb +5 -0
  6. data/lib/stripe/errors.rb +90 -0
  7. data/lib/stripe/event_types.rb +1383 -0
  8. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  9. data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
  10. data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
  11. data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
  12. data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
  13. data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
  14. data/lib/stripe/events/v1_account_signals_including_delinquency_created_event.rb +68 -0
  15. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  16. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  17. data/lib/stripe/events/v1_application_fee_refund_updated_event.rb +44 -0
  18. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  19. data/lib/stripe/events/v1_balance_available_event.rb +44 -0
  20. data/lib/stripe/events/v1_billing_alert_triggered_event.rb +44 -0
  21. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  22. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  23. data/lib/stripe/events/v1_billing_portal_session_created_event.rb +20 -0
  24. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  25. data/lib/stripe/events/v1_cash_balance_funds_available_event.rb +44 -0
  26. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  27. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  28. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  29. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  30. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  31. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  32. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  33. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  34. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  35. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  36. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  37. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  38. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  39. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  40. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  41. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  42. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  43. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  44. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  46. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  47. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  48. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  49. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  50. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  51. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  52. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  53. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  54. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  55. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  56. data/lib/stripe/events/v1_customer_cash_balance_transaction_created_event.rb +44 -0
  57. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  59. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  60. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  61. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  62. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  63. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  64. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  65. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  66. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  67. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  68. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  69. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  70. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  71. data/lib/stripe/events/v1_entitlements_active_entitlement_summary_updated_event.rb +20 -0
  72. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  73. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  74. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  75. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  76. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  77. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  78. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  79. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  80. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  81. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  82. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  83. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  84. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  85. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  89. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  90. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  91. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  92. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  93. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  94. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  95. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  96. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  97. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  98. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  99. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  100. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  101. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  102. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  103. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  104. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  111. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  113. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  114. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  115. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  116. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  117. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  118. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  119. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  120. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  121. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  123. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  125. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  127. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  128. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  129. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  130. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  131. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  132. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  133. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  134. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  135. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  136. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  137. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  139. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  140. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  141. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  142. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  143. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  144. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  145. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  146. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  147. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  148. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  149. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  150. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  151. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  152. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  153. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  154. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  155. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  156. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  157. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  158. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  159. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  160. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  161. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  162. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  163. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  164. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  165. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  166. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  167. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  168. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  169. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  170. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  171. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  172. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  173. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  174. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  175. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  176. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  177. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  178. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  179. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  180. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  181. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  182. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  183. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  184. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  185. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  186. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  187. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  188. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  189. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  190. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  191. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  192. data/lib/stripe/events/v1_tax_settings_updated_event.rb +44 -0
  193. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  194. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  195. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  196. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  197. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  198. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  199. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  200. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  201. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  202. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  203. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  204. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  205. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  206. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  207. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  208. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  210. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  212. data/lib/stripe/events/v2_billing_contract_activated_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_contract_canceled_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_contract_created_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_contract_ended_event.rb +44 -0
  216. data/lib/stripe/events/v2_billing_contract_updated_event.rb +44 -0
  217. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  218. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  220. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  225. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  226. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  230. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  231. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  232. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  233. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  234. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  235. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  236. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  237. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  238. data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +67 -0
  239. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  240. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  241. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  242. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  243. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  244. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  245. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  246. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  247. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  248. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  249. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  250. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  251. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  252. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  253. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  255. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  256. data/lib/stripe/events/v2_core_account_signals_fraudulent_website_ready_event.rb +48 -0
  257. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  258. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  259. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  260. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  261. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  262. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  263. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  264. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  265. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  266. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  267. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  268. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  269. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  270. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  271. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  272. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  273. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  274. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  275. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  276. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  277. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  278. data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
  279. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +115 -0
  280. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +117 -0
  281. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +113 -0
  282. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +115 -0
  283. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +96 -0
  284. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +98 -0
  285. data/lib/stripe/events/v2_core_health_elements_error_firing_event.rb +60 -0
  286. data/lib/stripe/events/v2_core_health_elements_error_resolved_event.rb +62 -0
  287. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  288. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  289. data/lib/stripe/events/v2_core_health_invoice_count_dropped_firing_event.rb +75 -0
  290. data/lib/stripe/events/v2_core_health_invoice_count_dropped_resolved_event.rb +77 -0
  291. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +64 -0
  292. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +66 -0
  293. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  294. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +66 -0
  295. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_firing_event.rb +58 -0
  296. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_resolved_event.rb +60 -0
  297. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +111 -0
  298. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +113 -0
  299. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +70 -0
  300. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +72 -0
  301. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +64 -0
  302. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +66 -0
  303. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  304. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +60 -0
  305. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  306. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  307. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  308. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  309. data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
  310. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  311. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  312. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  313. data/lib/stripe/events/v2_iam_api_key_created_event.rb +38 -0
  314. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +38 -0
  315. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +38 -0
  316. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +38 -0
  317. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +40 -0
  318. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +38 -0
  319. data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +38 -0
  320. data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +38 -0
  321. data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +38 -0
  322. data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +38 -0
  323. data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +38 -0
  324. data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +38 -0
  325. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  326. data/lib/stripe/events/v2_money_management_debit_dispute_failed_event.rb +44 -0
  327. data/lib/stripe/events/v2_money_management_debit_dispute_submitted_event.rb +44 -0
  328. data/lib/stripe/events/v2_money_management_debit_dispute_succeeded_event.rb +44 -0
  329. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  330. data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
  331. data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
  332. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  333. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  334. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  335. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  336. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  337. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  338. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  339. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  340. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  341. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  342. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  343. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  344. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  345. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  346. data/lib/stripe/events/v2_money_management_outbound_payment_under_review_event.rb +44 -0
  347. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  348. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  349. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  350. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  351. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  352. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  353. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  354. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  355. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  356. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  357. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  358. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  359. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  360. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  361. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  362. data/lib/stripe/events/v2_money_management_received_debit_created_event.rb +44 -0
  363. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  364. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +44 -0
  365. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +44 -0
  366. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +44 -0
  367. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +44 -0
  368. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +44 -0
  369. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  370. data/lib/stripe/events/v2_money_management_received_debit_scheduled_event.rb +44 -0
  371. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  372. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  373. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  374. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  375. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
  376. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  377. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  378. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  379. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  380. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  381. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -0
  382. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  383. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  384. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  385. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  386. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  387. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +61 -0
  388. data/lib/stripe/events/v2_payments_off_session_payment_paused_event.rb +44 -0
  389. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  390. data/lib/stripe/events/v2_payments_off_session_payment_resumed_event.rb +44 -0
  391. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  392. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  393. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  394. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  395. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  396. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  397. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  398. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  399. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  400. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  401. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  402. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  403. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  404. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  405. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  406. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  407. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  408. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +109 -0
  409. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  410. data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
  411. data/lib/stripe/events/v2_signals_account_signal_payment_delinquency_exposure_ready_event.rb +44 -0
  412. data/lib/stripe/object_types.rb +143 -0
  413. data/lib/stripe/params/account_create_params.rb +463 -4
  414. data/lib/stripe/params/account_link_create_params.rb +4 -1
  415. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  416. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  417. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  418. data/lib/stripe/params/account_person_create_params.rb +60 -0
  419. data/lib/stripe/params/account_person_update_params.rb +60 -0
  420. data/lib/stripe/params/account_session_create_params.rb +301 -1
  421. data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
  422. data/lib/stripe/params/account_update_params.rb +425 -3
  423. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  424. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  425. data/lib/stripe/params/billing/alert_create_params.rb +264 -1
  426. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  427. data/lib/stripe/params/billing/alert_notification_list_params.rb +70 -0
  428. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  429. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +25 -1
  430. data/lib/stripe/params/billing/credit_grant_create_params.rb +60 -2
  431. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  432. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -0
  433. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  434. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  435. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  436. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  437. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  438. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  439. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  440. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  441. data/lib/stripe/params/charge_capture_params.rb +1743 -0
  442. data/lib/stripe/params/charge_update_params.rb +1743 -0
  443. data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
  444. data/lib/stripe/params/checkout/session_create_params.rb +573 -7
  445. data/lib/stripe/params/checkout/session_update_params.rb +180 -2
  446. data/lib/stripe/params/confirmation_token_create_params.rb +101 -0
  447. data/lib/stripe/params/coupon_create_params.rb +47 -1
  448. data/lib/stripe/params/crypto/customer_consumer_wallet_list_params.rb +24 -0
  449. data/lib/stripe/params/crypto/customer_payment_token_list_params.rb +24 -0
  450. data/lib/stripe/params/crypto/customer_retrieve_params.rb +15 -0
  451. data/lib/stripe/params/crypto/deposit_address_create_params.rb +24 -0
  452. data/lib/stripe/params/crypto/deposit_address_list_params.rb +45 -0
  453. data/lib/stripe/params/crypto/deposit_address_retrieve_params.rb +15 -0
  454. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +56 -0
  455. data/lib/stripe/params/crypto/onramp_session_create_params.rb +122 -0
  456. data/lib/stripe/params/crypto/onramp_session_list_params.rb +62 -0
  457. data/lib/stripe/params/crypto/onramp_session_quote_params.rb +15 -0
  458. data/lib/stripe/params/crypto/onramp_session_retrieve_params.rb +15 -0
  459. data/lib/stripe/params/crypto/onramp_transaction_limits_retrieve_params.rb +33 -0
  460. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  461. data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
  462. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +172 -0
  463. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
  464. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  465. data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
  466. data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
  467. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  468. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +216 -0
  469. data/lib/stripe/params/dispute_update_params.rb +14 -1
  470. data/lib/stripe/params/external_account_create_params.rb +134 -0
  471. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  472. data/lib/stripe/params/external_account_list_params.rb +25 -0
  473. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  474. data/lib/stripe/params/external_account_update_params.rb +91 -0
  475. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  476. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  477. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  478. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  479. data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
  480. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  481. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  482. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  483. data/lib/stripe/params/gift_card_activate_params.rb +30 -0
  484. data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
  485. data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
  486. data/lib/stripe/params/gift_card_create_params.rb +28 -0
  487. data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
  488. data/lib/stripe/params/gift_card_reload_params.rb +22 -0
  489. data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
  490. data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
  491. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  492. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  493. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  494. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  495. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  496. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  497. data/lib/stripe/params/identity/verification_session_update_params.rb +11 -1
  498. data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
  499. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  500. data/lib/stripe/params/invoice_create_params.rb +98 -3
  501. data/lib/stripe/params/invoice_create_preview_params.rb +1365 -9
  502. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  503. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  504. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  505. data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
  506. data/lib/stripe/params/invoice_list_params.rb +4 -0
  507. data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
  508. data/lib/stripe/params/invoice_update_params.rb +98 -3
  509. data/lib/stripe/params/issuing/authorization_capture_params.rb +56 -0
  510. data/lib/stripe/params/issuing/authorization_create_params.rb +51 -0
  511. data/lib/stripe/params/issuing/card_create_params.rb +4 -0
  512. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  513. data/lib/stripe/params/issuing/card_update_params.rb +4 -0
  514. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  515. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  516. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  517. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  518. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  519. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  520. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  521. data/lib/stripe/params/issuing/credit_underwriting_record_report_offer_acceptance_params.rb +15 -0
  522. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  523. data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
  524. data/lib/stripe/params/issuing/dispute_provisional_credit_params.rb +21 -0
  525. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  526. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  527. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
  528. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
  529. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
  530. data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
  531. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  532. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  533. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  534. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  535. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  536. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  537. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +64 -0
  538. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +51 -0
  539. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  540. data/lib/stripe/params/mandate_list_params.rb +39 -0
  541. data/lib/stripe/params/margin_create_params.rb +25 -0
  542. data/lib/stripe/params/margin_list_params.rb +25 -0
  543. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  544. data/lib/stripe/params/margin_update_params.rb +22 -0
  545. data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
  546. data/lib/stripe/params/order_create_params.rb +2117 -0
  547. data/lib/stripe/params/order_list_params.rb +25 -0
  548. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  549. data/lib/stripe/params/order_submit_params.rb +16 -0
  550. data/lib/stripe/params/order_update_params.rb +2121 -0
  551. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
  552. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
  553. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +31 -0
  554. data/lib/stripe/params/payment_attempt_record_report_early_fraud_warning_params.rb +22 -0
  555. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +92 -0
  556. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +92 -0
  557. data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
  558. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +103 -0
  559. data/lib/stripe/params/payment_intent_capture_params.rb +1815 -3
  560. data/lib/stripe/params/payment_intent_confirm_params.rb +3712 -92
  561. data/lib/stripe/params/payment_intent_create_params.rb +3719 -83
  562. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +370 -0
  563. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +112 -2
  564. data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
  565. data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
  566. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  567. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
  568. data/lib/stripe/params/payment_intent_update_params.rb +3741 -90
  569. data/lib/stripe/params/payment_link_create_params.rb +35 -1
  570. data/lib/stripe/params/payment_link_update_params.rb +1 -1
  571. data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
  572. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
  573. data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
  574. data/lib/stripe/params/payment_location_create_params.rb +54 -0
  575. data/lib/stripe/params/payment_location_delete_params.rb +6 -0
  576. data/lib/stripe/params/payment_location_list_params.rb +22 -0
  577. data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
  578. data/lib/stripe/params/payment_location_update_params.rb +63 -0
  579. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  580. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  581. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  582. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  583. data/lib/stripe/params/payment_method_update_params.rb +16 -0
  584. data/lib/stripe/params/payment_record_create_params.rb +109 -0
  585. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +13 -1
  586. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +74 -1
  587. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +70 -1
  588. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +87 -3
  589. data/lib/stripe/params/payment_record_report_payment_params.rb +87 -3
  590. data/lib/stripe/params/payment_record_report_refund_params.rb +24 -0
  591. data/lib/stripe/params/payment_record_search_params.rb +22 -0
  592. data/lib/stripe/params/plan_create_params.rb +15 -0
  593. data/lib/stripe/params/price_create_params.rb +19 -0
  594. data/lib/stripe/params/price_update_params.rb +23 -0
  595. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  596. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  597. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  598. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  599. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  600. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  601. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  602. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  603. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  604. data/lib/stripe/params/product_catalog/trial_offer_list_params.rb +54 -0
  605. data/lib/stripe/params/product_catalog/trial_offer_retrieve_params.rb +15 -0
  606. data/lib/stripe/params/product_create_params.rb +47 -0
  607. data/lib/stripe/params/product_update_params.rb +47 -0
  608. data/lib/stripe/params/quote_create_params.rb +1217 -3
  609. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  610. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  611. data/lib/stripe/params/quote_list_params.rb +4 -0
  612. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  613. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  614. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  615. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  616. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  617. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  618. data/lib/stripe/params/quote_update_params.rb +1225 -4
  619. data/lib/stripe/params/radar/account_evaluation_create_params.rb +115 -0
  620. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  621. data/lib/stripe/params/radar/account_evaluation_update_params.rb +72 -0
  622. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +86 -0
  623. data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
  624. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
  625. data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
  626. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +65 -2
  627. data/lib/stripe/params/refund_create_params.rb +8 -0
  628. data/lib/stripe/params/refund_list_params.rb +8 -0
  629. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  630. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  631. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  632. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  633. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  634. data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
  635. data/lib/stripe/params/setup_intent_create_params.rb +187 -3
  636. data/lib/stripe/params/setup_intent_update_params.rb +188 -4
  637. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -0
  638. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  639. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  640. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +74 -0
  641. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  642. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  643. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  644. data/lib/stripe/params/subscription_create_params.rb +325 -7
  645. data/lib/stripe/params/subscription_item_create_params.rb +114 -2
  646. data/lib/stripe/params/subscription_item_update_params.rb +97 -1
  647. data/lib/stripe/params/subscription_list_params.rb +4 -0
  648. data/lib/stripe/params/subscription_pause_params.rb +50 -0
  649. data/lib/stripe/params/subscription_resume_params.rb +4 -0
  650. data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
  651. data/lib/stripe/params/subscription_schedule_create_params.rb +471 -5
  652. data/lib/stripe/params/subscription_schedule_update_params.rb +471 -5
  653. data/lib/stripe/params/subscription_update_params.rb +308 -6
  654. data/lib/stripe/params/tax/calculation_create_params.rb +46 -0
  655. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  656. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  657. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  658. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  659. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  660. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  661. data/lib/stripe/params/tax/registration_create_params.rb +117 -0
  662. data/lib/stripe/params/tax_fund_list_params.rb +42 -0
  663. data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
  664. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  665. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  666. data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +35 -0
  667. data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +21 -0
  668. data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +21 -0
  669. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +4 -0
  670. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  671. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +16 -0
  672. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +4 -0
  673. data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +27 -0
  674. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  675. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  676. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +101 -0
  677. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +56 -0
  678. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +51 -0
  679. data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
  680. data/lib/stripe/params/test_helpers/issuing/dispute_provisional_credit_params.rb +23 -0
  681. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
  682. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
  683. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
  684. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +64 -0
  685. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +51 -0
  686. data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
  687. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
  688. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  689. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +16 -0
  690. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  691. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  692. data/lib/stripe/params/token_create_params.rb +136 -2
  693. data/lib/stripe/params/transfer_create_params.rb +8 -0
  694. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  695. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  696. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  697. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  698. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
  699. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  700. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  701. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  702. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  703. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  704. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  705. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  706. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  707. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  708. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  709. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  710. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  711. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  712. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  713. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
  714. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
  715. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  716. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  717. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  718. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  719. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  720. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  721. data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
  722. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +39 -0
  723. data/lib/stripe/params/v2/billing/contract_create_params.rb +491 -0
  724. data/lib/stripe/params/v2/billing/contract_delete_params.rb +10 -0
  725. data/lib/stripe/params/v2/billing/contract_list_params.rb +23 -0
  726. data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
  727. data/lib/stripe/params/v2/billing/contract_update_params.rb +786 -0
  728. data/lib/stripe/params/v2/billing/contracts/pricing_lines/quantity_change_list_contract_pricing_line_quantity_changes_params.rb +21 -0
  729. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  730. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  731. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  732. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  733. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  734. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  735. data/lib/stripe/params/v2/billing/intent_create_params.rb +899 -0
  736. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  737. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  738. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  739. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  740. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  741. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  742. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +121 -0
  743. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  744. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  745. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +102 -0
  746. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  747. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  748. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  749. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  750. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  751. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  752. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  753. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  754. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  755. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  756. data/lib/stripe/params/v2/billing/one_time_item_create_params.rb +48 -0
  757. data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
  758. data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
  759. data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -0
  760. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  761. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  762. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  763. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +54 -0
  764. data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
  765. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
  766. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  767. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  768. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  769. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  770. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  771. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  772. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  773. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  774. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  775. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  776. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  777. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  778. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  779. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  780. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  781. data/lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb +177 -0
  782. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  783. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  784. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  785. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  786. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  787. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  788. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  789. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params.rb +33 -0
  790. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
  791. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
  792. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
  793. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -0
  794. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  795. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  796. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  797. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  798. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  799. data/lib/stripe/params/v2/billing/service_action_create_params.rb +315 -0
  800. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  801. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  802. data/lib/stripe/params/v2/core/account_create_params.rb +4072 -57
  803. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
  804. data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
  805. data/lib/stripe/params/v2/core/account_list_params.rb +9 -1
  806. data/lib/stripe/params/v2/core/account_token_create_params.rb +254 -1
  807. data/lib/stripe/params/v2/core/account_update_params.rb +4051 -57
  808. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  809. data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
  810. data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
  811. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
  813. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  814. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  815. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  816. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
  817. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
  818. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  819. data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
  820. data/lib/stripe/params/v2/core/connection_session_retrieve_params.rb +10 -0
  821. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  822. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  823. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
  824. data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
  825. data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
  826. data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
  827. data/lib/stripe/params/v2/core/health/alert_list_params.rb +53 -0
  828. data/lib/stripe/params/v2/core/health/alert_retrieve_params.rb +12 -0
  829. data/lib/stripe/params/v2/core/health/alerts/history_list_params.rb +21 -0
  830. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  831. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  832. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
  833. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  834. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  835. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  836. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  837. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  838. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
  839. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  840. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  841. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  842. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  843. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
  844. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  845. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
  846. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  847. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  848. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  849. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  850. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  851. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  852. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  853. data/lib/stripe/params/v2/iam/api_key_create_params.rb +68 -0
  854. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  855. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  856. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  857. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  858. data/lib/stripe/params/v2/iam/api_key_update_params.rb +26 -0
  859. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  860. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  861. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -0
  862. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  863. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  864. data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
  865. data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
  866. data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
  867. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  868. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +37 -0
  869. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
  870. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
  871. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
  872. data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +25 -0
  873. data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
  874. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -0
  875. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  876. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  877. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  878. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  879. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  880. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  881. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +179 -0
  882. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  883. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +70 -0
  884. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  885. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  886. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  887. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +110 -0
  888. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  889. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  890. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
  891. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  892. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +104 -0
  893. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  894. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  895. data/lib/stripe/params/v2/money_management/payout_intent_cancel_params.rb +10 -0
  896. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +138 -0
  897. data/lib/stripe/params/v2/money_management/payout_intent_list_params.rb +17 -0
  898. data/lib/stripe/params/v2/money_management/payout_intent_retrieve_params.rb +10 -0
  899. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +138 -0
  900. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  901. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  902. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  903. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  904. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  905. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  906. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  907. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +20 -0
  908. data/lib/stripe/params/v2/money_management/received_debit_mandate_cancel_params.rb +10 -0
  909. data/lib/stripe/params/v2/money_management/received_debit_mandate_list_params.rb +26 -0
  910. data/lib/stripe/params/v2/money_management/received_debit_mandate_retrieve_params.rb +10 -0
  911. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  912. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  913. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  914. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  915. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +25 -0
  916. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  917. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  918. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  919. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  920. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  921. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  922. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  923. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  924. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  925. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  926. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  927. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  928. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +178 -0
  929. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +366 -0
  930. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  931. data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
  932. data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
  933. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  934. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  935. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +35 -0
  936. data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -0
  937. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  938. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  939. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +20 -0
  940. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  941. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +28 -0
  942. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -0
  943. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  944. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  945. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  946. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +17 -0
  947. data/lib/stripe/params/v2/risk/inquiry_list_params.rb +20 -0
  948. data/lib/stripe/params/v2/risk/inquiry_retrieve_params.rb +10 -0
  949. data/lib/stripe/params/v2/risk/inquiry_update_params.rb +49 -0
  950. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +197 -0
  951. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  952. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  953. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +188 -0
  954. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  955. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  956. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  957. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -0
  958. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  959. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  960. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  961. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +124 -0
  962. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  963. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  964. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  965. data/lib/stripe/params.rb +1040 -0
  966. data/lib/stripe/resources/account.rb +273 -1
  967. data/lib/stripe/resources/account_notice.rb +94 -0
  968. data/lib/stripe/resources/account_session.rb +414 -0
  969. data/lib/stripe/resources/account_signals.rb +104 -0
  970. data/lib/stripe/resources/application_fee.rb +24 -1
  971. data/lib/stripe/resources/balance.rb +166 -0
  972. data/lib/stripe/resources/balance_settings.rb +4 -0
  973. data/lib/stripe/resources/balance_transfer.rb +139 -0
  974. data/lib/stripe/resources/billing/alert.rb +277 -1
  975. data/lib/stripe/resources/billing/alert_notification.rb +56 -0
  976. data/lib/stripe/resources/billing/alert_recovered.rb +60 -0
  977. data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
  978. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  979. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  980. data/lib/stripe/resources/billing/credit_balance_summary.rb +172 -3
  981. data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
  982. data/lib/stripe/resources/billing/credit_grant.rb +92 -2
  983. data/lib/stripe/resources/billing/feedback_options.rb +47 -0
  984. data/lib/stripe/resources/billing/meter.rb +2 -0
  985. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  986. data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
  987. data/lib/stripe/resources/capability.rb +36 -1
  988. data/lib/stripe/resources/capital/financing_offer.rb +185 -0
  989. data/lib/stripe/resources/capital/financing_summary.rb +84 -0
  990. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  991. data/lib/stripe/resources/card.rb +35 -1
  992. data/lib/stripe/resources/charge.rb +422 -2
  993. data/lib/stripe/resources/checkout/session.rb +689 -3
  994. data/lib/stripe/resources/confirmation_token.rb +255 -1
  995. data/lib/stripe/resources/coupon.rb +60 -1
  996. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  997. data/lib/stripe/resources/crypto/customer.rb +73 -0
  998. data/lib/stripe/resources/crypto/customer_consumer_wallet.rb +35 -0
  999. data/lib/stripe/resources/crypto/customer_payment_token.rb +84 -0
  1000. data/lib/stripe/resources/crypto/deposit_address.rb +82 -0
  1001. data/lib/stripe/resources/crypto/onramp_session.rb +222 -0
  1002. data/lib/stripe/resources/crypto/onramp_transaction_limits.rb +33 -0
  1003. data/lib/stripe/resources/customer.rb +16 -0
  1004. data/lib/stripe/resources/customer_session.rb +36 -0
  1005. data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
  1006. data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
  1007. data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
  1008. data/lib/stripe/resources/discount.rb +20 -1
  1009. data/lib/stripe/resources/dispute.rb +24 -0
  1010. data/lib/stripe/resources/event.rb +64 -1
  1011. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  1012. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  1013. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  1014. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  1015. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  1016. data/lib/stripe/resources/fx_quote.rb +147 -0
  1017. data/lib/stripe/resources/gift_card.rb +146 -0
  1018. data/lib/stripe/resources/gift_card_operation.rb +280 -0
  1019. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  1020. data/lib/stripe/resources/identity/verification_report.rb +24 -1
  1021. data/lib/stripe/resources/invoice.rb +198 -1
  1022. data/lib/stripe/resources/invoice_item.rb +126 -2
  1023. data/lib/stripe/resources/invoice_line_item.rb +195 -1
  1024. data/lib/stripe/resources/issuing/authorization.rb +530 -1
  1025. data/lib/stripe/resources/issuing/card.rb +42 -0
  1026. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  1027. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +285 -0
  1028. data/lib/stripe/resources/issuing/dispute.rb +349 -1
  1029. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  1030. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  1031. data/lib/stripe/resources/issuing/program.rb +69 -0
  1032. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  1033. data/lib/stripe/resources/issuing/token.rb +10 -0
  1034. data/lib/stripe/resources/issuing/transaction.rb +191 -1
  1035. data/lib/stripe/resources/line_item.rb +42 -0
  1036. data/lib/stripe/resources/mandate.rb +30 -0
  1037. data/lib/stripe/resources/margin.rb +64 -0
  1038. data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
  1039. data/lib/stripe/resources/order.rb +929 -0
  1040. data/lib/stripe/resources/payment_attempt_record.rb +513 -3
  1041. data/lib/stripe/resources/payment_intent.rb +2584 -20
  1042. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +48 -1
  1043. data/lib/stripe/resources/payment_link.rb +22 -0
  1044. data/lib/stripe/resources/payment_location.rb +165 -0
  1045. data/lib/stripe/resources/payment_location_capability.rb +94 -0
  1046. data/lib/stripe/resources/payment_method.rb +286 -1
  1047. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  1048. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  1049. data/lib/stripe/resources/payment_record.rb +379 -3
  1050. data/lib/stripe/resources/person.rb +62 -0
  1051. data/lib/stripe/resources/price.rb +22 -0
  1052. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  1053. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  1054. data/lib/stripe/resources/product.rb +78 -0
  1055. data/lib/stripe/resources/product_catalog/trial_offer.rb +117 -0
  1056. data/lib/stripe/resources/profile.rb +80 -0
  1057. data/lib/stripe/resources/quote.rb +806 -2
  1058. data/lib/stripe/resources/quote_line.rb +731 -0
  1059. data/lib/stripe/resources/quote_preview_invoice.rb +1264 -0
  1060. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +1078 -0
  1061. data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
  1062. data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
  1063. data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
  1064. data/lib/stripe/resources/radar/payment_evaluation.rb +45 -2
  1065. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  1066. data/lib/stripe/resources/refund.rb +18 -0
  1067. data/lib/stripe/resources/reserve/hold.rb +7 -0
  1068. data/lib/stripe/resources/reserve/release.rb +12 -0
  1069. data/lib/stripe/resources/risk_signals.rb +24 -0
  1070. data/lib/stripe/resources/setup_attempt.rb +51 -0
  1071. data/lib/stripe/resources/setup_intent.rb +129 -1
  1072. data/lib/stripe/resources/shared_payment/granted_token.rb +683 -0
  1073. data/lib/stripe/resources/shared_payment/issued_token.rb +312 -0
  1074. data/lib/stripe/resources/source.rb +54 -0
  1075. data/lib/stripe/resources/subscription.rb +253 -1
  1076. data/lib/stripe/resources/subscription_item.rb +41 -1
  1077. data/lib/stripe/resources/subscription_schedule.rb +496 -3
  1078. data/lib/stripe/resources/tax/calculation_line_item.rb +43 -1
  1079. data/lib/stripe/resources/tax/form.rb +264 -0
  1080. data/lib/stripe/resources/tax/location.rb +74 -0
  1081. data/lib/stripe/resources/tax/registration.rb +144 -0
  1082. data/lib/stripe/resources/tax_code.rb +15 -1
  1083. data/lib/stripe/resources/tax_fund.rb +179 -0
  1084. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  1085. data/lib/stripe/resources/terminal/reader.rb +181 -0
  1086. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1087. data/lib/stripe/resources/token.rb +15 -1
  1088. data/lib/stripe/resources/transfer.rb +6 -0
  1089. data/lib/stripe/resources/transit_balance.rb +45 -0
  1090. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  1091. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  1092. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  1093. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  1094. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  1095. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  1096. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1097. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  1098. data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
  1099. data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
  1100. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  1101. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  1102. data/lib/stripe/resources/v2/billing/contract.rb +537 -0
  1103. data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +59 -0
  1104. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  1105. data/lib/stripe/resources/v2/billing/intent.rb +358 -0
  1106. data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
  1107. data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
  1108. data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -0
  1109. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  1110. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  1111. data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
  1112. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  1113. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
  1114. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
  1115. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
  1116. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  1117. data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
  1118. data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
  1119. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
  1120. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
  1121. data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
  1122. data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
  1123. data/lib/stripe/resources/v2/core/account.rb +19747 -1376
  1124. data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
  1125. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  1126. data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
  1127. data/lib/stripe/resources/v2/core/batch_job.rb +565 -0
  1128. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
  1129. data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
  1130. data/lib/stripe/resources/v2/core/event.rb +66 -1
  1131. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  1132. data/lib/stripe/resources/v2/core/fee_batch.rb +225 -0
  1133. data/lib/stripe/resources/v2/core/fee_entry.rb +173 -0
  1134. data/lib/stripe/resources/v2/core/health/alert.rb +572 -0
  1135. data/lib/stripe/resources/v2/core/health/alert_history_entry.rb +542 -0
  1136. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
  1137. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
  1138. data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
  1139. data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
  1140. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  1141. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  1142. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
  1143. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
  1144. data/lib/stripe/resources/v2/iam/activity_log.rb +189 -0
  1145. data/lib/stripe/resources/v2/iam/api_key.rb +133 -0
  1146. data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
  1147. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
  1148. data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
  1149. data/lib/stripe/resources/v2/money_management/financial_account.rb +311 -0
  1150. data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
  1151. data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
  1152. data/lib/stripe/resources/v2/money_management/financial_address_debit_simulation.rb +31 -0
  1153. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
  1154. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +376 -0
  1155. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
  1156. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1157. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +239 -0
  1158. data/lib/stripe/resources/v2/money_management/payout_intent.rb +245 -0
  1159. data/lib/stripe/resources/v2/money_management/payout_method.rb +185 -0
  1160. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
  1161. data/lib/stripe/resources/v2/money_management/received_credit.rb +434 -0
  1162. data/lib/stripe/resources/v2/money_management/received_debit.rb +293 -0
  1163. data/lib/stripe/resources/v2/money_management/received_debit_mandate.rb +121 -0
  1164. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  1165. data/lib/stripe/resources/v2/money_management/transaction.rb +187 -0
  1166. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +157 -0
  1167. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  1168. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  1169. data/lib/stripe/resources/v2/payments/off_session_payment.rb +292 -0
  1170. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
  1171. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
  1172. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  1173. data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
  1174. data/lib/stripe/resources/v2/risk/inquiry.rb +89 -0
  1175. data/lib/stripe/resources/v2/signals/account_activity.rb +250 -0
  1176. data/lib/stripe/resources/v2/signals/account_evaluation.rb +247 -0
  1177. data/lib/stripe/resources/v2/signals/account_signal.rb +315 -0
  1178. data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
  1179. data/lib/stripe/resources.rb +1860 -0
  1180. data/lib/stripe/services/account_notice_service.rb +39 -0
  1181. data/lib/stripe/services/account_service.rb +46 -1
  1182. data/lib/stripe/services/account_signals_service.rb +17 -0
  1183. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  1184. data/lib/stripe/services/billing/alert_notification_service.rb +19 -0
  1185. data/lib/stripe/services/billing/alert_service.rb +9 -0
  1186. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1187. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1188. data/lib/stripe/services/billing/credit_grant_service.rb +4 -0
  1189. data/lib/stripe/services/billing_service.rb +2 -1
  1190. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1191. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1192. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1193. data/lib/stripe/services/capital_service.rb +15 -0
  1194. data/lib/stripe/services/checkout/session_service.rb +11 -0
  1195. data/lib/stripe/services/coupon_service.rb +44 -0
  1196. data/lib/stripe/services/credit_note_service.rb +14 -0
  1197. data/lib/stripe/services/crypto/customer_consumer_wallet_service.rb +19 -0
  1198. data/lib/stripe/services/crypto/customer_payment_token_service.rb +19 -0
  1199. data/lib/stripe/services/crypto/customer_service.rb +27 -0
  1200. data/lib/stripe/services/crypto/deposit_address_service.rb +43 -0
  1201. data/lib/stripe/services/crypto/onramp_session_service.rb +69 -0
  1202. data/lib/stripe/services/crypto/onramp_transaction_limits_service.rb +19 -0
  1203. data/lib/stripe/services/crypto_service.rb +16 -0
  1204. data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
  1205. data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
  1206. data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
  1207. data/lib/stripe/services/customer_payment_source_service.rb +60 -0
  1208. data/lib/stripe/services/customer_service.rb +59 -0
  1209. data/lib/stripe/services/customer_session_service.rb +14 -0
  1210. data/lib/stripe/services/customer_tax_id_service.rb +30 -0
  1211. data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
  1212. data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
  1213. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
  1214. data/lib/stripe/services/delegated_checkout_service.rb +14 -0
  1215. data/lib/stripe/services/dispute_service.rb +15 -0
  1216. data/lib/stripe/services/external_account_service.rb +68 -0
  1217. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1218. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  1219. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  1220. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1221. data/lib/stripe/services/financial_connections_service.rb +3 -1
  1222. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1223. data/lib/stripe/services/gift_card_operation_service.rb +17 -0
  1224. data/lib/stripe/services/gift_card_service.rb +77 -0
  1225. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  1226. data/lib/stripe/services/identity_service.rb +2 -1
  1227. data/lib/stripe/services/invoice_item_service.rb +44 -0
  1228. data/lib/stripe/services/invoice_line_item_service.rb +15 -0
  1229. data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
  1230. data/lib/stripe/services/invoice_service.rb +189 -0
  1231. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +85 -0
  1232. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1233. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1234. data/lib/stripe/services/issuing/program_service.rb +52 -0
  1235. data/lib/stripe/services/issuing_service.rb +6 -1
  1236. data/lib/stripe/services/mandate_service.rb +5 -0
  1237. data/lib/stripe/services/margin_service.rb +50 -0
  1238. data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
  1239. data/lib/stripe/services/orchestration_service.rb +13 -0
  1240. data/lib/stripe/services/order_service.rb +53 -0
  1241. data/lib/stripe/services/payment_attempt_record_service.rb +88 -0
  1242. data/lib/stripe/services/payment_intent_service.rb +66 -0
  1243. data/lib/stripe/services/payment_location_capability_service.rb +39 -0
  1244. data/lib/stripe/services/payment_location_service.rb +61 -0
  1245. data/lib/stripe/services/payment_method_service.rb +26 -0
  1246. data/lib/stripe/services/payment_record_service.rb +26 -0
  1247. data/lib/stripe/services/price_service.rb +29 -0
  1248. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1249. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1250. data/lib/stripe/services/privacy_service.rb +13 -0
  1251. data/lib/stripe/services/product_catalog/trial_offer_service.rb +41 -0
  1252. data/lib/stripe/services/product_catalog_service.rb +13 -0
  1253. data/lib/stripe/services/product_feature_service.rb +30 -0
  1254. data/lib/stripe/services/product_service.rb +44 -0
  1255. data/lib/stripe/services/promotion_code_service.rb +29 -0
  1256. data/lib/stripe/services/quote_line_service.rb +17 -0
  1257. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1258. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1259. data/lib/stripe/services/quote_service.rb +49 -1
  1260. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  1261. data/lib/stripe/services/radar/customer_evaluation_service.rb +41 -0
  1262. data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
  1263. data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
  1264. data/lib/stripe/services/radar_service.rb +5 -1
  1265. data/lib/stripe/services/refund_service.rb +29 -0
  1266. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1267. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1268. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1269. data/lib/stripe/services/reserve_service.rb +15 -0
  1270. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  1271. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  1272. data/lib/stripe/services/shared_payment_service.rb +14 -0
  1273. data/lib/stripe/services/subscription_item_service.rb +44 -0
  1274. data/lib/stripe/services/subscription_schedule_service.rb +70 -0
  1275. data/lib/stripe/services/subscription_service.rb +112 -1
  1276. data/lib/stripe/services/tax/form_service.rb +37 -0
  1277. data/lib/stripe/services/tax/location_service.rb +45 -0
  1278. data/lib/stripe/services/tax/registration_service.rb +29 -0
  1279. data/lib/stripe/services/tax/settings_service.rb +14 -0
  1280. data/lib/stripe/services/tax/transaction_service.rb +14 -0
  1281. data/lib/stripe/services/tax_fund_service.rb +22 -0
  1282. data/lib/stripe/services/tax_id_service.rb +14 -0
  1283. data/lib/stripe/services/tax_rate_service.rb +29 -0
  1284. data/lib/stripe/services/tax_service.rb +3 -1
  1285. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1286. data/lib/stripe/services/terminal/reader_service.rb +44 -0
  1287. data/lib/stripe/services/terminal_service.rb +2 -1
  1288. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  1289. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  1290. data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +65 -0
  1291. data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
  1292. data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
  1293. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  1294. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  1295. data/lib/stripe/services/test_helpers_service.rb +4 -1
  1296. data/lib/stripe/services/v1_services.rb +20 -1
  1297. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1298. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1299. data/lib/stripe/services/v2/billing/cadence_service.rb +73 -0
  1300. data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
  1301. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  1302. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1303. data/lib/stripe/services/v2/billing/contract_service.rb +102 -0
  1304. data/lib/stripe/services/v2/billing/contracts/pricing_lines/quantity_change_service.rb +30 -0
  1305. data/lib/stripe/services/v2/billing/contracts/pricing_lines_service.rb +20 -0
  1306. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  1307. data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
  1308. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  1309. data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -0
  1310. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  1311. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  1312. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  1313. data/lib/stripe/services/v2/billing/one_time_item_service.rb +54 -0
  1314. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  1315. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +54 -0
  1316. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  1317. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  1318. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1319. data/lib/stripe/services/v2/billing/rate_card_service.rb +79 -0
  1320. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  1321. data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
  1322. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
  1323. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  1324. data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
  1325. data/lib/stripe/services/v2/billing_service.rb +18 -1
  1326. data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
  1327. data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
  1328. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  1329. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
  1330. data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
  1331. data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
  1332. data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
  1333. data/lib/stripe/services/v2/core/health/alert_service.rb +41 -0
  1334. data/lib/stripe/services/v2/core/health/alerts/history_service.rb +25 -0
  1335. data/lib/stripe/services/v2/core/health_service.rb +17 -0
  1336. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1337. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +106 -0
  1338. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1339. data/lib/stripe/services/v2/core_service.rb +10 -1
  1340. data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
  1341. data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
  1342. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  1343. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  1344. data/lib/stripe/services/v2/data_service.rb +16 -0
  1345. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  1346. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  1347. data/lib/stripe/services/v2/extend_service.rb +16 -0
  1348. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  1349. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  1350. data/lib/stripe/services/v2/iam_service.rb +16 -0
  1351. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1352. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
  1353. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
  1354. data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
  1355. data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
  1356. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1357. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1358. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1359. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1360. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1361. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1362. data/lib/stripe/services/v2/money_management/payout_intent_service.rb +71 -0
  1363. data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
  1364. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1365. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1366. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +43 -0
  1367. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1368. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  1369. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +23 -0
  1370. data/lib/stripe/services/v2/money_management/test_helpers_service.rb +18 -0
  1371. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1372. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1373. data/lib/stripe/services/v2/money_management_service.rb +40 -0
  1374. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  1375. data/lib/stripe/services/v2/network_service.rb +15 -0
  1376. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  1377. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  1378. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
  1379. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
  1380. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
  1381. data/lib/stripe/services/v2/payments_service.rb +17 -0
  1382. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  1383. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  1384. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  1385. data/lib/stripe/services/v2/risk/inquiry_service.rb +43 -0
  1386. data/lib/stripe/services/v2/risk_service.rb +15 -0
  1387. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  1388. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  1389. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  1390. data/lib/stripe/services/v2/signals_service.rb +17 -0
  1391. data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
  1392. data/lib/stripe/services/v2/tax_service.rb +15 -0
  1393. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  1394. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1395. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  1396. data/lib/stripe/services/v2_services.rb +13 -1
  1397. data/lib/stripe/services.rb +452 -0
  1398. data/lib/stripe/stripe_client.rb +8 -1
  1399. data/lib/stripe/stripe_configuration.rb +3 -1
  1400. data/lib/stripe/stripe_event_notification_handler.rb +2640 -0
  1401. data/lib/stripe/stripe_object.rb +1 -1
  1402. data/lib/stripe/util.rb +7 -1
  1403. data/lib/stripe/version.rb +1 -1
  1404. data/lib/stripe.rb +54 -0
  1405. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  1406. data/rbi/stripe/stripe_client.rbi +13 -0
  1407. data/rbi/stripe.rbi +260886 -113845
  1408. metadata +1141 -4
@@ -3,15 +3,80 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentConfirmParams < ::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 EvCharging < ::Stripe::RequestParams
20
+ # The carbon footprint avoided by the charging session, in grams of CO2.
21
+ attr_accessor :carbon_footprint_avoided_grams_co2
22
+ # The time the charging session ended, measured in seconds since the Unix epoch.
23
+ attr_accessor :charging_ended_at
24
+ # The power output capacity of the charging station, in kilowatts (kW).
25
+ attr_accessor :charging_power_output_capacity_kw
26
+ # The time the charging session started, measured in seconds since the Unix epoch.
27
+ attr_accessor :charging_started_at
28
+ # The type of connector used for the charging session.
29
+ attr_accessor :connector_type
30
+ # The estimated distance in kilometers or miles added to the vehicle during the charging session.
31
+ attr_accessor :estimated_range_added
32
+ # The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
33
+ attr_accessor :estimated_range_left
34
+ # The maximum power dispensed during the charging session, in kilowatts (kW).
35
+ attr_accessor :maximum_power_dispensed_kw
36
+
37
+ def initialize(
38
+ carbon_footprint_avoided_grams_co2: nil,
39
+ charging_ended_at: nil,
40
+ charging_power_output_capacity_kw: nil,
41
+ charging_started_at: nil,
42
+ connector_type: nil,
43
+ estimated_range_added: nil,
44
+ estimated_range_left: nil,
45
+ maximum_power_dispensed_kw: nil
46
+ )
47
+ @carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
48
+ @charging_ended_at = charging_ended_at
49
+ @charging_power_output_capacity_kw = charging_power_output_capacity_kw
50
+ @charging_started_at = charging_started_at
51
+ @connector_type = connector_type
52
+ @estimated_range_added = estimated_range_added
53
+ @estimated_range_left = estimated_range_left
54
+ @maximum_power_dispensed_kw = maximum_power_dispensed_kw
55
+ end
56
+ end
57
+
58
+ class FleetData < ::Stripe::RequestParams
59
+ # The type of product being purchased at this line item.
60
+ attr_accessor :product_type
61
+ # The type of service received at the acceptor location.
62
+ attr_accessor :service_type
63
+
64
+ def initialize(product_type: nil, service_type: nil)
65
+ @product_type = product_type
66
+ @service_type = service_type
67
+ end
68
+ end
10
69
  # 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
70
  attr_accessor :commodity_code
71
+ # EV charging data for this line item.
72
+ attr_accessor :ev_charging
73
+ # Fleet data for this line item.
74
+ attr_accessor :fleet_data
12
75
 
13
- def initialize(commodity_code: nil)
76
+ def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
14
77
  @commodity_code = commodity_code
78
+ @ev_charging = ev_charging
79
+ @fleet_data = fleet_data
15
80
  end
16
81
  end
17
82
 
@@ -102,6 +167,8 @@ module Stripe
102
167
  attr_accessor :product_name
103
168
  # The quantity of items. Required for L3 rates. An integer greater than 0.
104
169
  attr_accessor :quantity
170
+ # 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.
171
+ attr_accessor :quantity_precision
105
172
  # Contains information about the tax on the item.
106
173
  attr_accessor :tax
107
174
  # 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 +182,7 @@ module Stripe
115
182
  product_code: nil,
116
183
  product_name: nil,
117
184
  quantity: nil,
185
+ quantity_precision: nil,
118
186
  tax: nil,
119
187
  unit_cost: nil,
120
188
  unit_of_measure: nil
@@ -124,6 +192,7 @@ module Stripe
124
192
  @product_code = product_code
125
193
  @product_name = product_name
126
194
  @quantity = quantity
195
+ @quantity_precision = quantity_precision
127
196
  @tax = tax
128
197
  @unit_cost = unit_cost
129
198
  @unit_of_measure = unit_of_measure
@@ -145,6 +214,18 @@ module Stripe
145
214
  end
146
215
  end
147
216
 
217
+ class Surcharge < ::Stripe::RequestParams
218
+ # Portion of the amount that corresponds to a surcharge.
219
+ attr_accessor :amount
220
+ # Indicate whether to enforce validations on the surcharge amount.
221
+ attr_accessor :enforce_validation
222
+
223
+ def initialize(amount: nil, enforce_validation: nil)
224
+ @amount = amount
225
+ @enforce_validation = enforce_validation
226
+ end
227
+ end
228
+
148
229
  class Tax < ::Stripe::RequestParams
149
230
  # 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
231
  #
@@ -155,115 +236,2065 @@ module Stripe
155
236
  @total_tax_amount = total_tax_amount
156
237
  end
157
238
  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
174
239
 
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
187
- end
188
- end
240
+ class Tip < ::Stripe::RequestParams
241
+ # Portion of the amount that corresponds to a tip.
242
+ attr_accessor :amount
243
+
244
+ def initialize(amount: nil)
245
+ @amount = amount
246
+ end
247
+ end
248
+ # 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.
249
+ #
250
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
251
+ attr_accessor :discount_amount
252
+ # 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.
253
+ #
254
+ # 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.
255
+ #
256
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
257
+ attr_accessor :enforce_arithmetic_validation
258
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
259
+ attr_accessor :line_items
260
+ # Contains information about the shipping portion of the amount.
261
+ attr_accessor :shipping
262
+ # Contains information about the surcharge portion of the amount.
263
+ attr_accessor :surcharge
264
+ # Contains information about the tax portion of the amount.
265
+ attr_accessor :tax
266
+ # Contains information about the tip portion of the amount.
267
+ attr_accessor :tip
268
+
269
+ def initialize(
270
+ discount_amount: nil,
271
+ enforce_arithmetic_validation: nil,
272
+ line_items: nil,
273
+ shipping: nil,
274
+ surcharge: nil,
275
+ tax: nil,
276
+ tip: nil
277
+ )
278
+ @discount_amount = discount_amount
279
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
280
+ @line_items = line_items
281
+ @shipping = shipping
282
+ @surcharge = surcharge
283
+ @tax = tax
284
+ @tip = tip
285
+ end
286
+ end
287
+
288
+ class Hooks < ::Stripe::RequestParams
289
+ class Inputs < ::Stripe::RequestParams
290
+ class Tax < ::Stripe::RequestParams
291
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
292
+ attr_accessor :calculation
293
+
294
+ def initialize(calculation: nil)
295
+ @calculation = calculation
296
+ end
297
+ end
298
+ # Tax arguments for automations
299
+ attr_accessor :tax
300
+
301
+ def initialize(tax: nil)
302
+ @tax = tax
303
+ end
304
+ end
305
+ # Arguments passed in automations
306
+ attr_accessor :inputs
307
+
308
+ def initialize(inputs: nil)
309
+ @inputs = inputs
310
+ end
311
+ end
312
+
313
+ class MandateData < ::Stripe::RequestParams
314
+ class CustomerAcceptance < ::Stripe::RequestParams
315
+ class Offline < ::Stripe::RequestParams; end
316
+
317
+ class Online < ::Stripe::RequestParams
318
+ # The IP address from which the Mandate was accepted by the customer.
319
+ attr_accessor :ip_address
320
+ # The user agent of the browser from which the Mandate was accepted by the customer.
321
+ attr_accessor :user_agent
322
+
323
+ def initialize(ip_address: nil, user_agent: nil)
324
+ @ip_address = ip_address
325
+ @user_agent = user_agent
326
+ end
327
+ end
328
+ # The time at which the customer accepted the Mandate.
329
+ attr_accessor :accepted_at
330
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
331
+ attr_accessor :offline
332
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
333
+ attr_accessor :online
334
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
335
+ attr_accessor :type
336
+
337
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
338
+ @accepted_at = accepted_at
339
+ @offline = offline
340
+ @online = online
341
+ @type = type
342
+ end
343
+ end
344
+ # This hash contains details about the customer acceptance of the Mandate.
345
+ attr_accessor :customer_acceptance
346
+
347
+ def initialize(customer_acceptance: nil)
348
+ @customer_acceptance = customer_acceptance
349
+ end
350
+ end
351
+
352
+ class PaymentDetails < ::Stripe::RequestParams
353
+ class Benefit < ::Stripe::RequestParams
354
+ class FrMealVoucher < ::Stripe::RequestParams
355
+ # Whether to enable meal voucher benefit for this payment.
356
+ attr_accessor :enabled
357
+ # The 14-digit SIRET of the meal voucher acceptor.
358
+ attr_accessor :siret
359
+
360
+ def initialize(enabled: nil, siret: nil)
361
+ @enabled = enabled
362
+ @siret = siret
363
+ end
364
+ end
365
+ # French meal voucher benefit details for this PaymentIntent.
366
+ attr_accessor :fr_meal_voucher
367
+
368
+ def initialize(fr_meal_voucher: nil)
369
+ @fr_meal_voucher = fr_meal_voucher
370
+ end
371
+ end
372
+
373
+ class CarRental < ::Stripe::RequestParams
374
+ class Affiliate < ::Stripe::RequestParams
375
+ # The name of the affiliate that originated the purchase.
376
+ attr_accessor :name
377
+
378
+ def initialize(name: nil)
379
+ @name = name
380
+ end
381
+ end
382
+
383
+ class Delivery < ::Stripe::RequestParams
384
+ class Recipient < ::Stripe::RequestParams
385
+ # The email of the recipient the ticket is delivered to.
386
+ attr_accessor :email
387
+ # The name of the recipient the ticket is delivered to.
388
+ attr_accessor :name
389
+ # The phone number of the recipient the ticket is delivered to.
390
+ attr_accessor :phone
391
+
392
+ def initialize(email: nil, name: nil, phone: nil)
393
+ @email = email
394
+ @name = name
395
+ @phone = phone
396
+ end
397
+ end
398
+ # The delivery method for the payment
399
+ attr_accessor :mode
400
+ # Details of the recipient.
401
+ attr_accessor :recipient
402
+
403
+ def initialize(mode: nil, recipient: nil)
404
+ @mode = mode
405
+ @recipient = recipient
406
+ end
407
+ end
408
+
409
+ class Distance < ::Stripe::RequestParams
410
+ # Distance traveled.
411
+ attr_accessor :amount
412
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
413
+ attr_accessor :unit
414
+
415
+ def initialize(amount: nil, unit: nil)
416
+ @amount = amount
417
+ @unit = unit
418
+ end
419
+ end
420
+
421
+ class Driver < ::Stripe::RequestParams
422
+ # Driver's identification number.
423
+ attr_accessor :driver_identification_number
424
+ # Driver's tax number.
425
+ attr_accessor :driver_tax_number
426
+ # Full name of the person or entity on the car reservation.
427
+ attr_accessor :name
428
+
429
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
430
+ @driver_identification_number = driver_identification_number
431
+ @driver_tax_number = driver_tax_number
432
+ @name = name
433
+ end
434
+ end
435
+
436
+ class PickupAddress < ::Stripe::RequestParams
437
+ # City, district, suburb, town, or village.
438
+ attr_accessor :city
439
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
440
+ attr_accessor :country
441
+ # Address line 1, such as the street, PO Box, or company name.
442
+ attr_accessor :line1
443
+ # Address line 2, such as the apartment, suite, unit, or building.
444
+ attr_accessor :line2
445
+ # ZIP or postal code.
446
+ attr_accessor :postal_code
447
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
448
+ attr_accessor :state
449
+
450
+ def initialize(
451
+ city: nil,
452
+ country: nil,
453
+ line1: nil,
454
+ line2: nil,
455
+ postal_code: nil,
456
+ state: nil
457
+ )
458
+ @city = city
459
+ @country = country
460
+ @line1 = line1
461
+ @line2 = line2
462
+ @postal_code = postal_code
463
+ @state = state
464
+ end
465
+ end
466
+
467
+ class ReturnAddress < ::Stripe::RequestParams
468
+ # City, district, suburb, town, or village.
469
+ attr_accessor :city
470
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
471
+ attr_accessor :country
472
+ # Address line 1, such as the street, PO Box, or company name.
473
+ attr_accessor :line1
474
+ # Address line 2, such as the apartment, suite, unit, or building.
475
+ attr_accessor :line2
476
+ # ZIP or postal code.
477
+ attr_accessor :postal_code
478
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
479
+ attr_accessor :state
480
+
481
+ def initialize(
482
+ city: nil,
483
+ country: nil,
484
+ line1: nil,
485
+ line2: nil,
486
+ postal_code: nil,
487
+ state: nil
488
+ )
489
+ @city = city
490
+ @country = country
491
+ @line1 = line1
492
+ @line2 = line2
493
+ @postal_code = postal_code
494
+ @state = state
495
+ end
496
+ end
497
+ # Affiliate details for this purchase.
498
+ attr_accessor :affiliate
499
+ # The booking number associated with the car rental.
500
+ attr_accessor :booking_number
501
+ # Class code of the car.
502
+ attr_accessor :car_class_code
503
+ # Make of the car.
504
+ attr_accessor :car_make
505
+ # Model of the car.
506
+ attr_accessor :car_model
507
+ # The name of the rental car company.
508
+ attr_accessor :company
509
+ # The customer service phone number of the car rental company.
510
+ attr_accessor :customer_service_phone_number
511
+ # Number of days the car is being rented.
512
+ attr_accessor :days_rented
513
+ # Delivery details for this purchase.
514
+ attr_accessor :delivery
515
+ # The details of the distance traveled during the rental period.
516
+ attr_accessor :distance
517
+ # The details of the passengers in the travel reservation
518
+ attr_accessor :drivers
519
+ # List of additional charges being billed.
520
+ attr_accessor :extra_charges
521
+ # Indicates if the customer did not keep nor cancel their booking.
522
+ attr_accessor :no_show
523
+ # Car pick-up address.
524
+ attr_accessor :pickup_address
525
+ # Car pick-up time. Measured in seconds since the Unix epoch.
526
+ attr_accessor :pickup_at
527
+ # Name of the pickup location.
528
+ attr_accessor :pickup_location_name
529
+ # Rental rate.
530
+ attr_accessor :rate_amount
531
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
532
+ attr_accessor :rate_interval
533
+ # The name of the person or entity renting the car.
534
+ attr_accessor :renter_name
535
+ # Car return address.
536
+ attr_accessor :return_address
537
+ # Car return time. Measured in seconds since the Unix epoch.
538
+ attr_accessor :return_at
539
+ # Name of the return location.
540
+ attr_accessor :return_location_name
541
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
542
+ attr_accessor :tax_exempt
543
+ # The vehicle identification number.
544
+ attr_accessor :vehicle_identification_number
545
+
546
+ def initialize(
547
+ affiliate: nil,
548
+ booking_number: nil,
549
+ car_class_code: nil,
550
+ car_make: nil,
551
+ car_model: nil,
552
+ company: nil,
553
+ customer_service_phone_number: nil,
554
+ days_rented: nil,
555
+ delivery: nil,
556
+ distance: nil,
557
+ drivers: nil,
558
+ extra_charges: nil,
559
+ no_show: nil,
560
+ pickup_address: nil,
561
+ pickup_at: nil,
562
+ pickup_location_name: nil,
563
+ rate_amount: nil,
564
+ rate_interval: nil,
565
+ renter_name: nil,
566
+ return_address: nil,
567
+ return_at: nil,
568
+ return_location_name: nil,
569
+ tax_exempt: nil,
570
+ vehicle_identification_number: nil
571
+ )
572
+ @affiliate = affiliate
573
+ @booking_number = booking_number
574
+ @car_class_code = car_class_code
575
+ @car_make = car_make
576
+ @car_model = car_model
577
+ @company = company
578
+ @customer_service_phone_number = customer_service_phone_number
579
+ @days_rented = days_rented
580
+ @delivery = delivery
581
+ @distance = distance
582
+ @drivers = drivers
583
+ @extra_charges = extra_charges
584
+ @no_show = no_show
585
+ @pickup_address = pickup_address
586
+ @pickup_at = pickup_at
587
+ @pickup_location_name = pickup_location_name
588
+ @rate_amount = rate_amount
589
+ @rate_interval = rate_interval
590
+ @renter_name = renter_name
591
+ @return_address = return_address
592
+ @return_at = return_at
593
+ @return_location_name = return_location_name
594
+ @tax_exempt = tax_exempt
595
+ @vehicle_identification_number = vehicle_identification_number
596
+ end
597
+ end
598
+
599
+ class CarRentalDatum < ::Stripe::RequestParams
600
+ class Affiliate < ::Stripe::RequestParams
601
+ # Affiliate partner code.
602
+ attr_accessor :code
603
+ # Name of affiliate partner.
604
+ attr_accessor :name
605
+
606
+ def initialize(code: nil, name: nil)
607
+ @code = code
608
+ @name = name
609
+ end
610
+ end
611
+
612
+ class Distance < ::Stripe::RequestParams
613
+ # Distance traveled.
614
+ attr_accessor :amount
615
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
616
+ attr_accessor :unit
617
+
618
+ def initialize(amount: nil, unit: nil)
619
+ @amount = amount
620
+ @unit = unit
621
+ end
622
+ end
623
+
624
+ class Driver < ::Stripe::RequestParams
625
+ class DateOfBirth < ::Stripe::RequestParams
626
+ # Day of birth (1-31).
627
+ attr_accessor :day
628
+ # Month of birth (1-12).
629
+ attr_accessor :month
630
+ # Year of birth (must be greater than 1900).
631
+ attr_accessor :year
632
+
633
+ def initialize(day: nil, month: nil, year: nil)
634
+ @day = day
635
+ @month = month
636
+ @year = year
637
+ end
638
+ end
639
+ # Driver's date of birth.
640
+ attr_accessor :date_of_birth
641
+ # Driver's identification number.
642
+ attr_accessor :driver_identification_number
643
+ # Driver's tax number.
644
+ attr_accessor :driver_tax_number
645
+ # Driver's full name.
646
+ attr_accessor :name
647
+
648
+ def initialize(
649
+ date_of_birth: nil,
650
+ driver_identification_number: nil,
651
+ driver_tax_number: nil,
652
+ name: nil
653
+ )
654
+ @date_of_birth = date_of_birth
655
+ @driver_identification_number = driver_identification_number
656
+ @driver_tax_number = driver_tax_number
657
+ @name = name
658
+ end
659
+ end
660
+
661
+ class DropOff < ::Stripe::RequestParams
662
+ class Address < ::Stripe::RequestParams
663
+ # City, district, suburb, town, or village.
664
+ attr_accessor :city
665
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
666
+ attr_accessor :country
667
+ # Address line 1, such as the street, PO Box, or company name.
668
+ attr_accessor :line1
669
+ # Address line 2, such as the apartment, suite, unit, or building.
670
+ attr_accessor :line2
671
+ # ZIP or postal code.
672
+ attr_accessor :postal_code
673
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
674
+ attr_accessor :state
675
+
676
+ def initialize(
677
+ city: nil,
678
+ country: nil,
679
+ line1: nil,
680
+ line2: nil,
681
+ postal_code: nil,
682
+ state: nil
683
+ )
684
+ @city = city
685
+ @country = country
686
+ @line1 = line1
687
+ @line2 = line2
688
+ @postal_code = postal_code
689
+ @state = state
690
+ end
691
+ end
692
+ # Address of the rental location.
693
+ attr_accessor :address
694
+ # Location name.
695
+ attr_accessor :location_name
696
+ # Timestamp for the location.
697
+ attr_accessor :time
698
+
699
+ def initialize(address: nil, location_name: nil, time: nil)
700
+ @address = address
701
+ @location_name = location_name
702
+ @time = time
703
+ end
704
+ end
705
+
706
+ class Insurance < ::Stripe::RequestParams
707
+ # Amount of the insurance coverage in cents.
708
+ attr_accessor :amount
709
+ # Currency of the insurance amount.
710
+ attr_accessor :currency
711
+ # Name of the insurance company.
712
+ attr_accessor :insurance_company_name
713
+ # Type of insurance coverage.
714
+ attr_accessor :insurance_type
715
+
716
+ def initialize(
717
+ amount: nil,
718
+ currency: nil,
719
+ insurance_company_name: nil,
720
+ insurance_type: nil
721
+ )
722
+ @amount = amount
723
+ @currency = currency
724
+ @insurance_company_name = insurance_company_name
725
+ @insurance_type = insurance_type
726
+ end
727
+ end
728
+
729
+ class Pickup < ::Stripe::RequestParams
730
+ class Address < ::Stripe::RequestParams
731
+ # City, district, suburb, town, or village.
732
+ attr_accessor :city
733
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
734
+ attr_accessor :country
735
+ # Address line 1, such as the street, PO Box, or company name.
736
+ attr_accessor :line1
737
+ # Address line 2, such as the apartment, suite, unit, or building.
738
+ attr_accessor :line2
739
+ # ZIP or postal code.
740
+ attr_accessor :postal_code
741
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
742
+ attr_accessor :state
743
+
744
+ def initialize(
745
+ city: nil,
746
+ country: nil,
747
+ line1: nil,
748
+ line2: nil,
749
+ postal_code: nil,
750
+ state: nil
751
+ )
752
+ @city = city
753
+ @country = country
754
+ @line1 = line1
755
+ @line2 = line2
756
+ @postal_code = postal_code
757
+ @state = state
758
+ end
759
+ end
760
+ # Address of the rental location.
761
+ attr_accessor :address
762
+ # Location name.
763
+ attr_accessor :location_name
764
+ # Timestamp for the location.
765
+ attr_accessor :time
766
+
767
+ def initialize(address: nil, location_name: nil, time: nil)
768
+ @address = address
769
+ @location_name = location_name
770
+ @time = time
771
+ end
772
+ end
773
+
774
+ class Total < ::Stripe::RequestParams
775
+ class Discounts < ::Stripe::RequestParams
776
+ # Corporate client discount code.
777
+ attr_accessor :corporate_client_code
778
+ # Coupon code applied to the rental.
779
+ attr_accessor :coupon
780
+ # Maximum number of free miles or kilometers included.
781
+ attr_accessor :maximum_free_miles_or_kilometers
782
+
783
+ def initialize(
784
+ corporate_client_code: nil,
785
+ coupon: nil,
786
+ maximum_free_miles_or_kilometers: nil
787
+ )
788
+ @corporate_client_code = corporate_client_code
789
+ @coupon = coupon
790
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
791
+ end
792
+ end
793
+
794
+ class ExtraCharge < ::Stripe::RequestParams
795
+ # Amount of the extra charge in cents.
796
+ attr_accessor :amount
797
+ # Type of extra charge.
798
+ attr_accessor :type
799
+
800
+ def initialize(amount: nil, type: nil)
801
+ @amount = amount
802
+ @type = type
803
+ end
804
+ end
805
+
806
+ class Tax < ::Stripe::RequestParams
807
+ class TaxItem < ::Stripe::RequestParams
808
+ # Tax amount.
809
+ attr_accessor :amount
810
+ # Tax rate applied.
811
+ attr_accessor :rate
812
+ # Type of tax applied.
813
+ attr_accessor :type
814
+
815
+ def initialize(amount: nil, rate: nil, type: nil)
816
+ @amount = amount
817
+ @rate = rate
818
+ @type = type
819
+ end
820
+ end
821
+ # Indicates if the transaction is tax exempt.
822
+ attr_accessor :tax_exempt_indicator
823
+ # Array of tax details.
824
+ attr_accessor :tax_items
825
+
826
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
827
+ @tax_exempt_indicator = tax_exempt_indicator
828
+ @tax_items = tax_items
829
+ end
830
+ end
831
+ # Total amount in cents.
832
+ attr_accessor :amount
833
+ # Currency of the amount.
834
+ attr_accessor :currency
835
+ # Discount details for the rental.
836
+ attr_accessor :discounts
837
+ # Additional charges for the rental.
838
+ attr_accessor :extra_charges
839
+ # Rate per unit for the rental.
840
+ attr_accessor :rate_per_unit
841
+ # Unit of measurement for the rate.
842
+ attr_accessor :rate_unit
843
+ # Tax breakdown for the rental.
844
+ attr_accessor :tax
845
+
846
+ def initialize(
847
+ amount: nil,
848
+ currency: nil,
849
+ discounts: nil,
850
+ extra_charges: nil,
851
+ rate_per_unit: nil,
852
+ rate_unit: nil,
853
+ tax: nil
854
+ )
855
+ @amount = amount
856
+ @currency = currency
857
+ @discounts = discounts
858
+ @extra_charges = extra_charges
859
+ @rate_per_unit = rate_per_unit
860
+ @rate_unit = rate_unit
861
+ @tax = tax
862
+ end
863
+ end
864
+
865
+ class Vehicle < ::Stripe::RequestParams
866
+ # Make of the rental vehicle.
867
+ attr_accessor :make
868
+ # Model of the rental vehicle.
869
+ attr_accessor :model
870
+ # Odometer reading at the time of rental.
871
+ attr_accessor :odometer
872
+ # Type of the rental vehicle.
873
+ attr_accessor :type
874
+ # Class of the rental vehicle.
875
+ attr_accessor :vehicle_class
876
+ # Vehicle identification number (VIN).
877
+ attr_accessor :vehicle_identification_number
878
+
879
+ def initialize(
880
+ make: nil,
881
+ model: nil,
882
+ odometer: nil,
883
+ type: nil,
884
+ vehicle_class: nil,
885
+ vehicle_identification_number: nil
886
+ )
887
+ @make = make
888
+ @model = model
889
+ @odometer = odometer
890
+ @type = type
891
+ @vehicle_class = vehicle_class
892
+ @vehicle_identification_number = vehicle_identification_number
893
+ end
894
+ end
895
+ # Affiliate (such as travel agency) details for the rental.
896
+ attr_accessor :affiliate
897
+ # Booking confirmation number for the car rental.
898
+ attr_accessor :booking_number
899
+ # Name of the car rental company.
900
+ attr_accessor :carrier_name
901
+ # Customer service phone number for the car rental company.
902
+ attr_accessor :customer_service_phone_number
903
+ # Number of days the car is being rented.
904
+ attr_accessor :days_rented
905
+ # Distance details for the rental.
906
+ attr_accessor :distance
907
+ # List of drivers for the rental.
908
+ attr_accessor :drivers
909
+ # Drop-off location details.
910
+ attr_accessor :drop_off
911
+ # Insurance details for the rental.
912
+ attr_accessor :insurances
913
+ # Indicates if the customer was a no-show.
914
+ attr_accessor :no_show_indicator
915
+ # Pickup location details.
916
+ attr_accessor :pickup
917
+ # Name of the person renting the vehicle.
918
+ attr_accessor :renter_name
919
+ # Total cost breakdown for the rental.
920
+ attr_accessor :total
921
+ # Vehicle details for the rental.
922
+ attr_accessor :vehicle
923
+
924
+ def initialize(
925
+ affiliate: nil,
926
+ booking_number: nil,
927
+ carrier_name: nil,
928
+ customer_service_phone_number: nil,
929
+ days_rented: nil,
930
+ distance: nil,
931
+ drivers: nil,
932
+ drop_off: nil,
933
+ insurances: nil,
934
+ no_show_indicator: nil,
935
+ pickup: nil,
936
+ renter_name: nil,
937
+ total: nil,
938
+ vehicle: nil
939
+ )
940
+ @affiliate = affiliate
941
+ @booking_number = booking_number
942
+ @carrier_name = carrier_name
943
+ @customer_service_phone_number = customer_service_phone_number
944
+ @days_rented = days_rented
945
+ @distance = distance
946
+ @drivers = drivers
947
+ @drop_off = drop_off
948
+ @insurances = insurances
949
+ @no_show_indicator = no_show_indicator
950
+ @pickup = pickup
951
+ @renter_name = renter_name
952
+ @total = total
953
+ @vehicle = vehicle
954
+ end
955
+ end
956
+
957
+ class EventDetails < ::Stripe::RequestParams
958
+ class Address < ::Stripe::RequestParams
959
+ # City, district, suburb, town, or village.
960
+ attr_accessor :city
961
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
962
+ attr_accessor :country
963
+ # Address line 1, such as the street, PO Box, or company name.
964
+ attr_accessor :line1
965
+ # Address line 2, such as the apartment, suite, unit, or building.
966
+ attr_accessor :line2
967
+ # ZIP or postal code.
968
+ attr_accessor :postal_code
969
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
970
+ attr_accessor :state
971
+
972
+ def initialize(
973
+ city: nil,
974
+ country: nil,
975
+ line1: nil,
976
+ line2: nil,
977
+ postal_code: nil,
978
+ state: nil
979
+ )
980
+ @city = city
981
+ @country = country
982
+ @line1 = line1
983
+ @line2 = line2
984
+ @postal_code = postal_code
985
+ @state = state
986
+ end
987
+ end
988
+
989
+ class Affiliate < ::Stripe::RequestParams
990
+ # The name of the affiliate that originated the purchase.
991
+ attr_accessor :name
992
+
993
+ def initialize(name: nil)
994
+ @name = name
995
+ end
996
+ end
997
+
998
+ class Delivery < ::Stripe::RequestParams
999
+ class Recipient < ::Stripe::RequestParams
1000
+ # The email of the recipient the ticket is delivered to.
1001
+ attr_accessor :email
1002
+ # The name of the recipient the ticket is delivered to.
1003
+ attr_accessor :name
1004
+ # The phone number of the recipient the ticket is delivered to.
1005
+ attr_accessor :phone
1006
+
1007
+ def initialize(email: nil, name: nil, phone: nil)
1008
+ @email = email
1009
+ @name = name
1010
+ @phone = phone
1011
+ end
1012
+ end
1013
+ # The delivery method for the payment
1014
+ attr_accessor :mode
1015
+ # Details of the recipient.
1016
+ attr_accessor :recipient
1017
+
1018
+ def initialize(mode: nil, recipient: nil)
1019
+ @mode = mode
1020
+ @recipient = recipient
1021
+ end
1022
+ end
1023
+ # Indicates if the tickets are digitally checked when entering the venue.
1024
+ attr_accessor :access_controlled_venue
1025
+ # The event location's address.
1026
+ attr_accessor :address
1027
+ # Affiliate details for this purchase.
1028
+ attr_accessor :affiliate
1029
+ # The name of the company
1030
+ attr_accessor :company
1031
+ # Delivery details for this purchase.
1032
+ attr_accessor :delivery
1033
+ # Event end time. Measured in seconds since the Unix epoch.
1034
+ attr_accessor :ends_at
1035
+ # Type of the event entertainment (concert, sports event etc)
1036
+ attr_accessor :genre
1037
+ # The name of the event.
1038
+ attr_accessor :name
1039
+ # Event start time. Measured in seconds since the Unix epoch.
1040
+ attr_accessor :starts_at
1041
+
1042
+ def initialize(
1043
+ access_controlled_venue: nil,
1044
+ address: nil,
1045
+ affiliate: nil,
1046
+ company: nil,
1047
+ delivery: nil,
1048
+ ends_at: nil,
1049
+ genre: nil,
1050
+ name: nil,
1051
+ starts_at: nil
1052
+ )
1053
+ @access_controlled_venue = access_controlled_venue
1054
+ @address = address
1055
+ @affiliate = affiliate
1056
+ @company = company
1057
+ @delivery = delivery
1058
+ @ends_at = ends_at
1059
+ @genre = genre
1060
+ @name = name
1061
+ @starts_at = starts_at
1062
+ end
1063
+ end
1064
+
1065
+ class FleetDatum < ::Stripe::RequestParams
1066
+ class PrimaryFuelFields < ::Stripe::RequestParams
1067
+ # The fuel brand.
1068
+ attr_accessor :brand
1069
+
1070
+ def initialize(brand: nil)
1071
+ @brand = brand
1072
+ end
1073
+ end
1074
+
1075
+ class Station < ::Stripe::RequestParams
1076
+ class ServiceLocation < ::Stripe::RequestParams
1077
+ # City, district, suburb, town, or village.
1078
+ attr_accessor :city
1079
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1080
+ attr_accessor :country
1081
+ # Address line 1, such as the street, PO Box, or company name.
1082
+ attr_accessor :line1
1083
+ # Address line 2, such as the apartment, suite, unit, or building.
1084
+ attr_accessor :line2
1085
+ # ZIP or postal code.
1086
+ attr_accessor :postal_code
1087
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1088
+ attr_accessor :state
1089
+
1090
+ def initialize(
1091
+ city: nil,
1092
+ country: nil,
1093
+ line1: nil,
1094
+ line2: nil,
1095
+ postal_code: nil,
1096
+ state: nil
1097
+ )
1098
+ @city = city
1099
+ @country = country
1100
+ @line1 = line1
1101
+ @line2 = line2
1102
+ @postal_code = postal_code
1103
+ @state = state
1104
+ end
1105
+ end
1106
+ # Additional contact information for the station.
1107
+ attr_accessor :additional_contact_info
1108
+ # The customer service phone number of the station.
1109
+ attr_accessor :customer_service_phone_number
1110
+ # The partner ID code of the station.
1111
+ attr_accessor :partner_id_code
1112
+ # The phone number of the station.
1113
+ attr_accessor :phone_number
1114
+ # The physical location of the station.
1115
+ attr_accessor :service_location
1116
+ # The URL of the station.
1117
+ attr_accessor :url
1118
+
1119
+ def initialize(
1120
+ additional_contact_info: nil,
1121
+ customer_service_phone_number: nil,
1122
+ partner_id_code: nil,
1123
+ phone_number: nil,
1124
+ service_location: nil,
1125
+ url: nil
1126
+ )
1127
+ @additional_contact_info = additional_contact_info
1128
+ @customer_service_phone_number = customer_service_phone_number
1129
+ @partner_id_code = partner_id_code
1130
+ @phone_number = phone_number
1131
+ @service_location = service_location
1132
+ @url = url
1133
+ end
1134
+ end
1135
+
1136
+ class Vat < ::Stripe::RequestParams
1137
+ # Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
1138
+ attr_accessor :iob_indicator
1139
+
1140
+ def initialize(iob_indicator: nil)
1141
+ @iob_indicator = iob_indicator
1142
+ end
1143
+ end
1144
+ # Primary fuel fields for the transaction.
1145
+ attr_accessor :primary_fuel_fields
1146
+ # Station and acceptor location details.
1147
+ attr_accessor :station
1148
+ # VAT and Invoice on Behalf (IOB) details.
1149
+ attr_accessor :vat
1150
+
1151
+ def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
1152
+ @primary_fuel_fields = primary_fuel_fields
1153
+ @station = station
1154
+ @vat = vat
1155
+ end
1156
+ end
1157
+
1158
+ class Flight < ::Stripe::RequestParams
1159
+ class Affiliate < ::Stripe::RequestParams
1160
+ # The name of the affiliate that originated the purchase.
1161
+ attr_accessor :name
1162
+
1163
+ def initialize(name: nil)
1164
+ @name = name
1165
+ end
1166
+ end
1167
+
1168
+ class Delivery < ::Stripe::RequestParams
1169
+ class Recipient < ::Stripe::RequestParams
1170
+ # The email of the recipient the ticket is delivered to.
1171
+ attr_accessor :email
1172
+ # The name of the recipient the ticket is delivered to.
1173
+ attr_accessor :name
1174
+ # The phone number of the recipient the ticket is delivered to.
1175
+ attr_accessor :phone
1176
+
1177
+ def initialize(email: nil, name: nil, phone: nil)
1178
+ @email = email
1179
+ @name = name
1180
+ @phone = phone
1181
+ end
1182
+ end
1183
+ # The delivery method for the payment
1184
+ attr_accessor :mode
1185
+ # Details of the recipient.
1186
+ attr_accessor :recipient
1187
+
1188
+ def initialize(mode: nil, recipient: nil)
1189
+ @mode = mode
1190
+ @recipient = recipient
1191
+ end
1192
+ end
1193
+
1194
+ class Passenger < ::Stripe::RequestParams
1195
+ # Full name of the person or entity on the flight reservation.
1196
+ attr_accessor :name
1197
+
1198
+ def initialize(name: nil)
1199
+ @name = name
1200
+ end
1201
+ end
1202
+
1203
+ class Segment < ::Stripe::RequestParams
1204
+ # The flight segment amount.
1205
+ attr_accessor :amount
1206
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1207
+ attr_accessor :arrival_airport
1208
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1209
+ attr_accessor :arrives_at
1210
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1211
+ attr_accessor :carrier
1212
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1213
+ attr_accessor :departs_at
1214
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1215
+ attr_accessor :departure_airport
1216
+ # The flight number associated with the segment
1217
+ attr_accessor :flight_number
1218
+ # The fare class for the segment.
1219
+ attr_accessor :service_class
1220
+
1221
+ def initialize(
1222
+ amount: nil,
1223
+ arrival_airport: nil,
1224
+ arrives_at: nil,
1225
+ carrier: nil,
1226
+ departs_at: nil,
1227
+ departure_airport: nil,
1228
+ flight_number: nil,
1229
+ service_class: nil
1230
+ )
1231
+ @amount = amount
1232
+ @arrival_airport = arrival_airport
1233
+ @arrives_at = arrives_at
1234
+ @carrier = carrier
1235
+ @departs_at = departs_at
1236
+ @departure_airport = departure_airport
1237
+ @flight_number = flight_number
1238
+ @service_class = service_class
1239
+ end
1240
+ end
1241
+ # Affiliate details for this purchase.
1242
+ attr_accessor :affiliate
1243
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1244
+ attr_accessor :agency_number
1245
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1246
+ attr_accessor :carrier
1247
+ # Delivery details for this purchase.
1248
+ attr_accessor :delivery
1249
+ # The name of the person or entity on the reservation.
1250
+ attr_accessor :passenger_name
1251
+ # The details of the passengers in the travel reservation.
1252
+ attr_accessor :passengers
1253
+ # The individual flight segments associated with the trip.
1254
+ attr_accessor :segments
1255
+ # The ticket number associated with the travel reservation.
1256
+ attr_accessor :ticket_number
1257
+
1258
+ def initialize(
1259
+ affiliate: nil,
1260
+ agency_number: nil,
1261
+ carrier: nil,
1262
+ delivery: nil,
1263
+ passenger_name: nil,
1264
+ passengers: nil,
1265
+ segments: nil,
1266
+ ticket_number: nil
1267
+ )
1268
+ @affiliate = affiliate
1269
+ @agency_number = agency_number
1270
+ @carrier = carrier
1271
+ @delivery = delivery
1272
+ @passenger_name = passenger_name
1273
+ @passengers = passengers
1274
+ @segments = segments
1275
+ @ticket_number = ticket_number
1276
+ end
1277
+ end
1278
+
1279
+ class FlightDatum < ::Stripe::RequestParams
1280
+ class Affiliate < ::Stripe::RequestParams
1281
+ # Affiliate partner code.
1282
+ attr_accessor :code
1283
+ # Name of affiliate partner.
1284
+ attr_accessor :name
1285
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1286
+ attr_accessor :travel_authorization_code
1287
+
1288
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1289
+ @code = code
1290
+ @name = name
1291
+ @travel_authorization_code = travel_authorization_code
1292
+ end
1293
+ end
1294
+
1295
+ class Insurance < ::Stripe::RequestParams
1296
+ # Insurance cost.
1297
+ attr_accessor :amount
1298
+ # Insurance currency.
1299
+ attr_accessor :currency
1300
+ # Insurance company name.
1301
+ attr_accessor :insurance_company_name
1302
+ # Type of insurance.
1303
+ attr_accessor :insurance_type
1304
+
1305
+ def initialize(
1306
+ amount: nil,
1307
+ currency: nil,
1308
+ insurance_company_name: nil,
1309
+ insurance_type: nil
1310
+ )
1311
+ @amount = amount
1312
+ @currency = currency
1313
+ @insurance_company_name = insurance_company_name
1314
+ @insurance_type = insurance_type
1315
+ end
1316
+ end
1317
+
1318
+ class Passenger < ::Stripe::RequestParams
1319
+ # Passenger's full name.
1320
+ attr_accessor :name
1321
+
1322
+ def initialize(name: nil)
1323
+ @name = name
1324
+ end
1325
+ end
1326
+
1327
+ class Segment < ::Stripe::RequestParams
1328
+ class Arrival < ::Stripe::RequestParams
1329
+ # Arrival airport IATA code.
1330
+ attr_accessor :airport
1331
+ # Arrival date/time.
1332
+ attr_accessor :arrives_at
1333
+ # Arrival city.
1334
+ attr_accessor :city
1335
+ # Arrival country.
1336
+ attr_accessor :country
1337
+
1338
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1339
+ @airport = airport
1340
+ @arrives_at = arrives_at
1341
+ @city = city
1342
+ @country = country
1343
+ end
1344
+ end
1345
+
1346
+ class Departure < ::Stripe::RequestParams
1347
+ # Departure airport IATA code.
1348
+ attr_accessor :airport
1349
+ # Departure city.
1350
+ attr_accessor :city
1351
+ # Departure country.
1352
+ attr_accessor :country
1353
+ # Departure date/time.
1354
+ attr_accessor :departs_at
1355
+
1356
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1357
+ @airport = airport
1358
+ @city = city
1359
+ @country = country
1360
+ @departs_at = departs_at
1361
+ end
1362
+ end
1363
+ # Segment fare amount.
1364
+ attr_accessor :amount
1365
+ # Arrival details.
1366
+ attr_accessor :arrival
1367
+ # Airline carrier code.
1368
+ attr_accessor :carrier_code
1369
+ # Carrier name.
1370
+ attr_accessor :carrier_name
1371
+ # Segment currency.
1372
+ attr_accessor :currency
1373
+ # Departure details.
1374
+ attr_accessor :departure
1375
+ # Exchange ticket number.
1376
+ attr_accessor :exchange_ticket_number
1377
+ # Fare basis code.
1378
+ attr_accessor :fare_basis_code
1379
+ # Additional fees.
1380
+ attr_accessor :fees
1381
+ # Flight number.
1382
+ attr_accessor :flight_number
1383
+ # Stopover indicator.
1384
+ attr_accessor :is_stop_over_indicator
1385
+ # Refundable ticket indicator.
1386
+ attr_accessor :refundable
1387
+ # Class of service.
1388
+ attr_accessor :service_class
1389
+ # Tax amount for segment.
1390
+ attr_accessor :tax_amount
1391
+ # Ticket number.
1392
+ attr_accessor :ticket_number
1393
+
1394
+ def initialize(
1395
+ amount: nil,
1396
+ arrival: nil,
1397
+ carrier_code: nil,
1398
+ carrier_name: nil,
1399
+ currency: nil,
1400
+ departure: nil,
1401
+ exchange_ticket_number: nil,
1402
+ fare_basis_code: nil,
1403
+ fees: nil,
1404
+ flight_number: nil,
1405
+ is_stop_over_indicator: nil,
1406
+ refundable: nil,
1407
+ service_class: nil,
1408
+ tax_amount: nil,
1409
+ ticket_number: nil
1410
+ )
1411
+ @amount = amount
1412
+ @arrival = arrival
1413
+ @carrier_code = carrier_code
1414
+ @carrier_name = carrier_name
1415
+ @currency = currency
1416
+ @departure = departure
1417
+ @exchange_ticket_number = exchange_ticket_number
1418
+ @fare_basis_code = fare_basis_code
1419
+ @fees = fees
1420
+ @flight_number = flight_number
1421
+ @is_stop_over_indicator = is_stop_over_indicator
1422
+ @refundable = refundable
1423
+ @service_class = service_class
1424
+ @tax_amount = tax_amount
1425
+ @ticket_number = ticket_number
1426
+ end
1427
+ end
1428
+
1429
+ class Total < ::Stripe::RequestParams
1430
+ class Discounts < ::Stripe::RequestParams
1431
+ # Corporate client discount code.
1432
+ attr_accessor :corporate_client_code
1433
+
1434
+ def initialize(corporate_client_code: nil)
1435
+ @corporate_client_code = corporate_client_code
1436
+ end
1437
+ end
1438
+
1439
+ class ExtraCharge < ::Stripe::RequestParams
1440
+ # Amount of additional charges.
1441
+ attr_accessor :amount
1442
+ # Type of additional charges.
1443
+ attr_accessor :type
1444
+
1445
+ def initialize(amount: nil, type: nil)
1446
+ @amount = amount
1447
+ @type = type
1448
+ end
1449
+ end
1450
+
1451
+ class Tax < ::Stripe::RequestParams
1452
+ class TaxItem < ::Stripe::RequestParams
1453
+ # Tax amount.
1454
+ attr_accessor :amount
1455
+ # Tax rate.
1456
+ attr_accessor :rate
1457
+ # Type of tax.
1458
+ attr_accessor :type
1459
+
1460
+ def initialize(amount: nil, rate: nil, type: nil)
1461
+ @amount = amount
1462
+ @rate = rate
1463
+ @type = type
1464
+ end
1465
+ end
1466
+ # Array of tax details.
1467
+ attr_accessor :tax_items
1468
+
1469
+ def initialize(tax_items: nil)
1470
+ @tax_items = tax_items
1471
+ end
1472
+ end
1473
+ # Total flight amount.
1474
+ attr_accessor :amount
1475
+ # Reason for credit.
1476
+ attr_accessor :credit_reason
1477
+ # Total currency.
1478
+ attr_accessor :currency
1479
+ # Discount details.
1480
+ attr_accessor :discounts
1481
+ # Additional charges.
1482
+ attr_accessor :extra_charges
1483
+ # Tax breakdown.
1484
+ attr_accessor :tax
1485
+
1486
+ def initialize(
1487
+ amount: nil,
1488
+ credit_reason: nil,
1489
+ currency: nil,
1490
+ discounts: nil,
1491
+ extra_charges: nil,
1492
+ tax: nil
1493
+ )
1494
+ @amount = amount
1495
+ @credit_reason = credit_reason
1496
+ @currency = currency
1497
+ @discounts = discounts
1498
+ @extra_charges = extra_charges
1499
+ @tax = tax
1500
+ end
1501
+ end
1502
+ # Affiliate details if applicable.
1503
+ attr_accessor :affiliate
1504
+ # Reservation reference.
1505
+ attr_accessor :booking_number
1506
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1507
+ attr_accessor :computerized_reservation_system
1508
+ # Ticket restrictions.
1509
+ attr_accessor :endorsements_and_restrictions
1510
+ # List of insurances.
1511
+ attr_accessor :insurances
1512
+ # List of passengers.
1513
+ attr_accessor :passengers
1514
+ # List of flight segments.
1515
+ attr_accessor :segments
1516
+ # Electronic ticket indicator.
1517
+ attr_accessor :ticket_electronically_issued_indicator
1518
+ # Total cost breakdown.
1519
+ attr_accessor :total
1520
+ # Type of flight transaction.
1521
+ attr_accessor :transaction_type
1522
+
1523
+ def initialize(
1524
+ affiliate: nil,
1525
+ booking_number: nil,
1526
+ computerized_reservation_system: nil,
1527
+ endorsements_and_restrictions: nil,
1528
+ insurances: nil,
1529
+ passengers: nil,
1530
+ segments: nil,
1531
+ ticket_electronically_issued_indicator: nil,
1532
+ total: nil,
1533
+ transaction_type: nil
1534
+ )
1535
+ @affiliate = affiliate
1536
+ @booking_number = booking_number
1537
+ @computerized_reservation_system = computerized_reservation_system
1538
+ @endorsements_and_restrictions = endorsements_and_restrictions
1539
+ @insurances = insurances
1540
+ @passengers = passengers
1541
+ @segments = segments
1542
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1543
+ @total = total
1544
+ @transaction_type = transaction_type
1545
+ end
1546
+ end
1547
+
1548
+ class Lodging < ::Stripe::RequestParams
1549
+ class Address < ::Stripe::RequestParams
1550
+ # City, district, suburb, town, or village.
1551
+ attr_accessor :city
1552
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1553
+ attr_accessor :country
1554
+ # Address line 1, such as the street, PO Box, or company name.
1555
+ attr_accessor :line1
1556
+ # Address line 2, such as the apartment, suite, unit, or building.
1557
+ attr_accessor :line2
1558
+ # ZIP or postal code.
1559
+ attr_accessor :postal_code
1560
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1561
+ attr_accessor :state
1562
+
1563
+ def initialize(
1564
+ city: nil,
1565
+ country: nil,
1566
+ line1: nil,
1567
+ line2: nil,
1568
+ postal_code: nil,
1569
+ state: nil
1570
+ )
1571
+ @city = city
1572
+ @country = country
1573
+ @line1 = line1
1574
+ @line2 = line2
1575
+ @postal_code = postal_code
1576
+ @state = state
1577
+ end
1578
+ end
1579
+
1580
+ class Affiliate < ::Stripe::RequestParams
1581
+ # The name of the affiliate that originated the purchase.
1582
+ attr_accessor :name
1583
+
1584
+ def initialize(name: nil)
1585
+ @name = name
1586
+ end
1587
+ end
1588
+
1589
+ class Delivery < ::Stripe::RequestParams
1590
+ class Recipient < ::Stripe::RequestParams
1591
+ # The email of the recipient the ticket is delivered to.
1592
+ attr_accessor :email
1593
+ # The name of the recipient the ticket is delivered to.
1594
+ attr_accessor :name
1595
+ # The phone number of the recipient the ticket is delivered to.
1596
+ attr_accessor :phone
1597
+
1598
+ def initialize(email: nil, name: nil, phone: nil)
1599
+ @email = email
1600
+ @name = name
1601
+ @phone = phone
1602
+ end
1603
+ end
1604
+ # The delivery method for the payment
1605
+ attr_accessor :mode
1606
+ # Details of the recipient.
1607
+ attr_accessor :recipient
1608
+
1609
+ def initialize(mode: nil, recipient: nil)
1610
+ @mode = mode
1611
+ @recipient = recipient
1612
+ end
1613
+ end
1614
+
1615
+ class Passenger < ::Stripe::RequestParams
1616
+ # Full name of the person or entity on the lodging reservation.
1617
+ attr_accessor :name
1618
+
1619
+ def initialize(name: nil)
1620
+ @name = name
1621
+ end
1622
+ end
1623
+ # The lodging location's address.
1624
+ attr_accessor :address
1625
+ # The number of adults on the booking
1626
+ attr_accessor :adults
1627
+ # Affiliate details for this purchase.
1628
+ attr_accessor :affiliate
1629
+ # The booking number associated with the lodging reservation.
1630
+ attr_accessor :booking_number
1631
+ # The lodging category
1632
+ attr_accessor :category
1633
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1634
+ attr_accessor :checkin_at
1635
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1636
+ attr_accessor :checkout_at
1637
+ # The customer service phone number of the lodging company.
1638
+ attr_accessor :customer_service_phone_number
1639
+ # The daily lodging room rate.
1640
+ attr_accessor :daily_room_rate_amount
1641
+ # Delivery details for this purchase.
1642
+ attr_accessor :delivery
1643
+ # List of additional charges being billed.
1644
+ attr_accessor :extra_charges
1645
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1646
+ attr_accessor :fire_safety_act_compliance
1647
+ # The name of the lodging location.
1648
+ attr_accessor :name
1649
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1650
+ attr_accessor :no_show
1651
+ # The number of rooms on the booking
1652
+ attr_accessor :number_of_rooms
1653
+ # The details of the passengers in the travel reservation
1654
+ attr_accessor :passengers
1655
+ # The phone number of the lodging location.
1656
+ attr_accessor :property_phone_number
1657
+ # The room class for this purchase.
1658
+ attr_accessor :room_class
1659
+ # The number of room nights
1660
+ attr_accessor :room_nights
1661
+ # The total tax amount associating with the room reservation.
1662
+ attr_accessor :total_room_tax_amount
1663
+ # The total tax amount
1664
+ attr_accessor :total_tax_amount
1665
+
1666
+ def initialize(
1667
+ address: nil,
1668
+ adults: nil,
1669
+ affiliate: nil,
1670
+ booking_number: nil,
1671
+ category: nil,
1672
+ checkin_at: nil,
1673
+ checkout_at: nil,
1674
+ customer_service_phone_number: nil,
1675
+ daily_room_rate_amount: nil,
1676
+ delivery: nil,
1677
+ extra_charges: nil,
1678
+ fire_safety_act_compliance: nil,
1679
+ name: nil,
1680
+ no_show: nil,
1681
+ number_of_rooms: nil,
1682
+ passengers: nil,
1683
+ property_phone_number: nil,
1684
+ room_class: nil,
1685
+ room_nights: nil,
1686
+ total_room_tax_amount: nil,
1687
+ total_tax_amount: nil
1688
+ )
1689
+ @address = address
1690
+ @adults = adults
1691
+ @affiliate = affiliate
1692
+ @booking_number = booking_number
1693
+ @category = category
1694
+ @checkin_at = checkin_at
1695
+ @checkout_at = checkout_at
1696
+ @customer_service_phone_number = customer_service_phone_number
1697
+ @daily_room_rate_amount = daily_room_rate_amount
1698
+ @delivery = delivery
1699
+ @extra_charges = extra_charges
1700
+ @fire_safety_act_compliance = fire_safety_act_compliance
1701
+ @name = name
1702
+ @no_show = no_show
1703
+ @number_of_rooms = number_of_rooms
1704
+ @passengers = passengers
1705
+ @property_phone_number = property_phone_number
1706
+ @room_class = room_class
1707
+ @room_nights = room_nights
1708
+ @total_room_tax_amount = total_room_tax_amount
1709
+ @total_tax_amount = total_tax_amount
1710
+ end
1711
+ end
1712
+
1713
+ class LodgingDatum < ::Stripe::RequestParams
1714
+ class Accommodation < ::Stripe::RequestParams
1715
+ # Type of accommodation.
1716
+ attr_accessor :accommodation_type
1717
+ # Bed type.
1718
+ attr_accessor :bed_type
1719
+ # Daily accommodation rate in cents.
1720
+ attr_accessor :daily_rate_amount
1721
+ # Number of nights.
1722
+ attr_accessor :nights
1723
+ # Number of rooms, cabanas, apartments, and so on.
1724
+ attr_accessor :number_of_rooms
1725
+ # Rate type.
1726
+ attr_accessor :rate_type
1727
+ # Whether smoking is allowed.
1728
+ attr_accessor :smoking_indicator
1729
+
1730
+ def initialize(
1731
+ accommodation_type: nil,
1732
+ bed_type: nil,
1733
+ daily_rate_amount: nil,
1734
+ nights: nil,
1735
+ number_of_rooms: nil,
1736
+ rate_type: nil,
1737
+ smoking_indicator: nil
1738
+ )
1739
+ @accommodation_type = accommodation_type
1740
+ @bed_type = bed_type
1741
+ @daily_rate_amount = daily_rate_amount
1742
+ @nights = nights
1743
+ @number_of_rooms = number_of_rooms
1744
+ @rate_type = rate_type
1745
+ @smoking_indicator = smoking_indicator
1746
+ end
1747
+ end
1748
+
1749
+ class Affiliate < ::Stripe::RequestParams
1750
+ # Affiliate partner code.
1751
+ attr_accessor :code
1752
+ # Affiliate partner name.
1753
+ attr_accessor :name
1754
+
1755
+ def initialize(code: nil, name: nil)
1756
+ @code = code
1757
+ @name = name
1758
+ end
1759
+ end
1760
+
1761
+ class Guest < ::Stripe::RequestParams
1762
+ # Guest's full name.
1763
+ attr_accessor :name
1764
+
1765
+ def initialize(name: nil)
1766
+ @name = name
1767
+ end
1768
+ end
1769
+
1770
+ class Host < ::Stripe::RequestParams
1771
+ class Address < ::Stripe::RequestParams
1772
+ # City, district, suburb, town, or village.
1773
+ attr_accessor :city
1774
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1775
+ attr_accessor :country
1776
+ # Address line 1, such as the street, PO Box, or company name.
1777
+ attr_accessor :line1
1778
+ # Address line 2, such as the apartment, suite, unit, or building.
1779
+ attr_accessor :line2
1780
+ # ZIP or postal code.
1781
+ attr_accessor :postal_code
1782
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1783
+ attr_accessor :state
1784
+
1785
+ def initialize(
1786
+ city: nil,
1787
+ country: nil,
1788
+ line1: nil,
1789
+ line2: nil,
1790
+ postal_code: nil,
1791
+ state: nil
1792
+ )
1793
+ @city = city
1794
+ @country = country
1795
+ @line1 = line1
1796
+ @line2 = line2
1797
+ @postal_code = postal_code
1798
+ @state = state
1799
+ end
1800
+ end
1801
+ # Address of the host.
1802
+ attr_accessor :address
1803
+ # Host's country of domicile.
1804
+ attr_accessor :country_of_domicile
1805
+ # Reference number for the host.
1806
+ attr_accessor :host_reference
1807
+ # Type of host.
1808
+ attr_accessor :host_type
1809
+ # Name of the lodging property or host.
1810
+ attr_accessor :name
1811
+ # Total number of reservations for the host.
1812
+ attr_accessor :number_of_reservations
1813
+ # Property phone number.
1814
+ attr_accessor :property_phone_number
1815
+ # Host's registration date.
1816
+ attr_accessor :registered_at
1817
+
1818
+ def initialize(
1819
+ address: nil,
1820
+ country_of_domicile: nil,
1821
+ host_reference: nil,
1822
+ host_type: nil,
1823
+ name: nil,
1824
+ number_of_reservations: nil,
1825
+ property_phone_number: nil,
1826
+ registered_at: nil
1827
+ )
1828
+ @address = address
1829
+ @country_of_domicile = country_of_domicile
1830
+ @host_reference = host_reference
1831
+ @host_type = host_type
1832
+ @name = name
1833
+ @number_of_reservations = number_of_reservations
1834
+ @property_phone_number = property_phone_number
1835
+ @registered_at = registered_at
1836
+ end
1837
+ end
1838
+
1839
+ class Insurance < ::Stripe::RequestParams
1840
+ # Price of the insurance coverage in cents.
1841
+ attr_accessor :amount
1842
+ # Currency of the insurance amount.
1843
+ attr_accessor :currency
1844
+ # Name of the insurance company.
1845
+ attr_accessor :insurance_company_name
1846
+ # Type of insurance coverage.
1847
+ attr_accessor :insurance_type
1848
+
1849
+ def initialize(
1850
+ amount: nil,
1851
+ currency: nil,
1852
+ insurance_company_name: nil,
1853
+ insurance_type: nil
1854
+ )
1855
+ @amount = amount
1856
+ @currency = currency
1857
+ @insurance_company_name = insurance_company_name
1858
+ @insurance_type = insurance_type
1859
+ end
1860
+ end
1861
+
1862
+ class Total < ::Stripe::RequestParams
1863
+ class Discounts < ::Stripe::RequestParams
1864
+ # Corporate client discount code.
1865
+ attr_accessor :corporate_client_code
1866
+ # Coupon code.
1867
+ attr_accessor :coupon
1868
+
1869
+ def initialize(corporate_client_code: nil, coupon: nil)
1870
+ @corporate_client_code = corporate_client_code
1871
+ @coupon = coupon
1872
+ end
1873
+ end
1874
+
1875
+ class ExtraCharge < ::Stripe::RequestParams
1876
+ # Amount of the extra charge in cents.
1877
+ attr_accessor :amount
1878
+ # Type of extra charge.
1879
+ attr_accessor :type
1880
+
1881
+ def initialize(amount: nil, type: nil)
1882
+ @amount = amount
1883
+ @type = type
1884
+ end
1885
+ end
1886
+
1887
+ class Tax < ::Stripe::RequestParams
1888
+ class TaxItem < ::Stripe::RequestParams
1889
+ # Tax amount in cents.
1890
+ attr_accessor :amount
1891
+ # Tax rate.
1892
+ attr_accessor :rate
1893
+ # Type of tax applied.
1894
+ attr_accessor :type
1895
+
1896
+ def initialize(amount: nil, rate: nil, type: nil)
1897
+ @amount = amount
1898
+ @rate = rate
1899
+ @type = type
1900
+ end
1901
+ end
1902
+ # Indicates whether the transaction is tax exempt.
1903
+ attr_accessor :tax_exempt_indicator
1904
+ # Tax details.
1905
+ attr_accessor :tax_items
1906
+
1907
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
1908
+ @tax_exempt_indicator = tax_exempt_indicator
1909
+ @tax_items = tax_items
1910
+ end
1911
+ end
1912
+ # Total price of the lodging reservation in cents.
1913
+ attr_accessor :amount
1914
+ # Cash advances in cents.
1915
+ attr_accessor :cash_advances
1916
+ # Currency of the total amount.
1917
+ attr_accessor :currency
1918
+ # Discount details for the lodging.
1919
+ attr_accessor :discounts
1920
+ # Additional charges for the lodging.
1921
+ attr_accessor :extra_charges
1922
+ # Prepaid amount in cents.
1923
+ attr_accessor :prepaid_amount
1924
+ # Tax breakdown for the lodging reservation.
1925
+ attr_accessor :tax
1926
+
1927
+ def initialize(
1928
+ amount: nil,
1929
+ cash_advances: nil,
1930
+ currency: nil,
1931
+ discounts: nil,
1932
+ extra_charges: nil,
1933
+ prepaid_amount: nil,
1934
+ tax: nil
1935
+ )
1936
+ @amount = amount
1937
+ @cash_advances = cash_advances
1938
+ @currency = currency
1939
+ @discounts = discounts
1940
+ @extra_charges = extra_charges
1941
+ @prepaid_amount = prepaid_amount
1942
+ @tax = tax
1943
+ end
1944
+ end
1945
+ # Accommodation details for the lodging.
1946
+ attr_accessor :accommodation
1947
+ # Affiliate details if applicable.
1948
+ attr_accessor :affiliate
1949
+ # Booking confirmation number for the lodging.
1950
+ attr_accessor :booking_number
1951
+ # Check-in date.
1952
+ attr_accessor :checkin_at
1953
+ # Check-out date.
1954
+ attr_accessor :checkout_at
1955
+ # Customer service phone number for the lodging company.
1956
+ attr_accessor :customer_service_phone_number
1957
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1958
+ attr_accessor :fire_safety_act_compliance_indicator
1959
+ # List of guests for the lodging.
1960
+ attr_accessor :guests
1961
+ # Host details for the lodging.
1962
+ attr_accessor :host
1963
+ # List of insurances for the lodging.
1964
+ attr_accessor :insurances
1965
+ # Whether the renter is a no-show.
1966
+ attr_accessor :no_show_indicator
1967
+ # Renter ID number for the lodging.
1968
+ attr_accessor :renter_id_number
1969
+ # Renter name for the lodging.
1970
+ attr_accessor :renter_name
1971
+ # Total details for the lodging.
1972
+ attr_accessor :total
1973
+
1974
+ def initialize(
1975
+ accommodation: nil,
1976
+ affiliate: nil,
1977
+ booking_number: nil,
1978
+ checkin_at: nil,
1979
+ checkout_at: nil,
1980
+ customer_service_phone_number: nil,
1981
+ fire_safety_act_compliance_indicator: nil,
1982
+ guests: nil,
1983
+ host: nil,
1984
+ insurances: nil,
1985
+ no_show_indicator: nil,
1986
+ renter_id_number: nil,
1987
+ renter_name: nil,
1988
+ total: nil
1989
+ )
1990
+ @accommodation = accommodation
1991
+ @affiliate = affiliate
1992
+ @booking_number = booking_number
1993
+ @checkin_at = checkin_at
1994
+ @checkout_at = checkout_at
1995
+ @customer_service_phone_number = customer_service_phone_number
1996
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1997
+ @guests = guests
1998
+ @host = host
1999
+ @insurances = insurances
2000
+ @no_show_indicator = no_show_indicator
2001
+ @renter_id_number = renter_id_number
2002
+ @renter_name = renter_name
2003
+ @total = total
2004
+ end
2005
+ end
2006
+
2007
+ class MoneyServices < ::Stripe::RequestParams
2008
+ class AccountFunding < ::Stripe::RequestParams
2009
+ class SenderDetails < ::Stripe::RequestParams
2010
+ class Address < ::Stripe::RequestParams
2011
+ # City, district, suburb, town, or village.
2012
+ attr_accessor :city
2013
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2014
+ attr_accessor :country
2015
+ # Address line 1, such as the street, PO Box, or company name.
2016
+ attr_accessor :line1
2017
+ # Address line 2, such as the apartment, suite, unit, or building.
2018
+ attr_accessor :line2
2019
+ # ZIP or postal code.
2020
+ attr_accessor :postal_code
2021
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2022
+ attr_accessor :state
2023
+
2024
+ def initialize(
2025
+ city: nil,
2026
+ country: nil,
2027
+ line1: nil,
2028
+ line2: nil,
2029
+ postal_code: nil,
2030
+ state: nil
2031
+ )
2032
+ @city = city
2033
+ @country = country
2034
+ @line1 = line1
2035
+ @line2 = line2
2036
+ @postal_code = postal_code
2037
+ @state = state
2038
+ end
2039
+ end
189
2040
 
190
- class Hooks < ::Stripe::RequestParams
191
- class Inputs < ::Stripe::RequestParams
192
- class Tax < ::Stripe::RequestParams
193
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
194
- attr_accessor :calculation
2041
+ class DateOfBirth < ::Stripe::RequestParams
2042
+ # Day of birth, between 1 and 31.
2043
+ attr_accessor :day
2044
+ # Month of birth, between 1 and 12.
2045
+ attr_accessor :month
2046
+ # Four-digit year of birth.
2047
+ attr_accessor :year
2048
+
2049
+ def initialize(day: nil, month: nil, year: nil)
2050
+ @day = day
2051
+ @month = month
2052
+ @year = year
2053
+ end
2054
+ end
2055
+ # Address.
2056
+ attr_accessor :address
2057
+ # Date of birth.
2058
+ attr_accessor :date_of_birth
2059
+ # Email address.
2060
+ attr_accessor :email
2061
+ # Given (first) name.
2062
+ attr_accessor :given_name
2063
+ # Phone number.
2064
+ attr_accessor :phone
2065
+ # Surname (family name).
2066
+ attr_accessor :surname
195
2067
 
196
- def initialize(calculation: nil)
197
- @calculation = calculation
2068
+ def initialize(
2069
+ address: nil,
2070
+ date_of_birth: nil,
2071
+ email: nil,
2072
+ given_name: nil,
2073
+ phone: nil,
2074
+ surname: nil
2075
+ )
2076
+ @address = address
2077
+ @date_of_birth = date_of_birth
2078
+ @email = email
2079
+ @given_name = given_name
2080
+ @phone = phone
2081
+ @surname = surname
2082
+ end
2083
+ end
2084
+ # Inline identity details for the sender of this account funding transaction.
2085
+ attr_accessor :sender_details
2086
+
2087
+ def initialize(sender_details: nil)
2088
+ @sender_details = sender_details
198
2089
  end
199
2090
  end
200
- # Tax arguments for automations
201
- attr_accessor :tax
202
2091
 
203
- def initialize(tax: nil)
204
- @tax = tax
2092
+ class BeneficiaryDetails < ::Stripe::RequestParams
2093
+ class Address < ::Stripe::RequestParams
2094
+ # City, district, suburb, town, or village.
2095
+ attr_accessor :city
2096
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2097
+ attr_accessor :country
2098
+ # Address line 1, such as the street, PO Box, or company name.
2099
+ attr_accessor :line1
2100
+ # Address line 2, such as the apartment, suite, unit, or building.
2101
+ attr_accessor :line2
2102
+ # ZIP or postal code.
2103
+ attr_accessor :postal_code
2104
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2105
+ attr_accessor :state
2106
+
2107
+ def initialize(
2108
+ city: nil,
2109
+ country: nil,
2110
+ line1: nil,
2111
+ line2: nil,
2112
+ postal_code: nil,
2113
+ state: nil
2114
+ )
2115
+ @city = city
2116
+ @country = country
2117
+ @line1 = line1
2118
+ @line2 = line2
2119
+ @postal_code = postal_code
2120
+ @state = state
2121
+ end
2122
+ end
2123
+
2124
+ class DateOfBirth < ::Stripe::RequestParams
2125
+ # Day of birth, between 1 and 31.
2126
+ attr_accessor :day
2127
+ # Month of birth, between 1 and 12.
2128
+ attr_accessor :month
2129
+ # Four-digit year of birth.
2130
+ attr_accessor :year
2131
+
2132
+ def initialize(day: nil, month: nil, year: nil)
2133
+ @day = day
2134
+ @month = month
2135
+ @year = year
2136
+ end
2137
+ end
2138
+ # An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).
2139
+ attr_accessor :account_reference
2140
+ # Address.
2141
+ attr_accessor :address
2142
+ # Date of birth.
2143
+ attr_accessor :date_of_birth
2144
+ # Email address.
2145
+ attr_accessor :email
2146
+ # Given (first) name.
2147
+ attr_accessor :given_name
2148
+ # Phone number.
2149
+ attr_accessor :phone
2150
+ # Surname (family name).
2151
+ attr_accessor :surname
2152
+
2153
+ def initialize(
2154
+ account_reference: nil,
2155
+ address: nil,
2156
+ date_of_birth: nil,
2157
+ email: nil,
2158
+ given_name: nil,
2159
+ phone: nil,
2160
+ surname: nil
2161
+ )
2162
+ @account_reference = account_reference
2163
+ @address = address
2164
+ @date_of_birth = date_of_birth
2165
+ @email = email
2166
+ @given_name = given_name
2167
+ @phone = phone
2168
+ @surname = surname
2169
+ end
2170
+ end
2171
+ # Account funding transaction details including sender information.
2172
+ attr_accessor :account_funding
2173
+ # Inline identity details for the beneficiary of this transaction.
2174
+ attr_accessor :beneficiary_details
2175
+ # The type of money services transaction.
2176
+ attr_accessor :transaction_type
2177
+
2178
+ def initialize(account_funding: nil, beneficiary_details: nil, transaction_type: nil)
2179
+ @account_funding = account_funding
2180
+ @beneficiary_details = beneficiary_details
2181
+ @transaction_type = transaction_type
205
2182
  end
206
2183
  end
207
- # Arguments passed in automations
208
- attr_accessor :inputs
209
2184
 
210
- def initialize(inputs: nil)
211
- @inputs = inputs
212
- end
213
- end
2185
+ class Subscription < ::Stripe::RequestParams
2186
+ class Affiliate < ::Stripe::RequestParams
2187
+ # The name of the affiliate that originated the purchase.
2188
+ attr_accessor :name
214
2189
 
215
- class MandateData < ::Stripe::RequestParams
216
- class CustomerAcceptance < ::Stripe::RequestParams
217
- class Offline < ::Stripe::RequestParams; end
2190
+ def initialize(name: nil)
2191
+ @name = name
2192
+ end
2193
+ end
218
2194
 
219
- class Online < ::Stripe::RequestParams
220
- # The IP address from which the Mandate was accepted by the customer.
221
- attr_accessor :ip_address
222
- # The user agent of the browser from which the Mandate was accepted by the customer.
223
- attr_accessor :user_agent
2195
+ class BillingInterval < ::Stripe::RequestParams
2196
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2197
+ attr_accessor :count
2198
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2199
+ attr_accessor :interval
224
2200
 
225
- def initialize(ip_address: nil, user_agent: nil)
226
- @ip_address = ip_address
227
- @user_agent = user_agent
2201
+ def initialize(count: nil, interval: nil)
2202
+ @count = count
2203
+ @interval = interval
228
2204
  end
229
2205
  end
230
- # The time at which the customer accepted the Mandate.
231
- attr_accessor :accepted_at
232
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
233
- attr_accessor :offline
234
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
235
- attr_accessor :online
236
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
237
- attr_accessor :type
2206
+ # Affiliate details for this purchase.
2207
+ attr_accessor :affiliate
2208
+ # Info whether the subscription will be auto renewed upon expiry.
2209
+ attr_accessor :auto_renewal
2210
+ # Subscription billing details for this purchase.
2211
+ attr_accessor :billing_interval
2212
+ # Subscription end time. Measured in seconds since the Unix epoch.
2213
+ attr_accessor :ends_at
2214
+ # Name of the product on subscription. e.g. Apple Music Subscription
2215
+ attr_accessor :name
2216
+ # Subscription start time. Measured in seconds since the Unix epoch.
2217
+ attr_accessor :starts_at
238
2218
 
239
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
240
- @accepted_at = accepted_at
241
- @offline = offline
242
- @online = online
243
- @type = type
2219
+ def initialize(
2220
+ affiliate: nil,
2221
+ auto_renewal: nil,
2222
+ billing_interval: nil,
2223
+ ends_at: nil,
2224
+ name: nil,
2225
+ starts_at: nil
2226
+ )
2227
+ @affiliate = affiliate
2228
+ @auto_renewal = auto_renewal
2229
+ @billing_interval = billing_interval
2230
+ @ends_at = ends_at
2231
+ @name = name
2232
+ @starts_at = starts_at
244
2233
  end
245
2234
  end
246
- # This hash contains details about the customer acceptance of the Mandate.
247
- attr_accessor :customer_acceptance
248
-
249
- def initialize(customer_acceptance: nil)
250
- @customer_acceptance = customer_acceptance
251
- end
252
- end
253
-
254
- class PaymentDetails < ::Stripe::RequestParams
2235
+ # Benefit details for this PaymentIntent
2236
+ attr_accessor :benefit
2237
+ # Car rental details for this PaymentIntent.
2238
+ attr_accessor :car_rental
2239
+ # Car rental data for this PaymentIntent.
2240
+ attr_accessor :car_rental_data
255
2241
  # A unique value to identify the customer. This field is available only for card payments.
256
2242
  #
257
2243
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
258
2244
  attr_accessor :customer_reference
2245
+ # Event details for this PaymentIntent
2246
+ attr_accessor :event_details
2247
+ # Fleet data for this PaymentIntent.
2248
+ attr_accessor :fleet_data
2249
+ # Flight reservation details for this PaymentIntent
2250
+ attr_accessor :flight
2251
+ # Flight data for this PaymentIntent.
2252
+ attr_accessor :flight_data
2253
+ # The ID of the Payment Location for this PaymentIntent.
2254
+ attr_accessor :location
2255
+ # Lodging reservation details for this PaymentIntent
2256
+ attr_accessor :lodging
2257
+ # Lodging data for this PaymentIntent.
2258
+ attr_accessor :lodging_data
2259
+ # Money services details for this PaymentIntent.
2260
+ attr_accessor :money_services
259
2261
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
260
2262
  #
261
2263
  # 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.
262
2264
  attr_accessor :order_reference
2265
+ # Subscription details for this PaymentIntent
2266
+ attr_accessor :subscription
263
2267
 
264
- def initialize(customer_reference: nil, order_reference: nil)
2268
+ def initialize(
2269
+ benefit: nil,
2270
+ car_rental: nil,
2271
+ car_rental_data: nil,
2272
+ customer_reference: nil,
2273
+ event_details: nil,
2274
+ fleet_data: nil,
2275
+ flight: nil,
2276
+ flight_data: nil,
2277
+ location: nil,
2278
+ lodging: nil,
2279
+ lodging_data: nil,
2280
+ money_services: nil,
2281
+ order_reference: nil,
2282
+ subscription: nil
2283
+ )
2284
+ @benefit = benefit
2285
+ @car_rental = car_rental
2286
+ @car_rental_data = car_rental_data
265
2287
  @customer_reference = customer_reference
2288
+ @event_details = event_details
2289
+ @fleet_data = fleet_data
2290
+ @flight = flight
2291
+ @flight_data = flight_data
2292
+ @location = location
2293
+ @lodging = lodging
2294
+ @lodging_data = lodging_data
2295
+ @money_services = money_services
266
2296
  @order_reference = order_reference
2297
+ @subscription = subscription
267
2298
  end
268
2299
  end
269
2300
 
@@ -404,9 +2435,28 @@ module Stripe
404
2435
  end
405
2436
  end
406
2437
 
2438
+ class GiftCard < ::Stripe::RequestParams
2439
+ # The gift card ID to redeem
2440
+ attr_accessor :gift_card
2441
+
2442
+ def initialize(gift_card: nil)
2443
+ @gift_card = gift_card
2444
+ end
2445
+ end
2446
+
407
2447
  class Giropay < ::Stripe::RequestParams; end
2448
+ class Gopay < ::Stripe::RequestParams; end
408
2449
  class Grabpay < ::Stripe::RequestParams; end
409
2450
 
2451
+ class IdBankTransfer < ::Stripe::RequestParams
2452
+ # Bank where the account is held.
2453
+ attr_accessor :bank
2454
+
2455
+ def initialize(bank: nil)
2456
+ @bank = bank
2457
+ end
2458
+ end
2459
+
410
2460
  class Ideal < ::Stripe::RequestParams
411
2461
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
412
2462
  attr_accessor :bank
@@ -504,6 +2554,7 @@ module Stripe
504
2554
  class Payco < ::Stripe::RequestParams; end
505
2555
  class Paynow < ::Stripe::RequestParams; end
506
2556
  class Paypal < ::Stripe::RequestParams; end
2557
+ class Paypay < ::Stripe::RequestParams; end
507
2558
 
508
2559
  class Payto < ::Stripe::RequestParams
509
2560
  # The account number for the bank account.
@@ -522,6 +2573,7 @@ module Stripe
522
2573
 
523
2574
  class Pix < ::Stripe::RequestParams; end
524
2575
  class Promptpay < ::Stripe::RequestParams; end
2576
+ class Qris < ::Stripe::RequestParams; end
525
2577
 
526
2578
  class RadarOptions < ::Stripe::RequestParams
527
2579
  # 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.
@@ -532,6 +2584,29 @@ module Stripe
532
2584
  end
533
2585
  end
534
2586
 
2587
+ class Rechnung < ::Stripe::RequestParams
2588
+ class Dob < ::Stripe::RequestParams
2589
+ # The day of birth, between 1 and 31.
2590
+ attr_accessor :day
2591
+ # The month of birth, between 1 and 12.
2592
+ attr_accessor :month
2593
+ # The four-digit year of birth.
2594
+ attr_accessor :year
2595
+
2596
+ def initialize(day: nil, month: nil, year: nil)
2597
+ @day = day
2598
+ @month = month
2599
+ @year = year
2600
+ end
2601
+ end
2602
+ # Customer's date of birth
2603
+ attr_accessor :dob
2604
+
2605
+ def initialize(dob: nil)
2606
+ @dob = dob
2607
+ end
2608
+ end
2609
+
535
2610
  class RevolutPay < ::Stripe::RequestParams; end
536
2611
  class SamsungPay < ::Stripe::RequestParams; end
537
2612
  class Satispay < ::Stripe::RequestParams; end
@@ -546,6 +2621,8 @@ module Stripe
546
2621
  end
547
2622
  end
548
2623
 
2624
+ class Shopeepay < ::Stripe::RequestParams; end
2625
+
549
2626
  class Sofort < ::Stripe::RequestParams
550
2627
  # Two-letter ISO code representing the country the bank account is located in.
551
2628
  attr_accessor :country
@@ -555,8 +2632,18 @@ module Stripe
555
2632
  end
556
2633
  end
557
2634
 
2635
+ class StripeBalance < ::Stripe::RequestParams
2636
+ # The connected account ID whose Stripe balance to use as the source of payment
2637
+ attr_accessor :account
2638
+
2639
+ def initialize(account: nil)
2640
+ @account = account
2641
+ end
2642
+ end
2643
+
558
2644
  class Sunbit < ::Stripe::RequestParams; end
559
2645
  class Swish < ::Stripe::RequestParams; end
2646
+ class Tamara < ::Stripe::RequestParams; end
560
2647
  class Twint < ::Stripe::RequestParams; end
561
2648
 
562
2649
  class Upi < ::Stripe::RequestParams
@@ -612,6 +2699,7 @@ module Stripe
612
2699
  end
613
2700
  end
614
2701
 
2702
+ class Vipps < ::Stripe::RequestParams; end
615
2703
  class WechatPay < ::Stripe::RequestParams; end
616
2704
  class Zip < ::Stripe::RequestParams; end
617
2705
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
@@ -654,10 +2742,16 @@ module Stripe
654
2742
  attr_accessor :eps
655
2743
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
656
2744
  attr_accessor :fpx
2745
+ # If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
2746
+ attr_accessor :gift_card
657
2747
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
658
2748
  attr_accessor :giropay
2749
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2750
+ attr_accessor :gopay
659
2751
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
660
2752
  attr_accessor :grabpay
2753
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2754
+ attr_accessor :id_bank_transfer
661
2755
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
662
2756
  attr_accessor :ideal
663
2757
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -696,14 +2790,20 @@ module Stripe
696
2790
  attr_accessor :paynow
697
2791
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
698
2792
  attr_accessor :paypal
2793
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2794
+ attr_accessor :paypay
699
2795
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
700
2796
  attr_accessor :payto
701
2797
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
702
2798
  attr_accessor :pix
703
2799
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
704
2800
  attr_accessor :promptpay
2801
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2802
+ attr_accessor :qris
705
2803
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
706
2804
  attr_accessor :radar_options
2805
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2806
+ attr_accessor :rechnung
707
2807
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
708
2808
  attr_accessor :revolut_pay
709
2809
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -714,12 +2814,20 @@ module Stripe
714
2814
  attr_accessor :scalapay
715
2815
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
716
2816
  attr_accessor :sepa_debit
2817
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2818
+ attr_accessor :shared_payment_granted_token
2819
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2820
+ attr_accessor :shopeepay
717
2821
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
718
2822
  attr_accessor :sofort
2823
+ # This hash contains details about the Stripe balance payment method.
2824
+ attr_accessor :stripe_balance
719
2825
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
720
2826
  attr_accessor :sunbit
721
2827
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
722
2828
  attr_accessor :swish
2829
+ # If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
2830
+ attr_accessor :tamara
723
2831
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
724
2832
  attr_accessor :twint
725
2833
  # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
@@ -728,6 +2836,8 @@ module Stripe
728
2836
  attr_accessor :upi
729
2837
  # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
730
2838
  attr_accessor :us_bank_account
2839
+ # If this is a `vipps` PaymentMethod, this hash contains details about the Vipps payment method.
2840
+ attr_accessor :vipps
731
2841
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
732
2842
  attr_accessor :wechat_pay
733
2843
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
@@ -754,8 +2864,11 @@ module Stripe
754
2864
  customer_balance: nil,
755
2865
  eps: nil,
756
2866
  fpx: nil,
2867
+ gift_card: nil,
757
2868
  giropay: nil,
2869
+ gopay: nil,
758
2870
  grabpay: nil,
2871
+ id_bank_transfer: nil,
759
2872
  ideal: nil,
760
2873
  interac_present: nil,
761
2874
  kakao_pay: nil,
@@ -775,22 +2888,30 @@ module Stripe
775
2888
  payco: nil,
776
2889
  paynow: nil,
777
2890
  paypal: nil,
2891
+ paypay: nil,
778
2892
  payto: nil,
779
2893
  pix: nil,
780
2894
  promptpay: nil,
2895
+ qris: nil,
781
2896
  radar_options: nil,
2897
+ rechnung: nil,
782
2898
  revolut_pay: nil,
783
2899
  samsung_pay: nil,
784
2900
  satispay: nil,
785
2901
  scalapay: nil,
786
2902
  sepa_debit: nil,
2903
+ shared_payment_granted_token: nil,
2904
+ shopeepay: nil,
787
2905
  sofort: nil,
2906
+ stripe_balance: nil,
788
2907
  sunbit: nil,
789
2908
  swish: nil,
2909
+ tamara: nil,
790
2910
  twint: nil,
791
2911
  type: nil,
792
2912
  upi: nil,
793
2913
  us_bank_account: nil,
2914
+ vipps: nil,
794
2915
  wechat_pay: nil,
795
2916
  zip: nil
796
2917
  )
@@ -814,8 +2935,11 @@ module Stripe
814
2935
  @customer_balance = customer_balance
815
2936
  @eps = eps
816
2937
  @fpx = fpx
2938
+ @gift_card = gift_card
817
2939
  @giropay = giropay
2940
+ @gopay = gopay
818
2941
  @grabpay = grabpay
2942
+ @id_bank_transfer = id_bank_transfer
819
2943
  @ideal = ideal
820
2944
  @interac_present = interac_present
821
2945
  @kakao_pay = kakao_pay
@@ -835,22 +2959,30 @@ module Stripe
835
2959
  @payco = payco
836
2960
  @paynow = paynow
837
2961
  @paypal = paypal
2962
+ @paypay = paypay
838
2963
  @payto = payto
839
2964
  @pix = pix
840
2965
  @promptpay = promptpay
2966
+ @qris = qris
841
2967
  @radar_options = radar_options
2968
+ @rechnung = rechnung
842
2969
  @revolut_pay = revolut_pay
843
2970
  @samsung_pay = samsung_pay
844
2971
  @satispay = satispay
845
2972
  @scalapay = scalapay
846
2973
  @sepa_debit = sepa_debit
2974
+ @shared_payment_granted_token = shared_payment_granted_token
2975
+ @shopeepay = shopeepay
847
2976
  @sofort = sofort
2977
+ @stripe_balance = stripe_balance
848
2978
  @sunbit = sunbit
849
2979
  @swish = swish
2980
+ @tamara = tamara
850
2981
  @twint = twint
851
2982
  @type = type
852
2983
  @upi = upi
853
2984
  @us_bank_account = us_bank_account
2985
+ @vipps = vipps
854
2986
  @wechat_pay = wechat_pay
855
2987
  @zip = zip
856
2988
  end
@@ -1146,6 +3278,18 @@ module Stripe
1146
3278
  end
1147
3279
 
1148
3280
  class Card < ::Stripe::RequestParams
3281
+ class CaptureDelay < ::Stripe::RequestParams
3282
+ # Attribute for param field days
3283
+ attr_accessor :days
3284
+ # Attribute for param field hours
3285
+ attr_accessor :hours
3286
+
3287
+ def initialize(days: nil, hours: nil)
3288
+ @days = days
3289
+ @hours = hours
3290
+ end
3291
+ end
3292
+
1149
3293
  class Installments < ::Stripe::RequestParams
1150
3294
  class Plan < ::Stripe::RequestParams
1151
3295
  # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
@@ -1219,6 +3363,73 @@ module Stripe
1219
3363
  end
1220
3364
  end
1221
3365
 
3366
+ class PaymentDetails < ::Stripe::RequestParams
3367
+ class MoneyServices < ::Stripe::RequestParams
3368
+ class AccountFunding < ::Stripe::RequestParams
3369
+ # The category of digital asset being acquired through this account funding transaction.
3370
+ attr_accessor :digital_asset_category
3371
+
3372
+ def initialize(digital_asset_category: nil)
3373
+ @digital_asset_category = digital_asset_category
3374
+ end
3375
+ end
3376
+ # Payment method specific account funding transaction details.
3377
+ attr_accessor :account_funding
3378
+
3379
+ def initialize(account_funding: nil)
3380
+ @account_funding = account_funding
3381
+ end
3382
+ end
3383
+ # Money services details for payment method specific funding fields.
3384
+ attr_accessor :money_services
3385
+
3386
+ def initialize(money_services: nil)
3387
+ @money_services = money_services
3388
+ end
3389
+ end
3390
+
3391
+ class StatementDetails < ::Stripe::RequestParams
3392
+ class Address < ::Stripe::RequestParams
3393
+ # City, district, suburb, town, or village.
3394
+ attr_accessor :city
3395
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3396
+ attr_accessor :country
3397
+ # Address line 1, such as the street, PO Box, or company name.
3398
+ attr_accessor :line1
3399
+ # Address line 2, such as the apartment, suite, unit, or building.
3400
+ attr_accessor :line2
3401
+ # ZIP or postal code.
3402
+ attr_accessor :postal_code
3403
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3404
+ attr_accessor :state
3405
+
3406
+ def initialize(
3407
+ city: nil,
3408
+ country: nil,
3409
+ line1: nil,
3410
+ line2: nil,
3411
+ postal_code: nil,
3412
+ state: nil
3413
+ )
3414
+ @city = city
3415
+ @country = country
3416
+ @line1 = line1
3417
+ @line2 = line2
3418
+ @postal_code = postal_code
3419
+ @state = state
3420
+ end
3421
+ end
3422
+ # Please pass in an address that is within your Stripe user account country
3423
+ attr_accessor :address
3424
+ # Phone number (e.g., a toll-free number that customers can call)
3425
+ attr_accessor :phone
3426
+
3427
+ def initialize(address: nil, phone: nil)
3428
+ @address = address
3429
+ @phone = phone
3430
+ end
3431
+ end
3432
+
1222
3433
  class ThreeDSecure < ::Stripe::RequestParams
1223
3434
  class NetworkOptions < ::Stripe::RequestParams
1224
3435
  class CartesBancaires < ::Stripe::RequestParams
@@ -1293,6 +3504,14 @@ module Stripe
1293
3504
  @version = version
1294
3505
  end
1295
3506
  end
3507
+ # Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
3508
+ #
3509
+ # If omitted, funds are captured before the authorization expires.
3510
+ attr_accessor :capture_by
3511
+ # The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
3512
+ #
3513
+ # You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
3514
+ attr_accessor :capture_delay
1296
3515
  # Controls when the funds are captured from the customer's account.
1297
3516
  #
1298
3517
  # 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.
@@ -1313,6 +3532,10 @@ module Stripe
1313
3532
  attr_accessor :moto
1314
3533
  # 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.
1315
3534
  attr_accessor :network
3535
+ # Payment details for payment method specific funding fields.
3536
+ attr_accessor :payment_details
3537
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3538
+ attr_accessor :request_decremental_authorization
1316
3539
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1317
3540
  attr_accessor :request_extended_authorization
1318
3541
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1321,6 +3544,10 @@ module Stripe
1321
3544
  attr_accessor :request_multicapture
1322
3545
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1323
3546
  attr_accessor :request_overcapture
3547
+ # Request partial authorization on this PaymentIntent.
3548
+ attr_accessor :request_partial_authorization
3549
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3550
+ attr_accessor :request_reauthorization
1324
3551
  # 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.
1325
3552
  attr_accessor :request_three_d_secure
1326
3553
  # 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).
@@ -1339,48 +3566,101 @@ module Stripe
1339
3566
  attr_accessor :statement_descriptor_suffix_kana
1340
3567
  # 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.
1341
3568
  attr_accessor :statement_descriptor_suffix_kanji
3569
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3570
+ attr_accessor :statement_details
1342
3571
  # If 3D Secure authentication was performed with a third-party provider,
1343
3572
  # the authentication details to use for this payment.
1344
3573
  attr_accessor :three_d_secure
1345
3574
 
1346
3575
  def initialize(
3576
+ capture_by: nil,
3577
+ capture_delay: nil,
1347
3578
  capture_method: nil,
1348
3579
  cvc_token: nil,
1349
3580
  installments: nil,
1350
3581
  mandate_options: nil,
1351
3582
  moto: nil,
1352
3583
  network: nil,
3584
+ payment_details: nil,
3585
+ request_decremental_authorization: nil,
1353
3586
  request_extended_authorization: nil,
1354
3587
  request_incremental_authorization: nil,
1355
3588
  request_multicapture: nil,
1356
3589
  request_overcapture: nil,
3590
+ request_partial_authorization: nil,
3591
+ request_reauthorization: nil,
1357
3592
  request_three_d_secure: nil,
1358
3593
  require_cvc_recollection: nil,
1359
3594
  setup_future_usage: nil,
1360
3595
  statement_descriptor_suffix_kana: nil,
1361
3596
  statement_descriptor_suffix_kanji: nil,
3597
+ statement_details: nil,
1362
3598
  three_d_secure: nil
1363
3599
  )
3600
+ @capture_by = capture_by
3601
+ @capture_delay = capture_delay
1364
3602
  @capture_method = capture_method
1365
3603
  @cvc_token = cvc_token
1366
3604
  @installments = installments
1367
3605
  @mandate_options = mandate_options
1368
3606
  @moto = moto
1369
3607
  @network = network
3608
+ @payment_details = payment_details
3609
+ @request_decremental_authorization = request_decremental_authorization
1370
3610
  @request_extended_authorization = request_extended_authorization
1371
3611
  @request_incremental_authorization = request_incremental_authorization
1372
3612
  @request_multicapture = request_multicapture
1373
3613
  @request_overcapture = request_overcapture
3614
+ @request_partial_authorization = request_partial_authorization
3615
+ @request_reauthorization = request_reauthorization
1374
3616
  @request_three_d_secure = request_three_d_secure
1375
3617
  @require_cvc_recollection = require_cvc_recollection
1376
3618
  @setup_future_usage = setup_future_usage
1377
3619
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1378
3620
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3621
+ @statement_details = statement_details
1379
3622
  @three_d_secure = three_d_secure
1380
3623
  end
1381
3624
  end
1382
3625
 
1383
3626
  class CardPresent < ::Stripe::RequestParams
3627
+ class CaptureDelay < ::Stripe::RequestParams
3628
+ # Attribute for param field days
3629
+ attr_accessor :days
3630
+ # Attribute for param field hours
3631
+ attr_accessor :hours
3632
+
3633
+ def initialize(days: nil, hours: nil)
3634
+ @days = days
3635
+ @hours = hours
3636
+ end
3637
+ end
3638
+
3639
+ class PaymentDetails < ::Stripe::RequestParams
3640
+ class MoneyServices < ::Stripe::RequestParams
3641
+ class AccountFunding < ::Stripe::RequestParams
3642
+ # The category of digital asset being acquired through this account funding transaction.
3643
+ attr_accessor :digital_asset_category
3644
+
3645
+ def initialize(digital_asset_category: nil)
3646
+ @digital_asset_category = digital_asset_category
3647
+ end
3648
+ end
3649
+ # Payment method specific account funding transaction details.
3650
+ attr_accessor :account_funding
3651
+
3652
+ def initialize(account_funding: nil)
3653
+ @account_funding = account_funding
3654
+ end
3655
+ end
3656
+ # Money services details for payment method specific funding fields.
3657
+ attr_accessor :money_services
3658
+
3659
+ def initialize(money_services: nil)
3660
+ @money_services = money_services
3661
+ end
3662
+ end
3663
+
1384
3664
  class Routing < ::Stripe::RequestParams
1385
3665
  # Routing requested priority
1386
3666
  attr_accessor :requested_priority
@@ -1389,28 +3669,52 @@ module Stripe
1389
3669
  @requested_priority = requested_priority
1390
3670
  end
1391
3671
  end
3672
+ # Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
3673
+ #
3674
+ # If omitted, funds are captured before the authorization expires.
3675
+ attr_accessor :capture_by
3676
+ # The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
3677
+ #
3678
+ # You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
3679
+ attr_accessor :capture_delay
1392
3680
  # Controls when the funds are captured from the customer's account.
1393
3681
  #
1394
3682
  # 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.
1395
3683
  #
1396
3684
  # 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.
1397
3685
  attr_accessor :capture_method
3686
+ # Payment details for payment method specific funding transaction fields.
3687
+ attr_accessor :payment_details
1398
3688
  # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
1399
3689
  attr_accessor :request_extended_authorization
1400
3690
  # 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.
1401
3691
  attr_accessor :request_incremental_authorization_support
3692
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
3693
+ attr_accessor :request_multicapture
3694
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3695
+ attr_accessor :request_reauthorization
1402
3696
  # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1403
3697
  attr_accessor :routing
1404
3698
 
1405
3699
  def initialize(
3700
+ capture_by: nil,
3701
+ capture_delay: nil,
1406
3702
  capture_method: nil,
3703
+ payment_details: nil,
1407
3704
  request_extended_authorization: nil,
1408
3705
  request_incremental_authorization_support: nil,
3706
+ request_multicapture: nil,
3707
+ request_reauthorization: nil,
1409
3708
  routing: nil
1410
3709
  )
3710
+ @capture_by = capture_by
3711
+ @capture_delay = capture_delay
1411
3712
  @capture_method = capture_method
3713
+ @payment_details = payment_details
1412
3714
  @request_extended_authorization = request_extended_authorization
1413
3715
  @request_incremental_authorization_support = request_incremental_authorization_support
3716
+ @request_multicapture = request_multicapture
3717
+ @request_reauthorization = request_reauthorization
1414
3718
  @routing = routing
1415
3719
  end
1416
3720
  end
@@ -1440,6 +3744,44 @@ module Stripe
1440
3744
  end
1441
3745
 
1442
3746
  class Crypto < ::Stripe::RequestParams
3747
+ class AmountReconciliation < ::Stripe::RequestParams
3748
+ # Controls how crypto funding amounts are reconciled for the PaymentIntent.
3749
+ attr_accessor :type
3750
+
3751
+ def initialize(type: nil)
3752
+ @type = type
3753
+ end
3754
+ end
3755
+
3756
+ class DepositOptions < ::Stripe::RequestParams
3757
+ # 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).
3758
+ attr_accessor :networks
3759
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3760
+ attr_accessor :static_address
3761
+
3762
+ def initialize(networks: nil, static_address: nil)
3763
+ @networks = networks
3764
+ @static_address = static_address
3765
+ end
3766
+ end
3767
+
3768
+ class TransactionVerificationOptions < ::Stripe::RequestParams
3769
+ # The network on which the transaction was submitted.
3770
+ attr_accessor :network
3771
+ # The hash of the onchain transaction to verify.
3772
+ attr_accessor :transaction_hash
3773
+
3774
+ def initialize(network: nil, transaction_hash: nil)
3775
+ @network = network
3776
+ @transaction_hash = transaction_hash
3777
+ end
3778
+ end
3779
+ # Controls how crypto funding amounts are reconciled for this PaymentIntent.
3780
+ attr_accessor :amount_reconciliation
3781
+ # Specific configuration for this PaymentIntent when the mode is `deposit`.
3782
+ attr_accessor :deposit_options
3783
+ # The mode of the crypto payment.
3784
+ attr_accessor :mode
1443
3785
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1444
3786
  #
1445
3787
  # 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.
@@ -1450,9 +3792,21 @@ module Stripe
1450
3792
  #
1451
3793
  # 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`.
1452
3794
  attr_accessor :setup_future_usage
3795
+ # Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
3796
+ attr_accessor :transaction_verification_options
1453
3797
 
1454
- def initialize(setup_future_usage: nil)
3798
+ def initialize(
3799
+ amount_reconciliation: nil,
3800
+ deposit_options: nil,
3801
+ mode: nil,
3802
+ setup_future_usage: nil,
3803
+ transaction_verification_options: nil
3804
+ )
3805
+ @amount_reconciliation = amount_reconciliation
3806
+ @deposit_options = deposit_options
3807
+ @mode = mode
1455
3808
  @setup_future_usage = setup_future_usage
3809
+ @transaction_verification_options = transaction_verification_options
1456
3810
  end
1457
3811
  end
1458
3812
 
@@ -1520,7 +3874,60 @@ module Stripe
1520
3874
  end
1521
3875
  end
1522
3876
 
1523
- class Fpx < ::Stripe::RequestParams
3877
+ class Fpx < ::Stripe::RequestParams
3878
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3879
+ #
3880
+ # 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.
3881
+ #
3882
+ # 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.
3883
+ #
3884
+ # 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).
3885
+ #
3886
+ # 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`.
3887
+ attr_accessor :setup_future_usage
3888
+
3889
+ def initialize(setup_future_usage: nil)
3890
+ @setup_future_usage = setup_future_usage
3891
+ end
3892
+ end
3893
+
3894
+ class GiftCard < ::Stripe::RequestParams
3895
+ # Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
3896
+ attr_accessor :ignore_application_fee
3897
+ # Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
3898
+ attr_accessor :ignore_transfer_data
3899
+ # Request partial authorization on this PaymentIntent.
3900
+ attr_accessor :request_partial_authorization
3901
+
3902
+ def initialize(
3903
+ ignore_application_fee: nil,
3904
+ ignore_transfer_data: nil,
3905
+ request_partial_authorization: nil
3906
+ )
3907
+ @ignore_application_fee = ignore_application_fee
3908
+ @ignore_transfer_data = ignore_transfer_data
3909
+ @request_partial_authorization = request_partial_authorization
3910
+ end
3911
+ end
3912
+
3913
+ class Giropay < ::Stripe::RequestParams
3914
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3915
+ #
3916
+ # 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.
3917
+ #
3918
+ # 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.
3919
+ #
3920
+ # 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).
3921
+ #
3922
+ # 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`.
3923
+ attr_accessor :setup_future_usage
3924
+
3925
+ def initialize(setup_future_usage: nil)
3926
+ @setup_future_usage = setup_future_usage
3927
+ end
3928
+ end
3929
+
3930
+ class Gopay < ::Stripe::RequestParams
1524
3931
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1525
3932
  #
1526
3933
  # 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.
@@ -1537,7 +3944,7 @@ module Stripe
1537
3944
  end
1538
3945
  end
1539
3946
 
1540
- class Giropay < ::Stripe::RequestParams
3947
+ class Grabpay < ::Stripe::RequestParams
1541
3948
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1542
3949
  #
1543
3950
  # 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.
@@ -1554,7 +3961,11 @@ module Stripe
1554
3961
  end
1555
3962
  end
1556
3963
 
1557
- class Grabpay < ::Stripe::RequestParams
3964
+ class IdBankTransfer < ::Stripe::RequestParams
3965
+ # 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.
3966
+ attr_accessor :expires_after
3967
+ # 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.
3968
+ attr_accessor :expires_at
1558
3969
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1559
3970
  #
1560
3971
  # 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.
@@ -1566,7 +3977,9 @@ module Stripe
1566
3977
  # 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`.
1567
3978
  attr_accessor :setup_future_usage
1568
3979
 
1569
- def initialize(setup_future_usage: nil)
3980
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3981
+ @expires_after = expires_after
3982
+ @expires_at = expires_at
1570
3983
  @setup_future_usage = setup_future_usage
1571
3984
  end
1572
3985
  end
@@ -1677,6 +4090,939 @@ module Stripe
1677
4090
  @reference = reference
1678
4091
  end
1679
4092
  end
4093
+
4094
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
4095
+ class BusReservationDetail < ::Stripe::RequestParams
4096
+ class Arrival < ::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 arrival location.
4128
+ attr_accessor :address
4129
+ # Identifier name or reference for the arrival location.
4130
+ attr_accessor :arrival_location
4131
+
4132
+ def initialize(address: nil, arrival_location: nil)
4133
+ @address = address
4134
+ @arrival_location = arrival_location
4135
+ end
4136
+ end
4137
+
4138
+ class Departure < ::Stripe::RequestParams
4139
+ class Address < ::Stripe::RequestParams
4140
+ # The city or town.
4141
+ attr_accessor :city
4142
+ # The country in ISO 3166-1 alpha-2 format.
4143
+ attr_accessor :country
4144
+ # The postal code formatted according to country.
4145
+ attr_accessor :postal_code
4146
+ # The state, county, province, or region formatted according to country.
4147
+ attr_accessor :region
4148
+ # Line 1 of the street address.
4149
+ attr_accessor :street_address
4150
+ # Line 2 of the street address.
4151
+ attr_accessor :street_address2
4152
+
4153
+ def initialize(
4154
+ city: nil,
4155
+ country: nil,
4156
+ postal_code: nil,
4157
+ region: nil,
4158
+ street_address: nil,
4159
+ street_address2: nil
4160
+ )
4161
+ @city = city
4162
+ @country = country
4163
+ @postal_code = postal_code
4164
+ @region = region
4165
+ @street_address = street_address
4166
+ @street_address2 = street_address2
4167
+ end
4168
+ end
4169
+ # Address of the departure location.
4170
+ attr_accessor :address
4171
+ # Timestamp of departure.
4172
+ attr_accessor :departs_at
4173
+ # Identifier name or reference for the origin location.
4174
+ attr_accessor :departure_location
4175
+
4176
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4177
+ @address = address
4178
+ @departs_at = departs_at
4179
+ @departure_location = departure_location
4180
+ end
4181
+ end
4182
+
4183
+ class Insurance < ::Stripe::RequestParams
4184
+ # Insurance currency.
4185
+ attr_accessor :currency
4186
+ # Name of the company providing the insurance.
4187
+ attr_accessor :insurance_company_name
4188
+ # Type of insurance.
4189
+ attr_accessor :insurance_type
4190
+ # Price of insurance in cents.
4191
+ attr_accessor :price
4192
+
4193
+ def initialize(
4194
+ currency: nil,
4195
+ insurance_company_name: nil,
4196
+ insurance_type: nil,
4197
+ price: nil
4198
+ )
4199
+ @currency = currency
4200
+ @insurance_company_name = insurance_company_name
4201
+ @insurance_type = insurance_type
4202
+ @price = price
4203
+ end
4204
+ end
4205
+
4206
+ class Passenger < ::Stripe::RequestParams
4207
+ # The family name of the person.
4208
+ attr_accessor :family_name
4209
+ # The given name of the person.
4210
+ attr_accessor :given_name
4211
+
4212
+ def initialize(family_name: nil, given_name: nil)
4213
+ @family_name = family_name
4214
+ @given_name = given_name
4215
+ end
4216
+ end
4217
+ # Name of associated or partner company for the service.
4218
+ attr_accessor :affiliate_name
4219
+ # Arrival details.
4220
+ attr_accessor :arrival
4221
+ # Name of transportation company.
4222
+ attr_accessor :carrier_name
4223
+ # Currency.
4224
+ attr_accessor :currency
4225
+ # Departure details.
4226
+ attr_accessor :departure
4227
+ # List of insurances for this reservation.
4228
+ attr_accessor :insurances
4229
+ # List of passengers that this reservation applies to.
4230
+ attr_accessor :passengers
4231
+ # Price in cents.
4232
+ attr_accessor :price
4233
+ # Ticket class.
4234
+ attr_accessor :ticket_class
4235
+
4236
+ def initialize(
4237
+ affiliate_name: nil,
4238
+ arrival: nil,
4239
+ carrier_name: nil,
4240
+ currency: nil,
4241
+ departure: nil,
4242
+ insurances: nil,
4243
+ passengers: nil,
4244
+ price: nil,
4245
+ ticket_class: nil
4246
+ )
4247
+ @affiliate_name = affiliate_name
4248
+ @arrival = arrival
4249
+ @carrier_name = carrier_name
4250
+ @currency = currency
4251
+ @departure = departure
4252
+ @insurances = insurances
4253
+ @passengers = passengers
4254
+ @price = price
4255
+ @ticket_class = ticket_class
4256
+ end
4257
+ end
4258
+
4259
+ class EventReservationDetail < ::Stripe::RequestParams
4260
+ class Address < ::Stripe::RequestParams
4261
+ # The city or town.
4262
+ attr_accessor :city
4263
+ # The country in ISO 3166-1 alpha-2 format.
4264
+ attr_accessor :country
4265
+ # The postal code formatted according to country.
4266
+ attr_accessor :postal_code
4267
+ # The state, county, province, or region formatted according to country.
4268
+ attr_accessor :region
4269
+ # Line 1 of the street address.
4270
+ attr_accessor :street_address
4271
+ # Line 2 of the street address.
4272
+ attr_accessor :street_address2
4273
+
4274
+ def initialize(
4275
+ city: nil,
4276
+ country: nil,
4277
+ postal_code: nil,
4278
+ region: nil,
4279
+ street_address: nil,
4280
+ street_address2: nil
4281
+ )
4282
+ @city = city
4283
+ @country = country
4284
+ @postal_code = postal_code
4285
+ @region = region
4286
+ @street_address = street_address
4287
+ @street_address2 = street_address2
4288
+ end
4289
+ end
4290
+
4291
+ class Insurance < ::Stripe::RequestParams
4292
+ # Insurance currency.
4293
+ attr_accessor :currency
4294
+ # Name of the company providing the insurance.
4295
+ attr_accessor :insurance_company_name
4296
+ # Type of insurance.
4297
+ attr_accessor :insurance_type
4298
+ # Price of insurance in cents.
4299
+ attr_accessor :price
4300
+
4301
+ def initialize(
4302
+ currency: nil,
4303
+ insurance_company_name: nil,
4304
+ insurance_type: nil,
4305
+ price: nil
4306
+ )
4307
+ @currency = currency
4308
+ @insurance_company_name = insurance_company_name
4309
+ @insurance_type = insurance_type
4310
+ @price = price
4311
+ end
4312
+ end
4313
+ # Indicates if the tickets are digitally checked when entering the venue.
4314
+ attr_accessor :access_controlled_venue
4315
+ # Address of the event.
4316
+ attr_accessor :address
4317
+ # Name of associated or partner company for the service.
4318
+ attr_accessor :affiliate_name
4319
+ # End timestamp of the event.
4320
+ attr_accessor :ends_at
4321
+ # Company selling the ticket.
4322
+ attr_accessor :event_company_name
4323
+ # Name of the event.
4324
+ attr_accessor :event_name
4325
+ # Type of the event.
4326
+ attr_accessor :event_type
4327
+ # List of insurances for this event.
4328
+ attr_accessor :insurances
4329
+ # Start timestamp of the event.
4330
+ attr_accessor :starts_at
4331
+ # Name of the venue where the event takes place.
4332
+ attr_accessor :venue_name
4333
+
4334
+ def initialize(
4335
+ access_controlled_venue: nil,
4336
+ address: nil,
4337
+ affiliate_name: nil,
4338
+ ends_at: nil,
4339
+ event_company_name: nil,
4340
+ event_name: nil,
4341
+ event_type: nil,
4342
+ insurances: nil,
4343
+ starts_at: nil,
4344
+ venue_name: nil
4345
+ )
4346
+ @access_controlled_venue = access_controlled_venue
4347
+ @address = address
4348
+ @affiliate_name = affiliate_name
4349
+ @ends_at = ends_at
4350
+ @event_company_name = event_company_name
4351
+ @event_name = event_name
4352
+ @event_type = event_type
4353
+ @insurances = insurances
4354
+ @starts_at = starts_at
4355
+ @venue_name = venue_name
4356
+ end
4357
+ end
4358
+
4359
+ class FerryReservationDetail < ::Stripe::RequestParams
4360
+ class Arrival < ::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 arrival location.
4392
+ attr_accessor :address
4393
+ # Identifier name or reference for the arrival location.
4394
+ attr_accessor :arrival_location
4395
+
4396
+ def initialize(address: nil, arrival_location: nil)
4397
+ @address = address
4398
+ @arrival_location = arrival_location
4399
+ end
4400
+ end
4401
+
4402
+ class Departure < ::Stripe::RequestParams
4403
+ class Address < ::Stripe::RequestParams
4404
+ # The city or town.
4405
+ attr_accessor :city
4406
+ # The country in ISO 3166-1 alpha-2 format.
4407
+ attr_accessor :country
4408
+ # The postal code formatted according to country.
4409
+ attr_accessor :postal_code
4410
+ # The state, county, province, or region formatted according to country.
4411
+ attr_accessor :region
4412
+ # Line 1 of the street address.
4413
+ attr_accessor :street_address
4414
+ # Line 2 of the street address.
4415
+ attr_accessor :street_address2
4416
+
4417
+ def initialize(
4418
+ city: nil,
4419
+ country: nil,
4420
+ postal_code: nil,
4421
+ region: nil,
4422
+ street_address: nil,
4423
+ street_address2: nil
4424
+ )
4425
+ @city = city
4426
+ @country = country
4427
+ @postal_code = postal_code
4428
+ @region = region
4429
+ @street_address = street_address
4430
+ @street_address2 = street_address2
4431
+ end
4432
+ end
4433
+ # Address of the departure location.
4434
+ attr_accessor :address
4435
+ # Timestamp of departure.
4436
+ attr_accessor :departs_at
4437
+ # Identifier name or reference for the origin location.
4438
+ attr_accessor :departure_location
4439
+
4440
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4441
+ @address = address
4442
+ @departs_at = departs_at
4443
+ @departure_location = departure_location
4444
+ end
4445
+ end
4446
+
4447
+ class Insurance < ::Stripe::RequestParams
4448
+ # Insurance currency.
4449
+ attr_accessor :currency
4450
+ # Name of the company providing the insurance.
4451
+ attr_accessor :insurance_company_name
4452
+ # Type of insurance.
4453
+ attr_accessor :insurance_type
4454
+ # Price of insurance in cents.
4455
+ attr_accessor :price
4456
+
4457
+ def initialize(
4458
+ currency: nil,
4459
+ insurance_company_name: nil,
4460
+ insurance_type: nil,
4461
+ price: nil
4462
+ )
4463
+ @currency = currency
4464
+ @insurance_company_name = insurance_company_name
4465
+ @insurance_type = insurance_type
4466
+ @price = price
4467
+ end
4468
+ end
4469
+
4470
+ class Passenger < ::Stripe::RequestParams
4471
+ # The family name of the person.
4472
+ attr_accessor :family_name
4473
+ # The given name of the person.
4474
+ attr_accessor :given_name
4475
+
4476
+ def initialize(family_name: nil, given_name: nil)
4477
+ @family_name = family_name
4478
+ @given_name = given_name
4479
+ end
4480
+ end
4481
+ # Name of associated or partner company for the service.
4482
+ attr_accessor :affiliate_name
4483
+ # Arrival details.
4484
+ attr_accessor :arrival
4485
+ # Name of transportation company.
4486
+ attr_accessor :carrier_name
4487
+ # Currency.
4488
+ attr_accessor :currency
4489
+ # Departure details.
4490
+ attr_accessor :departure
4491
+ # List of insurances for this reservation.
4492
+ attr_accessor :insurances
4493
+ # List of passengers that this reservation applies to.
4494
+ attr_accessor :passengers
4495
+ # Price in cents.
4496
+ attr_accessor :price
4497
+ # Ticket class.
4498
+ attr_accessor :ticket_class
4499
+
4500
+ def initialize(
4501
+ affiliate_name: nil,
4502
+ arrival: nil,
4503
+ carrier_name: nil,
4504
+ currency: nil,
4505
+ departure: nil,
4506
+ insurances: nil,
4507
+ passengers: nil,
4508
+ price: nil,
4509
+ ticket_class: nil
4510
+ )
4511
+ @affiliate_name = affiliate_name
4512
+ @arrival = arrival
4513
+ @carrier_name = carrier_name
4514
+ @currency = currency
4515
+ @departure = departure
4516
+ @insurances = insurances
4517
+ @passengers = passengers
4518
+ @price = price
4519
+ @ticket_class = ticket_class
4520
+ end
4521
+ end
4522
+
4523
+ class Insurance < ::Stripe::RequestParams
4524
+ # Insurance currency.
4525
+ attr_accessor :currency
4526
+ # Name of the company providing the insurance.
4527
+ attr_accessor :insurance_company_name
4528
+ # Type of insurance
4529
+ attr_accessor :insurance_type
4530
+ # Price of insurance in cents.
4531
+ attr_accessor :price
4532
+
4533
+ def initialize(
4534
+ currency: nil,
4535
+ insurance_company_name: nil,
4536
+ insurance_type: nil,
4537
+ price: nil
4538
+ )
4539
+ @currency = currency
4540
+ @insurance_company_name = insurance_company_name
4541
+ @insurance_type = insurance_type
4542
+ @price = price
4543
+ end
4544
+ end
4545
+
4546
+ class MarketplaceSeller < ::Stripe::RequestParams
4547
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4548
+ # The city or town.
4549
+ attr_accessor :city
4550
+ # The country in ISO 3166-1 alpha-2 format.
4551
+ attr_accessor :country
4552
+ # The postal code formatted according to country.
4553
+ attr_accessor :postal_code
4554
+ # The state, county, province, or region formatted according to country.
4555
+ attr_accessor :region
4556
+ # Line 1 of the street address.
4557
+ attr_accessor :street_address
4558
+ # Line 2 of the street address.
4559
+ attr_accessor :street_address2
4560
+
4561
+ def initialize(
4562
+ city: nil,
4563
+ country: nil,
4564
+ postal_code: nil,
4565
+ region: nil,
4566
+ street_address: nil,
4567
+ street_address2: nil
4568
+ )
4569
+ @city = city
4570
+ @country = country
4571
+ @postal_code = postal_code
4572
+ @region = region
4573
+ @street_address = street_address
4574
+ @street_address2 = street_address2
4575
+ end
4576
+ end
4577
+ # The references to line items for purchases with multiple associated sub-sellers.
4578
+ attr_accessor :line_item_references
4579
+ # The address of the selling or delivering merchant.
4580
+ attr_accessor :marketplace_seller_address
4581
+ # The name of the marketplace seller.
4582
+ attr_accessor :marketplace_seller_name
4583
+ # The unique identifier for the marketplace seller.
4584
+ attr_accessor :marketplace_seller_reference
4585
+ # The number of transactions the sub-seller completed in the last 12 months.
4586
+ attr_accessor :number_of_transactions
4587
+ # The category of the product.
4588
+ attr_accessor :product_category
4589
+ # The date when the seller's account with the marketplace was last logged in.
4590
+ attr_accessor :seller_last_login_at
4591
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4592
+ attr_accessor :seller_rating
4593
+ # The date when the seller's account with the marketplace was created.
4594
+ attr_accessor :seller_registered_at
4595
+ # The date when the seller's account with the marketplace was last updated.
4596
+ attr_accessor :seller_updated_at
4597
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4598
+ attr_accessor :shipping_references
4599
+ # 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.
4600
+ attr_accessor :volume_of_transactions
4601
+
4602
+ def initialize(
4603
+ line_item_references: nil,
4604
+ marketplace_seller_address: nil,
4605
+ marketplace_seller_name: nil,
4606
+ marketplace_seller_reference: nil,
4607
+ number_of_transactions: nil,
4608
+ product_category: nil,
4609
+ seller_last_login_at: nil,
4610
+ seller_rating: nil,
4611
+ seller_registered_at: nil,
4612
+ seller_updated_at: nil,
4613
+ shipping_references: nil,
4614
+ volume_of_transactions: nil
4615
+ )
4616
+ @line_item_references = line_item_references
4617
+ @marketplace_seller_address = marketplace_seller_address
4618
+ @marketplace_seller_name = marketplace_seller_name
4619
+ @marketplace_seller_reference = marketplace_seller_reference
4620
+ @number_of_transactions = number_of_transactions
4621
+ @product_category = product_category
4622
+ @seller_last_login_at = seller_last_login_at
4623
+ @seller_rating = seller_rating
4624
+ @seller_registered_at = seller_registered_at
4625
+ @seller_updated_at = seller_updated_at
4626
+ @shipping_references = shipping_references
4627
+ @volume_of_transactions = volume_of_transactions
4628
+ end
4629
+ end
4630
+
4631
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4632
+ class Arrival < ::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 arrival location.
4664
+ attr_accessor :address
4665
+ # Identifier name or reference for the arrival location.
4666
+ attr_accessor :arrival_location
4667
+
4668
+ def initialize(address: nil, arrival_location: nil)
4669
+ @address = address
4670
+ @arrival_location = arrival_location
4671
+ end
4672
+ end
4673
+
4674
+ class Departure < ::Stripe::RequestParams
4675
+ class Address < ::Stripe::RequestParams
4676
+ # The city or town.
4677
+ attr_accessor :city
4678
+ # The country in ISO 3166-1 alpha-2 format.
4679
+ attr_accessor :country
4680
+ # The postal code formatted according to country.
4681
+ attr_accessor :postal_code
4682
+ # The state, county, province, or region formatted according to country.
4683
+ attr_accessor :region
4684
+ # Line 1 of the street address.
4685
+ attr_accessor :street_address
4686
+ # Line 2 of the street address.
4687
+ attr_accessor :street_address2
4688
+
4689
+ def initialize(
4690
+ city: nil,
4691
+ country: nil,
4692
+ postal_code: nil,
4693
+ region: nil,
4694
+ street_address: nil,
4695
+ street_address2: nil
4696
+ )
4697
+ @city = city
4698
+ @country = country
4699
+ @postal_code = postal_code
4700
+ @region = region
4701
+ @street_address = street_address
4702
+ @street_address2 = street_address2
4703
+ end
4704
+ end
4705
+ # Address of the departure location.
4706
+ attr_accessor :address
4707
+ # Timestamp of departure.
4708
+ attr_accessor :departs_at
4709
+ # Identifier name or reference for the origin location.
4710
+ attr_accessor :departure_location
4711
+
4712
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4713
+ @address = address
4714
+ @departs_at = departs_at
4715
+ @departure_location = departure_location
4716
+ end
4717
+ end
4718
+
4719
+ class Insurance < ::Stripe::RequestParams
4720
+ # Insurance currency.
4721
+ attr_accessor :currency
4722
+ # Name of the company providing the insurance.
4723
+ attr_accessor :insurance_company_name
4724
+ # Type of insurance.
4725
+ attr_accessor :insurance_type
4726
+ # Price of insurance in cents.
4727
+ attr_accessor :price
4728
+
4729
+ def initialize(
4730
+ currency: nil,
4731
+ insurance_company_name: nil,
4732
+ insurance_type: nil,
4733
+ price: nil
4734
+ )
4735
+ @currency = currency
4736
+ @insurance_company_name = insurance_company_name
4737
+ @insurance_type = insurance_type
4738
+ @price = price
4739
+ end
4740
+ end
4741
+
4742
+ class Passenger < ::Stripe::RequestParams
4743
+ # The family name of the person.
4744
+ attr_accessor :family_name
4745
+ # The given name of the person.
4746
+ attr_accessor :given_name
4747
+
4748
+ def initialize(family_name: nil, given_name: nil)
4749
+ @family_name = family_name
4750
+ @given_name = given_name
4751
+ end
4752
+ end
4753
+ # Name of associated or partner company for the service.
4754
+ attr_accessor :affiliate_name
4755
+ # Arrival details.
4756
+ attr_accessor :arrival
4757
+ # Name of transportation company.
4758
+ attr_accessor :carrier_name
4759
+ # Currency.
4760
+ attr_accessor :currency
4761
+ # Departure details.
4762
+ attr_accessor :departure
4763
+ # List of insurances for this reservation.
4764
+ attr_accessor :insurances
4765
+ # List of passengers that this reservation applies to.
4766
+ attr_accessor :passengers
4767
+ # Price in cents.
4768
+ attr_accessor :price
4769
+ # Ticket class.
4770
+ attr_accessor :ticket_class
4771
+
4772
+ def initialize(
4773
+ affiliate_name: nil,
4774
+ arrival: nil,
4775
+ carrier_name: nil,
4776
+ currency: nil,
4777
+ departure: nil,
4778
+ insurances: nil,
4779
+ passengers: nil,
4780
+ price: nil,
4781
+ ticket_class: nil
4782
+ )
4783
+ @affiliate_name = affiliate_name
4784
+ @arrival = arrival
4785
+ @carrier_name = carrier_name
4786
+ @currency = currency
4787
+ @departure = departure
4788
+ @insurances = insurances
4789
+ @passengers = passengers
4790
+ @price = price
4791
+ @ticket_class = ticket_class
4792
+ end
4793
+ end
4794
+
4795
+ class TrainReservationDetail < ::Stripe::RequestParams
4796
+ class Arrival < ::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 arrival location.
4828
+ attr_accessor :address
4829
+ # Identifier name or reference for the arrival location.
4830
+ attr_accessor :arrival_location
4831
+
4832
+ def initialize(address: nil, arrival_location: nil)
4833
+ @address = address
4834
+ @arrival_location = arrival_location
4835
+ end
4836
+ end
4837
+
4838
+ class Departure < ::Stripe::RequestParams
4839
+ class Address < ::Stripe::RequestParams
4840
+ # The city or town.
4841
+ attr_accessor :city
4842
+ # The country in ISO 3166-1 alpha-2 format.
4843
+ attr_accessor :country
4844
+ # The postal code formatted according to country.
4845
+ attr_accessor :postal_code
4846
+ # The state, county, province, or region formatted according to country.
4847
+ attr_accessor :region
4848
+ # Line 1 of the street address.
4849
+ attr_accessor :street_address
4850
+ # Line 2 of the street address.
4851
+ attr_accessor :street_address2
4852
+
4853
+ def initialize(
4854
+ city: nil,
4855
+ country: nil,
4856
+ postal_code: nil,
4857
+ region: nil,
4858
+ street_address: nil,
4859
+ street_address2: nil
4860
+ )
4861
+ @city = city
4862
+ @country = country
4863
+ @postal_code = postal_code
4864
+ @region = region
4865
+ @street_address = street_address
4866
+ @street_address2 = street_address2
4867
+ end
4868
+ end
4869
+ # Address of the departure location.
4870
+ attr_accessor :address
4871
+ # Timestamp of departure.
4872
+ attr_accessor :departs_at
4873
+ # Identifier name or reference for the origin location.
4874
+ attr_accessor :departure_location
4875
+
4876
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4877
+ @address = address
4878
+ @departs_at = departs_at
4879
+ @departure_location = departure_location
4880
+ end
4881
+ end
4882
+
4883
+ class Insurance < ::Stripe::RequestParams
4884
+ # Insurance currency.
4885
+ attr_accessor :currency
4886
+ # Name of the company providing the insurance.
4887
+ attr_accessor :insurance_company_name
4888
+ # Type of insurance.
4889
+ attr_accessor :insurance_type
4890
+ # Price of insurance in cents.
4891
+ attr_accessor :price
4892
+
4893
+ def initialize(
4894
+ currency: nil,
4895
+ insurance_company_name: nil,
4896
+ insurance_type: nil,
4897
+ price: nil
4898
+ )
4899
+ @currency = currency
4900
+ @insurance_company_name = insurance_company_name
4901
+ @insurance_type = insurance_type
4902
+ @price = price
4903
+ end
4904
+ end
4905
+
4906
+ class Passenger < ::Stripe::RequestParams
4907
+ # The family name of the person.
4908
+ attr_accessor :family_name
4909
+ # The given name of the person.
4910
+ attr_accessor :given_name
4911
+
4912
+ def initialize(family_name: nil, given_name: nil)
4913
+ @family_name = family_name
4914
+ @given_name = given_name
4915
+ end
4916
+ end
4917
+ # Name of associated or partner company for the service.
4918
+ attr_accessor :affiliate_name
4919
+ # Arrival details.
4920
+ attr_accessor :arrival
4921
+ # Name of transportation company.
4922
+ attr_accessor :carrier_name
4923
+ # Currency.
4924
+ attr_accessor :currency
4925
+ # Departure details.
4926
+ attr_accessor :departure
4927
+ # List of insurances for this reservation.
4928
+ attr_accessor :insurances
4929
+ # List of passengers that this reservation applies to.
4930
+ attr_accessor :passengers
4931
+ # Price in cents.
4932
+ attr_accessor :price
4933
+ # Ticket class.
4934
+ attr_accessor :ticket_class
4935
+
4936
+ def initialize(
4937
+ affiliate_name: nil,
4938
+ arrival: nil,
4939
+ carrier_name: nil,
4940
+ currency: nil,
4941
+ departure: nil,
4942
+ insurances: nil,
4943
+ passengers: nil,
4944
+ price: nil,
4945
+ ticket_class: nil
4946
+ )
4947
+ @affiliate_name = affiliate_name
4948
+ @arrival = arrival
4949
+ @carrier_name = carrier_name
4950
+ @currency = currency
4951
+ @departure = departure
4952
+ @insurances = insurances
4953
+ @passengers = passengers
4954
+ @price = price
4955
+ @ticket_class = ticket_class
4956
+ end
4957
+ end
4958
+
4959
+ class Voucher < ::Stripe::RequestParams
4960
+ # Name of associated or partner company for this voucher.
4961
+ attr_accessor :affiliate_name
4962
+ # The voucher validity end time.
4963
+ attr_accessor :ends_at
4964
+ # The voucher validity start time.
4965
+ attr_accessor :starts_at
4966
+ # The issuer or provider of this voucher.
4967
+ attr_accessor :voucher_company
4968
+ # The name or reference to identify the voucher.
4969
+ attr_accessor :voucher_name
4970
+ # The type of this voucher.
4971
+ attr_accessor :voucher_type
4972
+
4973
+ def initialize(
4974
+ affiliate_name: nil,
4975
+ ends_at: nil,
4976
+ starts_at: nil,
4977
+ voucher_company: nil,
4978
+ voucher_name: nil,
4979
+ voucher_type: nil
4980
+ )
4981
+ @affiliate_name = affiliate_name
4982
+ @ends_at = ends_at
4983
+ @starts_at = starts_at
4984
+ @voucher_company = voucher_company
4985
+ @voucher_name = voucher_name
4986
+ @voucher_type = voucher_type
4987
+ end
4988
+ end
4989
+ # Supplementary bus reservation details.
4990
+ attr_accessor :bus_reservation_details
4991
+ # Supplementary event reservation details.
4992
+ attr_accessor :event_reservation_details
4993
+ # Supplementary ferry reservation details.
4994
+ attr_accessor :ferry_reservation_details
4995
+ # Supplementary insurance details.
4996
+ attr_accessor :insurances
4997
+ # Supplementary marketplace seller details.
4998
+ attr_accessor :marketplace_sellers
4999
+ # Supplementary round trip reservation details.
5000
+ attr_accessor :round_trip_reservation_details
5001
+ # Supplementary train reservation details.
5002
+ attr_accessor :train_reservation_details
5003
+ # Voucher details, such as a gift card or discount code.
5004
+ attr_accessor :vouchers
5005
+
5006
+ def initialize(
5007
+ bus_reservation_details: nil,
5008
+ event_reservation_details: nil,
5009
+ ferry_reservation_details: nil,
5010
+ insurances: nil,
5011
+ marketplace_sellers: nil,
5012
+ round_trip_reservation_details: nil,
5013
+ train_reservation_details: nil,
5014
+ vouchers: nil
5015
+ )
5016
+ @bus_reservation_details = bus_reservation_details
5017
+ @event_reservation_details = event_reservation_details
5018
+ @ferry_reservation_details = ferry_reservation_details
5019
+ @insurances = insurances
5020
+ @marketplace_sellers = marketplace_sellers
5021
+ @round_trip_reservation_details = round_trip_reservation_details
5022
+ @train_reservation_details = train_reservation_details
5023
+ @vouchers = vouchers
5024
+ end
5025
+ end
1680
5026
  # Controls when the funds are captured from the customer's account.
1681
5027
  #
1682
5028
  # 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.
@@ -1699,19 +5045,23 @@ module Stripe
1699
5045
  attr_accessor :setup_future_usage
1700
5046
  # Subscription details if setting up or charging a subscription.
1701
5047
  attr_accessor :subscriptions
5048
+ # Supplementary Purchase Data for the corresponding Klarna payment
5049
+ attr_accessor :supplementary_purchase_data
1702
5050
 
1703
5051
  def initialize(
1704
5052
  capture_method: nil,
1705
5053
  on_demand: nil,
1706
5054
  preferred_locale: nil,
1707
5055
  setup_future_usage: nil,
1708
- subscriptions: nil
5056
+ subscriptions: nil,
5057
+ supplementary_purchase_data: nil
1709
5058
  )
1710
5059
  @capture_method = capture_method
1711
5060
  @on_demand = on_demand
1712
5061
  @preferred_locale = preferred_locale
1713
5062
  @setup_future_usage = setup_future_usage
1714
5063
  @subscriptions = subscriptions
5064
+ @supplementary_purchase_data = supplementary_purchase_data
1715
5065
  end
1716
5066
  end
1717
5067
 
@@ -1981,12 +5331,65 @@ module Stripe
1981
5331
  end
1982
5332
 
1983
5333
  class Paypal < ::Stripe::RequestParams
5334
+ class LineItem < ::Stripe::RequestParams
5335
+ class Tax < ::Stripe::RequestParams
5336
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
5337
+ attr_accessor :amount
5338
+ # The tax behavior for the line item.
5339
+ attr_accessor :behavior
5340
+
5341
+ def initialize(amount: nil, behavior: nil)
5342
+ @amount = amount
5343
+ @behavior = behavior
5344
+ end
5345
+ end
5346
+ # Type of the line item.
5347
+ attr_accessor :category
5348
+ # Description of the line item.
5349
+ attr_accessor :description
5350
+ # Descriptive name of the line item.
5351
+ attr_accessor :name
5352
+ # Quantity of the line item. Must be a positive number.
5353
+ attr_accessor :quantity
5354
+ # Client facing stock keeping unit, article number or similar.
5355
+ attr_accessor :sku
5356
+ # The Stripe account ID of the connected account that sells the item.
5357
+ attr_accessor :sold_by
5358
+ # The tax information for the line item.
5359
+ attr_accessor :tax
5360
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
5361
+ attr_accessor :unit_amount
5362
+
5363
+ def initialize(
5364
+ category: nil,
5365
+ description: nil,
5366
+ name: nil,
5367
+ quantity: nil,
5368
+ sku: nil,
5369
+ sold_by: nil,
5370
+ tax: nil,
5371
+ unit_amount: nil
5372
+ )
5373
+ @category = category
5374
+ @description = description
5375
+ @name = name
5376
+ @quantity = quantity
5377
+ @sku = sku
5378
+ @sold_by = sold_by
5379
+ @tax = tax
5380
+ @unit_amount = unit_amount
5381
+ end
5382
+ end
1984
5383
  # Controls when the funds will be captured from the customer's account.
1985
5384
  attr_accessor :capture_method
5385
+ # The line items purchased by the customer.
5386
+ attr_accessor :line_items
1986
5387
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1987
5388
  attr_accessor :preferred_locale
1988
5389
  # 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.
1989
5390
  attr_accessor :reference
5391
+ # 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.
5392
+ attr_accessor :reference_id
1990
5393
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1991
5394
  attr_accessor :risk_correlation_id
1992
5395
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1999,19 +5402,49 @@ module Stripe
1999
5402
  #
2000
5403
  # 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`.
2001
5404
  attr_accessor :setup_future_usage
5405
+ # 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.
5406
+ attr_accessor :subsellers
2002
5407
 
2003
5408
  def initialize(
2004
5409
  capture_method: nil,
5410
+ line_items: nil,
2005
5411
  preferred_locale: nil,
2006
5412
  reference: nil,
5413
+ reference_id: nil,
2007
5414
  risk_correlation_id: nil,
2008
- setup_future_usage: nil
5415
+ setup_future_usage: nil,
5416
+ subsellers: nil
2009
5417
  )
2010
5418
  @capture_method = capture_method
5419
+ @line_items = line_items
2011
5420
  @preferred_locale = preferred_locale
2012
5421
  @reference = reference
5422
+ @reference_id = reference_id
2013
5423
  @risk_correlation_id = risk_correlation_id
2014
5424
  @setup_future_usage = setup_future_usage
5425
+ @subsellers = subsellers
5426
+ end
5427
+ end
5428
+
5429
+ class Paypay < ::Stripe::RequestParams
5430
+ # Controls when the funds are captured from the customer's account.
5431
+ #
5432
+ # 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.
5433
+ #
5434
+ # 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.
5435
+ attr_accessor :capture_method
5436
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5437
+ #
5438
+ # 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.
5439
+ #
5440
+ # 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.
5441
+ #
5442
+ # 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).
5443
+ attr_accessor :setup_future_usage
5444
+
5445
+ def initialize(capture_method: nil, setup_future_usage: nil)
5446
+ @capture_method = capture_method
5447
+ @setup_future_usage = setup_future_usage
2015
5448
  end
2016
5449
  end
2017
5450
 
@@ -2153,6 +5586,25 @@ module Stripe
2153
5586
  end
2154
5587
  end
2155
5588
 
5589
+ class Qris < ::Stripe::RequestParams
5590
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5591
+ #
5592
+ # 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.
5593
+ #
5594
+ # 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.
5595
+ #
5596
+ # 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).
5597
+ #
5598
+ # 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`.
5599
+ attr_accessor :setup_future_usage
5600
+
5601
+ def initialize(setup_future_usage: nil)
5602
+ @setup_future_usage = setup_future_usage
5603
+ end
5604
+ end
5605
+
5606
+ class Rechnung < ::Stripe::RequestParams; end
5607
+
2156
5608
  class RevolutPay < ::Stripe::RequestParams
2157
5609
  # Controls when the funds are captured from the customer's account.
2158
5610
  #
@@ -2263,6 +5715,23 @@ module Stripe
2263
5715
  end
2264
5716
  end
2265
5717
 
5718
+ class Shopeepay < ::Stripe::RequestParams
5719
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5720
+ #
5721
+ # 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.
5722
+ #
5723
+ # 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.
5724
+ #
5725
+ # 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).
5726
+ #
5727
+ # 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`.
5728
+ attr_accessor :setup_future_usage
5729
+
5730
+ def initialize(setup_future_usage: nil)
5731
+ @setup_future_usage = setup_future_usage
5732
+ end
5733
+ end
5734
+
2266
5735
  class Sofort < ::Stripe::RequestParams
2267
5736
  # Language shown to the payer on redirect.
2268
5737
  attr_accessor :preferred_language
@@ -2283,6 +5752,34 @@ module Stripe
2283
5752
  end
2284
5753
  end
2285
5754
 
5755
+ class StripeBalance < ::Stripe::RequestParams
5756
+ class MandateOptions < ::Stripe::RequestParams
5757
+ # The ID of the Stripe Balance Debit Agreement used for this mandate.
5758
+ attr_accessor :stripe_balance_debit_agreement
5759
+
5760
+ def initialize(stripe_balance_debit_agreement: nil)
5761
+ @stripe_balance_debit_agreement = stripe_balance_debit_agreement
5762
+ end
5763
+ end
5764
+ # Additional fields for mandate creation.
5765
+ attr_accessor :mandate_options
5766
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5767
+ #
5768
+ # 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.
5769
+ #
5770
+ # 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.
5771
+ #
5772
+ # 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).
5773
+ #
5774
+ # 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`.
5775
+ attr_accessor :setup_future_usage
5776
+
5777
+ def initialize(mandate_options: nil, setup_future_usage: nil)
5778
+ @mandate_options = mandate_options
5779
+ @setup_future_usage = setup_future_usage
5780
+ end
5781
+ end
5782
+
2286
5783
  class Sunbit < ::Stripe::RequestParams
2287
5784
  # Controls when the funds are captured from the customer's account.
2288
5785
  #
@@ -2376,13 +5873,27 @@ module Stripe
2376
5873
  class Filters < ::Stripe::RequestParams
2377
5874
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2378
5875
  attr_accessor :account_subcategories
5876
+ # ID of the institution to use to filter for selectable accounts.
5877
+ attr_accessor :institution
2379
5878
 
2380
- def initialize(account_subcategories: nil)
5879
+ def initialize(account_subcategories: nil, institution: nil)
2381
5880
  @account_subcategories = account_subcategories
5881
+ @institution = institution
5882
+ end
5883
+ end
5884
+
5885
+ class ManualEntry < ::Stripe::RequestParams
5886
+ # Settings for configuring manual entry of account details.
5887
+ attr_accessor :mode
5888
+
5889
+ def initialize(mode: nil)
5890
+ @mode = mode
2382
5891
  end
2383
5892
  end
2384
5893
  # Provide filters for the linked accounts that the customer can select for the payment method.
2385
5894
  attr_accessor :filters
5895
+ # Customize manual entry behavior
5896
+ attr_accessor :manual_entry
2386
5897
  # 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`.
2387
5898
  attr_accessor :permissions
2388
5899
  # List of data features that you would like to retrieve upon account creation.
@@ -2390,8 +5901,15 @@ module Stripe
2390
5901
  # 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.
2391
5902
  attr_accessor :return_url
2392
5903
 
2393
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5904
+ def initialize(
5905
+ filters: nil,
5906
+ manual_entry: nil,
5907
+ permissions: nil,
5908
+ prefetch: nil,
5909
+ return_url: nil
5910
+ )
2394
5911
  @filters = filters
5912
+ @manual_entry = manual_entry
2395
5913
  @permissions = permissions
2396
5914
  @prefetch = prefetch
2397
5915
  @return_url = return_url
@@ -2457,9 +5975,62 @@ module Stripe
2457
5975
  end
2458
5976
  end
2459
5977
 
5978
+ class Vipps < ::Stripe::RequestParams
5979
+ class PaymentDetails < ::Stripe::RequestParams
5980
+ class MoneyServices < ::Stripe::RequestParams
5981
+ class AccountFunding < ::Stripe::RequestParams
5982
+ # The category of digital asset being acquired through this account funding transaction.
5983
+ attr_accessor :digital_asset_category
5984
+
5985
+ def initialize(digital_asset_category: nil)
5986
+ @digital_asset_category = digital_asset_category
5987
+ end
5988
+ end
5989
+ # Payment method specific account funding transaction details.
5990
+ attr_accessor :account_funding
5991
+
5992
+ def initialize(account_funding: nil)
5993
+ @account_funding = account_funding
5994
+ end
5995
+ end
5996
+ # Money services details for payment method specific funding fields.
5997
+ attr_accessor :money_services
5998
+
5999
+ def initialize(money_services: nil)
6000
+ @money_services = money_services
6001
+ end
6002
+ end
6003
+ # Controls when the funds are captured from the customer's account.
6004
+ #
6005
+ # 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.
6006
+ #
6007
+ # 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.
6008
+ attr_accessor :capture_method
6009
+ # Payment details for payment method specific funding transaction fields.
6010
+ attr_accessor :payment_details
6011
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
6012
+ #
6013
+ # 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.
6014
+ #
6015
+ # 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.
6016
+ #
6017
+ # 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).
6018
+ #
6019
+ # 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`.
6020
+ attr_accessor :setup_future_usage
6021
+
6022
+ def initialize(capture_method: nil, payment_details: nil, setup_future_usage: nil)
6023
+ @capture_method = capture_method
6024
+ @payment_details = payment_details
6025
+ @setup_future_usage = setup_future_usage
6026
+ end
6027
+ end
6028
+
2460
6029
  class WechatPay < ::Stripe::RequestParams
2461
6030
  # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
2462
6031
  attr_accessor :app_id
6032
+ # The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
6033
+ attr_accessor :buyer_id
2463
6034
  # The client type that the end customer will pay from
2464
6035
  attr_accessor :client
2465
6036
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2473,8 +6044,9 @@ module Stripe
2473
6044
  # 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`.
2474
6045
  attr_accessor :setup_future_usage
2475
6046
 
2476
- def initialize(app_id: nil, client: nil, setup_future_usage: nil)
6047
+ def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
2477
6048
  @app_id = app_id
6049
+ @buyer_id = buyer_id
2478
6050
  @client = client
2479
6051
  @setup_future_usage = setup_future_usage
2480
6052
  end
@@ -2536,10 +6108,16 @@ module Stripe
2536
6108
  attr_accessor :eps
2537
6109
  # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
2538
6110
  attr_accessor :fpx
6111
+ # If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
6112
+ attr_accessor :gift_card
2539
6113
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2540
6114
  attr_accessor :giropay
6115
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
6116
+ attr_accessor :gopay
2541
6117
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2542
6118
  attr_accessor :grabpay
6119
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
6120
+ attr_accessor :id_bank_transfer
2543
6121
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2544
6122
  attr_accessor :ideal
2545
6123
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2576,12 +6154,18 @@ module Stripe
2576
6154
  attr_accessor :paynow
2577
6155
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2578
6156
  attr_accessor :paypal
6157
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
6158
+ attr_accessor :paypay
2579
6159
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
2580
6160
  attr_accessor :payto
2581
6161
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2582
6162
  attr_accessor :pix
2583
6163
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2584
6164
  attr_accessor :promptpay
6165
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
6166
+ attr_accessor :qris
6167
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
6168
+ attr_accessor :rechnung
2585
6169
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2586
6170
  attr_accessor :revolut_pay
2587
6171
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2592,8 +6176,12 @@ module Stripe
2592
6176
  attr_accessor :scalapay
2593
6177
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2594
6178
  attr_accessor :sepa_debit
6179
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
6180
+ attr_accessor :shopeepay
2595
6181
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2596
6182
  attr_accessor :sofort
6183
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
6184
+ attr_accessor :stripe_balance
2597
6185
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
2598
6186
  attr_accessor :sunbit
2599
6187
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -2604,6 +6192,8 @@ module Stripe
2604
6192
  attr_accessor :upi
2605
6193
  # If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
2606
6194
  attr_accessor :us_bank_account
6195
+ # If this is a `Vipps` PaymentMethod, this sub-hash contains details about the Vipps payment method options.
6196
+ attr_accessor :vipps
2607
6197
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
2608
6198
  attr_accessor :wechat_pay
2609
6199
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
@@ -2630,8 +6220,11 @@ module Stripe
2630
6220
  customer_balance: nil,
2631
6221
  eps: nil,
2632
6222
  fpx: nil,
6223
+ gift_card: nil,
2633
6224
  giropay: nil,
6225
+ gopay: nil,
2634
6226
  grabpay: nil,
6227
+ id_bank_transfer: nil,
2635
6228
  ideal: nil,
2636
6229
  interac_present: nil,
2637
6230
  kakao_pay: nil,
@@ -2650,20 +6243,26 @@ module Stripe
2650
6243
  payco: nil,
2651
6244
  paynow: nil,
2652
6245
  paypal: nil,
6246
+ paypay: nil,
2653
6247
  payto: nil,
2654
6248
  pix: nil,
2655
6249
  promptpay: nil,
6250
+ qris: nil,
6251
+ rechnung: nil,
2656
6252
  revolut_pay: nil,
2657
6253
  samsung_pay: nil,
2658
6254
  satispay: nil,
2659
6255
  scalapay: nil,
2660
6256
  sepa_debit: nil,
6257
+ shopeepay: nil,
2661
6258
  sofort: nil,
6259
+ stripe_balance: nil,
2662
6260
  sunbit: nil,
2663
6261
  swish: nil,
2664
6262
  twint: nil,
2665
6263
  upi: nil,
2666
6264
  us_bank_account: nil,
6265
+ vipps: nil,
2667
6266
  wechat_pay: nil,
2668
6267
  zip: nil
2669
6268
  )
@@ -2687,8 +6286,11 @@ module Stripe
2687
6286
  @customer_balance = customer_balance
2688
6287
  @eps = eps
2689
6288
  @fpx = fpx
6289
+ @gift_card = gift_card
2690
6290
  @giropay = giropay
6291
+ @gopay = gopay
2691
6292
  @grabpay = grabpay
6293
+ @id_bank_transfer = id_bank_transfer
2692
6294
  @ideal = ideal
2693
6295
  @interac_present = interac_present
2694
6296
  @kakao_pay = kakao_pay
@@ -2707,20 +6309,26 @@ module Stripe
2707
6309
  @payco = payco
2708
6310
  @paynow = paynow
2709
6311
  @paypal = paypal
6312
+ @paypay = paypay
2710
6313
  @payto = payto
2711
6314
  @pix = pix
2712
6315
  @promptpay = promptpay
6316
+ @qris = qris
6317
+ @rechnung = rechnung
2713
6318
  @revolut_pay = revolut_pay
2714
6319
  @samsung_pay = samsung_pay
2715
6320
  @satispay = satispay
2716
6321
  @scalapay = scalapay
2717
6322
  @sepa_debit = sepa_debit
6323
+ @shopeepay = shopeepay
2718
6324
  @sofort = sofort
6325
+ @stripe_balance = stripe_balance
2719
6326
  @sunbit = sunbit
2720
6327
  @swish = swish
2721
6328
  @twint = twint
2722
6329
  @upi = upi
2723
6330
  @us_bank_account = us_bank_account
6331
+ @vipps = vipps
2724
6332
  @wechat_pay = wechat_pay
2725
6333
  @zip = zip
2726
6334
  end
@@ -2788,12 +6396,16 @@ module Stripe
2788
6396
  @tracking_number = tracking_number
2789
6397
  end
2790
6398
  end
6399
+ # Allocated Funds configuration for this PaymentIntent.
6400
+ attr_accessor :allocated_funds
2791
6401
  # 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`.
2792
6402
  attr_accessor :allowed_payment_method_types
2793
6403
  # Provides industry-specific information about the amount.
2794
6404
  attr_accessor :amount_details
2795
6405
  # Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
2796
6406
  attr_accessor :amount_to_confirm
6407
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
6408
+ attr_accessor :application_fee_amount
2797
6409
  # Controls when the funds will be captured from the customer's account.
2798
6410
  attr_accessor :capture_method
2799
6411
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -2806,6 +6418,8 @@ module Stripe
2806
6418
  attr_accessor :excluded_payment_method_types
2807
6419
  # Specifies which fields in the response should be expanded.
2808
6420
  attr_accessor :expand
6421
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
6422
+ attr_accessor :fx_quote
2809
6423
  # Automations to be run during the PaymentIntent lifecycle
2810
6424
  attr_accessor :hooks
2811
6425
  # ID of the mandate that's used for this payment.
@@ -2851,14 +6465,17 @@ module Stripe
2851
6465
  attr_accessor :use_stripe_sdk
2852
6466
 
2853
6467
  def initialize(
6468
+ allocated_funds: nil,
2854
6469
  allowed_payment_method_types: nil,
2855
6470
  amount_details: nil,
2856
6471
  amount_to_confirm: nil,
6472
+ application_fee_amount: nil,
2857
6473
  capture_method: nil,
2858
6474
  confirmation_token: nil,
2859
6475
  error_on_requires_action: nil,
2860
6476
  excluded_payment_method_types: nil,
2861
6477
  expand: nil,
6478
+ fx_quote: nil,
2862
6479
  hooks: nil,
2863
6480
  mandate: nil,
2864
6481
  mandate_data: nil,
@@ -2875,14 +6492,17 @@ module Stripe
2875
6492
  shipping: nil,
2876
6493
  use_stripe_sdk: nil
2877
6494
  )
6495
+ @allocated_funds = allocated_funds
2878
6496
  @allowed_payment_method_types = allowed_payment_method_types
2879
6497
  @amount_details = amount_details
2880
6498
  @amount_to_confirm = amount_to_confirm
6499
+ @application_fee_amount = application_fee_amount
2881
6500
  @capture_method = capture_method
2882
6501
  @confirmation_token = confirmation_token
2883
6502
  @error_on_requires_action = error_on_requires_action
2884
6503
  @excluded_payment_method_types = excluded_payment_method_types
2885
6504
  @expand = expand
6505
+ @fx_quote = fx_quote
2886
6506
  @hooks = hooks
2887
6507
  @mandate = mandate
2888
6508
  @mandate_data = mandate_data