stripe 19.3.0 → 19.4.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1354) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +38 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +90 -0
  5. data/lib/stripe/event_types.rb +1328 -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_money_manager_capability_status_updated_event.rb +63 -0
  248. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_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_debit_dispute_failed_event.rb +44 -0
  320. data/lib/stripe/events/v2_money_management_debit_dispute_submitted_event.rb +44 -0
  321. data/lib/stripe/events/v2_money_management_debit_dispute_succeeded_event.rb +44 -0
  322. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  323. data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
  324. data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
  325. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  326. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  327. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  328. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  329. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  330. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  331. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  332. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  333. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  334. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  335. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  336. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  337. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  338. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  339. data/lib/stripe/events/v2_money_management_outbound_payment_under_review_event.rb +44 -0
  340. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  341. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  342. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  343. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  344. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  345. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  346. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  347. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  348. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  349. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  350. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  351. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  352. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  353. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  354. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  355. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  356. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  357. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  358. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  359. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  360. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  361. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
  362. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  363. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  364. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  365. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  366. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  367. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -0
  368. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  369. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  370. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  371. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  372. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  373. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +61 -0
  374. data/lib/stripe/events/v2_payments_off_session_payment_paused_event.rb +44 -0
  375. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  376. data/lib/stripe/events/v2_payments_off_session_payment_resumed_event.rb +44 -0
  377. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  378. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  379. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  380. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  381. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  382. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  383. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  384. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  385. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  386. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  387. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  388. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  389. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  390. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  391. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  392. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  393. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +88 -0
  394. data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
  395. data/lib/stripe/object_types.rb +138 -0
  396. data/lib/stripe/params/account_create_params.rb +461 -2
  397. data/lib/stripe/params/account_link_create_params.rb +4 -1
  398. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  399. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  401. data/lib/stripe/params/account_person_create_params.rb +60 -0
  402. data/lib/stripe/params/account_person_update_params.rb +60 -0
  403. data/lib/stripe/params/account_session_create_params.rb +343 -1
  404. data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
  405. data/lib/stripe/params/account_update_params.rb +423 -1
  406. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  407. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  408. data/lib/stripe/params/billing/alert_create_params.rb +264 -1
  409. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  410. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  411. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  412. data/lib/stripe/params/billing/credit_grant_create_params.rb +48 -2
  413. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  414. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -0
  415. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  416. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  417. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  418. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  419. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  420. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  421. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  422. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  423. data/lib/stripe/params/charge_capture_params.rb +1743 -0
  424. data/lib/stripe/params/charge_update_params.rb +1743 -0
  425. data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
  426. data/lib/stripe/params/checkout/session_create_params.rb +568 -5
  427. data/lib/stripe/params/checkout/session_update_params.rb +176 -1
  428. data/lib/stripe/params/confirmation_token_create_params.rb +96 -0
  429. data/lib/stripe/params/coupon_create_params.rb +47 -1
  430. data/lib/stripe/params/crypto/customer_consumer_wallet_list_params.rb +24 -0
  431. data/lib/stripe/params/crypto/customer_payment_token_list_params.rb +24 -0
  432. data/lib/stripe/params/crypto/customer_retrieve_params.rb +15 -0
  433. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +56 -0
  434. data/lib/stripe/params/crypto/onramp_session_create_params.rb +122 -0
  435. data/lib/stripe/params/crypto/onramp_session_list_params.rb +62 -0
  436. data/lib/stripe/params/crypto/onramp_session_quote_params.rb +15 -0
  437. data/lib/stripe/params/crypto/onramp_session_retrieve_params.rb +15 -0
  438. data/lib/stripe/params/crypto/onramp_transaction_limits_retrieve_params.rb +33 -0
  439. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  440. data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
  441. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +168 -0
  442. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
  443. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  444. data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
  445. data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
  446. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  447. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +216 -0
  448. data/lib/stripe/params/dispute_update_params.rb +14 -1
  449. data/lib/stripe/params/external_account_create_params.rb +134 -0
  450. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  451. data/lib/stripe/params/external_account_list_params.rb +25 -0
  452. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  453. data/lib/stripe/params/external_account_update_params.rb +91 -0
  454. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  455. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  457. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  458. data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
  459. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
  460. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
  461. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
  462. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
  463. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  464. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  465. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  466. data/lib/stripe/params/gift_card_activate_params.rb +30 -0
  467. data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
  468. data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
  469. data/lib/stripe/params/gift_card_create_params.rb +28 -0
  470. data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
  471. data/lib/stripe/params/gift_card_reload_params.rb +22 -0
  472. data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
  473. data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
  474. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  475. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  476. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  477. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  478. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  479. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  480. data/lib/stripe/params/identity/verification_session_update_params.rb +11 -1
  481. data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
  482. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  483. data/lib/stripe/params/invoice_create_params.rb +98 -3
  484. data/lib/stripe/params/invoice_create_preview_params.rb +1365 -9
  485. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  486. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  487. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  488. data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
  489. data/lib/stripe/params/invoice_list_params.rb +4 -0
  490. data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
  491. data/lib/stripe/params/invoice_update_params.rb +98 -3
  492. data/lib/stripe/params/issuing/authorization_capture_params.rb +13 -0
  493. data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
  494. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  495. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  496. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  497. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  498. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  499. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  500. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  501. data/lib/stripe/params/issuing/credit_underwriting_record_report_offer_acceptance_params.rb +15 -0
  502. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  503. data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
  504. data/lib/stripe/params/issuing/dispute_provisional_credit_params.rb +21 -0
  505. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  506. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  507. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
  508. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
  509. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
  510. data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
  511. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  512. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  513. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  514. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  515. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  516. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  517. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +21 -0
  518. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  519. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  520. data/lib/stripe/params/mandate_list_params.rb +39 -0
  521. data/lib/stripe/params/margin_create_params.rb +25 -0
  522. data/lib/stripe/params/margin_list_params.rb +25 -0
  523. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  524. data/lib/stripe/params/margin_update_params.rb +22 -0
  525. data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
  526. data/lib/stripe/params/order_create_params.rb +2117 -0
  527. data/lib/stripe/params/order_list_params.rb +25 -0
  528. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  529. data/lib/stripe/params/order_submit_params.rb +16 -0
  530. data/lib/stripe/params/order_update_params.rb +2121 -0
  531. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
  532. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
  533. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +31 -0
  534. data/lib/stripe/params/payment_attempt_record_report_early_fraud_warning_params.rb +22 -0
  535. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +92 -0
  536. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +88 -0
  537. data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
  538. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +103 -0
  539. data/lib/stripe/params/payment_intent_capture_params.rb +1773 -3
  540. data/lib/stripe/params/payment_intent_confirm_params.rb +3641 -128
  541. data/lib/stripe/params/payment_intent_create_params.rb +3660 -131
  542. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +328 -0
  543. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +70 -2
  544. data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
  545. data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
  546. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  547. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
  548. data/lib/stripe/params/payment_intent_update_params.rb +3668 -124
  549. data/lib/stripe/params/payment_link_create_params.rb +34 -0
  550. data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
  551. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
  552. data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
  553. data/lib/stripe/params/payment_location_create_params.rb +54 -0
  554. data/lib/stripe/params/payment_location_delete_params.rb +6 -0
  555. data/lib/stripe/params/payment_location_list_params.rb +22 -0
  556. data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
  557. data/lib/stripe/params/payment_location_update_params.rb +63 -0
  558. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  559. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  560. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  561. data/lib/stripe/params/payment_method_create_params.rb +92 -0
  562. data/lib/stripe/params/payment_method_update_params.rb +16 -0
  563. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +13 -1
  564. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +74 -1
  565. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +70 -1
  566. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +87 -3
  567. data/lib/stripe/params/payment_record_report_payment_params.rb +87 -3
  568. data/lib/stripe/params/payment_record_report_refund_params.rb +24 -0
  569. data/lib/stripe/params/payment_record_search_params.rb +22 -0
  570. data/lib/stripe/params/plan_create_params.rb +15 -0
  571. data/lib/stripe/params/price_create_params.rb +19 -0
  572. data/lib/stripe/params/price_update_params.rb +23 -0
  573. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  574. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  575. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  576. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  577. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  578. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  579. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  580. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  581. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  582. data/lib/stripe/params/product_create_params.rb +47 -0
  583. data/lib/stripe/params/product_update_params.rb +47 -0
  584. data/lib/stripe/params/quote_create_params.rb +1217 -3
  585. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  586. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  587. data/lib/stripe/params/quote_list_params.rb +4 -0
  588. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  589. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  590. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  591. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  592. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  593. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  594. data/lib/stripe/params/quote_update_params.rb +1225 -4
  595. data/lib/stripe/params/radar/account_evaluation_create_params.rb +115 -0
  596. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  597. data/lib/stripe/params/radar/account_evaluation_update_params.rb +72 -0
  598. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +86 -0
  599. data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
  600. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
  601. data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
  602. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +30 -1
  603. data/lib/stripe/params/refund_create_params.rb +4 -0
  604. data/lib/stripe/params/refund_list_params.rb +8 -0
  605. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  606. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  607. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  608. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  609. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  610. data/lib/stripe/params/setup_intent_confirm_params.rb +182 -3
  611. data/lib/stripe/params/setup_intent_create_params.rb +182 -3
  612. data/lib/stripe/params/setup_intent_update_params.rb +183 -4
  613. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -0
  614. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  615. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  616. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +70 -0
  617. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  618. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  619. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  620. data/lib/stripe/params/subscription_create_params.rb +325 -7
  621. data/lib/stripe/params/subscription_item_create_params.rb +114 -2
  622. data/lib/stripe/params/subscription_item_update_params.rb +97 -1
  623. data/lib/stripe/params/subscription_list_params.rb +4 -0
  624. data/lib/stripe/params/subscription_pause_params.rb +50 -0
  625. data/lib/stripe/params/subscription_resume_params.rb +4 -0
  626. data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
  627. data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
  628. data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
  629. data/lib/stripe/params/subscription_update_params.rb +308 -6
  630. data/lib/stripe/params/tax/calculation_create_params.rb +46 -0
  631. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  632. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  633. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  634. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  635. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  636. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  637. data/lib/stripe/params/tax/registration_create_params.rb +117 -0
  638. data/lib/stripe/params/tax_fund_list_params.rb +42 -0
  639. data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
  640. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  641. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  642. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  643. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  644. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  645. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +96 -0
  646. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +13 -0
  647. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
  648. data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
  649. data/lib/stripe/params/test_helpers/issuing/dispute_provisional_credit_params.rb +23 -0
  650. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
  651. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
  652. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
  653. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +21 -0
  654. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  655. data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
  656. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
  657. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  658. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  659. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  660. data/lib/stripe/params/token_create_params.rb +134 -0
  661. data/lib/stripe/params/transfer_create_params.rb +8 -0
  662. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  663. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  664. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  665. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  666. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
  667. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  668. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  669. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  670. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  671. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  672. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  673. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  674. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  675. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  676. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  677. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  678. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  679. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  680. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  681. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
  682. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
  683. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  684. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  685. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  686. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  687. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  688. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  689. data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
  690. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +39 -0
  691. data/lib/stripe/params/v2/billing/contract_create_params.rb +653 -0
  692. data/lib/stripe/params/v2/billing/contract_delete_params.rb +10 -0
  693. data/lib/stripe/params/v2/billing/contract_list_params.rb +23 -0
  694. data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
  695. data/lib/stripe/params/v2/billing/contract_update_params.rb +1233 -0
  696. data/lib/stripe/params/v2/billing/contracts/pricing_lines/quantity_change_list_contract_pricing_line_quantity_changes_params.rb +21 -0
  697. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  698. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  699. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  700. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  701. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  702. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  703. data/lib/stripe/params/v2/billing/intent_create_params.rb +899 -0
  704. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  705. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  706. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  707. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  708. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  709. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  710. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +121 -0
  711. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  712. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  713. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +102 -0
  714. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  715. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  716. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  717. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  718. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  719. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  720. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +2 -2
  721. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  722. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  723. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  724. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  725. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  726. data/lib/stripe/params/v2/billing/one_time_item_create_params.rb +48 -0
  727. data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
  728. data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
  729. data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -0
  730. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  731. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  732. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  733. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +54 -0
  734. data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
  735. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
  736. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  737. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  738. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  739. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  740. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  741. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  742. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  743. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  744. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  745. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  746. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  747. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  748. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  749. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  750. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  751. data/lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb +177 -0
  752. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  753. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  754. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  755. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  756. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  757. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  758. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  759. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params.rb +33 -0
  760. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
  761. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
  762. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
  763. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -0
  764. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  765. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  766. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  767. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  768. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  769. data/lib/stripe/params/v2/billing/service_action_create_params.rb +315 -0
  770. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  771. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  772. data/lib/stripe/params/v2/core/account_create_params.rb +4024 -56
  773. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
  774. data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
  775. data/lib/stripe/params/v2/core/account_token_create_params.rb +254 -1
  776. data/lib/stripe/params/v2/core/account_update_params.rb +4006 -59
  777. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  778. data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
  779. data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
  780. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  781. data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
  782. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  783. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  784. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  785. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
  786. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
  787. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  788. data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
  789. data/lib/stripe/params/v2/core/connection_session_retrieve_params.rb +10 -0
  790. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  791. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  792. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
  793. data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
  794. data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
  795. data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
  796. data/lib/stripe/params/v2/core/health/alert_list_params.rb +53 -0
  797. data/lib/stripe/params/v2/core/health/alert_retrieve_params.rb +12 -0
  798. data/lib/stripe/params/v2/core/health/alerts/history_list_params.rb +21 -0
  799. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  800. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  801. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
  802. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  803. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  804. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  805. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  806. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  807. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
  808. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  809. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  810. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  811. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  812. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
  813. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  814. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
  815. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  816. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  817. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  818. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  819. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  820. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  821. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  822. data/lib/stripe/params/v2/iam/api_key_create_params.rb +68 -0
  823. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  824. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  825. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  826. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  827. data/lib/stripe/params/v2/iam/api_key_update_params.rb +26 -0
  828. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  829. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -0
  831. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  832. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  833. data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
  834. data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
  835. data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
  836. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  837. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +37 -0
  838. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
  839. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
  840. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
  841. data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
  842. data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
  843. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -0
  844. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  845. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  846. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  847. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  848. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  849. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  850. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +183 -0
  851. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  852. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +70 -0
  853. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  854. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  855. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  856. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +110 -0
  857. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  858. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  859. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
  860. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  861. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +104 -0
  862. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  863. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  864. data/lib/stripe/params/v2/money_management/payout_intent_cancel_params.rb +10 -0
  865. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +138 -0
  866. data/lib/stripe/params/v2/money_management/payout_intent_list_params.rb +17 -0
  867. data/lib/stripe/params/v2/money_management/payout_intent_retrieve_params.rb +10 -0
  868. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +138 -0
  869. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  870. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  871. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  872. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  873. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  874. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  875. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  876. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  877. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  878. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  879. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  880. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  881. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +25 -0
  882. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  883. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  884. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  885. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  886. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  887. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  888. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  889. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  890. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  891. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  892. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  893. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  894. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +178 -0
  895. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +362 -0
  896. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  897. data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
  898. data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
  899. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  900. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  901. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +35 -0
  902. data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -0
  903. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  904. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  905. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +20 -0
  906. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  907. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +28 -0
  908. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -0
  909. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  910. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  911. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  912. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +17 -0
  913. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  914. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  915. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -0
  916. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  917. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  918. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  919. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +124 -0
  920. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  921. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  922. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  923. data/lib/stripe/params.rb +999 -0
  924. data/lib/stripe/resources/account.rb +271 -1
  925. data/lib/stripe/resources/account_notice.rb +94 -0
  926. data/lib/stripe/resources/account_session.rb +414 -0
  927. data/lib/stripe/resources/account_signals.rb +104 -0
  928. data/lib/stripe/resources/application_fee.rb +24 -1
  929. data/lib/stripe/resources/balance.rb +166 -0
  930. data/lib/stripe/resources/balance_settings.rb +4 -0
  931. data/lib/stripe/resources/balance_transfer.rb +139 -0
  932. data/lib/stripe/resources/billing/alert.rb +274 -1
  933. data/lib/stripe/resources/billing/alert_recovered.rb +44 -0
  934. data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
  935. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  936. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  937. data/lib/stripe/resources/billing/credit_balance_summary.rb +172 -3
  938. data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
  939. data/lib/stripe/resources/billing/credit_grant.rb +77 -2
  940. data/lib/stripe/resources/billing/meter.rb +2 -0
  941. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  942. data/lib/stripe/resources/capability.rb +36 -1
  943. data/lib/stripe/resources/capital/financing_offer.rb +185 -0
  944. data/lib/stripe/resources/capital/financing_summary.rb +84 -0
  945. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  946. data/lib/stripe/resources/card.rb +35 -1
  947. data/lib/stripe/resources/charge.rb +402 -2
  948. data/lib/stripe/resources/checkout/session.rb +667 -3
  949. data/lib/stripe/resources/confirmation_token.rb +227 -1
  950. data/lib/stripe/resources/coupon.rb +60 -1
  951. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  952. data/lib/stripe/resources/crypto/customer.rb +73 -0
  953. data/lib/stripe/resources/crypto/customer_consumer_wallet.rb +35 -0
  954. data/lib/stripe/resources/crypto/customer_payment_token.rb +84 -0
  955. data/lib/stripe/resources/crypto/onramp_session.rb +218 -0
  956. data/lib/stripe/resources/crypto/onramp_transaction_limits.rb +33 -0
  957. data/lib/stripe/resources/customer.rb +16 -0
  958. data/lib/stripe/resources/customer_session.rb +36 -0
  959. data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
  960. data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
  961. data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
  962. data/lib/stripe/resources/discount.rb +20 -1
  963. data/lib/stripe/resources/dispute.rb +24 -0
  964. data/lib/stripe/resources/event.rb +64 -1
  965. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  966. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  967. data/lib/stripe/resources/financial_connections/authorization.rb +99 -0
  968. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  969. data/lib/stripe/resources/financial_connections/session.rb +125 -1
  970. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +153 -0
  971. data/lib/stripe/resources/fx_quote.rb +147 -0
  972. data/lib/stripe/resources/gift_card.rb +146 -0
  973. data/lib/stripe/resources/gift_card_operation.rb +280 -0
  974. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  975. data/lib/stripe/resources/identity/verification_report.rb +24 -1
  976. data/lib/stripe/resources/invoice.rb +195 -1
  977. data/lib/stripe/resources/invoice_item.rb +126 -2
  978. data/lib/stripe/resources/invoice_line_item.rb +195 -1
  979. data/lib/stripe/resources/issuing/authorization.rb +448 -0
  980. data/lib/stripe/resources/issuing/card.rb +22 -0
  981. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  982. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +285 -0
  983. data/lib/stripe/resources/issuing/dispute.rb +349 -1
  984. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  985. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  986. data/lib/stripe/resources/issuing/program.rb +69 -0
  987. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  988. data/lib/stripe/resources/issuing/token.rb +10 -0
  989. data/lib/stripe/resources/issuing/transaction.rb +144 -0
  990. data/lib/stripe/resources/line_item.rb +42 -0
  991. data/lib/stripe/resources/mandate.rb +30 -0
  992. data/lib/stripe/resources/margin.rb +64 -0
  993. data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
  994. data/lib/stripe/resources/order.rb +929 -0
  995. data/lib/stripe/resources/payment_attempt_record.rb +495 -3
  996. data/lib/stripe/resources/payment_intent.rb +2480 -27
  997. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +19 -1
  998. data/lib/stripe/resources/payment_link.rb +22 -0
  999. data/lib/stripe/resources/payment_location.rb +165 -0
  1000. data/lib/stripe/resources/payment_location_capability.rb +94 -0
  1001. data/lib/stripe/resources/payment_method.rb +271 -1
  1002. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  1003. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  1004. data/lib/stripe/resources/payment_record.rb +350 -3
  1005. data/lib/stripe/resources/person.rb +62 -0
  1006. data/lib/stripe/resources/price.rb +22 -0
  1007. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  1008. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  1009. data/lib/stripe/resources/product.rb +78 -0
  1010. data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
  1011. data/lib/stripe/resources/profile.rb +80 -0
  1012. data/lib/stripe/resources/quote.rb +806 -2
  1013. data/lib/stripe/resources/quote_line.rb +731 -0
  1014. data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
  1015. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +911 -0
  1016. data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
  1017. data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
  1018. data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
  1019. data/lib/stripe/resources/radar/payment_evaluation.rb +23 -1
  1020. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  1021. data/lib/stripe/resources/refund.rb +18 -0
  1022. data/lib/stripe/resources/reserve/hold.rb +7 -0
  1023. data/lib/stripe/resources/reserve/release.rb +12 -0
  1024. data/lib/stripe/resources/risk_signals.rb +24 -0
  1025. data/lib/stripe/resources/setup_attempt.rb +35 -0
  1026. data/lib/stripe/resources/setup_intent.rb +126 -1
  1027. data/lib/stripe/resources/shared_payment/granted_token.rb +1842 -0
  1028. data/lib/stripe/resources/shared_payment/issued_token.rb +293 -0
  1029. data/lib/stripe/resources/source.rb +54 -0
  1030. data/lib/stripe/resources/subscription.rb +250 -0
  1031. data/lib/stripe/resources/subscription_item.rb +41 -1
  1032. data/lib/stripe/resources/subscription_schedule.rb +373 -3
  1033. data/lib/stripe/resources/tax/calculation_line_item.rb +43 -1
  1034. data/lib/stripe/resources/tax/form.rb +264 -0
  1035. data/lib/stripe/resources/tax/location.rb +72 -0
  1036. data/lib/stripe/resources/tax/registration.rb +144 -0
  1037. data/lib/stripe/resources/tax_code.rb +15 -1
  1038. data/lib/stripe/resources/tax_fund.rb +179 -0
  1039. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  1040. data/lib/stripe/resources/terminal/reader.rb +8 -0
  1041. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1042. data/lib/stripe/resources/token.rb +15 -1
  1043. data/lib/stripe/resources/transfer.rb +6 -0
  1044. data/lib/stripe/resources/transit_balance.rb +45 -0
  1045. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  1046. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  1047. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  1048. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  1049. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  1050. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  1051. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1052. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  1053. data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
  1054. data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
  1055. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  1056. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  1057. data/lib/stripe/resources/v2/billing/contract.rb +820 -0
  1058. data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +59 -0
  1059. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  1060. data/lib/stripe/resources/v2/billing/intent.rb +354 -0
  1061. data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
  1062. data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
  1063. data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -0
  1064. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  1065. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  1066. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -1
  1067. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  1068. data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
  1069. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  1070. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
  1071. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
  1072. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
  1073. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  1074. data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
  1075. data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
  1076. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
  1077. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
  1078. data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
  1079. data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
  1080. data/lib/stripe/resources/v2/core/account.rb +19495 -1352
  1081. data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
  1082. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  1083. data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
  1084. data/lib/stripe/resources/v2/core/batch_job.rb +565 -0
  1085. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
  1086. data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
  1087. data/lib/stripe/resources/v2/core/event.rb +66 -1
  1088. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  1089. data/lib/stripe/resources/v2/core/fee_batch.rb +225 -0
  1090. data/lib/stripe/resources/v2/core/fee_entry.rb +173 -0
  1091. data/lib/stripe/resources/v2/core/health/alert.rb +572 -0
  1092. data/lib/stripe/resources/v2/core/health/alert_history_entry.rb +542 -0
  1093. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
  1094. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
  1095. data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
  1096. data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
  1097. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  1098. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  1099. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
  1100. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
  1101. data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
  1102. data/lib/stripe/resources/v2/iam/api_key.rb +133 -0
  1103. data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
  1104. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
  1105. data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
  1106. data/lib/stripe/resources/v2/money_management/financial_account.rb +328 -0
  1107. data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
  1108. data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
  1109. data/lib/stripe/resources/v2/money_management/financial_address_debit_simulation.rb +31 -0
  1110. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
  1111. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +374 -0
  1112. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
  1113. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1114. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +239 -0
  1115. data/lib/stripe/resources/v2/money_management/payout_intent.rb +245 -0
  1116. data/lib/stripe/resources/v2/money_management/payout_method.rb +169 -0
  1117. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
  1118. data/lib/stripe/resources/v2/money_management/received_credit.rb +404 -0
  1119. data/lib/stripe/resources/v2/money_management/received_debit.rb +262 -0
  1120. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  1121. data/lib/stripe/resources/v2/money_management/transaction.rb +187 -0
  1122. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +157 -0
  1123. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  1124. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  1125. data/lib/stripe/resources/v2/payments/off_session_payment.rb +288 -0
  1126. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
  1127. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
  1128. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  1129. data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
  1130. data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
  1131. data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
  1132. data/lib/stripe/resources.rb +1783 -0
  1133. data/lib/stripe/services/account_notice_service.rb +39 -0
  1134. data/lib/stripe/services/account_service.rb +46 -1
  1135. data/lib/stripe/services/account_signals_service.rb +17 -0
  1136. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  1137. data/lib/stripe/services/billing/alert_service.rb +2 -0
  1138. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1139. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1140. data/lib/stripe/services/billing/credit_grant_service.rb +4 -0
  1141. data/lib/stripe/services/billing_service.rb +2 -1
  1142. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1143. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1144. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1145. data/lib/stripe/services/capital_service.rb +15 -0
  1146. data/lib/stripe/services/checkout/session_service.rb +11 -0
  1147. data/lib/stripe/services/coupon_service.rb +44 -0
  1148. data/lib/stripe/services/credit_note_service.rb +14 -0
  1149. data/lib/stripe/services/crypto/customer_consumer_wallet_service.rb +19 -0
  1150. data/lib/stripe/services/crypto/customer_payment_token_service.rb +19 -0
  1151. data/lib/stripe/services/crypto/customer_service.rb +27 -0
  1152. data/lib/stripe/services/crypto/onramp_session_service.rb +69 -0
  1153. data/lib/stripe/services/crypto/onramp_transaction_limits_service.rb +19 -0
  1154. data/lib/stripe/services/crypto_service.rb +15 -0
  1155. data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
  1156. data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
  1157. data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
  1158. data/lib/stripe/services/customer_payment_source_service.rb +60 -0
  1159. data/lib/stripe/services/customer_service.rb +59 -0
  1160. data/lib/stripe/services/customer_session_service.rb +14 -0
  1161. data/lib/stripe/services/customer_tax_id_service.rb +30 -0
  1162. data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
  1163. data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
  1164. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
  1165. data/lib/stripe/services/delegated_checkout_service.rb +14 -0
  1166. data/lib/stripe/services/dispute_service.rb +15 -0
  1167. data/lib/stripe/services/external_account_service.rb +68 -0
  1168. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1169. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  1170. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  1171. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1172. data/lib/stripe/services/financial_connections_service.rb +3 -1
  1173. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +57 -0
  1174. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1175. data/lib/stripe/services/gift_card_operation_service.rb +17 -0
  1176. data/lib/stripe/services/gift_card_service.rb +77 -0
  1177. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  1178. data/lib/stripe/services/identity_service.rb +2 -1
  1179. data/lib/stripe/services/invoice_item_service.rb +44 -0
  1180. data/lib/stripe/services/invoice_line_item_service.rb +15 -0
  1181. data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
  1182. data/lib/stripe/services/invoice_service.rb +189 -0
  1183. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +85 -0
  1184. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1185. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1186. data/lib/stripe/services/issuing/program_service.rb +52 -0
  1187. data/lib/stripe/services/issuing_service.rb +6 -1
  1188. data/lib/stripe/services/mandate_service.rb +5 -0
  1189. data/lib/stripe/services/margin_service.rb +50 -0
  1190. data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
  1191. data/lib/stripe/services/orchestration_service.rb +13 -0
  1192. data/lib/stripe/services/order_service.rb +53 -0
  1193. data/lib/stripe/services/payment_attempt_record_service.rb +88 -0
  1194. data/lib/stripe/services/payment_intent_service.rb +66 -0
  1195. data/lib/stripe/services/payment_location_capability_service.rb +39 -0
  1196. data/lib/stripe/services/payment_location_service.rb +61 -0
  1197. data/lib/stripe/services/payment_method_service.rb +26 -0
  1198. data/lib/stripe/services/payment_record_service.rb +14 -0
  1199. data/lib/stripe/services/price_service.rb +29 -0
  1200. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1201. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1202. data/lib/stripe/services/privacy_service.rb +13 -0
  1203. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  1204. data/lib/stripe/services/product_catalog_service.rb +13 -0
  1205. data/lib/stripe/services/product_feature_service.rb +30 -0
  1206. data/lib/stripe/services/product_service.rb +44 -0
  1207. data/lib/stripe/services/promotion_code_service.rb +29 -0
  1208. data/lib/stripe/services/quote_line_service.rb +17 -0
  1209. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1210. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1211. data/lib/stripe/services/quote_service.rb +49 -1
  1212. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  1213. data/lib/stripe/services/radar/customer_evaluation_service.rb +41 -0
  1214. data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
  1215. data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
  1216. data/lib/stripe/services/radar_service.rb +5 -1
  1217. data/lib/stripe/services/refund_service.rb +29 -0
  1218. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1219. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1220. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1221. data/lib/stripe/services/reserve_service.rb +15 -0
  1222. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  1223. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  1224. data/lib/stripe/services/shared_payment_service.rb +14 -0
  1225. data/lib/stripe/services/subscription_item_service.rb +44 -0
  1226. data/lib/stripe/services/subscription_schedule_service.rb +70 -0
  1227. data/lib/stripe/services/subscription_service.rb +111 -0
  1228. data/lib/stripe/services/tax/form_service.rb +37 -0
  1229. data/lib/stripe/services/tax/location_service.rb +45 -0
  1230. data/lib/stripe/services/tax/registration_service.rb +29 -0
  1231. data/lib/stripe/services/tax/settings_service.rb +14 -0
  1232. data/lib/stripe/services/tax/transaction_service.rb +14 -0
  1233. data/lib/stripe/services/tax_fund_service.rb +22 -0
  1234. data/lib/stripe/services/tax_id_service.rb +14 -0
  1235. data/lib/stripe/services/tax_rate_service.rb +29 -0
  1236. data/lib/stripe/services/tax_service.rb +3 -1
  1237. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1238. data/lib/stripe/services/terminal_service.rb +2 -1
  1239. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  1240. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  1241. data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +65 -0
  1242. data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
  1243. data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
  1244. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  1245. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  1246. data/lib/stripe/services/test_helpers_service.rb +4 -1
  1247. data/lib/stripe/services/v1_services.rb +21 -1
  1248. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1249. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1250. data/lib/stripe/services/v2/billing/cadence_service.rb +73 -0
  1251. data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
  1252. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  1253. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1254. data/lib/stripe/services/v2/billing/contract_service.rb +102 -0
  1255. data/lib/stripe/services/v2/billing/contracts/pricing_lines/quantity_change_service.rb +30 -0
  1256. data/lib/stripe/services/v2/billing/contracts/pricing_lines_service.rb +20 -0
  1257. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  1258. data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
  1259. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  1260. data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -0
  1261. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  1262. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  1263. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  1264. data/lib/stripe/services/v2/billing/one_time_item_service.rb +54 -0
  1265. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  1266. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +54 -0
  1267. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  1268. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  1269. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1270. data/lib/stripe/services/v2/billing/rate_card_service.rb +79 -0
  1271. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  1272. data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
  1273. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
  1274. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  1275. data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
  1276. data/lib/stripe/services/v2/billing_service.rb +18 -1
  1277. data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
  1278. data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
  1279. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  1280. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
  1281. data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
  1282. data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
  1283. data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
  1284. data/lib/stripe/services/v2/core/health/alert_service.rb +41 -0
  1285. data/lib/stripe/services/v2/core/health/alerts/history_service.rb +25 -0
  1286. data/lib/stripe/services/v2/core/health_service.rb +17 -0
  1287. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1288. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +106 -0
  1289. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1290. data/lib/stripe/services/v2/core_service.rb +10 -1
  1291. data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
  1292. data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
  1293. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  1294. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  1295. data/lib/stripe/services/v2/data_service.rb +16 -0
  1296. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  1297. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  1298. data/lib/stripe/services/v2/extend_service.rb +16 -0
  1299. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  1300. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  1301. data/lib/stripe/services/v2/iam_service.rb +16 -0
  1302. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1303. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
  1304. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
  1305. data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
  1306. data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
  1307. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1308. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1309. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1310. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1311. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1312. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1313. data/lib/stripe/services/v2/money_management/payout_intent_service.rb +71 -0
  1314. data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
  1315. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1316. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1317. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1318. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  1319. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +23 -0
  1320. data/lib/stripe/services/v2/money_management/test_helpers_service.rb +18 -0
  1321. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1322. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1323. data/lib/stripe/services/v2/money_management_service.rb +38 -0
  1324. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  1325. data/lib/stripe/services/v2/network_service.rb +15 -0
  1326. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  1327. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  1328. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
  1329. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
  1330. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
  1331. data/lib/stripe/services/v2/payments_service.rb +17 -0
  1332. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  1333. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  1334. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  1335. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  1336. data/lib/stripe/services/v2/signals_service.rb +15 -0
  1337. data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
  1338. data/lib/stripe/services/v2/tax_service.rb +15 -0
  1339. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  1340. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1341. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  1342. data/lib/stripe/services/v2_services.rb +12 -1
  1343. data/lib/stripe/services.rb +437 -0
  1344. data/lib/stripe/stripe_client.rb +8 -1
  1345. data/lib/stripe/stripe_configuration.rb +3 -1
  1346. data/lib/stripe/stripe_event_notification_handler.rb +2550 -0
  1347. data/lib/stripe/stripe_object.rb +1 -1
  1348. data/lib/stripe/util.rb +7 -1
  1349. data/lib/stripe/version.rb +1 -1
  1350. data/lib/stripe.rb +54 -0
  1351. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  1352. data/rbi/stripe/stripe_client.rbi +13 -0
  1353. data/rbi/stripe.rbi +253224 -109645
  1354. metadata +1097 -4
