stripe 19.2.0 → 19.3.0.pre.alpha.1

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