stripe 19.2.0 → 19.3.0.pre.alpha.1

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