@@ -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
 
@@ -76,155 +99,2152 @@ module Stripe
76
99
  @klarna = klarna
77
100
  @paypal = paypal
78
101
  end
79
- 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
+
198
+ class Tip < ::Stripe::RequestParams
199
+ # Portion of the amount that corresponds to a tip.
200
+ attr_accessor :amount
201
+
202
+ def initialize(amount: nil)
203
+ @amount = amount
204
+ end
205
+ end
206
+ # 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.
207
+ #
208
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
209
+ attr_accessor :discount_amount
210
+ # 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.
211
+ #
212
+ # 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.
213
+ #
214
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
215
+ attr_accessor :enforce_arithmetic_validation
216
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
217
+ attr_accessor :line_items
218
+ # Contains information about the shipping portion of the amount.
219
+ attr_accessor :shipping
220
+ # Contains information about the surcharge portion of the amount.
221
+ attr_accessor :surcharge
222
+ # Contains information about the tax portion of the amount.
223
+ attr_accessor :tax
224
+ # Contains information about the tip portion of the amount.
225
+ attr_accessor :tip
226
+
227
+ def initialize(
228
+ discount_amount: nil,
229
+ enforce_arithmetic_validation: nil,
230
+ line_items: nil,
231
+ shipping: nil,
232
+ surcharge: nil,
233
+ tax: nil,
234
+ tip: nil
235
+ )
236
+ @discount_amount = discount_amount
237
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
238
+ @line_items = line_items
239
+ @shipping = shipping
240
+ @surcharge = surcharge
241
+ @tax = tax
242
+ @tip = tip
243
+ end
244
+ end
245
+
246
+ class Hooks < ::Stripe::RequestParams
247
+ class Inputs < ::Stripe::RequestParams
248
+ class Tax < ::Stripe::RequestParams
249
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
250
+ attr_accessor :calculation
251
+
252
+ def initialize(calculation: nil)
253
+ @calculation = calculation
254
+ end
255
+ end
256
+ # Tax arguments for automations
257
+ attr_accessor :tax
258
+
259
+ def initialize(tax: nil)
260
+ @tax = tax
261
+ end
262
+ end
263
+ # Arguments passed in automations
264
+ attr_accessor :inputs
265
+
266
+ def initialize(inputs: nil)
267
+ @inputs = inputs
268
+ end
269
+ end
270
+
271
+ class MandateData < ::Stripe::RequestParams
272
+ class CustomerAcceptance < ::Stripe::RequestParams
273
+ class Online < ::Stripe::RequestParams
274
+ # The IP address from which the Mandate was accepted by the customer.
275
+ attr_accessor :ip_address
276
+ # The user agent of the browser from which the Mandate was accepted by the customer.
277
+ attr_accessor :user_agent
278
+
279
+ def initialize(ip_address: nil, user_agent: nil)
280
+ @ip_address = ip_address
281
+ @user_agent = user_agent
282
+ end
283
+ end
284
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
285
+ attr_accessor :online
286
+ # The type of customer acceptance information included with the Mandate.
287
+ attr_accessor :type
288
+
289
+ def initialize(online: nil, type: nil)
290
+ @online = online
291
+ @type = type
292
+ end
293
+ end
294
+ # This hash contains details about the customer acceptance of the Mandate.
295
+ attr_accessor :customer_acceptance
296
+
297
+ def initialize(customer_acceptance: nil)
298
+ @customer_acceptance = customer_acceptance
299
+ end
300
+ end
301
+
302
+ class PaymentDetails < ::Stripe::RequestParams
303
+ class Benefit < ::Stripe::RequestParams
304
+ class FrMealVoucher < ::Stripe::RequestParams
305
+ # Whether to enable meal voucher benefit for this payment.
306
+ attr_accessor :enabled
307
+ # The 14-digit SIRET of the meal voucher acceptor.
308
+ attr_accessor :siret
309
+
310
+ def initialize(enabled: nil, siret: nil)
311
+ @enabled = enabled
312
+ @siret = siret
313
+ end
314
+ end
315
+ # French meal voucher benefit details for this PaymentIntent.
316
+ attr_accessor :fr_meal_voucher
317
+
318
+ def initialize(fr_meal_voucher: nil)
319
+ @fr_meal_voucher = fr_meal_voucher
320
+ end
321
+ end
322
+
323
+ class CarRental < ::Stripe::RequestParams
324
+ class Affiliate < ::Stripe::RequestParams
325
+ # The name of the affiliate that originated the purchase.
326
+ attr_accessor :name
327
+
328
+ def initialize(name: nil)
329
+ @name = name
330
+ end
331
+ end
332
+
333
+ class Delivery < ::Stripe::RequestParams
334
+ class Recipient < ::Stripe::RequestParams
335
+ # The email of the recipient the ticket is delivered to.
336
+ attr_accessor :email
337
+ # The name of the recipient the ticket is delivered to.
338
+ attr_accessor :name
339
+ # The phone number of the recipient the ticket is delivered to.
340
+ attr_accessor :phone
341
+
342
+ def initialize(email: nil, name: nil, phone: nil)
343
+ @email = email
344
+ @name = name
345
+ @phone = phone
346
+ end
347
+ end
348
+ # The delivery method for the payment
349
+ attr_accessor :mode
350
+ # Details of the recipient.
351
+ attr_accessor :recipient
352
+
353
+ def initialize(mode: nil, recipient: nil)
354
+ @mode = mode
355
+ @recipient = recipient
356
+ end
357
+ end
358
+
359
+ class Distance < ::Stripe::RequestParams
360
+ # Distance traveled.
361
+ attr_accessor :amount
362
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
363
+ attr_accessor :unit
364
+
365
+ def initialize(amount: nil, unit: nil)
366
+ @amount = amount
367
+ @unit = unit
368
+ end
369
+ end
370
+
371
+ class Driver < ::Stripe::RequestParams
372
+ # Driver's identification number.
373
+ attr_accessor :driver_identification_number
374
+ # Driver's tax number.
375
+ attr_accessor :driver_tax_number
376
+ # Full name of the person or entity on the car reservation.
377
+ attr_accessor :name
378
+
379
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
380
+ @driver_identification_number = driver_identification_number
381
+ @driver_tax_number = driver_tax_number
382
+ @name = name
383
+ end
384
+ end
385
+
386
+ class PickupAddress < ::Stripe::RequestParams
387
+ # City, district, suburb, town, or village.
388
+ attr_accessor :city
389
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
390
+ attr_accessor :country
391
+ # Address line 1, such as the street, PO Box, or company name.
392
+ attr_accessor :line1
393
+ # Address line 2, such as the apartment, suite, unit, or building.
394
+ attr_accessor :line2
395
+ # ZIP or postal code.
396
+ attr_accessor :postal_code
397
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
398
+ attr_accessor :state
399
+
400
+ def initialize(
401
+ city: nil,
402
+ country: nil,
403
+ line1: nil,
404
+ line2: nil,
405
+ postal_code: nil,
406
+ state: nil
407
+ )
408
+ @city = city
409
+ @country = country
410
+ @line1 = line1
411
+ @line2 = line2
412
+ @postal_code = postal_code
413
+ @state = state
414
+ end
415
+ end
416
+
417
+ class ReturnAddress < ::Stripe::RequestParams
418
+ # City, district, suburb, town, or village.
419
+ attr_accessor :city
420
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
421
+ attr_accessor :country
422
+ # Address line 1, such as the street, PO Box, or company name.
423
+ attr_accessor :line1
424
+ # Address line 2, such as the apartment, suite, unit, or building.
425
+ attr_accessor :line2
426
+ # ZIP or postal code.
427
+ attr_accessor :postal_code
428
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
429
+ attr_accessor :state
430
+
431
+ def initialize(
432
+ city: nil,
433
+ country: nil,
434
+ line1: nil,
435
+ line2: nil,
436
+ postal_code: nil,
437
+ state: nil
438
+ )
439
+ @city = city
440
+ @country = country
441
+ @line1 = line1
442
+ @line2 = line2
443
+ @postal_code = postal_code
444
+ @state = state
445
+ end
446
+ end
447
+ # Affiliate details for this purchase.
448
+ attr_accessor :affiliate
449
+ # The booking number associated with the car rental.
450
+ attr_accessor :booking_number
451
+ # Class code of the car.
452
+ attr_accessor :car_class_code
453
+ # Make of the car.
454
+ attr_accessor :car_make
455
+ # Model of the car.
456
+ attr_accessor :car_model
457
+ # The name of the rental car company.
458
+ attr_accessor :company
459
+ # The customer service phone number of the car rental company.
460
+ attr_accessor :customer_service_phone_number
461
+ # Number of days the car is being rented.
462
+ attr_accessor :days_rented
463
+ # Delivery details for this purchase.
464
+ attr_accessor :delivery
465
+ # The details of the distance traveled during the rental period.
466
+ attr_accessor :distance
467
+ # The details of the passengers in the travel reservation
468
+ attr_accessor :drivers
469
+ # List of additional charges being billed.
470
+ attr_accessor :extra_charges
471
+ # Indicates if the customer did not keep nor cancel their booking.
472
+ attr_accessor :no_show
473
+ # Car pick-up address.
474
+ attr_accessor :pickup_address
475
+ # Car pick-up time. Measured in seconds since the Unix epoch.
476
+ attr_accessor :pickup_at
477
+ # Name of the pickup location.
478
+ attr_accessor :pickup_location_name
479
+ # Rental rate.
480
+ attr_accessor :rate_amount
481
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
482
+ attr_accessor :rate_interval
483
+ # The name of the person or entity renting the car.
484
+ attr_accessor :renter_name
485
+ # Car return address.
486
+ attr_accessor :return_address
487
+ # Car return time. Measured in seconds since the Unix epoch.
488
+ attr_accessor :return_at
489
+ # Name of the return location.
490
+ attr_accessor :return_location_name
491
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
492
+ attr_accessor :tax_exempt
493
+ # The vehicle identification number.
494
+ attr_accessor :vehicle_identification_number
495
+
496
+ def initialize(
497
+ affiliate: nil,
498
+ booking_number: nil,
499
+ car_class_code: nil,
500
+ car_make: nil,
501
+ car_model: nil,
502
+ company: nil,
503
+ customer_service_phone_number: nil,
504
+ days_rented: nil,
505
+ delivery: nil,
506
+ distance: nil,
507
+ drivers: nil,
508
+ extra_charges: nil,
509
+ no_show: nil,
510
+ pickup_address: nil,
511
+ pickup_at: nil,
512
+ pickup_location_name: nil,
513
+ rate_amount: nil,
514
+ rate_interval: nil,
515
+ renter_name: nil,
516
+ return_address: nil,
517
+ return_at: nil,
518
+ return_location_name: nil,
519
+ tax_exempt: nil,
520
+ vehicle_identification_number: nil
521
+ )
522
+ @affiliate = affiliate
523
+ @booking_number = booking_number
524
+ @car_class_code = car_class_code
525
+ @car_make = car_make
526
+ @car_model = car_model
527
+ @company = company
528
+ @customer_service_phone_number = customer_service_phone_number
529
+ @days_rented = days_rented
530
+ @delivery = delivery
531
+ @distance = distance
532
+ @drivers = drivers
533
+ @extra_charges = extra_charges
534
+ @no_show = no_show
535
+ @pickup_address = pickup_address
536
+ @pickup_at = pickup_at
537
+ @pickup_location_name = pickup_location_name
538
+ @rate_amount = rate_amount
539
+ @rate_interval = rate_interval
540
+ @renter_name = renter_name
541
+ @return_address = return_address
542
+ @return_at = return_at
543
+ @return_location_name = return_location_name
544
+ @tax_exempt = tax_exempt
545
+ @vehicle_identification_number = vehicle_identification_number
546
+ end
547
+ end
548
+
549
+ class CarRentalDatum < ::Stripe::RequestParams
550
+ class Affiliate < ::Stripe::RequestParams
551
+ # Affiliate partner code.
552
+ attr_accessor :code
553
+ # Name of affiliate partner.
554
+ attr_accessor :name
555
+
556
+ def initialize(code: nil, name: nil)
557
+ @code = code
558
+ @name = name
559
+ end
560
+ end
561
+
562
+ class Distance < ::Stripe::RequestParams
563
+ # Distance traveled.
564
+ attr_accessor :amount
565
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
566
+ attr_accessor :unit
567
+
568
+ def initialize(amount: nil, unit: nil)
569
+ @amount = amount
570
+ @unit = unit
571
+ end
572
+ end
573
+
574
+ class Driver < ::Stripe::RequestParams
575
+ class DateOfBirth < ::Stripe::RequestParams
576
+ # Day of birth (1-31).
577
+ attr_accessor :day
578
+ # Month of birth (1-12).
579
+ attr_accessor :month
580
+ # Year of birth (must be greater than 1900).
581
+ attr_accessor :year
582
+
583
+ def initialize(day: nil, month: nil, year: nil)
584
+ @day = day
585
+ @month = month
586
+ @year = year
587
+ end
588
+ end
589
+ # Driver's date of birth.
590
+ attr_accessor :date_of_birth
591
+ # Driver's identification number.
592
+ attr_accessor :driver_identification_number
593
+ # Driver's tax number.
594
+ attr_accessor :driver_tax_number
595
+ # Driver's full name.
596
+ attr_accessor :name
597
+
598
+ def initialize(
599
+ date_of_birth: nil,
600
+ driver_identification_number: nil,
601
+ driver_tax_number: nil,
602
+ name: nil
603
+ )
604
+ @date_of_birth = date_of_birth
605
+ @driver_identification_number = driver_identification_number
606
+ @driver_tax_number = driver_tax_number
607
+ @name = name
608
+ end
609
+ end
610
+
611
+ class DropOff < ::Stripe::RequestParams
612
+ class Address < ::Stripe::RequestParams
613
+ # City, district, suburb, town, or village.
614
+ attr_accessor :city
615
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
616
+ attr_accessor :country
617
+ # Address line 1, such as the street, PO Box, or company name.
618
+ attr_accessor :line1
619
+ # Address line 2, such as the apartment, suite, unit, or building.
620
+ attr_accessor :line2
621
+ # ZIP or postal code.
622
+ attr_accessor :postal_code
623
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
624
+ attr_accessor :state
625
+
626
+ def initialize(
627
+ city: nil,
628
+ country: nil,
629
+ line1: nil,
630
+ line2: nil,
631
+ postal_code: nil,
632
+ state: nil
633
+ )
634
+ @city = city
635
+ @country = country
636
+ @line1 = line1
637
+ @line2 = line2
638
+ @postal_code = postal_code
639
+ @state = state
640
+ end
641
+ end
642
+ # Address of the rental location.
643
+ attr_accessor :address
644
+ # Location name.
645
+ attr_accessor :location_name
646
+ # Timestamp for the location.
647
+ attr_accessor :time
648
+
649
+ def initialize(address: nil, location_name: nil, time: nil)
650
+ @address = address
651
+ @location_name = location_name
652
+ @time = time
653
+ end
654
+ end
655
+
656
+ class Insurance < ::Stripe::RequestParams
657
+ # Amount of the insurance coverage in cents.
658
+ attr_accessor :amount
659
+ # Currency of the insurance amount.
660
+ attr_accessor :currency
661
+ # Name of the insurance company.
662
+ attr_accessor :insurance_company_name
663
+ # Type of insurance coverage.
664
+ attr_accessor :insurance_type
665
+
666
+ def initialize(
667
+ amount: nil,
668
+ currency: nil,
669
+ insurance_company_name: nil,
670
+ insurance_type: nil
671
+ )
672
+ @amount = amount
673
+ @currency = currency
674
+ @insurance_company_name = insurance_company_name
675
+ @insurance_type = insurance_type
676
+ end
677
+ end
678
+
679
+ class Pickup < ::Stripe::RequestParams
680
+ class Address < ::Stripe::RequestParams
681
+ # City, district, suburb, town, or village.
682
+ attr_accessor :city
683
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
684
+ attr_accessor :country
685
+ # Address line 1, such as the street, PO Box, or company name.
686
+ attr_accessor :line1
687
+ # Address line 2, such as the apartment, suite, unit, or building.
688
+ attr_accessor :line2
689
+ # ZIP or postal code.
690
+ attr_accessor :postal_code
691
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
692
+ attr_accessor :state
693
+
694
+ def initialize(
695
+ city: nil,
696
+ country: nil,
697
+ line1: nil,
698
+ line2: nil,
699
+ postal_code: nil,
700
+ state: nil
701
+ )
702
+ @city = city
703
+ @country = country
704
+ @line1 = line1
705
+ @line2 = line2
706
+ @postal_code = postal_code
707
+ @state = state
708
+ end
709
+ end
710
+ # Address of the rental location.
711
+ attr_accessor :address
712
+ # Location name.
713
+ attr_accessor :location_name
714
+ # Timestamp for the location.
715
+ attr_accessor :time
716
+
717
+ def initialize(address: nil, location_name: nil, time: nil)
718
+ @address = address
719
+ @location_name = location_name
720
+ @time = time
721
+ end
722
+ end
723
+
724
+ class Total < ::Stripe::RequestParams
725
+ class Discounts < ::Stripe::RequestParams
726
+ # Corporate client discount code.
727
+ attr_accessor :corporate_client_code
728
+ # Coupon code applied to the rental.
729
+ attr_accessor :coupon
730
+ # Maximum number of free miles or kilometers included.
731
+ attr_accessor :maximum_free_miles_or_kilometers
732
+
733
+ def initialize(
734
+ corporate_client_code: nil,
735
+ coupon: nil,
736
+ maximum_free_miles_or_kilometers: nil
737
+ )
738
+ @corporate_client_code = corporate_client_code
739
+ @coupon = coupon
740
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
741
+ end
742
+ end
743
+
744
+ class ExtraCharge < ::Stripe::RequestParams
745
+ # Amount of the extra charge in cents.
746
+ attr_accessor :amount
747
+ # Type of extra charge.
748
+ attr_accessor :type
749
+
750
+ def initialize(amount: nil, type: nil)
751
+ @amount = amount
752
+ @type = type
753
+ end
754
+ end
755
+
756
+ class Tax < ::Stripe::RequestParams
757
+ class Tax < ::Stripe::RequestParams
758
+ # Tax amount.
759
+ attr_accessor :amount
760
+ # Tax rate applied.
761
+ attr_accessor :rate
762
+ # Type of tax applied.
763
+ attr_accessor :type
764
+
765
+ def initialize(amount: nil, rate: nil, type: nil)
766
+ @amount = amount
767
+ @rate = rate
768
+ @type = type
769
+ end
770
+ end
771
+ # Indicates if the transaction is tax exempt.
772
+ attr_accessor :tax_exempt_indicator
773
+ # Array of tax details.
774
+ attr_accessor :taxes
775
+
776
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
777
+ @tax_exempt_indicator = tax_exempt_indicator
778
+ @taxes = taxes
779
+ end
780
+ end
781
+ # Total amount in cents.
782
+ attr_accessor :amount
783
+ # Currency of the amount.
784
+ attr_accessor :currency
785
+ # Discount details for the rental.
786
+ attr_accessor :discounts
787
+ # Additional charges for the rental.
788
+ attr_accessor :extra_charges
789
+ # Rate per unit for the rental.
790
+ attr_accessor :rate_per_unit
791
+ # Unit of measurement for the rate.
792
+ attr_accessor :rate_unit
793
+ # Tax breakdown for the rental.
794
+ attr_accessor :tax
795
+
796
+ def initialize(
797
+ amount: nil,
798
+ currency: nil,
799
+ discounts: nil,
800
+ extra_charges: nil,
801
+ rate_per_unit: nil,
802
+ rate_unit: nil,
803
+ tax: nil
804
+ )
805
+ @amount = amount
806
+ @currency = currency
807
+ @discounts = discounts
808
+ @extra_charges = extra_charges
809
+ @rate_per_unit = rate_per_unit
810
+ @rate_unit = rate_unit
811
+ @tax = tax
812
+ end
813
+ end
814
+
815
+ class Vehicle < ::Stripe::RequestParams
816
+ # Make of the rental vehicle.
817
+ attr_accessor :make
818
+ # Model of the rental vehicle.
819
+ attr_accessor :model
820
+ # Odometer reading at the time of rental.
821
+ attr_accessor :odometer
822
+ # Type of the rental vehicle.
823
+ attr_accessor :type
824
+ # Class of the rental vehicle.
825
+ attr_accessor :vehicle_class
826
+ # Vehicle identification number (VIN).
827
+ attr_accessor :vehicle_identification_number
828
+
829
+ def initialize(
830
+ make: nil,
831
+ model: nil,
832
+ odometer: nil,
833
+ type: nil,
834
+ vehicle_class: nil,
835
+ vehicle_identification_number: nil
836
+ )
837
+ @make = make
838
+ @model = model
839
+ @odometer = odometer
840
+ @type = type
841
+ @vehicle_class = vehicle_class
842
+ @vehicle_identification_number = vehicle_identification_number
843
+ end
844
+ end
845
+ # Affiliate (such as travel agency) details for the rental.
846
+ attr_accessor :affiliate
847
+ # Booking confirmation number for the car rental.
848
+ attr_accessor :booking_number
849
+ # Name of the car rental company.
850
+ attr_accessor :carrier_name
851
+ # Customer service phone number for the car rental company.
852
+ attr_accessor :customer_service_phone_number
853
+ # Number of days the car is being rented.
854
+ attr_accessor :days_rented
855
+ # Distance details for the rental.
856
+ attr_accessor :distance
857
+ # List of drivers for the rental.
858
+ attr_accessor :drivers
859
+ # Drop-off location details.
860
+ attr_accessor :drop_off
861
+ # Insurance details for the rental.
862
+ attr_accessor :insurances
863
+ # Indicates if the customer was a no-show.
864
+ attr_accessor :no_show_indicator
865
+ # Pickup location details.
866
+ attr_accessor :pickup
867
+ # Name of the person renting the vehicle.
868
+ attr_accessor :renter_name
869
+ # Total cost breakdown for the rental.
870
+ attr_accessor :total
871
+ # Vehicle details for the rental.
872
+ attr_accessor :vehicle
873
+
874
+ def initialize(
875
+ affiliate: nil,
876
+ booking_number: nil,
877
+ carrier_name: nil,
878
+ customer_service_phone_number: nil,
879
+ days_rented: nil,
880
+ distance: nil,
881
+ drivers: nil,
882
+ drop_off: nil,
883
+ insurances: nil,
884
+ no_show_indicator: nil,
885
+ pickup: nil,
886
+ renter_name: nil,
887
+ total: nil,
888
+ vehicle: nil
889
+ )
890
+ @affiliate = affiliate
891
+ @booking_number = booking_number
892
+ @carrier_name = carrier_name
893
+ @customer_service_phone_number = customer_service_phone_number
894
+ @days_rented = days_rented
895
+ @distance = distance
896
+ @drivers = drivers
897
+ @drop_off = drop_off
898
+ @insurances = insurances
899
+ @no_show_indicator = no_show_indicator
900
+ @pickup = pickup
901
+ @renter_name = renter_name
902
+ @total = total
903
+ @vehicle = vehicle
904
+ end
905
+ end
906
+
907
+ class EventDetails < ::Stripe::RequestParams
908
+ class Address < ::Stripe::RequestParams
909
+ # City, district, suburb, town, or village.
910
+ attr_accessor :city
911
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
912
+ attr_accessor :country
913
+ # Address line 1, such as the street, PO Box, or company name.
914
+ attr_accessor :line1
915
+ # Address line 2, such as the apartment, suite, unit, or building.
916
+ attr_accessor :line2
917
+ # ZIP or postal code.
918
+ attr_accessor :postal_code
919
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
920
+ attr_accessor :state
921
+
922
+ def initialize(
923
+ city: nil,
924
+ country: nil,
925
+ line1: nil,
926
+ line2: nil,
927
+ postal_code: nil,
928
+ state: nil
929
+ )
930
+ @city = city
931
+ @country = country
932
+ @line1 = line1
933
+ @line2 = line2
934
+ @postal_code = postal_code
935
+ @state = state
936
+ end
937
+ end
938
+
939
+ class Affiliate < ::Stripe::RequestParams
940
+ # The name of the affiliate that originated the purchase.
941
+ attr_accessor :name
942
+
943
+ def initialize(name: nil)
944
+ @name = name
945
+ end
946
+ end
947
+
948
+ class Delivery < ::Stripe::RequestParams
949
+ class Recipient < ::Stripe::RequestParams
950
+ # The email of the recipient the ticket is delivered to.
951
+ attr_accessor :email
952
+ # The name of the recipient the ticket is delivered to.
953
+ attr_accessor :name
954
+ # The phone number of the recipient the ticket is delivered to.
955
+ attr_accessor :phone
956
+
957
+ def initialize(email: nil, name: nil, phone: nil)
958
+ @email = email
959
+ @name = name
960
+ @phone = phone
961
+ end
962
+ end
963
+ # The delivery method for the payment
964
+ attr_accessor :mode
965
+ # Details of the recipient.
966
+ attr_accessor :recipient
967
+
968
+ def initialize(mode: nil, recipient: nil)
969
+ @mode = mode
970
+ @recipient = recipient
971
+ end
972
+ end
973
+ # Indicates if the tickets are digitally checked when entering the venue.
974
+ attr_accessor :access_controlled_venue
975
+ # The event location's address.
976
+ attr_accessor :address
977
+ # Affiliate details for this purchase.
978
+ attr_accessor :affiliate
979
+ # The name of the company
980
+ attr_accessor :company
981
+ # Delivery details for this purchase.
982
+ attr_accessor :delivery
983
+ # Event end time. Measured in seconds since the Unix epoch.
984
+ attr_accessor :ends_at
985
+ # Type of the event entertainment (concert, sports event etc)
986
+ attr_accessor :genre
987
+ # The name of the event.
988
+ attr_accessor :name
989
+ # Event start time. Measured in seconds since the Unix epoch.
990
+ attr_accessor :starts_at
991
+
992
+ def initialize(
993
+ access_controlled_venue: nil,
994
+ address: nil,
995
+ affiliate: nil,
996
+ company: nil,
997
+ delivery: nil,
998
+ ends_at: nil,
999
+ genre: nil,
1000
+ name: nil,
1001
+ starts_at: nil
1002
+ )
1003
+ @access_controlled_venue = access_controlled_venue
1004
+ @address = address
1005
+ @affiliate = affiliate
1006
+ @company = company
1007
+ @delivery = delivery
1008
+ @ends_at = ends_at
1009
+ @genre = genre
1010
+ @name = name
1011
+ @starts_at = starts_at
1012
+ end
1013
+ end
1014
+
1015
+ class FleetDatum < ::Stripe::RequestParams
1016
+ class PrimaryFuelFields < ::Stripe::RequestParams
1017
+ # The fuel brand.
1018
+ attr_accessor :brand
1019
+
1020
+ def initialize(brand: nil)
1021
+ @brand = brand
1022
+ end
1023
+ end
1024
+
1025
+ class Station < ::Stripe::RequestParams
1026
+ class ServiceLocation < ::Stripe::RequestParams
1027
+ # City, district, suburb, town, or village.
1028
+ attr_accessor :city
1029
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1030
+ attr_accessor :country
1031
+ # Address line 1, such as the street, PO Box, or company name.
1032
+ attr_accessor :line1
1033
+ # Address line 2, such as the apartment, suite, unit, or building.
1034
+ attr_accessor :line2
1035
+ # ZIP or postal code.
1036
+ attr_accessor :postal_code
1037
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1038
+ attr_accessor :state
1039
+
1040
+ def initialize(
1041
+ city: nil,
1042
+ country: nil,
1043
+ line1: nil,
1044
+ line2: nil,
1045
+ postal_code: nil,
1046
+ state: nil
1047
+ )
1048
+ @city = city
1049
+ @country = country
1050
+ @line1 = line1
1051
+ @line2 = line2
1052
+ @postal_code = postal_code
1053
+ @state = state
1054
+ end
1055
+ end
1056
+ # Additional contact information for the station.
1057
+ attr_accessor :additional_contact_info
1058
+ # The customer service phone number of the station.
1059
+ attr_accessor :customer_service_phone_number
1060
+ # The partner ID code of the station.
1061
+ attr_accessor :partner_id_code
1062
+ # The phone number of the station.
1063
+ attr_accessor :phone_number
1064
+ # The physical location of the station.
1065
+ attr_accessor :service_location
1066
+ # The URL of the station.
1067
+ attr_accessor :url
1068
+
1069
+ def initialize(
1070
+ additional_contact_info: nil,
1071
+ customer_service_phone_number: nil,
1072
+ partner_id_code: nil,
1073
+ phone_number: nil,
1074
+ service_location: nil,
1075
+ url: nil
1076
+ )
1077
+ @additional_contact_info = additional_contact_info
1078
+ @customer_service_phone_number = customer_service_phone_number
1079
+ @partner_id_code = partner_id_code
1080
+ @phone_number = phone_number
1081
+ @service_location = service_location
1082
+ @url = url
1083
+ end
1084
+ end
1085
+
1086
+ class Vat < ::Stripe::RequestParams
1087
+ # Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
1088
+ attr_accessor :iob_indicator
1089
+
1090
+ def initialize(iob_indicator: nil)
1091
+ @iob_indicator = iob_indicator
1092
+ end
1093
+ end
1094
+ # Primary fuel fields for the transaction.
1095
+ attr_accessor :primary_fuel_fields
1096
+ # Station and acceptor location details.
1097
+ attr_accessor :station
1098
+ # VAT and Invoice on Behalf (IOB) details.
1099
+ attr_accessor :vat
1100
+
1101
+ def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
1102
+ @primary_fuel_fields = primary_fuel_fields
1103
+ @station = station
1104
+ @vat = vat
1105
+ end
1106
+ end
1107
+
1108
+ class Flight < ::Stripe::RequestParams
1109
+ class Affiliate < ::Stripe::RequestParams
1110
+ # The name of the affiliate that originated the purchase.
1111
+ attr_accessor :name
1112
+
1113
+ def initialize(name: nil)
1114
+ @name = name
1115
+ end
1116
+ end
1117
+
1118
+ class Delivery < ::Stripe::RequestParams
1119
+ class Recipient < ::Stripe::RequestParams
1120
+ # The email of the recipient the ticket is delivered to.
1121
+ attr_accessor :email
1122
+ # The name of the recipient the ticket is delivered to.
1123
+ attr_accessor :name
1124
+ # The phone number of the recipient the ticket is delivered to.
1125
+ attr_accessor :phone
1126
+
1127
+ def initialize(email: nil, name: nil, phone: nil)
1128
+ @email = email
1129
+ @name = name
1130
+ @phone = phone
1131
+ end
1132
+ end
1133
+ # The delivery method for the payment
1134
+ attr_accessor :mode
1135
+ # Details of the recipient.
1136
+ attr_accessor :recipient
1137
+
1138
+ def initialize(mode: nil, recipient: nil)
1139
+ @mode = mode
1140
+ @recipient = recipient
1141
+ end
1142
+ end
1143
+
1144
+ class Passenger < ::Stripe::RequestParams
1145
+ # Full name of the person or entity on the flight reservation.
1146
+ attr_accessor :name
1147
+
1148
+ def initialize(name: nil)
1149
+ @name = name
1150
+ end
1151
+ end
1152
+
1153
+ class Segment < ::Stripe::RequestParams
1154
+ # The flight segment amount.
1155
+ attr_accessor :amount
1156
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1157
+ attr_accessor :arrival_airport
1158
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1159
+ attr_accessor :arrives_at
1160
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1161
+ attr_accessor :carrier
1162
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1163
+ attr_accessor :departs_at
1164
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1165
+ attr_accessor :departure_airport
1166
+ # The flight number associated with the segment
1167
+ attr_accessor :flight_number
1168
+ # The fare class for the segment.
1169
+ attr_accessor :service_class
1170
+
1171
+ def initialize(
1172
+ amount: nil,
1173
+ arrival_airport: nil,
1174
+ arrives_at: nil,
1175
+ carrier: nil,
1176
+ departs_at: nil,
1177
+ departure_airport: nil,
1178
+ flight_number: nil,
1179
+ service_class: nil
1180
+ )
1181
+ @amount = amount
1182
+ @arrival_airport = arrival_airport
1183
+ @arrives_at = arrives_at
1184
+ @carrier = carrier
1185
+ @departs_at = departs_at
1186
+ @departure_airport = departure_airport
1187
+ @flight_number = flight_number
1188
+ @service_class = service_class
1189
+ end
1190
+ end
1191
+ # Affiliate details for this purchase.
1192
+ attr_accessor :affiliate
1193
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1194
+ attr_accessor :agency_number
1195
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1196
+ attr_accessor :carrier
1197
+ # Delivery details for this purchase.
1198
+ attr_accessor :delivery
1199
+ # The name of the person or entity on the reservation.
1200
+ attr_accessor :passenger_name
1201
+ # The details of the passengers in the travel reservation.
1202
+ attr_accessor :passengers
1203
+ # The individual flight segments associated with the trip.
1204
+ attr_accessor :segments
1205
+ # The ticket number associated with the travel reservation.
1206
+ attr_accessor :ticket_number
1207
+
1208
+ def initialize(
1209
+ affiliate: nil,
1210
+ agency_number: nil,
1211
+ carrier: nil,
1212
+ delivery: nil,
1213
+ passenger_name: nil,
1214
+ passengers: nil,
1215
+ segments: nil,
1216
+ ticket_number: nil
1217
+ )
1218
+ @affiliate = affiliate
1219
+ @agency_number = agency_number
1220
+ @carrier = carrier
1221
+ @delivery = delivery
1222
+ @passenger_name = passenger_name
1223
+ @passengers = passengers
1224
+ @segments = segments
1225
+ @ticket_number = ticket_number
1226
+ end
1227
+ end
1228
+
1229
+ class FlightDatum < ::Stripe::RequestParams
1230
+ class Affiliate < ::Stripe::RequestParams
1231
+ # Affiliate partner code.
1232
+ attr_accessor :code
1233
+ # Name of affiliate partner.
1234
+ attr_accessor :name
1235
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1236
+ attr_accessor :travel_authorization_code
1237
+
1238
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1239
+ @code = code
1240
+ @name = name
1241
+ @travel_authorization_code = travel_authorization_code
1242
+ end
1243
+ end
1244
+
1245
+ class Insurance < ::Stripe::RequestParams
1246
+ # Insurance cost.
1247
+ attr_accessor :amount
1248
+ # Insurance currency.
1249
+ attr_accessor :currency
1250
+ # Insurance company name.
1251
+ attr_accessor :insurance_company_name
1252
+ # Type of insurance.
1253
+ attr_accessor :insurance_type
1254
+
1255
+ def initialize(
1256
+ amount: nil,
1257
+ currency: nil,
1258
+ insurance_company_name: nil,
1259
+ insurance_type: nil
1260
+ )
1261
+ @amount = amount
1262
+ @currency = currency
1263
+ @insurance_company_name = insurance_company_name
1264
+ @insurance_type = insurance_type
1265
+ end
1266
+ end
1267
+
1268
+ class Passenger < ::Stripe::RequestParams
1269
+ # Passenger's full name.
1270
+ attr_accessor :name
1271
+
1272
+ def initialize(name: nil)
1273
+ @name = name
1274
+ end
1275
+ end
1276
+
1277
+ class Segment < ::Stripe::RequestParams
1278
+ class Arrival < ::Stripe::RequestParams
1279
+ # Arrival airport IATA code.
1280
+ attr_accessor :airport
1281
+ # Arrival date/time.
1282
+ attr_accessor :arrives_at
1283
+ # Arrival city.
1284
+ attr_accessor :city
1285
+ # Arrival country.
1286
+ attr_accessor :country
1287
+
1288
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1289
+ @airport = airport
1290
+ @arrives_at = arrives_at
1291
+ @city = city
1292
+ @country = country
1293
+ end
1294
+ end
1295
+
1296
+ class Departure < ::Stripe::RequestParams
1297
+ # Departure airport IATA code.
1298
+ attr_accessor :airport
1299
+ # Departure city.
1300
+ attr_accessor :city
1301
+ # Departure country.
1302
+ attr_accessor :country
1303
+ # Departure date/time.
1304
+ attr_accessor :departs_at
1305
+
1306
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1307
+ @airport = airport
1308
+ @city = city
1309
+ @country = country
1310
+ @departs_at = departs_at
1311
+ end
1312
+ end
1313
+ # Segment fare amount.
1314
+ attr_accessor :amount
1315
+ # Arrival details.
1316
+ attr_accessor :arrival
1317
+ # Airline carrier code.
1318
+ attr_accessor :carrier_code
1319
+ # Carrier name.
1320
+ attr_accessor :carrier_name
1321
+ # Segment currency.
1322
+ attr_accessor :currency
1323
+ # Departure details.
1324
+ attr_accessor :departure
1325
+ # Exchange ticket number.
1326
+ attr_accessor :exchange_ticket_number
1327
+ # Fare basis code.
1328
+ attr_accessor :fare_basis_code
1329
+ # Additional fees.
1330
+ attr_accessor :fees
1331
+ # Flight number.
1332
+ attr_accessor :flight_number
1333
+ # Stopover indicator.
1334
+ attr_accessor :is_stop_over_indicator
1335
+ # Refundable ticket indicator.
1336
+ attr_accessor :refundable
1337
+ # Class of service.
1338
+ attr_accessor :service_class
1339
+ # Tax amount for segment.
1340
+ attr_accessor :tax_amount
1341
+ # Ticket number.
1342
+ attr_accessor :ticket_number
1343
+
1344
+ def initialize(
1345
+ amount: nil,
1346
+ arrival: nil,
1347
+ carrier_code: nil,
1348
+ carrier_name: nil,
1349
+ currency: nil,
1350
+ departure: nil,
1351
+ exchange_ticket_number: nil,
1352
+ fare_basis_code: nil,
1353
+ fees: nil,
1354
+ flight_number: nil,
1355
+ is_stop_over_indicator: nil,
1356
+ refundable: nil,
1357
+ service_class: nil,
1358
+ tax_amount: nil,
1359
+ ticket_number: nil
1360
+ )
1361
+ @amount = amount
1362
+ @arrival = arrival
1363
+ @carrier_code = carrier_code
1364
+ @carrier_name = carrier_name
1365
+ @currency = currency
1366
+ @departure = departure
1367
+ @exchange_ticket_number = exchange_ticket_number
1368
+ @fare_basis_code = fare_basis_code
1369
+ @fees = fees
1370
+ @flight_number = flight_number
1371
+ @is_stop_over_indicator = is_stop_over_indicator
1372
+ @refundable = refundable
1373
+ @service_class = service_class
1374
+ @tax_amount = tax_amount
1375
+ @ticket_number = ticket_number
1376
+ end
1377
+ end
1378
+
1379
+ class Total < ::Stripe::RequestParams
1380
+ class Discounts < ::Stripe::RequestParams
1381
+ # Corporate client discount code.
1382
+ attr_accessor :corporate_client_code
1383
+
1384
+ def initialize(corporate_client_code: nil)
1385
+ @corporate_client_code = corporate_client_code
1386
+ end
1387
+ end
1388
+
1389
+ class ExtraCharge < ::Stripe::RequestParams
1390
+ # Amount of additional charges.
1391
+ attr_accessor :amount
1392
+ # Type of additional charges.
1393
+ attr_accessor :type
1394
+
1395
+ def initialize(amount: nil, type: nil)
1396
+ @amount = amount
1397
+ @type = type
1398
+ end
1399
+ end
1400
+
1401
+ class Tax < ::Stripe::RequestParams
1402
+ class Tax < ::Stripe::RequestParams
1403
+ # Tax amount.
1404
+ attr_accessor :amount
1405
+ # Tax rate.
1406
+ attr_accessor :rate
1407
+ # Type of tax.
1408
+ attr_accessor :type
1409
+
1410
+ def initialize(amount: nil, rate: nil, type: nil)
1411
+ @amount = amount
1412
+ @rate = rate
1413
+ @type = type
1414
+ end
1415
+ end
1416
+ # Array of tax details.
1417
+ attr_accessor :taxes
1418
+
1419
+ def initialize(taxes: nil)
1420
+ @taxes = taxes
1421
+ end
1422
+ end
1423
+ # Total flight amount.
1424
+ attr_accessor :amount
1425
+ # Reason for credit.
1426
+ attr_accessor :credit_reason
1427
+ # Total currency.
1428
+ attr_accessor :currency
1429
+ # Discount details.
1430
+ attr_accessor :discounts
1431
+ # Additional charges.
1432
+ attr_accessor :extra_charges
1433
+ # Tax breakdown.
1434
+ attr_accessor :tax
1435
+
1436
+ def initialize(
1437
+ amount: nil,
1438
+ credit_reason: nil,
1439
+ currency: nil,
1440
+ discounts: nil,
1441
+ extra_charges: nil,
1442
+ tax: nil
1443
+ )
1444
+ @amount = amount
1445
+ @credit_reason = credit_reason
1446
+ @currency = currency
1447
+ @discounts = discounts
1448
+ @extra_charges = extra_charges
1449
+ @tax = tax
1450
+ end
1451
+ end
1452
+ # Affiliate details if applicable.
1453
+ attr_accessor :affiliate
1454
+ # Reservation reference.
1455
+ attr_accessor :booking_number
1456
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1457
+ attr_accessor :computerized_reservation_system
1458
+ # Ticket restrictions.
1459
+ attr_accessor :endorsements_and_restrictions
1460
+ # List of insurances.
1461
+ attr_accessor :insurances
1462
+ # List of passengers.
1463
+ attr_accessor :passengers
1464
+ # List of flight segments.
1465
+ attr_accessor :segments
1466
+ # Electronic ticket indicator.
1467
+ attr_accessor :ticket_electronically_issued_indicator
1468
+ # Total cost breakdown.
1469
+ attr_accessor :total
1470
+ # Type of flight transaction.
1471
+ attr_accessor :transaction_type
1472
+
1473
+ def initialize(
1474
+ affiliate: nil,
1475
+ booking_number: nil,
1476
+ computerized_reservation_system: nil,
1477
+ endorsements_and_restrictions: nil,
1478
+ insurances: nil,
1479
+ passengers: nil,
1480
+ segments: nil,
1481
+ ticket_electronically_issued_indicator: nil,
1482
+ total: nil,
1483
+ transaction_type: nil
1484
+ )
1485
+ @affiliate = affiliate
1486
+ @booking_number = booking_number
1487
+ @computerized_reservation_system = computerized_reservation_system
1488
+ @endorsements_and_restrictions = endorsements_and_restrictions
1489
+ @insurances = insurances
1490
+ @passengers = passengers
1491
+ @segments = segments
1492
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1493
+ @total = total
1494
+ @transaction_type = transaction_type
1495
+ end
1496
+ end
1497
+
1498
+ class Lodging < ::Stripe::RequestParams
1499
+ class Address < ::Stripe::RequestParams
1500
+ # City, district, suburb, town, or village.
1501
+ attr_accessor :city
1502
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1503
+ attr_accessor :country
1504
+ # Address line 1, such as the street, PO Box, or company name.
1505
+ attr_accessor :line1
1506
+ # Address line 2, such as the apartment, suite, unit, or building.
1507
+ attr_accessor :line2
1508
+ # ZIP or postal code.
1509
+ attr_accessor :postal_code
1510
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1511
+ attr_accessor :state
1512
+
1513
+ def initialize(
1514
+ city: nil,
1515
+ country: nil,
1516
+ line1: nil,
1517
+ line2: nil,
1518
+ postal_code: nil,
1519
+ state: nil
1520
+ )
1521
+ @city = city
1522
+ @country = country
1523
+ @line1 = line1
1524
+ @line2 = line2
1525
+ @postal_code = postal_code
1526
+ @state = state
1527
+ end
1528
+ end
1529
+
1530
+ class Affiliate < ::Stripe::RequestParams
1531
+ # The name of the affiliate that originated the purchase.
1532
+ attr_accessor :name
1533
+
1534
+ def initialize(name: nil)
1535
+ @name = name
1536
+ end
1537
+ end
1538
+
1539
+ class Delivery < ::Stripe::RequestParams
1540
+ class Recipient < ::Stripe::RequestParams
1541
+ # The email of the recipient the ticket is delivered to.
1542
+ attr_accessor :email
1543
+ # The name of the recipient the ticket is delivered to.
1544
+ attr_accessor :name
1545
+ # The phone number of the recipient the ticket is delivered to.
1546
+ attr_accessor :phone
1547
+
1548
+ def initialize(email: nil, name: nil, phone: nil)
1549
+ @email = email
1550
+ @name = name
1551
+ @phone = phone
1552
+ end
1553
+ end
1554
+ # The delivery method for the payment
1555
+ attr_accessor :mode
1556
+ # Details of the recipient.
1557
+ attr_accessor :recipient
1558
+
1559
+ def initialize(mode: nil, recipient: nil)
1560
+ @mode = mode
1561
+ @recipient = recipient
1562
+ end
1563
+ end
1564
+
1565
+ class Passenger < ::Stripe::RequestParams
1566
+ # Full name of the person or entity on the lodging reservation.
1567
+ attr_accessor :name
1568
+
1569
+ def initialize(name: nil)
1570
+ @name = name
1571
+ end
1572
+ end
1573
+ # The lodging location's address.
1574
+ attr_accessor :address
1575
+ # The number of adults on the booking
1576
+ attr_accessor :adults
1577
+ # Affiliate details for this purchase.
1578
+ attr_accessor :affiliate
1579
+ # The booking number associated with the lodging reservation.
1580
+ attr_accessor :booking_number
1581
+ # The lodging category
1582
+ attr_accessor :category
1583
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1584
+ attr_accessor :checkin_at
1585
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1586
+ attr_accessor :checkout_at
1587
+ # The customer service phone number of the lodging company.
1588
+ attr_accessor :customer_service_phone_number
1589
+ # The daily lodging room rate.
1590
+ attr_accessor :daily_room_rate_amount
1591
+ # Delivery details for this purchase.
1592
+ attr_accessor :delivery
1593
+ # List of additional charges being billed.
1594
+ attr_accessor :extra_charges
1595
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1596
+ attr_accessor :fire_safety_act_compliance
1597
+ # The name of the lodging location.
1598
+ attr_accessor :name
1599
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1600
+ attr_accessor :no_show
1601
+ # The number of rooms on the booking
1602
+ attr_accessor :number_of_rooms
1603
+ # The details of the passengers in the travel reservation
1604
+ attr_accessor :passengers
1605
+ # The phone number of the lodging location.
1606
+ attr_accessor :property_phone_number
1607
+ # The room class for this purchase.
1608
+ attr_accessor :room_class
1609
+ # The number of room nights
1610
+ attr_accessor :room_nights
1611
+ # The total tax amount associating with the room reservation.
1612
+ attr_accessor :total_room_tax_amount
1613
+ # The total tax amount
1614
+ attr_accessor :total_tax_amount
1615
+
1616
+ def initialize(
1617
+ address: nil,
1618
+ adults: nil,
1619
+ affiliate: nil,
1620
+ booking_number: nil,
1621
+ category: nil,
1622
+ checkin_at: nil,
1623
+ checkout_at: nil,
1624
+ customer_service_phone_number: nil,
1625
+ daily_room_rate_amount: nil,
1626
+ delivery: nil,
1627
+ extra_charges: nil,
1628
+ fire_safety_act_compliance: nil,
1629
+ name: nil,
1630
+ no_show: nil,
1631
+ number_of_rooms: nil,
1632
+ passengers: nil,
1633
+ property_phone_number: nil,
1634
+ room_class: nil,
1635
+ room_nights: nil,
1636
+ total_room_tax_amount: nil,
1637
+ total_tax_amount: nil
1638
+ )
1639
+ @address = address
1640
+ @adults = adults
1641
+ @affiliate = affiliate
1642
+ @booking_number = booking_number
1643
+ @category = category
1644
+ @checkin_at = checkin_at
1645
+ @checkout_at = checkout_at
1646
+ @customer_service_phone_number = customer_service_phone_number
1647
+ @daily_room_rate_amount = daily_room_rate_amount
1648
+ @delivery = delivery
1649
+ @extra_charges = extra_charges
1650
+ @fire_safety_act_compliance = fire_safety_act_compliance
1651
+ @name = name
1652
+ @no_show = no_show
1653
+ @number_of_rooms = number_of_rooms
1654
+ @passengers = passengers
1655
+ @property_phone_number = property_phone_number
1656
+ @room_class = room_class
1657
+ @room_nights = room_nights
1658
+ @total_room_tax_amount = total_room_tax_amount
1659
+ @total_tax_amount = total_tax_amount
1660
+ end
1661
+ end
1662
+
1663
+ class LodgingDatum < ::Stripe::RequestParams
1664
+ class Accommodation < ::Stripe::RequestParams
1665
+ # Type of accommodation.
1666
+ attr_accessor :accommodation_type
1667
+ # Bed type.
1668
+ attr_accessor :bed_type
1669
+ # Daily accommodation rate in cents.
1670
+ attr_accessor :daily_rate_amount
1671
+ # Number of nights.
1672
+ attr_accessor :nights
1673
+ # Number of rooms, cabanas, apartments, and so on.
1674
+ attr_accessor :number_of_rooms
1675
+ # Rate type.
1676
+ attr_accessor :rate_type
1677
+ # Whether smoking is allowed.
1678
+ attr_accessor :smoking_indicator
1679
+
1680
+ def initialize(
1681
+ accommodation_type: nil,
1682
+ bed_type: nil,
1683
+ daily_rate_amount: nil,
1684
+ nights: nil,
1685
+ number_of_rooms: nil,
1686
+ rate_type: nil,
1687
+ smoking_indicator: nil
1688
+ )
1689
+ @accommodation_type = accommodation_type
1690
+ @bed_type = bed_type
1691
+ @daily_rate_amount = daily_rate_amount
1692
+ @nights = nights
1693
+ @number_of_rooms = number_of_rooms
1694
+ @rate_type = rate_type
1695
+ @smoking_indicator = smoking_indicator
1696
+ end
1697
+ end
1698
+
1699
+ class Affiliate < ::Stripe::RequestParams
1700
+ # Affiliate partner code.
1701
+ attr_accessor :code
1702
+ # Affiliate partner name.
1703
+ attr_accessor :name
1704
+
1705
+ def initialize(code: nil, name: nil)
1706
+ @code = code
1707
+ @name = name
1708
+ end
1709
+ end
1710
+
1711
+ class Guest < ::Stripe::RequestParams
1712
+ # Guest's full name.
1713
+ attr_accessor :name
1714
+
1715
+ def initialize(name: nil)
1716
+ @name = name
1717
+ end
1718
+ end
1719
+
1720
+ class Host < ::Stripe::RequestParams
1721
+ class Address < ::Stripe::RequestParams
1722
+ # City, district, suburb, town, or village.
1723
+ attr_accessor :city
1724
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1725
+ attr_accessor :country
1726
+ # Address line 1, such as the street, PO Box, or company name.
1727
+ attr_accessor :line1
1728
+ # Address line 2, such as the apartment, suite, unit, or building.
1729
+ attr_accessor :line2
1730
+ # ZIP or postal code.
1731
+ attr_accessor :postal_code
1732
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1733
+ attr_accessor :state
1734
+
1735
+ def initialize(
1736
+ city: nil,
1737
+ country: nil,
1738
+ line1: nil,
1739
+ line2: nil,
1740
+ postal_code: nil,
1741
+ state: nil
1742
+ )
1743
+ @city = city
1744
+ @country = country
1745
+ @line1 = line1
1746
+ @line2 = line2
1747
+ @postal_code = postal_code
1748
+ @state = state
1749
+ end
1750
+ end
1751
+ # Address of the host.
1752
+ attr_accessor :address
1753
+ # Host's country of domicile.
1754
+ attr_accessor :country_of_domicile
1755
+ # Reference number for the host.
1756
+ attr_accessor :host_reference
1757
+ # Type of host.
1758
+ attr_accessor :host_type
1759
+ # Name of the lodging property or host.
1760
+ attr_accessor :name
1761
+ # Total number of reservations for the host.
1762
+ attr_accessor :number_of_reservations
1763
+ # Property phone number.
1764
+ attr_accessor :property_phone_number
1765
+ # Host's registration date.
1766
+ attr_accessor :registered_at
1767
+
1768
+ def initialize(
1769
+ address: nil,
1770
+ country_of_domicile: nil,
1771
+ host_reference: nil,
1772
+ host_type: nil,
1773
+ name: nil,
1774
+ number_of_reservations: nil,
1775
+ property_phone_number: nil,
1776
+ registered_at: nil
1777
+ )
1778
+ @address = address
1779
+ @country_of_domicile = country_of_domicile
1780
+ @host_reference = host_reference
1781
+ @host_type = host_type
1782
+ @name = name
1783
+ @number_of_reservations = number_of_reservations
1784
+ @property_phone_number = property_phone_number
1785
+ @registered_at = registered_at
1786
+ end
1787
+ end
1788
+
1789
+ class Insurance < ::Stripe::RequestParams
1790
+ # Price of the insurance coverage in cents.
1791
+ attr_accessor :amount
1792
+ # Currency of the insurance amount.
1793
+ attr_accessor :currency
1794
+ # Name of the insurance company.
1795
+ attr_accessor :insurance_company_name
1796
+ # Type of insurance coverage.
1797
+ attr_accessor :insurance_type
1798
+
1799
+ def initialize(
1800
+ amount: nil,
1801
+ currency: nil,
1802
+ insurance_company_name: nil,
1803
+ insurance_type: nil
1804
+ )
1805
+ @amount = amount
1806
+ @currency = currency
1807
+ @insurance_company_name = insurance_company_name
1808
+ @insurance_type = insurance_type
1809
+ end
1810
+ end
1811
+
1812
+ class Total < ::Stripe::RequestParams
1813
+ class Discounts < ::Stripe::RequestParams
1814
+ # Corporate client discount code.
1815
+ attr_accessor :corporate_client_code
1816
+ # Coupon code.
1817
+ attr_accessor :coupon
1818
+
1819
+ def initialize(corporate_client_code: nil, coupon: nil)
1820
+ @corporate_client_code = corporate_client_code
1821
+ @coupon = coupon
1822
+ end
1823
+ end
1824
+
1825
+ class ExtraCharge < ::Stripe::RequestParams
1826
+ # Amount of the extra charge in cents.
1827
+ attr_accessor :amount
1828
+ # Type of extra charge.
1829
+ attr_accessor :type
1830
+
1831
+ def initialize(amount: nil, type: nil)
1832
+ @amount = amount
1833
+ @type = type
1834
+ end
1835
+ end
80
1836
 
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
1837
+ class Tax < ::Stripe::RequestParams
1838
+ class Tax < ::Stripe::RequestParams
1839
+ # Tax amount in cents.
1840
+ attr_accessor :amount
1841
+ # Tax rate.
1842
+ attr_accessor :rate
1843
+ # Type of tax applied.
1844
+ attr_accessor :type
1845
+
1846
+ def initialize(amount: nil, rate: nil, type: nil)
1847
+ @amount = amount
1848
+ @rate = rate
1849
+ @type = type
1850
+ end
1851
+ end
1852
+ # Indicates whether the transaction is tax exempt.
1853
+ attr_accessor :tax_exempt_indicator
1854
+ # Tax details.
1855
+ attr_accessor :taxes
1856
+
1857
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1858
+ @tax_exempt_indicator = tax_exempt_indicator
1859
+ @taxes = taxes
1860
+ end
1861
+ end
1862
+ # Total price of the lodging reservation in cents.
1863
+ attr_accessor :amount
1864
+ # Cash advances in cents.
1865
+ attr_accessor :cash_advances
1866
+ # Currency of the total amount.
1867
+ attr_accessor :currency
1868
+ # Discount details for the lodging.
1869
+ attr_accessor :discounts
1870
+ # Additional charges for the lodging.
1871
+ attr_accessor :extra_charges
1872
+ # Prepaid amount in cents.
1873
+ attr_accessor :prepaid_amount
1874
+ # Tax breakdown for the lodging reservation.
1875
+ attr_accessor :tax
86
1876
 
87
- def initialize(total_tax_amount: nil)
88
- @total_tax_amount = total_tax_amount
1877
+ def initialize(
1878
+ amount: nil,
1879
+ cash_advances: nil,
1880
+ currency: nil,
1881
+ discounts: nil,
1882
+ extra_charges: nil,
1883
+ prepaid_amount: nil,
1884
+ tax: nil
1885
+ )
1886
+ @amount = amount
1887
+ @cash_advances = cash_advances
1888
+ @currency = currency
1889
+ @discounts = discounts
1890
+ @extra_charges = extra_charges
1891
+ @prepaid_amount = prepaid_amount
1892
+ @tax = tax
89
1893
  end
90
1894
  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
1895
+ # Accommodation details for the lodging.
1896
+ attr_accessor :accommodation
1897
+ # Affiliate details if applicable.
1898
+ attr_accessor :affiliate
1899
+ # Booking confirmation number for the lodging.
1900
+ attr_accessor :booking_number
1901
+ # Check-in date.
1902
+ attr_accessor :checkin_at
1903
+ # Check-out date.
1904
+ attr_accessor :checkout_at
1905
+ # Customer service phone number for the lodging company.
1906
+ attr_accessor :customer_service_phone_number
1907
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1908
+ attr_accessor :fire_safety_act_compliance_indicator
1909
+ # List of guests for the lodging.
1910
+ attr_accessor :guests
1911
+ # Host details for the lodging.
1912
+ attr_accessor :host
1913
+ # List of insurances for the lodging.
1914
+ attr_accessor :insurances
1915
+ # Whether the renter is a no-show.
1916
+ attr_accessor :no_show_indicator
1917
+ # Renter ID number for the lodging.
1918
+ attr_accessor :renter_id_number
1919
+ # Renter name for the lodging.
1920
+ attr_accessor :renter_name
1921
+ # Total details for the lodging.
1922
+ attr_accessor :total
111
1923
 
112
1924
  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
1925
+ accommodation: nil,
1926
+ affiliate: nil,
1927
+ booking_number: nil,
1928
+ checkin_at: nil,
1929
+ checkout_at: nil,
1930
+ customer_service_phone_number: nil,
1931
+ fire_safety_act_compliance_indicator: nil,
1932
+ guests: nil,
1933
+ host: nil,
1934
+ insurances: nil,
1935
+ no_show_indicator: nil,
1936
+ renter_id_number: nil,
1937
+ renter_name: nil,
1938
+ total: nil
121
1939
  )
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
1940
+ @accommodation = accommodation
1941
+ @affiliate = affiliate
1942
+ @booking_number = booking_number
1943
+ @checkin_at = checkin_at
1944
+ @checkout_at = checkout_at
1945
+ @customer_service_phone_number = customer_service_phone_number
1946
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1947
+ @guests = guests
1948
+ @host = host
1949
+ @insurances = insurances
1950
+ @no_show_indicator = no_show_indicator
1951
+ @renter_id_number = renter_id_number
1952
+ @renter_name = renter_name
1953
+ @total = total
130
1954
  end
131
1955
  end
132
1956
 
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
1957
+ class MoneyServices < ::Stripe::RequestParams
1958
+ class AccountFunding < ::Stripe::RequestParams
1959
+ class SenderDetails < ::Stripe::RequestParams
1960
+ class Address < ::Stripe::RequestParams
1961
+ # City, district, suburb, town, or village.
1962
+ attr_accessor :city
1963
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1964
+ attr_accessor :country
1965
+ # Address line 1, such as the street, PO Box, or company name.
1966
+ attr_accessor :line1
1967
+ # Address line 2, such as the apartment, suite, unit, or building.
1968
+ attr_accessor :line2
1969
+ # ZIP or postal code.
1970
+ attr_accessor :postal_code
1971
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1972
+ attr_accessor :state
1973
+
1974
+ def initialize(
1975
+ city: nil,
1976
+ country: nil,
1977
+ line1: nil,
1978
+ line2: nil,
1979
+ postal_code: nil,
1980
+ state: nil
1981
+ )
1982
+ @city = city
1983
+ @country = country
1984
+ @line1 = line1
1985
+ @line2 = line2
1986
+ @postal_code = postal_code
1987
+ @state = state
1988
+ end
1989
+ end
140
1990
 
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
1991
+ class DateOfBirth < ::Stripe::RequestParams
1992
+ # Day of birth, between 1 and 31.
1993
+ attr_accessor :day
1994
+ # Month of birth, between 1 and 12.
1995
+ attr_accessor :month
1996
+ # Four-digit year of birth.
1997
+ attr_accessor :year
1998
+
1999
+ def initialize(day: nil, month: nil, year: nil)
2000
+ @day = day
2001
+ @month = month
2002
+ @year = year
2003
+ end
2004
+ end
2005
+ # Address.
2006
+ attr_accessor :address
2007
+ # Date of birth.
2008
+ attr_accessor :date_of_birth
2009
+ # Email address.
2010
+ attr_accessor :email
2011
+ # Given (first) name.
2012
+ attr_accessor :given_name
2013
+ # Phone number.
2014
+ attr_accessor :phone
2015
+ # Surname (family name).
2016
+ attr_accessor :surname
147
2017
 
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
2018
+ def initialize(
2019
+ address: nil,
2020
+ date_of_birth: nil,
2021
+ email: nil,
2022
+ given_name: nil,
2023
+ phone: nil,
2024
+ surname: nil
2025
+ )
2026
+ @address = address
2027
+ @date_of_birth = date_of_birth
2028
+ @email = email
2029
+ @given_name = given_name
2030
+ @phone = phone
2031
+ @surname = surname
2032
+ end
2033
+ end
2034
+ # Inline identity details for the sender of this account funding transaction.
2035
+ attr_accessor :sender_details
153
2036
 
154
- def initialize(total_tax_amount: nil)
155
- @total_tax_amount = total_tax_amount
2037
+ def initialize(sender_details: nil)
2038
+ @sender_details = sender_details
2039
+ end
156
2040
  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
174
2041
 
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
2042
+ class BeneficiaryDetails < ::Stripe::RequestParams
2043
+ class Address < ::Stripe::RequestParams
2044
+ # City, district, suburb, town, or village.
2045
+ attr_accessor :city
2046
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2047
+ attr_accessor :country
2048
+ # Address line 1, such as the street, PO Box, or company name.
2049
+ attr_accessor :line1
2050
+ # Address line 2, such as the apartment, suite, unit, or building.
2051
+ attr_accessor :line2
2052
+ # ZIP or postal code.
2053
+ attr_accessor :postal_code
2054
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2055
+ attr_accessor :state
2056
+
2057
+ def initialize(
2058
+ city: nil,
2059
+ country: nil,
2060
+ line1: nil,
2061
+ line2: nil,
2062
+ postal_code: nil,
2063
+ state: nil
2064
+ )
2065
+ @city = city
2066
+ @country = country
2067
+ @line1 = line1
2068
+ @line2 = line2
2069
+ @postal_code = postal_code
2070
+ @state = state
2071
+ end
2072
+ end
2073
+
2074
+ class DateOfBirth < ::Stripe::RequestParams
2075
+ # Day of birth, between 1 and 31.
2076
+ attr_accessor :day
2077
+ # Month of birth, between 1 and 12.
2078
+ attr_accessor :month
2079
+ # Four-digit year of birth.
2080
+ attr_accessor :year
2081
+
2082
+ def initialize(day: nil, month: nil, year: nil)
2083
+ @day = day
2084
+ @month = month
2085
+ @year = year
2086
+ end
2087
+ end
2088
+ # An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).
2089
+ attr_accessor :account_reference
2090
+ # Address.
2091
+ attr_accessor :address
2092
+ # Date of birth.
2093
+ attr_accessor :date_of_birth
2094
+ # Email address.
2095
+ attr_accessor :email
2096
+ # Given (first) name.
2097
+ attr_accessor :given_name
2098
+ # Phone number.
2099
+ attr_accessor :phone
2100
+ # Surname (family name).
2101
+ attr_accessor :surname
2102
+
2103
+ def initialize(
2104
+ account_reference: nil,
2105
+ address: nil,
2106
+ date_of_birth: nil,
2107
+ email: nil,
2108
+ given_name: nil,
2109
+ phone: nil,
2110
+ surname: nil
2111
+ )
2112
+ @account_reference = account_reference
2113
+ @address = address
2114
+ @date_of_birth = date_of_birth
2115
+ @email = email
2116
+ @given_name = given_name
2117
+ @phone = phone
2118
+ @surname = surname
2119
+ end
2120
+ end
2121
+ # Account funding transaction details including sender information.
2122
+ attr_accessor :account_funding
2123
+ # Inline identity details for the beneficiary of this transaction.
2124
+ attr_accessor :beneficiary_details
2125
+ # The type of money services transaction.
2126
+ attr_accessor :transaction_type
2127
+
2128
+ def initialize(account_funding: nil, beneficiary_details: nil, transaction_type: nil)
2129
+ @account_funding = account_funding
2130
+ @beneficiary_details = beneficiary_details
2131
+ @transaction_type = transaction_type
2132
+ end
187
2133
  end
188
- end
189
2134
 
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
2135
+ class Subscription < ::Stripe::RequestParams
2136
+ class Affiliate < ::Stripe::RequestParams
2137
+ # The name of the affiliate that originated the purchase.
2138
+ attr_accessor :name
195
2139
 
196
- def initialize(calculation: nil)
197
- @calculation = calculation
2140
+ def initialize(name: nil)
2141
+ @name = name
198
2142
  end
199
2143
  end
200
- # Tax arguments for automations
201
- attr_accessor :tax
202
2144
 
203
- def initialize(tax: nil)
204
- @tax = tax
2145
+ class BillingInterval < ::Stripe::RequestParams
2146
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2147
+ attr_accessor :count
2148
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2149
+ attr_accessor :interval
2150
+
2151
+ def initialize(count: nil, interval: nil)
2152
+ @count = count
2153
+ @interval = interval
2154
+ end
205
2155
  end
206
- end
207
- # Arguments passed in automations
208
- attr_accessor :inputs
2156
+ # Affiliate details for this purchase.
2157
+ attr_accessor :affiliate
2158
+ # Info whether the subscription will be auto renewed upon expiry.
2159
+ attr_accessor :auto_renewal
2160
+ # Subscription billing details for this purchase.
2161
+ attr_accessor :billing_interval
2162
+ # Subscription end time. Measured in seconds since the Unix epoch.
2163
+ attr_accessor :ends_at
2164
+ # Name of the product on subscription. e.g. Apple Music Subscription
2165
+ attr_accessor :name
2166
+ # Subscription start time. Measured in seconds since the Unix epoch.
2167
+ attr_accessor :starts_at
209
2168
 
210
- def initialize(inputs: nil)
211
- @inputs = inputs
2169
+ def initialize(
2170
+ affiliate: nil,
2171
+ auto_renewal: nil,
2172
+ billing_interval: nil,
2173
+ ends_at: nil,
2174
+ name: nil,
2175
+ starts_at: nil
2176
+ )
2177
+ @affiliate = affiliate
2178
+ @auto_renewal = auto_renewal
2179
+ @billing_interval = billing_interval
2180
+ @ends_at = ends_at
2181
+ @name = name
2182
+ @starts_at = starts_at
2183
+ end
212
2184
  end
213
- end
214
-
215
- class PaymentDetails < ::Stripe::RequestParams
2185
+ # Benefit details for this PaymentIntent
2186
+ attr_accessor :benefit
2187
+ # Car rental details for this PaymentIntent.
2188
+ attr_accessor :car_rental
2189
+ # Car rental data for this PaymentIntent.
2190
+ attr_accessor :car_rental_data
216
2191
  # A unique value to identify the customer. This field is available only for card payments.
217
2192
  #
218
2193
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
219
2194
  attr_accessor :customer_reference
2195
+ # Event details for this PaymentIntent
2196
+ attr_accessor :event_details
2197
+ # Fleet data for this PaymentIntent.
2198
+ attr_accessor :fleet_data
2199
+ # Flight reservation details for this PaymentIntent
2200
+ attr_accessor :flight
2201
+ # Flight data for this PaymentIntent.
2202
+ attr_accessor :flight_data
2203
+ # The ID of the Payment Location for this PaymentIntent.
2204
+ attr_accessor :location
2205
+ # Lodging reservation details for this PaymentIntent
2206
+ attr_accessor :lodging
2207
+ # Lodging data for this PaymentIntent.
2208
+ attr_accessor :lodging_data
2209
+ # Money services details for this PaymentIntent.
2210
+ attr_accessor :money_services
220
2211
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
221
2212
  #
222
2213
  # 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
2214
  attr_accessor :order_reference
2215
+ # Subscription details for this PaymentIntent
2216
+ attr_accessor :subscription
224
2217
 
225
- def initialize(customer_reference: nil, order_reference: nil)
2218
+ def initialize(
2219
+ benefit: nil,
2220
+ car_rental: nil,
2221
+ car_rental_data: nil,
2222
+ customer_reference: nil,
2223
+ event_details: nil,
2224
+ fleet_data: nil,
2225
+ flight: nil,
2226
+ flight_data: nil,
2227
+ location: nil,
2228
+ lodging: nil,
2229
+ lodging_data: nil,
2230
+ money_services: nil,
2231
+ order_reference: nil,
2232
+ subscription: nil
2233
+ )
2234
+ @benefit = benefit
2235
+ @car_rental = car_rental
2236
+ @car_rental_data = car_rental_data
226
2237
  @customer_reference = customer_reference
2238
+ @event_details = event_details
2239
+ @fleet_data = fleet_data
2240
+ @flight = flight
2241
+ @flight_data = flight_data
2242
+ @location = location
2243
+ @lodging = lodging
2244
+ @lodging_data = lodging_data
2245
+ @money_services = money_services
227
2246
  @order_reference = order_reference
2247
+ @subscription = subscription
228
2248
  end
229
2249
  end
230
2250
 
@@ -365,9 +2385,28 @@ module Stripe
365
2385
  end
366
2386
  end
367
2387
 
2388
+ class GiftCard < ::Stripe::RequestParams
2389
+ # The gift card ID to redeem
2390
+ attr_accessor :gift_card
2391
+
2392
+ def initialize(gift_card: nil)
2393
+ @gift_card = gift_card
2394
+ end
2395
+ end
2396
+
368
2397
  class Giropay < ::Stripe::RequestParams; end
2398
+ class Gopay < ::Stripe::RequestParams; end
369
2399
  class Grabpay < ::Stripe::RequestParams; end
370
2400
 
2401
+ class IdBankTransfer < ::Stripe::RequestParams
2402
+ # Bank where the account is held.
2403
+ attr_accessor :bank
2404
+
2405
+ def initialize(bank: nil)
2406
+ @bank = bank
2407
+ end
2408
+ end
2409
+
371
2410
  class Ideal < ::Stripe::RequestParams
372
2411
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
373
2412
  attr_accessor :bank
@@ -465,6 +2504,7 @@ module Stripe
465
2504
  class Payco < ::Stripe::RequestParams; end
466
2505
  class Paynow < ::Stripe::RequestParams; end
467
2506
  class Paypal < ::Stripe::RequestParams; end
2507
+ class Paypay < ::Stripe::RequestParams; end
468
2508
 
469
2509
  class Payto < ::Stripe::RequestParams
470
2510
  # The account number for the bank account.
@@ -483,6 +2523,7 @@ module Stripe
483
2523
 
484
2524
  class Pix < ::Stripe::RequestParams; end
485
2525
  class Promptpay < ::Stripe::RequestParams; end
2526
+ class Qris < ::Stripe::RequestParams; end
486
2527
 
487
2528
  class RadarOptions < ::Stripe::RequestParams
488
2529
  # 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 +2534,29 @@ module Stripe
493
2534
  end
494
2535
  end
495
2536
 
2537
+ class Rechnung < ::Stripe::RequestParams
2538
+ class Dob < ::Stripe::RequestParams
2539
+ # The day of birth, between 1 and 31.
2540
+ attr_accessor :day
2541
+ # The month of birth, between 1 and 12.
2542
+ attr_accessor :month
2543
+ # The four-digit year of birth.
2544
+ attr_accessor :year
2545
+
2546
+ def initialize(day: nil, month: nil, year: nil)
2547
+ @day = day
2548
+ @month = month
2549
+ @year = year
2550
+ end
2551
+ end
2552
+ # Customer's date of birth
2553
+ attr_accessor :dob
2554
+
2555
+ def initialize(dob: nil)
2556
+ @dob = dob
2557
+ end
2558
+ end
2559
+
496
2560
  class RevolutPay < ::Stripe::RequestParams; end
497
2561
  class SamsungPay < ::Stripe::RequestParams; end
498
2562
  class Satispay < ::Stripe::RequestParams; end
@@ -507,6 +2571,8 @@ module Stripe
507
2571
  end
508
2572
  end
509
2573
 
2574
+ class Shopeepay < ::Stripe::RequestParams; end
2575
+
510
2576
  class Sofort < ::Stripe::RequestParams
511
2577
  # Two-letter ISO code representing the country the bank account is located in.
512
2578
  attr_accessor :country
@@ -516,8 +2582,18 @@ module Stripe
516
2582
  end
517
2583
  end
518
2584
 
2585
+ class StripeBalance < ::Stripe::RequestParams
2586
+ # The connected account ID whose Stripe balance to use as the source of payment
2587
+ attr_accessor :account
2588
+
2589
+ def initialize(account: nil)
2590
+ @account = account
2591
+ end
2592
+ end
2593
+
519
2594
  class Sunbit < ::Stripe::RequestParams; end
520
2595
  class Swish < ::Stripe::RequestParams; end
2596
+ class Tamara < ::Stripe::RequestParams; end
521
2597
  class Twint < ::Stripe::RequestParams; end
522
2598
 
523
2599
  class Upi < ::Stripe::RequestParams
@@ -615,10 +2691,16 @@ module Stripe
615
2691
  attr_accessor :eps
616
2692
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
617
2693
  attr_accessor :fpx
2694
+ # If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
2695
+ attr_accessor :gift_card
618
2696
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
619
2697
  attr_accessor :giropay
2698
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2699
+ attr_accessor :gopay
620
2700
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
621
2701
  attr_accessor :grabpay
2702
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2703
+ attr_accessor :id_bank_transfer
622
2704
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
623
2705
  attr_accessor :ideal
624
2706
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -657,14 +2739,20 @@ module Stripe
657
2739
  attr_accessor :paynow
658
2740
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
659
2741
  attr_accessor :paypal
2742
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2743
+ attr_accessor :paypay
660
2744
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
661
2745
  attr_accessor :payto
662
2746
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
663
2747
  attr_accessor :pix
664
2748
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
665
2749
  attr_accessor :promptpay
2750
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2751
+ attr_accessor :qris
666
2752
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
667
2753
  attr_accessor :radar_options
2754
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2755
+ attr_accessor :rechnung
668
2756
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
669
2757
  attr_accessor :revolut_pay
670
2758
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -675,12 +2763,20 @@ module Stripe
675
2763
  attr_accessor :scalapay
676
2764
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
677
2765
  attr_accessor :sepa_debit
2766
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2767
+ attr_accessor :shared_payment_granted_token
2768
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2769
+ attr_accessor :shopeepay
678
2770
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
679
2771
  attr_accessor :sofort
2772
+ # This hash contains details about the Stripe balance payment method.
2773
+ attr_accessor :stripe_balance
680
2774
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
681
2775
  attr_accessor :sunbit
682
2776
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
683
2777
  attr_accessor :swish
2778
+ # If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
2779
+ attr_accessor :tamara
684
2780
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
685
2781
  attr_accessor :twint
686
2782
  # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
@@ -715,8 +2811,11 @@ module Stripe
715
2811
  customer_balance: nil,
716
2812
  eps: nil,
717
2813
  fpx: nil,
2814
+ gift_card: nil,
718
2815
  giropay: nil,
2816
+ gopay: nil,
719
2817
  grabpay: nil,
2818
+ id_bank_transfer: nil,
720
2819
  ideal: nil,
721
2820
  interac_present: nil,
722
2821
  kakao_pay: nil,
@@ -736,18 +2835,25 @@ module Stripe
736
2835
  payco: nil,
737
2836
  paynow: nil,
738
2837
  paypal: nil,
2838
+ paypay: nil,
739
2839
  payto: nil,
740
2840
  pix: nil,
741
2841
  promptpay: nil,
2842
+ qris: nil,
742
2843
  radar_options: nil,
2844
+ rechnung: nil,
743
2845
  revolut_pay: nil,
744
2846
  samsung_pay: nil,
745
2847
  satispay: nil,
746
2848
  scalapay: nil,
747
2849
  sepa_debit: nil,
2850
+ shared_payment_granted_token: nil,
2851
+ shopeepay: nil,
748
2852
  sofort: nil,
2853
+ stripe_balance: nil,
749
2854
  sunbit: nil,
750
2855
  swish: nil,
2856
+ tamara: nil,
751
2857
  twint: nil,
752
2858
  type: nil,
753
2859
  upi: nil,
@@ -775,8 +2881,11 @@ module Stripe
775
2881
  @customer_balance = customer_balance
776
2882
  @eps = eps
777
2883
  @fpx = fpx
2884
+ @gift_card = gift_card
778
2885
  @giropay = giropay
2886
+ @gopay = gopay
779
2887
  @grabpay = grabpay
2888
+ @id_bank_transfer = id_bank_transfer
780
2889
  @ideal = ideal
781
2890
  @interac_present = interac_present
782
2891
  @kakao_pay = kakao_pay
@@ -796,18 +2905,25 @@ module Stripe
796
2905
  @payco = payco
797
2906
  @paynow = paynow
798
2907
  @paypal = paypal
2908
+ @paypay = paypay
799
2909
  @payto = payto
800
2910
  @pix = pix
801
2911
  @promptpay = promptpay
2912
+ @qris = qris
802
2913
  @radar_options = radar_options
2914
+ @rechnung = rechnung
803
2915
  @revolut_pay = revolut_pay
804
2916
  @samsung_pay = samsung_pay
805
2917
  @satispay = satispay
806
2918
  @scalapay = scalapay
807
2919
  @sepa_debit = sepa_debit
2920
+ @shared_payment_granted_token = shared_payment_granted_token
2921
+ @shopeepay = shopeepay
808
2922
  @sofort = sofort
2923
+ @stripe_balance = stripe_balance
809
2924
  @sunbit = sunbit
810
2925
  @swish = swish
2926
+ @tamara = tamara
811
2927
  @twint = twint
812
2928
  @type = type
813
2929
  @upi = upi
@@ -1107,6 +3223,18 @@ module Stripe
1107
3223
  end
1108
3224
 
1109
3225
  class Card < ::Stripe::RequestParams
3226
+ class CaptureDelay < ::Stripe::RequestParams
3227
+ # Attribute for param field days
3228
+ attr_accessor :days
3229
+ # Attribute for param field hours
3230
+ attr_accessor :hours
3231
+
3232
+ def initialize(days: nil, hours: nil)
3233
+ @days = days
3234
+ @hours = hours
3235
+ end
3236
+ end
3237
+
1110
3238
  class Installments < ::Stripe::RequestParams
1111
3239
  class Plan < ::Stripe::RequestParams
1112
3240
  # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
@@ -1180,6 +3308,73 @@ module Stripe
1180
3308
  end
1181
3309
  end
1182
3310
 
3311
+ class PaymentDetails < ::Stripe::RequestParams
3312
+ class MoneyServices < ::Stripe::RequestParams
3313
+ class AccountFunding < ::Stripe::RequestParams
3314
+ # The category of digital asset being acquired through this account funding transaction.
3315
+ attr_accessor :digital_asset_category
3316
+
3317
+ def initialize(digital_asset_category: nil)
3318
+ @digital_asset_category = digital_asset_category
3319
+ end
3320
+ end
3321
+ # Payment method specific account funding transaction details.
3322
+ attr_accessor :account_funding
3323
+
3324
+ def initialize(account_funding: nil)
3325
+ @account_funding = account_funding
3326
+ end
3327
+ end
3328
+ # Money services details for payment method specific funding fields.
3329
+ attr_accessor :money_services
3330
+
3331
+ def initialize(money_services: nil)
3332
+ @money_services = money_services
3333
+ end
3334
+ end
3335
+
3336
+ class StatementDetails < ::Stripe::RequestParams
3337
+ class Address < ::Stripe::RequestParams
3338
+ # City, district, suburb, town, or village.
3339
+ attr_accessor :city
3340
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3341
+ attr_accessor :country
3342
+ # Address line 1, such as the street, PO Box, or company name.
3343
+ attr_accessor :line1
3344
+ # Address line 2, such as the apartment, suite, unit, or building.
3345
+ attr_accessor :line2
3346
+ # ZIP or postal code.
3347
+ attr_accessor :postal_code
3348
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3349
+ attr_accessor :state
3350
+
3351
+ def initialize(
3352
+ city: nil,
3353
+ country: nil,
3354
+ line1: nil,
3355
+ line2: nil,
3356
+ postal_code: nil,
3357
+ state: nil
3358
+ )
3359
+ @city = city
3360
+ @country = country
3361
+ @line1 = line1
3362
+ @line2 = line2
3363
+ @postal_code = postal_code
3364
+ @state = state
3365
+ end
3366
+ end
3367
+ # Please pass in an address that is within your Stripe user account country
3368
+ attr_accessor :address
3369
+ # Phone number (e.g., a toll-free number that customers can call)
3370
+ attr_accessor :phone
3371
+
3372
+ def initialize(address: nil, phone: nil)
3373
+ @address = address
3374
+ @phone = phone
3375
+ end
3376
+ end
3377
+
1183
3378
  class ThreeDSecure < ::Stripe::RequestParams
1184
3379
  class NetworkOptions < ::Stripe::RequestParams
1185
3380
  class CartesBancaires < ::Stripe::RequestParams
@@ -1254,6 +3449,14 @@ module Stripe
1254
3449
  @version = version
1255
3450
  end
1256
3451
  end
3452
+ # Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
3453
+ #
3454
+ # If omitted, funds are captured before the authorization expires.
3455
+ attr_accessor :capture_by
3456
+ # The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
3457
+ #
3458
+ # You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
3459
+ attr_accessor :capture_delay
1257
3460
  # Controls when the funds are captured from the customer's account.
1258
3461
  #
1259
3462
  # 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.
@@ -1274,6 +3477,10 @@ module Stripe
1274
3477
  attr_accessor :moto
1275
3478
  # 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
3479
  attr_accessor :network
3480
+ # Payment details for payment method specific funding fields.
3481
+ attr_accessor :payment_details
3482
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3483
+ attr_accessor :request_decremental_authorization
1277
3484
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1278
3485
  attr_accessor :request_extended_authorization
1279
3486
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1282,6 +3489,10 @@ module Stripe
1282
3489
  attr_accessor :request_multicapture
1283
3490
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1284
3491
  attr_accessor :request_overcapture
3492
+ # Request partial authorization on this PaymentIntent.
3493
+ attr_accessor :request_partial_authorization
3494
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3495
+ attr_accessor :request_reauthorization
1285
3496
  # 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
3497
  attr_accessor :request_three_d_secure
1287
3498
  # 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,48 +3511,101 @@ module Stripe
1300
3511
  attr_accessor :statement_descriptor_suffix_kana
1301
3512
  # 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
3513
  attr_accessor :statement_descriptor_suffix_kanji
3514
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3515
+ attr_accessor :statement_details
1303
3516
  # If 3D Secure authentication was performed with a third-party provider,
1304
3517
  # the authentication details to use for this payment.
1305
3518
  attr_accessor :three_d_secure
1306
3519
 
1307
3520
  def initialize(
3521
+ capture_by: nil,
3522
+ capture_delay: nil,
1308
3523
  capture_method: nil,
1309
3524
  cvc_token: nil,
1310
3525
  installments: nil,
1311
3526
  mandate_options: nil,
1312
3527
  moto: nil,
1313
3528
  network: nil,
3529
+ payment_details: nil,
3530
+ request_decremental_authorization: nil,
1314
3531
  request_extended_authorization: nil,
1315
3532
  request_incremental_authorization: nil,
1316
3533
  request_multicapture: nil,
1317
3534
  request_overcapture: nil,
3535
+ request_partial_authorization: nil,
3536
+ request_reauthorization: nil,
1318
3537
  request_three_d_secure: nil,
1319
3538
  require_cvc_recollection: nil,
1320
3539
  setup_future_usage: nil,
1321
3540
  statement_descriptor_suffix_kana: nil,
1322
3541
  statement_descriptor_suffix_kanji: nil,
3542
+ statement_details: nil,
1323
3543
  three_d_secure: nil
1324
3544
  )
3545
+ @capture_by = capture_by
3546
+ @capture_delay = capture_delay
1325
3547
  @capture_method = capture_method
1326
3548
  @cvc_token = cvc_token
1327
3549
  @installments = installments
1328
3550
  @mandate_options = mandate_options
1329
3551
  @moto = moto
1330
3552
  @network = network
3553
+ @payment_details = payment_details
3554
+ @request_decremental_authorization = request_decremental_authorization
1331
3555
  @request_extended_authorization = request_extended_authorization
1332
3556
  @request_incremental_authorization = request_incremental_authorization
1333
3557
  @request_multicapture = request_multicapture
1334
3558
  @request_overcapture = request_overcapture
3559
+ @request_partial_authorization = request_partial_authorization
3560
+ @request_reauthorization = request_reauthorization
1335
3561
  @request_three_d_secure = request_three_d_secure
1336
3562
  @require_cvc_recollection = require_cvc_recollection
1337
3563
  @setup_future_usage = setup_future_usage
1338
3564
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1339
3565
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3566
+ @statement_details = statement_details
1340
3567
  @three_d_secure = three_d_secure
1341
3568
  end
1342
3569
  end
1343
3570
 
1344
3571
  class CardPresent < ::Stripe::RequestParams
3572
+ class CaptureDelay < ::Stripe::RequestParams
3573
+ # Attribute for param field days
3574
+ attr_accessor :days
3575
+ # Attribute for param field hours
3576
+ attr_accessor :hours
3577
+
3578
+ def initialize(days: nil, hours: nil)
3579
+ @days = days
3580
+ @hours = hours
3581
+ end
3582
+ end
3583
+
3584
+ class PaymentDetails < ::Stripe::RequestParams
3585
+ class MoneyServices < ::Stripe::RequestParams
3586
+ class AccountFunding < ::Stripe::RequestParams
3587
+ # The category of digital asset being acquired through this account funding transaction.
3588
+ attr_accessor :digital_asset_category
3589
+
3590
+ def initialize(digital_asset_category: nil)
3591
+ @digital_asset_category = digital_asset_category
3592
+ end
3593
+ end
3594
+ # Payment method specific account funding transaction details.
3595
+ attr_accessor :account_funding
3596
+
3597
+ def initialize(account_funding: nil)
3598
+ @account_funding = account_funding
3599
+ end
3600
+ end
3601
+ # Money services details for payment method specific funding fields.
3602
+ attr_accessor :money_services
3603
+
3604
+ def initialize(money_services: nil)
3605
+ @money_services = money_services
3606
+ end
3607
+ end
3608
+
1345
3609
  class Routing < ::Stripe::RequestParams
1346
3610
  # Routing requested priority
1347
3611
  attr_accessor :requested_priority
@@ -1350,28 +3614,52 @@ module Stripe
1350
3614
  @requested_priority = requested_priority
1351
3615
  end
1352
3616
  end
3617
+ # Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
3618
+ #
3619
+ # If omitted, funds are captured before the authorization expires.
3620
+ attr_accessor :capture_by
3621
+ # The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
3622
+ #
3623
+ # You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
3624
+ attr_accessor :capture_delay
1353
3625
  # Controls when the funds are captured from the customer's account.
1354
3626
  #
1355
3627
  # 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.
1356
3628
  #
1357
3629
  # 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
3630
  attr_accessor :capture_method
3631
+ # Payment details for payment method specific funding transaction fields.
3632
+ attr_accessor :payment_details
1359
3633
  # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
1360
3634
  attr_accessor :request_extended_authorization
1361
3635
  # 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
3636
  attr_accessor :request_incremental_authorization_support
3637
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
3638
+ attr_accessor :request_multicapture
3639
+ # Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
3640
+ attr_accessor :request_reauthorization
1363
3641
  # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1364
3642
  attr_accessor :routing
1365
3643
 
1366
3644
  def initialize(
3645
+ capture_by: nil,
3646
+ capture_delay: nil,
1367
3647
  capture_method: nil,
3648
+ payment_details: nil,
1368
3649
  request_extended_authorization: nil,
1369
3650
  request_incremental_authorization_support: nil,
3651
+ request_multicapture: nil,
3652
+ request_reauthorization: nil,
1370
3653
  routing: nil
1371
3654
  )
3655
+ @capture_by = capture_by
3656
+ @capture_delay = capture_delay
1372
3657
  @capture_method = capture_method
3658
+ @payment_details = payment_details
1373
3659
  @request_extended_authorization = request_extended_authorization
1374
3660
  @request_incremental_authorization_support = request_incremental_authorization_support
3661
+ @request_multicapture = request_multicapture
3662
+ @request_reauthorization = request_reauthorization
1375
3663
  @routing = routing
1376
3664
  end
1377
3665
  end
@@ -1398,9 +3686,47 @@ module Stripe
1398
3686
  @capture_method = capture_method
1399
3687
  @setup_future_usage = setup_future_usage
1400
3688
  end
1401
- end
3689
+ end
3690
+
3691
+ class Crypto < ::Stripe::RequestParams
3692
+ class AmountReconciliation < ::Stripe::RequestParams
3693
+ # Controls how crypto funding amounts are reconciled for the PaymentIntent.
3694
+ attr_accessor :type
3695
+
3696
+ def initialize(type: nil)
3697
+ @type = type
3698
+ end
3699
+ end
3700
+
3701
+ class DepositOptions < ::Stripe::RequestParams
3702
+ # 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).
3703
+ attr_accessor :networks
3704
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3705
+ attr_accessor :static_address
3706
+
3707
+ def initialize(networks: nil, static_address: nil)
3708
+ @networks = networks
3709
+ @static_address = static_address
3710
+ end
3711
+ end
1402
3712
 
1403
- class Crypto < ::Stripe::RequestParams
3713
+ class TransactionVerificationOptions < ::Stripe::RequestParams
3714
+ # The network on which the transaction was submitted.
3715
+ attr_accessor :network
3716
+ # The hash of the onchain transaction to verify.
3717
+ attr_accessor :transaction_hash
3718
+
3719
+ def initialize(network: nil, transaction_hash: nil)
3720
+ @network = network
3721
+ @transaction_hash = transaction_hash
3722
+ end
3723
+ end
3724
+ # Controls how crypto funding amounts are reconciled for this PaymentIntent.
3725
+ attr_accessor :amount_reconciliation
3726
+ # Specific configuration for this PaymentIntent when the mode is `deposit`.
3727
+ attr_accessor :deposit_options
3728
+ # The mode of the crypto payment.
3729
+ attr_accessor :mode
1404
3730
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1405
3731
  #
1406
3732
  # 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.
@@ -1411,9 +3737,21 @@ module Stripe
1411
3737
  #
1412
3738
  # 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
3739
  attr_accessor :setup_future_usage
3740
+ # Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
3741
+ attr_accessor :transaction_verification_options
1414
3742
 
1415
- def initialize(setup_future_usage: nil)
3743
+ def initialize(
3744
+ amount_reconciliation: nil,
3745
+ deposit_options: nil,
3746
+ mode: nil,
3747
+ setup_future_usage: nil,
3748
+ transaction_verification_options: nil
3749
+ )
3750
+ @amount_reconciliation = amount_reconciliation
3751
+ @deposit_options = deposit_options
3752
+ @mode = mode
1416
3753
  @setup_future_usage = setup_future_usage
3754
+ @transaction_verification_options = transaction_verification_options
1417
3755
  end
1418
3756
  end
1419
3757
 
@@ -1498,6 +3836,25 @@ module Stripe
1498
3836
  end
1499
3837
  end
1500
3838
 
3839
+ class GiftCard < ::Stripe::RequestParams
3840
+ # Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
3841
+ attr_accessor :ignore_application_fee
3842
+ # Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
3843
+ attr_accessor :ignore_transfer_data
3844
+ # Request partial authorization on this PaymentIntent.
3845
+ attr_accessor :request_partial_authorization
3846
+
3847
+ def initialize(
3848
+ ignore_application_fee: nil,
3849
+ ignore_transfer_data: nil,
3850
+ request_partial_authorization: nil
3851
+ )
3852
+ @ignore_application_fee = ignore_application_fee
3853
+ @ignore_transfer_data = ignore_transfer_data
3854
+ @request_partial_authorization = request_partial_authorization
3855
+ end
3856
+ end
3857
+
1501
3858
  class Giropay < ::Stripe::RequestParams
1502
3859
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1503
3860
  #
@@ -1515,6 +3872,23 @@ module Stripe
1515
3872
  end
1516
3873
  end
1517
3874
 
3875
+ class Gopay < ::Stripe::RequestParams
3876
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3877
+ #
3878
+ # 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.
3879
+ #
3880
+ # 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.
3881
+ #
3882
+ # 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).
3883
+ #
3884
+ # 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`.
3885
+ attr_accessor :setup_future_usage
3886
+
3887
+ def initialize(setup_future_usage: nil)
3888
+ @setup_future_usage = setup_future_usage
3889
+ end
3890
+ end
3891
+
1518
3892
  class Grabpay < ::Stripe::RequestParams
1519
3893
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1520
3894
  #
@@ -1532,6 +3906,29 @@ module Stripe
1532
3906
  end
1533
3907
  end
1534
3908
 
3909
+ class IdBankTransfer < ::Stripe::RequestParams
3910
+ # 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.
3911
+ attr_accessor :expires_after
3912
+ # 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.
3913
+ attr_accessor :expires_at
3914
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3915
+ #
3916
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3917
+ #
3918
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3919
+ #
3920
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3921
+ #
3922
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3923
+ attr_accessor :setup_future_usage
3924
+
3925
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3926
+ @expires_after = expires_after
3927
+ @expires_at = expires_at
3928
+ @setup_future_usage = setup_future_usage
3929
+ end
3930
+ end
3931
+
1535
3932
  class Ideal < ::Stripe::RequestParams
1536
3933
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1537
3934
  #
@@ -1638,6 +4035,939 @@ module Stripe
1638
4035
  @reference = reference
1639
4036
  end
1640
4037
  end
4038
+
4039
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
4040
+ class BusReservationDetail < ::Stripe::RequestParams
4041
+ class Arrival < ::Stripe::RequestParams
4042
+ class Address < ::Stripe::RequestParams
4043
+ # The city or town.
4044
+ attr_accessor :city
4045
+ # The country in ISO 3166-1 alpha-2 format.
4046
+ attr_accessor :country
4047
+ # The postal code formatted according to country.
4048
+ attr_accessor :postal_code
4049
+ # The state, county, province, or region formatted according to country.
4050
+ attr_accessor :region
4051
+ # Line 1 of the street address.
4052
+ attr_accessor :street_address
4053
+ # Line 2 of the street address.
4054
+ attr_accessor :street_address2
4055
+
4056
+ def initialize(
4057
+ city: nil,
4058
+ country: nil,
4059
+ postal_code: nil,
4060
+ region: nil,
4061
+ street_address: nil,
4062
+ street_address2: nil
4063
+ )
4064
+ @city = city
4065
+ @country = country
4066
+ @postal_code = postal_code
4067
+ @region = region
4068
+ @street_address = street_address
4069
+ @street_address2 = street_address2
4070
+ end
4071
+ end
4072
+ # Address of the arrival location.
4073
+ attr_accessor :address
4074
+ # Identifier name or reference for the arrival location.
4075
+ attr_accessor :arrival_location
4076
+
4077
+ def initialize(address: nil, arrival_location: nil)
4078
+ @address = address
4079
+ @arrival_location = arrival_location
4080
+ end
4081
+ end
4082
+
4083
+ class Departure < ::Stripe::RequestParams
4084
+ class Address < ::Stripe::RequestParams
4085
+ # The city or town.
4086
+ attr_accessor :city
4087
+ # The country in ISO 3166-1 alpha-2 format.
4088
+ attr_accessor :country
4089
+ # The postal code formatted according to country.
4090
+ attr_accessor :postal_code
4091
+ # The state, county, province, or region formatted according to country.
4092
+ attr_accessor :region
4093
+ # Line 1 of the street address.
4094
+ attr_accessor :street_address
4095
+ # Line 2 of the street address.
4096
+ attr_accessor :street_address2
4097
+
4098
+ def initialize(
4099
+ city: nil,
4100
+ country: nil,
4101
+ postal_code: nil,
4102
+ region: nil,
4103
+ street_address: nil,
4104
+ street_address2: nil
4105
+ )
4106
+ @city = city
4107
+ @country = country
4108
+ @postal_code = postal_code
4109
+ @region = region
4110
+ @street_address = street_address
4111
+ @street_address2 = street_address2
4112
+ end
4113
+ end
4114
+ # Address of the departure location.
4115
+ attr_accessor :address
4116
+ # Timestamp of departure.
4117
+ attr_accessor :departs_at
4118
+ # Identifier name or reference for the origin location.
4119
+ attr_accessor :departure_location
4120
+
4121
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4122
+ @address = address
4123
+ @departs_at = departs_at
4124
+ @departure_location = departure_location
4125
+ end
4126
+ end
4127
+
4128
+ class Insurance < ::Stripe::RequestParams
4129
+ # Insurance currency.
4130
+ attr_accessor :currency
4131
+ # Name of the company providing the insurance.
4132
+ attr_accessor :insurance_company_name
4133
+ # Type of insurance.
4134
+ attr_accessor :insurance_type
4135
+ # Price of insurance in cents.
4136
+ attr_accessor :price
4137
+
4138
+ def initialize(
4139
+ currency: nil,
4140
+ insurance_company_name: nil,
4141
+ insurance_type: nil,
4142
+ price: nil
4143
+ )
4144
+ @currency = currency
4145
+ @insurance_company_name = insurance_company_name
4146
+ @insurance_type = insurance_type
4147
+ @price = price
4148
+ end
4149
+ end
4150
+
4151
+ class Passenger < ::Stripe::RequestParams
4152
+ # The family name of the person.
4153
+ attr_accessor :family_name
4154
+ # The given name of the person.
4155
+ attr_accessor :given_name
4156
+
4157
+ def initialize(family_name: nil, given_name: nil)
4158
+ @family_name = family_name
4159
+ @given_name = given_name
4160
+ end
4161
+ end
4162
+ # Name of associated or partner company for the service.
4163
+ attr_accessor :affiliate_name
4164
+ # Arrival details.
4165
+ attr_accessor :arrival
4166
+ # Name of transportation company.
4167
+ attr_accessor :carrier_name
4168
+ # Currency.
4169
+ attr_accessor :currency
4170
+ # Departure details.
4171
+ attr_accessor :departure
4172
+ # List of insurances for this reservation.
4173
+ attr_accessor :insurances
4174
+ # List of passengers that this reservation applies to.
4175
+ attr_accessor :passengers
4176
+ # Price in cents.
4177
+ attr_accessor :price
4178
+ # Ticket class.
4179
+ attr_accessor :ticket_class
4180
+
4181
+ def initialize(
4182
+ affiliate_name: nil,
4183
+ arrival: nil,
4184
+ carrier_name: nil,
4185
+ currency: nil,
4186
+ departure: nil,
4187
+ insurances: nil,
4188
+ passengers: nil,
4189
+ price: nil,
4190
+ ticket_class: nil
4191
+ )
4192
+ @affiliate_name = affiliate_name
4193
+ @arrival = arrival
4194
+ @carrier_name = carrier_name
4195
+ @currency = currency
4196
+ @departure = departure
4197
+ @insurances = insurances
4198
+ @passengers = passengers
4199
+ @price = price
4200
+ @ticket_class = ticket_class
4201
+ end
4202
+ end
4203
+
4204
+ class EventReservationDetail < ::Stripe::RequestParams
4205
+ class Address < ::Stripe::RequestParams
4206
+ # The city or town.
4207
+ attr_accessor :city
4208
+ # The country in ISO 3166-1 alpha-2 format.
4209
+ attr_accessor :country
4210
+ # The postal code formatted according to country.
4211
+ attr_accessor :postal_code
4212
+ # The state, county, province, or region formatted according to country.
4213
+ attr_accessor :region
4214
+ # Line 1 of the street address.
4215
+ attr_accessor :street_address
4216
+ # Line 2 of the street address.
4217
+ attr_accessor :street_address2
4218
+
4219
+ def initialize(
4220
+ city: nil,
4221
+ country: nil,
4222
+ postal_code: nil,
4223
+ region: nil,
4224
+ street_address: nil,
4225
+ street_address2: nil
4226
+ )
4227
+ @city = city
4228
+ @country = country
4229
+ @postal_code = postal_code
4230
+ @region = region
4231
+ @street_address = street_address
4232
+ @street_address2 = street_address2
4233
+ end
4234
+ end
4235
+
4236
+ class Insurance < ::Stripe::RequestParams
4237
+ # Insurance currency.
4238
+ attr_accessor :currency
4239
+ # Name of the company providing the insurance.
4240
+ attr_accessor :insurance_company_name
4241
+ # Type of insurance.
4242
+ attr_accessor :insurance_type
4243
+ # Price of insurance in cents.
4244
+ attr_accessor :price
4245
+
4246
+ def initialize(
4247
+ currency: nil,
4248
+ insurance_company_name: nil,
4249
+ insurance_type: nil,
4250
+ price: nil
4251
+ )
4252
+ @currency = currency
4253
+ @insurance_company_name = insurance_company_name
4254
+ @insurance_type = insurance_type
4255
+ @price = price
4256
+ end
4257
+ end
4258
+ # Indicates if the tickets are digitally checked when entering the venue.
4259
+ attr_accessor :access_controlled_venue
4260
+ # Address of the event.
4261
+ attr_accessor :address
4262
+ # Name of associated or partner company for the service.
4263
+ attr_accessor :affiliate_name
4264
+ # End timestamp of the event.
4265
+ attr_accessor :ends_at
4266
+ # Company selling the ticket.
4267
+ attr_accessor :event_company_name
4268
+ # Name of the event.
4269
+ attr_accessor :event_name
4270
+ # Type of the event.
4271
+ attr_accessor :event_type
4272
+ # List of insurances for this event.
4273
+ attr_accessor :insurances
4274
+ # Start timestamp of the event.
4275
+ attr_accessor :starts_at
4276
+ # Name of the venue where the event takes place.
4277
+ attr_accessor :venue_name
4278
+
4279
+ def initialize(
4280
+ access_controlled_venue: nil,
4281
+ address: nil,
4282
+ affiliate_name: nil,
4283
+ ends_at: nil,
4284
+ event_company_name: nil,
4285
+ event_name: nil,
4286
+ event_type: nil,
4287
+ insurances: nil,
4288
+ starts_at: nil,
4289
+ venue_name: nil
4290
+ )
4291
+ @access_controlled_venue = access_controlled_venue
4292
+ @address = address
4293
+ @affiliate_name = affiliate_name
4294
+ @ends_at = ends_at
4295
+ @event_company_name = event_company_name
4296
+ @event_name = event_name
4297
+ @event_type = event_type
4298
+ @insurances = insurances
4299
+ @starts_at = starts_at
4300
+ @venue_name = venue_name
4301
+ end
4302
+ end
4303
+
4304
+ class FerryReservationDetail < ::Stripe::RequestParams
4305
+ class Arrival < ::Stripe::RequestParams
4306
+ class Address < ::Stripe::RequestParams
4307
+ # The city or town.
4308
+ attr_accessor :city
4309
+ # The country in ISO 3166-1 alpha-2 format.
4310
+ attr_accessor :country
4311
+ # The postal code formatted according to country.
4312
+ attr_accessor :postal_code
4313
+ # The state, county, province, or region formatted according to country.
4314
+ attr_accessor :region
4315
+ # Line 1 of the street address.
4316
+ attr_accessor :street_address
4317
+ # Line 2 of the street address.
4318
+ attr_accessor :street_address2
4319
+
4320
+ def initialize(
4321
+ city: nil,
4322
+ country: nil,
4323
+ postal_code: nil,
4324
+ region: nil,
4325
+ street_address: nil,
4326
+ street_address2: nil
4327
+ )
4328
+ @city = city
4329
+ @country = country
4330
+ @postal_code = postal_code
4331
+ @region = region
4332
+ @street_address = street_address
4333
+ @street_address2 = street_address2
4334
+ end
4335
+ end
4336
+ # Address of the arrival location.
4337
+ attr_accessor :address
4338
+ # Identifier name or reference for the arrival location.
4339
+ attr_accessor :arrival_location
4340
+
4341
+ def initialize(address: nil, arrival_location: nil)
4342
+ @address = address
4343
+ @arrival_location = arrival_location
4344
+ end
4345
+ end
4346
+
4347
+ class Departure < ::Stripe::RequestParams
4348
+ class Address < ::Stripe::RequestParams
4349
+ # The city or town.
4350
+ attr_accessor :city
4351
+ # The country in ISO 3166-1 alpha-2 format.
4352
+ attr_accessor :country
4353
+ # The postal code formatted according to country.
4354
+ attr_accessor :postal_code
4355
+ # The state, county, province, or region formatted according to country.
4356
+ attr_accessor :region
4357
+ # Line 1 of the street address.
4358
+ attr_accessor :street_address
4359
+ # Line 2 of the street address.
4360
+ attr_accessor :street_address2
4361
+
4362
+ def initialize(
4363
+ city: nil,
4364
+ country: nil,
4365
+ postal_code: nil,
4366
+ region: nil,
4367
+ street_address: nil,
4368
+ street_address2: nil
4369
+ )
4370
+ @city = city
4371
+ @country = country
4372
+ @postal_code = postal_code
4373
+ @region = region
4374
+ @street_address = street_address
4375
+ @street_address2 = street_address2
4376
+ end
4377
+ end
4378
+ # Address of the departure location.
4379
+ attr_accessor :address
4380
+ # Timestamp of departure.
4381
+ attr_accessor :departs_at
4382
+ # Identifier name or reference for the origin location.
4383
+ attr_accessor :departure_location
4384
+
4385
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4386
+ @address = address
4387
+ @departs_at = departs_at
4388
+ @departure_location = departure_location
4389
+ end
4390
+ end
4391
+
4392
+ class Insurance < ::Stripe::RequestParams
4393
+ # Insurance currency.
4394
+ attr_accessor :currency
4395
+ # Name of the company providing the insurance.
4396
+ attr_accessor :insurance_company_name
4397
+ # Type of insurance.
4398
+ attr_accessor :insurance_type
4399
+ # Price of insurance in cents.
4400
+ attr_accessor :price
4401
+
4402
+ def initialize(
4403
+ currency: nil,
4404
+ insurance_company_name: nil,
4405
+ insurance_type: nil,
4406
+ price: nil
4407
+ )
4408
+ @currency = currency
4409
+ @insurance_company_name = insurance_company_name
4410
+ @insurance_type = insurance_type
4411
+ @price = price
4412
+ end
4413
+ end
4414
+
4415
+ class Passenger < ::Stripe::RequestParams
4416
+ # The family name of the person.
4417
+ attr_accessor :family_name
4418
+ # The given name of the person.
4419
+ attr_accessor :given_name
4420
+
4421
+ def initialize(family_name: nil, given_name: nil)
4422
+ @family_name = family_name
4423
+ @given_name = given_name
4424
+ end
4425
+ end
4426
+ # Name of associated or partner company for the service.
4427
+ attr_accessor :affiliate_name
4428
+ # Arrival details.
4429
+ attr_accessor :arrival
4430
+ # Name of transportation company.
4431
+ attr_accessor :carrier_name
4432
+ # Currency.
4433
+ attr_accessor :currency
4434
+ # Departure details.
4435
+ attr_accessor :departure
4436
+ # List of insurances for this reservation.
4437
+ attr_accessor :insurances
4438
+ # List of passengers that this reservation applies to.
4439
+ attr_accessor :passengers
4440
+ # Price in cents.
4441
+ attr_accessor :price
4442
+ # Ticket class.
4443
+ attr_accessor :ticket_class
4444
+
4445
+ def initialize(
4446
+ affiliate_name: nil,
4447
+ arrival: nil,
4448
+ carrier_name: nil,
4449
+ currency: nil,
4450
+ departure: nil,
4451
+ insurances: nil,
4452
+ passengers: nil,
4453
+ price: nil,
4454
+ ticket_class: nil
4455
+ )
4456
+ @affiliate_name = affiliate_name
4457
+ @arrival = arrival
4458
+ @carrier_name = carrier_name
4459
+ @currency = currency
4460
+ @departure = departure
4461
+ @insurances = insurances
4462
+ @passengers = passengers
4463
+ @price = price
4464
+ @ticket_class = ticket_class
4465
+ end
4466
+ end
4467
+
4468
+ class Insurance < ::Stripe::RequestParams
4469
+ # Insurance currency.
4470
+ attr_accessor :currency
4471
+ # Name of the company providing the insurance.
4472
+ attr_accessor :insurance_company_name
4473
+ # Type of insurance
4474
+ attr_accessor :insurance_type
4475
+ # Price of insurance in cents.
4476
+ attr_accessor :price
4477
+
4478
+ def initialize(
4479
+ currency: nil,
4480
+ insurance_company_name: nil,
4481
+ insurance_type: nil,
4482
+ price: nil
4483
+ )
4484
+ @currency = currency
4485
+ @insurance_company_name = insurance_company_name
4486
+ @insurance_type = insurance_type
4487
+ @price = price
4488
+ end
4489
+ end
4490
+
4491
+ class MarketplaceSeller < ::Stripe::RequestParams
4492
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4493
+ # The city or town.
4494
+ attr_accessor :city
4495
+ # The country in ISO 3166-1 alpha-2 format.
4496
+ attr_accessor :country
4497
+ # The postal code formatted according to country.
4498
+ attr_accessor :postal_code
4499
+ # The state, county, province, or region formatted according to country.
4500
+ attr_accessor :region
4501
+ # Line 1 of the street address.
4502
+ attr_accessor :street_address
4503
+ # Line 2 of the street address.
4504
+ attr_accessor :street_address2
4505
+
4506
+ def initialize(
4507
+ city: nil,
4508
+ country: nil,
4509
+ postal_code: nil,
4510
+ region: nil,
4511
+ street_address: nil,
4512
+ street_address2: nil
4513
+ )
4514
+ @city = city
4515
+ @country = country
4516
+ @postal_code = postal_code
4517
+ @region = region
4518
+ @street_address = street_address
4519
+ @street_address2 = street_address2
4520
+ end
4521
+ end
4522
+ # The references to line items for purchases with multiple associated sub-sellers.
4523
+ attr_accessor :line_item_references
4524
+ # The address of the selling or delivering merchant.
4525
+ attr_accessor :marketplace_seller_address
4526
+ # The name of the marketplace seller.
4527
+ attr_accessor :marketplace_seller_name
4528
+ # The unique identifier for the marketplace seller.
4529
+ attr_accessor :marketplace_seller_reference
4530
+ # The number of transactions the sub-seller completed in the last 12 months.
4531
+ attr_accessor :number_of_transactions
4532
+ # The category of the product.
4533
+ attr_accessor :product_category
4534
+ # The date when the seller's account with the marketplace was last logged in.
4535
+ attr_accessor :seller_last_login_at
4536
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4537
+ attr_accessor :seller_rating
4538
+ # The date when the seller's account with the marketplace was created.
4539
+ attr_accessor :seller_registered_at
4540
+ # The date when the seller's account with the marketplace was last updated.
4541
+ attr_accessor :seller_updated_at
4542
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4543
+ attr_accessor :shipping_references
4544
+ # 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.
4545
+ attr_accessor :volume_of_transactions
4546
+
4547
+ def initialize(
4548
+ line_item_references: nil,
4549
+ marketplace_seller_address: nil,
4550
+ marketplace_seller_name: nil,
4551
+ marketplace_seller_reference: nil,
4552
+ number_of_transactions: nil,
4553
+ product_category: nil,
4554
+ seller_last_login_at: nil,
4555
+ seller_rating: nil,
4556
+ seller_registered_at: nil,
4557
+ seller_updated_at: nil,
4558
+ shipping_references: nil,
4559
+ volume_of_transactions: nil
4560
+ )
4561
+ @line_item_references = line_item_references
4562
+ @marketplace_seller_address = marketplace_seller_address
4563
+ @marketplace_seller_name = marketplace_seller_name
4564
+ @marketplace_seller_reference = marketplace_seller_reference
4565
+ @number_of_transactions = number_of_transactions
4566
+ @product_category = product_category
4567
+ @seller_last_login_at = seller_last_login_at
4568
+ @seller_rating = seller_rating
4569
+ @seller_registered_at = seller_registered_at
4570
+ @seller_updated_at = seller_updated_at
4571
+ @shipping_references = shipping_references
4572
+ @volume_of_transactions = volume_of_transactions
4573
+ end
4574
+ end
4575
+
4576
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4577
+ class Arrival < ::Stripe::RequestParams
4578
+ class Address < ::Stripe::RequestParams
4579
+ # The city or town.
4580
+ attr_accessor :city
4581
+ # The country in ISO 3166-1 alpha-2 format.
4582
+ attr_accessor :country
4583
+ # The postal code formatted according to country.
4584
+ attr_accessor :postal_code
4585
+ # The state, county, province, or region formatted according to country.
4586
+ attr_accessor :region
4587
+ # Line 1 of the street address.
4588
+ attr_accessor :street_address
4589
+ # Line 2 of the street address.
4590
+ attr_accessor :street_address2
4591
+
4592
+ def initialize(
4593
+ city: nil,
4594
+ country: nil,
4595
+ postal_code: nil,
4596
+ region: nil,
4597
+ street_address: nil,
4598
+ street_address2: nil
4599
+ )
4600
+ @city = city
4601
+ @country = country
4602
+ @postal_code = postal_code
4603
+ @region = region
4604
+ @street_address = street_address
4605
+ @street_address2 = street_address2
4606
+ end
4607
+ end
4608
+ # Address of the arrival location.
4609
+ attr_accessor :address
4610
+ # Identifier name or reference for the arrival location.
4611
+ attr_accessor :arrival_location
4612
+
4613
+ def initialize(address: nil, arrival_location: nil)
4614
+ @address = address
4615
+ @arrival_location = arrival_location
4616
+ end
4617
+ end
4618
+
4619
+ class Departure < ::Stripe::RequestParams
4620
+ class Address < ::Stripe::RequestParams
4621
+ # The city or town.
4622
+ attr_accessor :city
4623
+ # The country in ISO 3166-1 alpha-2 format.
4624
+ attr_accessor :country
4625
+ # The postal code formatted according to country.
4626
+ attr_accessor :postal_code
4627
+ # The state, county, province, or region formatted according to country.
4628
+ attr_accessor :region
4629
+ # Line 1 of the street address.
4630
+ attr_accessor :street_address
4631
+ # Line 2 of the street address.
4632
+ attr_accessor :street_address2
4633
+
4634
+ def initialize(
4635
+ city: nil,
4636
+ country: nil,
4637
+ postal_code: nil,
4638
+ region: nil,
4639
+ street_address: nil,
4640
+ street_address2: nil
4641
+ )
4642
+ @city = city
4643
+ @country = country
4644
+ @postal_code = postal_code
4645
+ @region = region
4646
+ @street_address = street_address
4647
+ @street_address2 = street_address2
4648
+ end
4649
+ end
4650
+ # Address of the departure location.
4651
+ attr_accessor :address
4652
+ # Timestamp of departure.
4653
+ attr_accessor :departs_at
4654
+ # Identifier name or reference for the origin location.
4655
+ attr_accessor :departure_location
4656
+
4657
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4658
+ @address = address
4659
+ @departs_at = departs_at
4660
+ @departure_location = departure_location
4661
+ end
4662
+ end
4663
+
4664
+ class Insurance < ::Stripe::RequestParams
4665
+ # Insurance currency.
4666
+ attr_accessor :currency
4667
+ # Name of the company providing the insurance.
4668
+ attr_accessor :insurance_company_name
4669
+ # Type of insurance.
4670
+ attr_accessor :insurance_type
4671
+ # Price of insurance in cents.
4672
+ attr_accessor :price
4673
+
4674
+ def initialize(
4675
+ currency: nil,
4676
+ insurance_company_name: nil,
4677
+ insurance_type: nil,
4678
+ price: nil
4679
+ )
4680
+ @currency = currency
4681
+ @insurance_company_name = insurance_company_name
4682
+ @insurance_type = insurance_type
4683
+ @price = price
4684
+ end
4685
+ end
4686
+
4687
+ class Passenger < ::Stripe::RequestParams
4688
+ # The family name of the person.
4689
+ attr_accessor :family_name
4690
+ # The given name of the person.
4691
+ attr_accessor :given_name
4692
+
4693
+ def initialize(family_name: nil, given_name: nil)
4694
+ @family_name = family_name
4695
+ @given_name = given_name
4696
+ end
4697
+ end
4698
+ # Name of associated or partner company for the service.
4699
+ attr_accessor :affiliate_name
4700
+ # Arrival details.
4701
+ attr_accessor :arrival
4702
+ # Name of transportation company.
4703
+ attr_accessor :carrier_name
4704
+ # Currency.
4705
+ attr_accessor :currency
4706
+ # Departure details.
4707
+ attr_accessor :departure
4708
+ # List of insurances for this reservation.
4709
+ attr_accessor :insurances
4710
+ # List of passengers that this reservation applies to.
4711
+ attr_accessor :passengers
4712
+ # Price in cents.
4713
+ attr_accessor :price
4714
+ # Ticket class.
4715
+ attr_accessor :ticket_class
4716
+
4717
+ def initialize(
4718
+ affiliate_name: nil,
4719
+ arrival: nil,
4720
+ carrier_name: nil,
4721
+ currency: nil,
4722
+ departure: nil,
4723
+ insurances: nil,
4724
+ passengers: nil,
4725
+ price: nil,
4726
+ ticket_class: nil
4727
+ )
4728
+ @affiliate_name = affiliate_name
4729
+ @arrival = arrival
4730
+ @carrier_name = carrier_name
4731
+ @currency = currency
4732
+ @departure = departure
4733
+ @insurances = insurances
4734
+ @passengers = passengers
4735
+ @price = price
4736
+ @ticket_class = ticket_class
4737
+ end
4738
+ end
4739
+
4740
+ class TrainReservationDetail < ::Stripe::RequestParams
4741
+ class Arrival < ::Stripe::RequestParams
4742
+ class Address < ::Stripe::RequestParams
4743
+ # The city or town.
4744
+ attr_accessor :city
4745
+ # The country in ISO 3166-1 alpha-2 format.
4746
+ attr_accessor :country
4747
+ # The postal code formatted according to country.
4748
+ attr_accessor :postal_code
4749
+ # The state, county, province, or region formatted according to country.
4750
+ attr_accessor :region
4751
+ # Line 1 of the street address.
4752
+ attr_accessor :street_address
4753
+ # Line 2 of the street address.
4754
+ attr_accessor :street_address2
4755
+
4756
+ def initialize(
4757
+ city: nil,
4758
+ country: nil,
4759
+ postal_code: nil,
4760
+ region: nil,
4761
+ street_address: nil,
4762
+ street_address2: nil
4763
+ )
4764
+ @city = city
4765
+ @country = country
4766
+ @postal_code = postal_code
4767
+ @region = region
4768
+ @street_address = street_address
4769
+ @street_address2 = street_address2
4770
+ end
4771
+ end
4772
+ # Address of the arrival location.
4773
+ attr_accessor :address
4774
+ # Identifier name or reference for the arrival location.
4775
+ attr_accessor :arrival_location
4776
+
4777
+ def initialize(address: nil, arrival_location: nil)
4778
+ @address = address
4779
+ @arrival_location = arrival_location
4780
+ end
4781
+ end
4782
+
4783
+ class Departure < ::Stripe::RequestParams
4784
+ class Address < ::Stripe::RequestParams
4785
+ # The city or town.
4786
+ attr_accessor :city
4787
+ # The country in ISO 3166-1 alpha-2 format.
4788
+ attr_accessor :country
4789
+ # The postal code formatted according to country.
4790
+ attr_accessor :postal_code
4791
+ # The state, county, province, or region formatted according to country.
4792
+ attr_accessor :region
4793
+ # Line 1 of the street address.
4794
+ attr_accessor :street_address
4795
+ # Line 2 of the street address.
4796
+ attr_accessor :street_address2
4797
+
4798
+ def initialize(
4799
+ city: nil,
4800
+ country: nil,
4801
+ postal_code: nil,
4802
+ region: nil,
4803
+ street_address: nil,
4804
+ street_address2: nil
4805
+ )
4806
+ @city = city
4807
+ @country = country
4808
+ @postal_code = postal_code
4809
+ @region = region
4810
+ @street_address = street_address
4811
+ @street_address2 = street_address2
4812
+ end
4813
+ end
4814
+ # Address of the departure location.
4815
+ attr_accessor :address
4816
+ # Timestamp of departure.
4817
+ attr_accessor :departs_at
4818
+ # Identifier name or reference for the origin location.
4819
+ attr_accessor :departure_location
4820
+
4821
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4822
+ @address = address
4823
+ @departs_at = departs_at
4824
+ @departure_location = departure_location
4825
+ end
4826
+ end
4827
+
4828
+ class Insurance < ::Stripe::RequestParams
4829
+ # Insurance currency.
4830
+ attr_accessor :currency
4831
+ # Name of the company providing the insurance.
4832
+ attr_accessor :insurance_company_name
4833
+ # Type of insurance.
4834
+ attr_accessor :insurance_type
4835
+ # Price of insurance in cents.
4836
+ attr_accessor :price
4837
+
4838
+ def initialize(
4839
+ currency: nil,
4840
+ insurance_company_name: nil,
4841
+ insurance_type: nil,
4842
+ price: nil
4843
+ )
4844
+ @currency = currency
4845
+ @insurance_company_name = insurance_company_name
4846
+ @insurance_type = insurance_type
4847
+ @price = price
4848
+ end
4849
+ end
4850
+
4851
+ class Passenger < ::Stripe::RequestParams
4852
+ # The family name of the person.
4853
+ attr_accessor :family_name
4854
+ # The given name of the person.
4855
+ attr_accessor :given_name
4856
+
4857
+ def initialize(family_name: nil, given_name: nil)
4858
+ @family_name = family_name
4859
+ @given_name = given_name
4860
+ end
4861
+ end
4862
+ # Name of associated or partner company for the service.
4863
+ attr_accessor :affiliate_name
4864
+ # Arrival details.
4865
+ attr_accessor :arrival
4866
+ # Name of transportation company.
4867
+ attr_accessor :carrier_name
4868
+ # Currency.
4869
+ attr_accessor :currency
4870
+ # Departure details.
4871
+ attr_accessor :departure
4872
+ # List of insurances for this reservation.
4873
+ attr_accessor :insurances
4874
+ # List of passengers that this reservation applies to.
4875
+ attr_accessor :passengers
4876
+ # Price in cents.
4877
+ attr_accessor :price
4878
+ # Ticket class.
4879
+ attr_accessor :ticket_class
4880
+
4881
+ def initialize(
4882
+ affiliate_name: nil,
4883
+ arrival: nil,
4884
+ carrier_name: nil,
4885
+ currency: nil,
4886
+ departure: nil,
4887
+ insurances: nil,
4888
+ passengers: nil,
4889
+ price: nil,
4890
+ ticket_class: nil
4891
+ )
4892
+ @affiliate_name = affiliate_name
4893
+ @arrival = arrival
4894
+ @carrier_name = carrier_name
4895
+ @currency = currency
4896
+ @departure = departure
4897
+ @insurances = insurances
4898
+ @passengers = passengers
4899
+ @price = price
4900
+ @ticket_class = ticket_class
4901
+ end
4902
+ end
4903
+
4904
+ class Voucher < ::Stripe::RequestParams
4905
+ # Name of associated or partner company for this voucher.
4906
+ attr_accessor :affiliate_name
4907
+ # The voucher validity end time.
4908
+ attr_accessor :ends_at
4909
+ # The voucher validity start time.
4910
+ attr_accessor :starts_at
4911
+ # The issuer or provider of this voucher.
4912
+ attr_accessor :voucher_company
4913
+ # The name or reference to identify the voucher.
4914
+ attr_accessor :voucher_name
4915
+ # The type of this voucher.
4916
+ attr_accessor :voucher_type
4917
+
4918
+ def initialize(
4919
+ affiliate_name: nil,
4920
+ ends_at: nil,
4921
+ starts_at: nil,
4922
+ voucher_company: nil,
4923
+ voucher_name: nil,
4924
+ voucher_type: nil
4925
+ )
4926
+ @affiliate_name = affiliate_name
4927
+ @ends_at = ends_at
4928
+ @starts_at = starts_at
4929
+ @voucher_company = voucher_company
4930
+ @voucher_name = voucher_name
4931
+ @voucher_type = voucher_type
4932
+ end
4933
+ end
4934
+ # Supplementary bus reservation details.
4935
+ attr_accessor :bus_reservation_details
4936
+ # Supplementary event reservation details.
4937
+ attr_accessor :event_reservation_details
4938
+ # Supplementary ferry reservation details.
4939
+ attr_accessor :ferry_reservation_details
4940
+ # Supplementary insurance details.
4941
+ attr_accessor :insurances
4942
+ # Supplementary marketplace seller details.
4943
+ attr_accessor :marketplace_sellers
4944
+ # Supplementary round trip reservation details.
4945
+ attr_accessor :round_trip_reservation_details
4946
+ # Supplementary train reservation details.
4947
+ attr_accessor :train_reservation_details
4948
+ # Voucher details, such as a gift card or discount code.
4949
+ attr_accessor :vouchers
4950
+
4951
+ def initialize(
4952
+ bus_reservation_details: nil,
4953
+ event_reservation_details: nil,
4954
+ ferry_reservation_details: nil,
4955
+ insurances: nil,
4956
+ marketplace_sellers: nil,
4957
+ round_trip_reservation_details: nil,
4958
+ train_reservation_details: nil,
4959
+ vouchers: nil
4960
+ )
4961
+ @bus_reservation_details = bus_reservation_details
4962
+ @event_reservation_details = event_reservation_details
4963
+ @ferry_reservation_details = ferry_reservation_details
4964
+ @insurances = insurances
4965
+ @marketplace_sellers = marketplace_sellers
4966
+ @round_trip_reservation_details = round_trip_reservation_details
4967
+ @train_reservation_details = train_reservation_details
4968
+ @vouchers = vouchers
4969
+ end
4970
+ end
1641
4971
  # Controls when the funds are captured from the customer's account.
1642
4972
  #
1643
4973
  # 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 +4990,23 @@ module Stripe
1660
4990
  attr_accessor :setup_future_usage
1661
4991
  # Subscription details if setting up or charging a subscription.
1662
4992
  attr_accessor :subscriptions
4993
+ # Supplementary Purchase Data for the corresponding Klarna payment
4994
+ attr_accessor :supplementary_purchase_data
1663
4995
 
1664
4996
  def initialize(
1665
4997
  capture_method: nil,
1666
4998
  on_demand: nil,
1667
4999
  preferred_locale: nil,
1668
5000
  setup_future_usage: nil,
1669
- subscriptions: nil
5001
+ subscriptions: nil,
5002
+ supplementary_purchase_data: nil
1670
5003
  )
1671
5004
  @capture_method = capture_method
1672
5005
  @on_demand = on_demand
1673
5006
  @preferred_locale = preferred_locale
1674
5007
  @setup_future_usage = setup_future_usage
1675
5008
  @subscriptions = subscriptions
5009
+ @supplementary_purchase_data = supplementary_purchase_data
1676
5010
  end
1677
5011
  end
1678
5012
 
@@ -1933,12 +5267,65 @@ module Stripe
1933
5267
  end
1934
5268
 
1935
5269
  class Paypal < ::Stripe::RequestParams
5270
+ class LineItem < ::Stripe::RequestParams
5271
+ class Tax < ::Stripe::RequestParams
5272
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
5273
+ attr_accessor :amount
5274
+ # The tax behavior for the line item.
5275
+ attr_accessor :behavior
5276
+
5277
+ def initialize(amount: nil, behavior: nil)
5278
+ @amount = amount
5279
+ @behavior = behavior
5280
+ end
5281
+ end
5282
+ # Type of the line item.
5283
+ attr_accessor :category
5284
+ # Description of the line item.
5285
+ attr_accessor :description
5286
+ # Descriptive name of the line item.
5287
+ attr_accessor :name
5288
+ # Quantity of the line item. Must be a positive number.
5289
+ attr_accessor :quantity
5290
+ # Client facing stock keeping unit, article number or similar.
5291
+ attr_accessor :sku
5292
+ # The Stripe account ID of the connected account that sells the item.
5293
+ attr_accessor :sold_by
5294
+ # The tax information for the line item.
5295
+ attr_accessor :tax
5296
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
5297
+ attr_accessor :unit_amount
5298
+
5299
+ def initialize(
5300
+ category: nil,
5301
+ description: nil,
5302
+ name: nil,
5303
+ quantity: nil,
5304
+ sku: nil,
5305
+ sold_by: nil,
5306
+ tax: nil,
5307
+ unit_amount: nil
5308
+ )
5309
+ @category = category
5310
+ @description = description
5311
+ @name = name
5312
+ @quantity = quantity
5313
+ @sku = sku
5314
+ @sold_by = sold_by
5315
+ @tax = tax
5316
+ @unit_amount = unit_amount
5317
+ end
5318
+ end
1936
5319
  # Controls when the funds will be captured from the customer's account.
1937
5320
  attr_accessor :capture_method
5321
+ # The line items purchased by the customer.
5322
+ attr_accessor :line_items
1938
5323
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1939
5324
  attr_accessor :preferred_locale
1940
5325
  # 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
5326
  attr_accessor :reference
5327
+ # 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.
5328
+ attr_accessor :reference_id
1942
5329
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1943
5330
  attr_accessor :risk_correlation_id
1944
5331
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1951,19 +5338,40 @@ module Stripe
1951
5338
  #
1952
5339
  # 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
5340
  attr_accessor :setup_future_usage
5341
+ # 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.
5342
+ attr_accessor :subsellers
1954
5343
 
1955
5344
  def initialize(
1956
5345
  capture_method: nil,
5346
+ line_items: nil,
1957
5347
  preferred_locale: nil,
1958
5348
  reference: nil,
5349
+ reference_id: nil,
1959
5350
  risk_correlation_id: nil,
1960
- setup_future_usage: nil
5351
+ setup_future_usage: nil,
5352
+ subsellers: nil
1961
5353
  )
1962
5354
  @capture_method = capture_method
5355
+ @line_items = line_items
1963
5356
  @preferred_locale = preferred_locale
1964
5357
  @reference = reference
5358
+ @reference_id = reference_id
1965
5359
  @risk_correlation_id = risk_correlation_id
1966
5360
  @setup_future_usage = setup_future_usage
5361
+ @subsellers = subsellers
5362
+ end
5363
+ end
5364
+
5365
+ class Paypay < ::Stripe::RequestParams
5366
+ # Controls when the funds are captured from the customer's account.
5367
+ #
5368
+ # 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.
5369
+ #
5370
+ # 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.
5371
+ attr_accessor :capture_method
5372
+
5373
+ def initialize(capture_method: nil)
5374
+ @capture_method = capture_method
1967
5375
  end
1968
5376
  end
1969
5377
 
@@ -2105,6 +5513,25 @@ module Stripe
2105
5513
  end
2106
5514
  end
2107
5515
 
5516
+ class Qris < ::Stripe::RequestParams
5517
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5518
+ #
5519
+ # 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.
5520
+ #
5521
+ # 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.
5522
+ #
5523
+ # 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).
5524
+ #
5525
+ # 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`.
5526
+ attr_accessor :setup_future_usage
5527
+
5528
+ def initialize(setup_future_usage: nil)
5529
+ @setup_future_usage = setup_future_usage
5530
+ end
5531
+ end
5532
+
5533
+ class Rechnung < ::Stripe::RequestParams; end
5534
+
2108
5535
  class RevolutPay < ::Stripe::RequestParams
2109
5536
  # Controls when the funds are captured from the customer's account.
2110
5537
  #
@@ -2206,6 +5633,23 @@ module Stripe
2206
5633
  end
2207
5634
  end
2208
5635
 
5636
+ class Shopeepay < ::Stripe::RequestParams
5637
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5638
+ #
5639
+ # 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.
5640
+ #
5641
+ # 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.
5642
+ #
5643
+ # 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).
5644
+ #
5645
+ # 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`.
5646
+ attr_accessor :setup_future_usage
5647
+
5648
+ def initialize(setup_future_usage: nil)
5649
+ @setup_future_usage = setup_future_usage
5650
+ end
5651
+ end
5652
+
2209
5653
  class Sofort < ::Stripe::RequestParams
2210
5654
  # Language shown to the payer on redirect.
2211
5655
  attr_accessor :preferred_language
@@ -2226,6 +5670,34 @@ module Stripe
2226
5670
  end
2227
5671
  end
2228
5672
 
5673
+ class StripeBalance < ::Stripe::RequestParams
5674
+ class MandateOptions < ::Stripe::RequestParams
5675
+ # The ID of the Stripe Balance Debit Agreement used for this mandate.
5676
+ attr_accessor :stripe_balance_debit_agreement
5677
+
5678
+ def initialize(stripe_balance_debit_agreement: nil)
5679
+ @stripe_balance_debit_agreement = stripe_balance_debit_agreement
5680
+ end
5681
+ end
5682
+ # Additional fields for mandate creation.
5683
+ attr_accessor :mandate_options
5684
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5685
+ #
5686
+ # 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.
5687
+ #
5688
+ # 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.
5689
+ #
5690
+ # 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).
5691
+ #
5692
+ # 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`.
5693
+ attr_accessor :setup_future_usage
5694
+
5695
+ def initialize(mandate_options: nil, setup_future_usage: nil)
5696
+ @mandate_options = mandate_options
5697
+ @setup_future_usage = setup_future_usage
5698
+ end
5699
+ end
5700
+
2229
5701
  class Sunbit < ::Stripe::RequestParams
2230
5702
  # Controls when the funds are captured from the customer's account.
2231
5703
  #
@@ -2319,13 +5791,27 @@ module Stripe
2319
5791
  class Filters < ::Stripe::RequestParams
2320
5792
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2321
5793
  attr_accessor :account_subcategories
5794
+ # ID of the institution to use to filter for selectable accounts.
5795
+ attr_accessor :institution
2322
5796
 
2323
- def initialize(account_subcategories: nil)
5797
+ def initialize(account_subcategories: nil, institution: nil)
2324
5798
  @account_subcategories = account_subcategories
5799
+ @institution = institution
5800
+ end
5801
+ end
5802
+
5803
+ class ManualEntry < ::Stripe::RequestParams
5804
+ # Settings for configuring manual entry of account details.
5805
+ attr_accessor :mode
5806
+
5807
+ def initialize(mode: nil)
5808
+ @mode = mode
2325
5809
  end
2326
5810
  end
2327
5811
  # Provide filters for the linked accounts that the customer can select for the payment method.
2328
5812
  attr_accessor :filters
5813
+ # Customize manual entry behavior
5814
+ attr_accessor :manual_entry
2329
5815
  # 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`.
2330
5816
  attr_accessor :permissions
2331
5817
  # List of data features that you would like to retrieve upon account creation.
@@ -2333,8 +5819,15 @@ module Stripe
2333
5819
  # 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.
2334
5820
  attr_accessor :return_url
2335
5821
 
2336
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5822
+ def initialize(
5823
+ filters: nil,
5824
+ manual_entry: nil,
5825
+ permissions: nil,
5826
+ prefetch: nil,
5827
+ return_url: nil
5828
+ )
2337
5829
  @filters = filters
5830
+ @manual_entry = manual_entry
2338
5831
  @permissions = permissions
2339
5832
  @prefetch = prefetch
2340
5833
  @return_url = return_url
@@ -2403,6 +5896,8 @@ module Stripe
2403
5896
  class WechatPay < ::Stripe::RequestParams
2404
5897
  # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
2405
5898
  attr_accessor :app_id
5899
+ # The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
5900
+ attr_accessor :buyer_id
2406
5901
  # The client type that the end customer will pay from
2407
5902
  attr_accessor :client
2408
5903
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2416,8 +5911,9 @@ module Stripe
2416
5911
  # 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`.
2417
5912
  attr_accessor :setup_future_usage
2418
5913
 
2419
- def initialize(app_id: nil, client: nil, setup_future_usage: nil)
5914
+ def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
2420
5915
  @app_id = app_id
5916
+ @buyer_id = buyer_id
2421
5917
  @client = client
2422
5918
  @setup_future_usage = setup_future_usage
2423
5919
  end
@@ -2479,10 +5975,16 @@ module Stripe
2479
5975
  attr_accessor :eps
2480
5976
  # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
2481
5977
  attr_accessor :fpx
5978
+ # If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
5979
+ attr_accessor :gift_card
2482
5980
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2483
5981
  attr_accessor :giropay
5982
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5983
+ attr_accessor :gopay
2484
5984
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2485
5985
  attr_accessor :grabpay
5986
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5987
+ attr_accessor :id_bank_transfer
2486
5988
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2487
5989
  attr_accessor :ideal
2488
5990
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2519,12 +6021,18 @@ module Stripe
2519
6021
  attr_accessor :paynow
2520
6022
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2521
6023
  attr_accessor :paypal
6024
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
6025
+ attr_accessor :paypay
2522
6026
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
2523
6027
  attr_accessor :payto
2524
6028
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2525
6029
  attr_accessor :pix
2526
6030
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2527
6031
  attr_accessor :promptpay
6032
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
6033
+ attr_accessor :qris
6034
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
6035
+ attr_accessor :rechnung
2528
6036
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2529
6037
  attr_accessor :revolut_pay
2530
6038
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2535,8 +6043,12 @@ module Stripe
2535
6043
  attr_accessor :scalapay
2536
6044
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2537
6045
  attr_accessor :sepa_debit
6046
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
6047
+ attr_accessor :shopeepay
2538
6048
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2539
6049
  attr_accessor :sofort
6050
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
6051
+ attr_accessor :stripe_balance
2540
6052
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
2541
6053
  attr_accessor :sunbit
2542
6054
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -2573,8 +6085,11 @@ module Stripe
2573
6085
  customer_balance: nil,
2574
6086
  eps: nil,
2575
6087
  fpx: nil,
6088
+ gift_card: nil,
2576
6089
  giropay: nil,
6090
+ gopay: nil,
2577
6091
  grabpay: nil,
6092
+ id_bank_transfer: nil,
2578
6093
  ideal: nil,
2579
6094
  interac_present: nil,
2580
6095
  kakao_pay: nil,
@@ -2593,15 +6108,20 @@ module Stripe
2593
6108
  payco: nil,
2594
6109
  paynow: nil,
2595
6110
  paypal: nil,
6111
+ paypay: nil,
2596
6112
  payto: nil,
2597
6113
  pix: nil,
2598
6114
  promptpay: nil,
6115
+ qris: nil,
6116
+ rechnung: nil,
2599
6117
  revolut_pay: nil,
2600
6118
  samsung_pay: nil,
2601
6119
  satispay: nil,
2602
6120
  scalapay: nil,
2603
6121
  sepa_debit: nil,
6122
+ shopeepay: nil,
2604
6123
  sofort: nil,
6124
+ stripe_balance: nil,
2605
6125
  sunbit: nil,
2606
6126
  swish: nil,
2607
6127
  twint: nil,
@@ -2630,8 +6150,11 @@ module Stripe
2630
6150
  @customer_balance = customer_balance
2631
6151
  @eps = eps
2632
6152
  @fpx = fpx
6153
+ @gift_card = gift_card
2633
6154
  @giropay = giropay
6155
+ @gopay = gopay
2634
6156
  @grabpay = grabpay
6157
+ @id_bank_transfer = id_bank_transfer
2635
6158
  @ideal = ideal
2636
6159
  @interac_present = interac_present
2637
6160
  @kakao_pay = kakao_pay
@@ -2650,15 +6173,20 @@ module Stripe
2650
6173
  @payco = payco
2651
6174
  @paynow = paynow
2652
6175
  @paypal = paypal
6176
+ @paypay = paypay
2653
6177
  @payto = payto
2654
6178
  @pix = pix
2655
6179
  @promptpay = promptpay
6180
+ @qris = qris
6181
+ @rechnung = rechnung
2656
6182
  @revolut_pay = revolut_pay
2657
6183
  @samsung_pay = samsung_pay
2658
6184
  @satispay = satispay
2659
6185
  @scalapay = scalapay
2660
6186
  @sepa_debit = sepa_debit
6187
+ @shopeepay = shopeepay
2661
6188
  @sofort = sofort
6189
+ @stripe_balance = stripe_balance
2662
6190
  @sunbit = sunbit
2663
6191
  @swish = swish
2664
6192
  @twint = twint
@@ -2748,6 +6276,10 @@ module Stripe
2748
6276
  @payment_data = payment_data
2749
6277
  end
2750
6278
  end
6279
+ # Allocated Funds configuration for this PaymentIntent.
6280
+ attr_accessor :allocated_funds
6281
+ # 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`.
6282
+ attr_accessor :allowed_payment_method_types
2751
6283
  # 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).
2752
6284
  attr_accessor :amount
2753
6285
  # Provides industry-specific information about the amount.
@@ -2776,13 +6308,17 @@ module Stripe
2776
6308
  attr_accessor :excluded_payment_method_types
2777
6309
  # Specifies which fields in the response should be expanded.
2778
6310
  attr_accessor :expand
6311
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
6312
+ attr_accessor :fx_quote
2779
6313
  # Automations to be run during the PaymentIntent lifecycle
2780
6314
  attr_accessor :hooks
6315
+ # This hash contains details about the Mandate to create.
6316
+ attr_accessor :mandate_data
2781
6317
  # 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`.
2782
6318
  attr_accessor :metadata
2783
6319
  # Provides industry-specific information about the charge.
2784
6320
  attr_accessor :payment_details
2785
- # 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.
6321
+ # Attribute for param field payment_method
2786
6322
  attr_accessor :payment_method
2787
6323
  # The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
2788
6324
  attr_accessor :payment_method_configuration
@@ -2820,6 +6356,8 @@ module Stripe
2820
6356
  attr_accessor :transfer_group
2821
6357
 
2822
6358
  def initialize(
6359
+ allocated_funds: nil,
6360
+ allowed_payment_method_types: nil,
2823
6361
  amount: nil,
2824
6362
  amount_details: nil,
2825
6363
  application_fee_amount: nil,
@@ -2830,7 +6368,9 @@ module Stripe
2830
6368
  description: nil,
2831
6369
  excluded_payment_method_types: nil,
2832
6370
  expand: nil,
6371
+ fx_quote: nil,
2833
6372
  hooks: nil,
6373
+ mandate_data: nil,
2834
6374
  metadata: nil,
2835
6375
  payment_details: nil,
2836
6376
  payment_method: nil,
@@ -2846,6 +6386,8 @@ module Stripe
2846
6386
  transfer_data: nil,
2847
6387
  transfer_group: nil
2848
6388
  )
6389
+ @allocated_funds = allocated_funds
6390
+ @allowed_payment_method_types = allowed_payment_method_types
2849
6391
  @amount = amount
2850
6392
  @amount_details = amount_details
2851
6393
  @application_fee_amount = application_fee_amount
@@ -2856,7 +6398,9 @@ module Stripe
2856
6398
  @description = description
2857
6399
  @excluded_payment_method_types = excluded_payment_method_types
2858
6400
  @expand = expand
6401
+ @fx_quote = fx_quote
2859
6402
  @hooks = hooks
6403
+ @mandate_data = mandate_data
2860
6404
  @metadata = metadata
2861
6405
  @payment_details = payment_details
2862
6406
  @payment_method = payment_method