stripe 19.2.0 → 19.3.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1271) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +38 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +90 -0
  5. data/lib/stripe/event_types.rb +1308 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
  8. data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
  9. data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
  10. data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
  11. data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
  12. data/lib/stripe/events/v1_account_signals_including_delinquency_created_event.rb +68 -0
  13. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  14. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_application_fee_refund_updated_event.rb +44 -0
  16. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  17. data/lib/stripe/events/v1_balance_available_event.rb +44 -0
  18. data/lib/stripe/events/v1_billing_alert_triggered_event.rb +44 -0
  19. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  20. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  21. data/lib/stripe/events/v1_billing_portal_session_created_event.rb +20 -0
  22. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  23. data/lib/stripe/events/v1_cash_balance_funds_available_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  25. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  26. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  27. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  28. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  29. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  30. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  31. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  32. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  33. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  34. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  35. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  37. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  38. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  39. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  40. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  41. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  42. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  44. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  45. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  46. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  47. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  48. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  49. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  50. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  51. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  52. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  53. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_cash_balance_transaction_created_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  56. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  57. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  59. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  60. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  61. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  62. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  63. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  64. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  65. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  67. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  68. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  69. data/lib/stripe/events/v1_entitlements_active_entitlement_summary_updated_event.rb +20 -0
  70. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  72. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  73. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  74. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  75. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  76. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  77. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  78. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  79. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  80. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  81. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  82. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  83. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  89. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  90. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  91. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  92. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  93. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  94. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  95. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  96. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  97. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  98. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  99. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  100. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  101. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  102. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  111. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  112. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  113. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  114. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  115. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  116. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  117. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  118. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  119. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  120. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  123. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  125. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  127. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  128. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  129. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  130. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  132. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  133. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  134. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  135. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  136. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  137. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  139. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  140. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  141. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  143. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  144. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  145. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  147. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  148. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  149. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  150. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  151. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  154. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  156. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  157. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  158. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  160. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  161. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  162. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  164. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  165. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  166. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  167. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  168. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  169. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  170. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  171. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  172. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  173. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  174. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  175. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  176. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  177. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  178. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  179. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  180. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  181. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  182. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  183. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  184. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  185. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  186. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  187. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  188. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  189. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  190. data/lib/stripe/events/v1_tax_settings_updated_event.rb +44 -0
  191. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  192. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  193. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  194. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  195. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  196. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  197. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  198. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  199. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  200. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  201. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  202. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  203. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  204. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  205. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  206. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  208. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  210. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  213. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  216. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  217. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  218. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  219. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  230. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  231. data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +67 -0
  232. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  233. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  234. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  235. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  236. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  237. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  238. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  239. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  240. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  241. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  242. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  243. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  245. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  246. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  247. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  248. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_account_signals_fraudulent_website_ready_event.rb +48 -0
  250. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  255. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  256. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  257. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  258. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  259. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  260. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  261. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  262. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  263. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  264. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  265. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  266. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  267. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  268. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  269. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  270. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  271. data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
  272. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +115 -0
  273. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +117 -0
  274. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +113 -0
  275. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +115 -0
  276. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +96 -0
  277. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +98 -0
  278. data/lib/stripe/events/v2_core_health_elements_error_firing_event.rb +60 -0
  279. data/lib/stripe/events/v2_core_health_elements_error_resolved_event.rb +62 -0
  280. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  281. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  282. data/lib/stripe/events/v2_core_health_invoice_count_dropped_firing_event.rb +75 -0
  283. data/lib/stripe/events/v2_core_health_invoice_count_dropped_resolved_event.rb +77 -0
  284. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +64 -0
  285. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +66 -0
  286. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  287. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +66 -0
  288. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_firing_event.rb +58 -0
  289. data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_resolved_event.rb +60 -0
  290. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +111 -0
  291. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +113 -0
  292. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +70 -0
  293. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +72 -0
  294. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +64 -0
  295. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +66 -0
  296. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  297. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +60 -0
  298. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  299. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  300. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  301. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  302. data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
  303. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  304. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  305. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  306. data/lib/stripe/events/v2_iam_api_key_created_event.rb +38 -0
  307. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +38 -0
  308. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +38 -0
  309. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +38 -0
  310. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +40 -0
  311. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +38 -0
  312. data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +38 -0
  313. data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +38 -0
  314. data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +38 -0
  315. data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +38 -0
  316. data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +38 -0
  317. data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +38 -0
  318. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  319. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  320. data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
  321. data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
  322. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  323. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  324. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  325. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  326. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  327. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  328. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  329. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  330. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  331. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  332. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  333. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  334. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  335. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  336. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  337. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  338. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  339. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  340. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  341. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  342. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  343. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  344. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  345. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  346. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  347. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  348. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  349. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  350. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  351. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  352. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  353. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  354. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  355. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  356. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
  357. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  358. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  359. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  360. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  361. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  362. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -0
  363. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  364. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  365. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  366. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  367. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  368. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +61 -0
  369. data/lib/stripe/events/v2_payments_off_session_payment_paused_event.rb +44 -0
  370. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  371. data/lib/stripe/events/v2_payments_off_session_payment_resumed_event.rb +44 -0
  372. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  373. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  374. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  375. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  376. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  377. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  378. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  379. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  380. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  381. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  382. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  383. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  384. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  385. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  386. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  387. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  388. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +88 -0
  389. data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
  390. data/lib/stripe/object_types.rb +125 -0
  391. data/lib/stripe/params/account_create_params.rb +461 -2
  392. data/lib/stripe/params/account_link_create_params.rb +4 -1
  393. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  394. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  395. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  396. data/lib/stripe/params/account_person_create_params.rb +60 -0
  397. data/lib/stripe/params/account_person_update_params.rb +60 -0
  398. data/lib/stripe/params/account_session_create_params.rb +301 -1
  399. data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/account_update_params.rb +423 -1
  401. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  402. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  403. data/lib/stripe/params/billing/alert_create_params.rb +264 -1
  404. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  405. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  406. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  407. data/lib/stripe/params/billing/credit_grant_create_params.rb +48 -2
  408. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  409. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -0
  410. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  411. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  412. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  413. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  414. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  415. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  416. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  417. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  418. data/lib/stripe/params/charge_capture_params.rb +1912 -0
  419. data/lib/stripe/params/charge_update_params.rb +1912 -0
  420. data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
  421. data/lib/stripe/params/checkout/session_create_params.rb +255 -4
  422. data/lib/stripe/params/checkout/session_update_params.rb +176 -1
  423. data/lib/stripe/params/confirmation_token_create_params.rb +91 -0
  424. data/lib/stripe/params/coupon_create_params.rb +47 -1
  425. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  426. data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
  427. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +168 -0
  428. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
  429. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  430. data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
  431. data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
  432. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  433. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +216 -0
  434. data/lib/stripe/params/dispute_update_params.rb +14 -1
  435. data/lib/stripe/params/external_account_create_params.rb +134 -0
  436. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  437. data/lib/stripe/params/external_account_list_params.rb +25 -0
  438. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  439. data/lib/stripe/params/external_account_update_params.rb +91 -0
  440. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  441. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  442. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  443. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  444. data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
  445. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
  446. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
  447. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
  448. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
  449. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  450. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  451. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  452. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  453. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  454. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  455. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  457. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  458. data/lib/stripe/params/identity/verification_session_update_params.rb +11 -1
  459. data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
  460. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  461. data/lib/stripe/params/invoice_create_params.rb +98 -3
  462. data/lib/stripe/params/invoice_create_preview_params.rb +1314 -9
  463. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  464. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  465. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  466. data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
  467. data/lib/stripe/params/invoice_list_params.rb +4 -0
  468. data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
  469. data/lib/stripe/params/invoice_update_params.rb +98 -3
  470. data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
  471. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  472. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  473. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  474. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  475. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  476. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  477. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  478. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  479. data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
  480. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  481. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  482. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
  483. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
  484. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
  485. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  486. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  487. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  488. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  489. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  490. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  491. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +8 -0
  492. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  493. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  494. data/lib/stripe/params/mandate_list_params.rb +39 -0
  495. data/lib/stripe/params/margin_create_params.rb +25 -0
  496. data/lib/stripe/params/margin_list_params.rb +25 -0
  497. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  498. data/lib/stripe/params/margin_update_params.rb +22 -0
  499. data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
  500. data/lib/stripe/params/order_create_params.rb +2114 -0
  501. data/lib/stripe/params/order_list_params.rb +25 -0
  502. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  503. data/lib/stripe/params/order_submit_params.rb +16 -0
  504. data/lib/stripe/params/order_update_params.rb +2118 -0
  505. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
  506. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
  507. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +22 -0
  508. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +54 -0
  509. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +50 -0
  510. data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
  511. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +79 -0
  512. data/lib/stripe/params/payment_intent_capture_params.rb +1928 -2
  513. data/lib/stripe/params/payment_intent_confirm_params.rb +3659 -158
  514. data/lib/stripe/params/payment_intent_create_params.rb +3639 -122
  515. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +315 -0
  516. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +56 -1
  517. data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
  518. data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
  519. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  520. data/lib/stripe/params/payment_intent_update_params.rb +3680 -148
  521. data/lib/stripe/params/payment_link_create_params.rb +34 -0
  522. data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
  523. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
  524. data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
  525. data/lib/stripe/params/payment_location_create_params.rb +54 -0
  526. data/lib/stripe/params/payment_location_delete_params.rb +6 -0
  527. data/lib/stripe/params/payment_location_list_params.rb +22 -0
  528. data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
  529. data/lib/stripe/params/payment_location_update_params.rb +63 -0
  530. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  531. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  532. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  533. data/lib/stripe/params/payment_method_create_params.rb +87 -0
  534. data/lib/stripe/params/payment_method_update_params.rb +16 -0
  535. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +4 -1
  536. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +36 -1
  537. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +32 -1
  538. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +60 -2
  539. data/lib/stripe/params/payment_record_report_payment_params.rb +60 -2
  540. data/lib/stripe/params/plan_create_params.rb +15 -0
  541. data/lib/stripe/params/price_create_params.rb +19 -0
  542. data/lib/stripe/params/price_update_params.rb +23 -0
  543. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  544. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  545. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  546. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  547. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  548. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  549. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  550. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  551. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  552. data/lib/stripe/params/product_create_params.rb +47 -0
  553. data/lib/stripe/params/product_update_params.rb +47 -0
  554. data/lib/stripe/params/quote_create_params.rb +1217 -3
  555. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  556. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  557. data/lib/stripe/params/quote_list_params.rb +4 -0
  558. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  559. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  560. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  561. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  562. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  563. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  564. data/lib/stripe/params/quote_update_params.rb +1225 -4
  565. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  566. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  567. data/lib/stripe/params/radar/account_evaluation_update_params.rb +72 -0
  568. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +69 -0
  569. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
  570. data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
  571. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +30 -1
  572. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  573. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  574. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  575. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  576. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  577. data/lib/stripe/params/setup_intent_confirm_params.rb +177 -3
  578. data/lib/stripe/params/setup_intent_create_params.rb +177 -3
  579. data/lib/stripe/params/setup_intent_update_params.rb +178 -4
  580. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -0
  581. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  582. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  583. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +70 -0
  584. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  585. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  586. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  587. data/lib/stripe/params/subscription_create_params.rb +325 -7
  588. data/lib/stripe/params/subscription_item_create_params.rb +114 -2
  589. data/lib/stripe/params/subscription_item_update_params.rb +97 -1
  590. data/lib/stripe/params/subscription_list_params.rb +4 -0
  591. data/lib/stripe/params/subscription_pause_params.rb +50 -0
  592. data/lib/stripe/params/subscription_resume_params.rb +4 -0
  593. data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
  594. data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
  595. data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
  596. data/lib/stripe/params/subscription_update_params.rb +308 -6
  597. data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
  598. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  599. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  600. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  601. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  602. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  603. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  604. data/lib/stripe/params/tax/registration_create_params.rb +117 -0
  605. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  606. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  607. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  608. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  609. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  610. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +91 -0
  611. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
  612. data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
  613. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
  614. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
  615. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
  616. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +8 -0
  617. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  618. data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
  619. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
  620. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  621. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  622. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  623. data/lib/stripe/params/token_create_params.rb +134 -0
  624. data/lib/stripe/params/transfer_create_params.rb +8 -0
  625. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  626. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  627. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  628. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  629. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
  630. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  631. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  632. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  633. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  634. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  635. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  636. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  637. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  638. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  639. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  640. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  641. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  642. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  643. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  644. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
  645. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
  646. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  647. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  648. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  649. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  650. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  651. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  652. data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
  653. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +17 -0
  654. data/lib/stripe/params/v2/billing/contract_create_params.rb +831 -0
  655. data/lib/stripe/params/v2/billing/contract_list_params.rb +20 -0
  656. data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
  657. data/lib/stripe/params/v2/billing/contract_update_params.rb +522 -0
  658. data/lib/stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params.rb +21 -0
  659. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  660. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  661. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  662. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  663. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  664. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  665. data/lib/stripe/params/v2/billing/intent_create_params.rb +899 -0
  666. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  667. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  668. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  669. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  670. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  671. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  672. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +121 -0
  673. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  674. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  675. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +102 -0
  676. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  677. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  678. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  679. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  680. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  681. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  682. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  683. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  684. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  685. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  686. data/lib/stripe/params/v2/billing/one_time_item_create_params.rb +48 -0
  687. data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
  688. data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
  689. data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -0
  690. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  691. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  692. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  693. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +54 -0
  694. data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
  695. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
  696. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  697. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  698. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  699. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  700. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  701. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  702. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  703. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  704. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  705. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  706. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  707. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  708. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  709. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  710. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  711. data/lib/stripe/params/v2/billing/rate_card_modify_rates_params.rb +177 -0
  712. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  713. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  714. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  715. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  716. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  717. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  718. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  719. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params.rb +33 -0
  720. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
  721. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
  722. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
  723. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -0
  724. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  725. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  726. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  727. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  728. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  729. data/lib/stripe/params/v2/billing/service_action_create_params.rb +315 -0
  730. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  731. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  732. data/lib/stripe/params/v2/core/account_create_params.rb +1687 -6
  733. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
  734. data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
  735. data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
  736. data/lib/stripe/params/v2/core/account_update_params.rb +1667 -7
  737. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  738. data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
  739. data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
  740. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  741. data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
  742. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  743. data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
  744. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  745. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
  746. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
  747. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  748. data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
  749. data/lib/stripe/params/v2/core/connection_session_retrieve_params.rb +10 -0
  750. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  751. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  752. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
  753. data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
  754. data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
  755. data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
  756. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  757. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  758. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
  759. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  760. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  761. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  762. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  763. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  764. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
  765. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  766. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  767. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  768. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  769. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
  770. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  771. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
  772. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  773. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  774. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  775. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  776. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  777. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  778. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  779. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  780. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  781. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  782. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  783. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  784. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  785. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  786. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  787. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -0
  788. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  789. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  790. data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
  791. data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
  792. data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
  793. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  794. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +37 -0
  795. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
  796. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
  797. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
  798. data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
  799. data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
  800. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -0
  801. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  802. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  803. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  804. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  805. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  806. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  807. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +130 -0
  808. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  809. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +70 -0
  810. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  811. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  813. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +110 -0
  814. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  815. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  816. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
  817. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  818. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +85 -0
  819. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  820. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  821. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  822. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  823. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  824. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  825. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  826. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  827. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  828. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  829. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  831. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  832. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  833. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  834. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  835. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  836. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  837. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  838. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  839. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  840. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  841. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  842. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  843. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  844. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  845. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +178 -0
  846. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +362 -0
  847. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  848. data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
  849. data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -0
  850. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  851. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  852. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +35 -0
  853. data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -0
  854. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  855. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  856. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +20 -0
  857. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  858. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +28 -0
  859. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -0
  860. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  861. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  862. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  863. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +17 -0
  864. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  865. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  866. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -0
  867. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  868. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  869. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  870. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +124 -0
  871. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  872. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  873. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  874. data/lib/stripe/params.rb +909 -0
  875. data/lib/stripe/resources/account.rb +271 -1
  876. data/lib/stripe/resources/account_notice.rb +94 -0
  877. data/lib/stripe/resources/account_session.rb +302 -0
  878. data/lib/stripe/resources/account_signals.rb +104 -0
  879. data/lib/stripe/resources/application_fee.rb +24 -1
  880. data/lib/stripe/resources/balance.rb +166 -0
  881. data/lib/stripe/resources/balance_settings.rb +4 -0
  882. data/lib/stripe/resources/balance_transfer.rb +139 -0
  883. data/lib/stripe/resources/billing/alert.rb +274 -1
  884. data/lib/stripe/resources/billing/alert_recovered.rb +44 -0
  885. data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
  886. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  887. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  888. data/lib/stripe/resources/billing/credit_balance_summary.rb +172 -3
  889. data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
  890. data/lib/stripe/resources/billing/credit_grant.rb +77 -2
  891. data/lib/stripe/resources/billing/meter.rb +2 -0
  892. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  893. data/lib/stripe/resources/capability.rb +36 -1
  894. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  895. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  896. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  897. data/lib/stripe/resources/card.rb +20 -1
  898. data/lib/stripe/resources/charge.rb +328 -2
  899. data/lib/stripe/resources/checkout/session.rb +529 -3
  900. data/lib/stripe/resources/confirmation_token.rb +200 -1
  901. data/lib/stripe/resources/coupon.rb +60 -1
  902. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  903. data/lib/stripe/resources/customer_session.rb +36 -0
  904. data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
  905. data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
  906. data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
  907. data/lib/stripe/resources/discount.rb +20 -1
  908. data/lib/stripe/resources/dispute.rb +24 -0
  909. data/lib/stripe/resources/event.rb +64 -1
  910. data/lib/stripe/resources/financial_connections/account.rb +57 -0
  911. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  912. data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
  913. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  914. data/lib/stripe/resources/financial_connections/session.rb +125 -1
  915. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +153 -0
  916. data/lib/stripe/resources/fx_quote.rb +147 -0
  917. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  918. data/lib/stripe/resources/identity/verification_report.rb +24 -1
  919. data/lib/stripe/resources/invoice.rb +195 -1
  920. data/lib/stripe/resources/invoice_item.rb +126 -2
  921. data/lib/stripe/resources/invoice_line_item.rb +195 -1
  922. data/lib/stripe/resources/issuing/authorization.rb +268 -0
  923. data/lib/stripe/resources/issuing/card.rb +4 -0
  924. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  925. data/lib/stripe/resources/issuing/dispute.rb +289 -1
  926. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  927. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  928. data/lib/stripe/resources/issuing/program.rb +69 -0
  929. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  930. data/lib/stripe/resources/issuing/token.rb +8 -0
  931. data/lib/stripe/resources/issuing/transaction.rb +124 -0
  932. data/lib/stripe/resources/line_item.rb +42 -0
  933. data/lib/stripe/resources/mandate.rb +12 -0
  934. data/lib/stripe/resources/margin.rb +64 -0
  935. data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
  936. data/lib/stripe/resources/order.rb +927 -0
  937. data/lib/stripe/resources/payment_attempt_record.rb +382 -2
  938. data/lib/stripe/resources/payment_intent.rb +2269 -47
  939. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +19 -1
  940. data/lib/stripe/resources/payment_link.rb +22 -0
  941. data/lib/stripe/resources/payment_location.rb +165 -0
  942. data/lib/stripe/resources/payment_location_capability.rb +94 -0
  943. data/lib/stripe/resources/payment_method.rb +228 -1
  944. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  945. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  946. data/lib/stripe/resources/payment_record.rb +242 -2
  947. data/lib/stripe/resources/person.rb +62 -0
  948. data/lib/stripe/resources/price.rb +22 -0
  949. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  950. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  951. data/lib/stripe/resources/product.rb +46 -0
  952. data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
  953. data/lib/stripe/resources/profile.rb +80 -0
  954. data/lib/stripe/resources/quote.rb +806 -2
  955. data/lib/stripe/resources/quote_line.rb +731 -0
  956. data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
  957. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +911 -0
  958. data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
  959. data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
  960. data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
  961. data/lib/stripe/resources/radar/payment_evaluation.rb +23 -1
  962. data/lib/stripe/resources/refund.rb +18 -0
  963. data/lib/stripe/resources/reserve/hold.rb +7 -0
  964. data/lib/stripe/resources/reserve/release.rb +12 -0
  965. data/lib/stripe/resources/risk_signals.rb +24 -0
  966. data/lib/stripe/resources/setup_attempt.rb +35 -0
  967. data/lib/stripe/resources/setup_intent.rb +92 -1
  968. data/lib/stripe/resources/shared_payment/granted_token.rb +1822 -0
  969. data/lib/stripe/resources/shared_payment/issued_token.rb +293 -0
  970. data/lib/stripe/resources/source.rb +38 -0
  971. data/lib/stripe/resources/subscription.rb +250 -0
  972. data/lib/stripe/resources/subscription_item.rb +41 -1
  973. data/lib/stripe/resources/subscription_schedule.rb +373 -3
  974. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  975. data/lib/stripe/resources/tax/form.rb +264 -0
  976. data/lib/stripe/resources/tax/location.rb +72 -0
  977. data/lib/stripe/resources/tax/registration.rb +144 -0
  978. data/lib/stripe/resources/tax_code.rb +15 -1
  979. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  980. data/lib/stripe/resources/terminal/reader.rb +8 -0
  981. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  982. data/lib/stripe/resources/transfer.rb +6 -0
  983. data/lib/stripe/resources/transit_balance.rb +45 -0
  984. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  985. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  986. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  987. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  988. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  989. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  990. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  991. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  992. data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
  993. data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
  994. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  995. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  996. data/lib/stripe/resources/v2/billing/contract.rb +978 -0
  997. data/lib/stripe/resources/v2/billing/contract_license_pricing_quantity_change.rb +43 -0
  998. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  999. data/lib/stripe/resources/v2/billing/intent.rb +354 -0
  1000. data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
  1001. data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
  1002. data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -0
  1003. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  1004. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  1005. data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
  1006. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  1007. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
  1008. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
  1009. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
  1010. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  1011. data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
  1012. data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
  1013. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
  1014. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
  1015. data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
  1016. data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
  1017. data/lib/stripe/resources/v2/core/account.rb +2668 -20
  1018. data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
  1019. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  1020. data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
  1021. data/lib/stripe/resources/v2/core/batch_job.rb +567 -0
  1022. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
  1023. data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
  1024. data/lib/stripe/resources/v2/core/event.rb +66 -1
  1025. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  1026. data/lib/stripe/resources/v2/core/fee_batch.rb +142 -0
  1027. data/lib/stripe/resources/v2/core/fee_entry.rb +135 -0
  1028. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
  1029. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
  1030. data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
  1031. data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
  1032. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  1033. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  1034. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
  1035. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
  1036. data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
  1037. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  1038. data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
  1039. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
  1040. data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
  1041. data/lib/stripe/resources/v2/money_management/financial_account.rb +284 -0
  1042. data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
  1043. data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
  1044. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
  1045. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +303 -0
  1046. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
  1047. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1048. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  1049. data/lib/stripe/resources/v2/money_management/payout_method.rb +169 -0
  1050. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
  1051. data/lib/stripe/resources/v2/money_management/received_credit.rb +402 -0
  1052. data/lib/stripe/resources/v2/money_management/received_debit.rb +243 -0
  1053. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  1054. data/lib/stripe/resources/v2/money_management/transaction.rb +177 -0
  1055. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +147 -0
  1056. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  1057. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  1058. data/lib/stripe/resources/v2/payments/off_session_payment.rb +288 -0
  1059. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
  1060. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
  1061. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  1062. data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
  1063. data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
  1064. data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
  1065. data/lib/stripe/resources.rb +1729 -0
  1066. data/lib/stripe/services/account_notice_service.rb +39 -0
  1067. data/lib/stripe/services/account_service.rb +46 -1
  1068. data/lib/stripe/services/account_signals_service.rb +17 -0
  1069. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  1070. data/lib/stripe/services/billing/alert_service.rb +2 -0
  1071. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1072. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1073. data/lib/stripe/services/billing/credit_grant_service.rb +4 -0
  1074. data/lib/stripe/services/billing_service.rb +2 -1
  1075. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1076. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1077. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1078. data/lib/stripe/services/capital_service.rb +15 -0
  1079. data/lib/stripe/services/checkout/session_service.rb +11 -0
  1080. data/lib/stripe/services/coupon_service.rb +44 -0
  1081. data/lib/stripe/services/credit_note_service.rb +14 -0
  1082. data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
  1083. data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
  1084. data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
  1085. data/lib/stripe/services/customer_payment_source_service.rb +60 -0
  1086. data/lib/stripe/services/customer_service.rb +59 -0
  1087. data/lib/stripe/services/customer_session_service.rb +14 -0
  1088. data/lib/stripe/services/customer_tax_id_service.rb +30 -0
  1089. data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
  1090. data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
  1091. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
  1092. data/lib/stripe/services/delegated_checkout_service.rb +14 -0
  1093. data/lib/stripe/services/dispute_service.rb +15 -0
  1094. data/lib/stripe/services/external_account_service.rb +68 -0
  1095. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1096. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  1097. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  1098. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1099. data/lib/stripe/services/financial_connections_service.rb +3 -1
  1100. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +57 -0
  1101. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1102. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  1103. data/lib/stripe/services/identity_service.rb +2 -1
  1104. data/lib/stripe/services/invoice_item_service.rb +44 -0
  1105. data/lib/stripe/services/invoice_line_item_service.rb +15 -0
  1106. data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
  1107. data/lib/stripe/services/invoice_service.rb +189 -0
  1108. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1109. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1110. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1111. data/lib/stripe/services/issuing/program_service.rb +52 -0
  1112. data/lib/stripe/services/issuing_service.rb +6 -1
  1113. data/lib/stripe/services/mandate_service.rb +5 -0
  1114. data/lib/stripe/services/margin_service.rb +50 -0
  1115. data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
  1116. data/lib/stripe/services/orchestration_service.rb +13 -0
  1117. data/lib/stripe/services/order_service.rb +53 -0
  1118. data/lib/stripe/services/payment_attempt_record_service.rb +77 -0
  1119. data/lib/stripe/services/payment_intent_service.rb +55 -0
  1120. data/lib/stripe/services/payment_location_capability_service.rb +39 -0
  1121. data/lib/stripe/services/payment_location_service.rb +61 -0
  1122. data/lib/stripe/services/payment_method_service.rb +26 -0
  1123. data/lib/stripe/services/price_service.rb +29 -0
  1124. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1125. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1126. data/lib/stripe/services/privacy_service.rb +13 -0
  1127. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  1128. data/lib/stripe/services/product_catalog_service.rb +13 -0
  1129. data/lib/stripe/services/product_feature_service.rb +30 -0
  1130. data/lib/stripe/services/product_service.rb +44 -0
  1131. data/lib/stripe/services/promotion_code_service.rb +29 -0
  1132. data/lib/stripe/services/quote_line_service.rb +17 -0
  1133. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1134. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1135. data/lib/stripe/services/quote_service.rb +49 -1
  1136. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  1137. data/lib/stripe/services/radar/customer_evaluation_service.rb +30 -0
  1138. data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
  1139. data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
  1140. data/lib/stripe/services/radar_service.rb +5 -1
  1141. data/lib/stripe/services/refund_service.rb +29 -0
  1142. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1143. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1144. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1145. data/lib/stripe/services/reserve_service.rb +15 -0
  1146. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  1147. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  1148. data/lib/stripe/services/shared_payment_service.rb +14 -0
  1149. data/lib/stripe/services/subscription_item_service.rb +44 -0
  1150. data/lib/stripe/services/subscription_schedule_service.rb +70 -0
  1151. data/lib/stripe/services/subscription_service.rb +111 -0
  1152. data/lib/stripe/services/tax/form_service.rb +37 -0
  1153. data/lib/stripe/services/tax/location_service.rb +45 -0
  1154. data/lib/stripe/services/tax/registration_service.rb +29 -0
  1155. data/lib/stripe/services/tax/settings_service.rb +14 -0
  1156. data/lib/stripe/services/tax/transaction_service.rb +14 -0
  1157. data/lib/stripe/services/tax_id_service.rb +14 -0
  1158. data/lib/stripe/services/tax_rate_service.rb +29 -0
  1159. data/lib/stripe/services/tax_service.rb +3 -1
  1160. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1161. data/lib/stripe/services/terminal_service.rb +2 -1
  1162. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  1163. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  1164. data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +54 -0
  1165. data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
  1166. data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
  1167. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  1168. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  1169. data/lib/stripe/services/test_helpers_service.rb +4 -1
  1170. data/lib/stripe/services/v1_services.rb +17 -1
  1171. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1172. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1173. data/lib/stripe/services/v2/billing/cadence_service.rb +73 -0
  1174. data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
  1175. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  1176. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1177. data/lib/stripe/services/v2/billing/contract_service.rb +91 -0
  1178. data/lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb +25 -0
  1179. data/lib/stripe/services/v2/billing/contracts/license_pricing_service.rb +20 -0
  1180. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  1181. data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
  1182. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  1183. data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -0
  1184. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  1185. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  1186. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  1187. data/lib/stripe/services/v2/billing/one_time_item_service.rb +54 -0
  1188. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  1189. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +54 -0
  1190. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  1191. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  1192. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1193. data/lib/stripe/services/v2/billing/rate_card_service.rb +79 -0
  1194. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  1195. data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
  1196. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
  1197. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  1198. data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
  1199. data/lib/stripe/services/v2/billing_service.rb +18 -1
  1200. data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
  1201. data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
  1202. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  1203. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
  1204. data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
  1205. data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
  1206. data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
  1207. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1208. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  1209. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1210. data/lib/stripe/services/v2/core_service.rb +9 -1
  1211. data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
  1212. data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
  1213. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  1214. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  1215. data/lib/stripe/services/v2/data_service.rb +16 -0
  1216. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  1217. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  1218. data/lib/stripe/services/v2/extend_service.rb +16 -0
  1219. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  1220. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  1221. data/lib/stripe/services/v2/iam_service.rb +16 -0
  1222. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1223. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
  1224. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
  1225. data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
  1226. data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
  1227. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1228. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1229. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1230. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1231. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1232. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1233. data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
  1234. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1235. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1236. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1237. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  1238. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1239. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1240. data/lib/stripe/services/v2/money_management_service.rb +36 -0
  1241. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  1242. data/lib/stripe/services/v2/network_service.rb +15 -0
  1243. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  1244. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  1245. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
  1246. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
  1247. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
  1248. data/lib/stripe/services/v2/payments_service.rb +17 -0
  1249. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  1250. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  1251. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  1252. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  1253. data/lib/stripe/services/v2/signals_service.rb +15 -0
  1254. data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
  1255. data/lib/stripe/services/v2/tax_service.rb +15 -0
  1256. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  1257. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1258. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  1259. data/lib/stripe/services/v2_services.rb +12 -1
  1260. data/lib/stripe/services.rb +396 -0
  1261. data/lib/stripe/stripe_client.rb +8 -1
  1262. data/lib/stripe/stripe_configuration.rb +3 -1
  1263. data/lib/stripe/stripe_event_notification_handler.rb +2520 -0
  1264. data/lib/stripe/stripe_object.rb +1 -1
  1265. data/lib/stripe/util.rb +7 -1
  1266. data/lib/stripe/version.rb +1 -1
  1267. data/lib/stripe.rb +54 -0
  1268. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  1269. data/rbi/stripe/stripe_client.rbi +13 -0
  1270. data/rbi/stripe.rbi +219739 -104589
  1271. metadata +1029 -4
@@ -0,0 +1,2118 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class OrderUpdateParams < ::Stripe::RequestParams
6
+ class AutomaticTax < ::Stripe::RequestParams
7
+ # Enable automatic tax calculation which will automatically compute tax rates on this order.
8
+ attr_accessor :enabled
9
+
10
+ def initialize(enabled: nil)
11
+ @enabled = enabled
12
+ end
13
+ end
14
+
15
+ class BillingDetails < ::Stripe::RequestParams
16
+ class Address < ::Stripe::RequestParams
17
+ # City, district, suburb, town, or village.
18
+ attr_accessor :city
19
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
20
+ attr_accessor :country
21
+ # Address line 1, such as the street, PO Box, or company name.
22
+ attr_accessor :line1
23
+ # Address line 2, such as the apartment, suite, unit, or building.
24
+ attr_accessor :line2
25
+ # ZIP or postal code.
26
+ attr_accessor :postal_code
27
+ # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
28
+ attr_accessor :state
29
+
30
+ def initialize(
31
+ city: nil,
32
+ country: nil,
33
+ line1: nil,
34
+ line2: nil,
35
+ postal_code: nil,
36
+ state: nil
37
+ )
38
+ @city = city
39
+ @country = country
40
+ @line1 = line1
41
+ @line2 = line2
42
+ @postal_code = postal_code
43
+ @state = state
44
+ end
45
+ end
46
+ # The billing address provided by the customer.
47
+ attr_accessor :address
48
+ # The billing email provided by the customer.
49
+ attr_accessor :email
50
+ # The billing name provided by the customer.
51
+ attr_accessor :name
52
+ # The billing phone number provided by the customer.
53
+ attr_accessor :phone
54
+
55
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
56
+ @address = address
57
+ @email = email
58
+ @name = name
59
+ @phone = phone
60
+ end
61
+ end
62
+
63
+ class Discount < ::Stripe::RequestParams
64
+ # ID of the coupon to create a new discount for.
65
+ attr_accessor :coupon
66
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
67
+ attr_accessor :discount
68
+ # ID of the promotion code to create a new discount for.
69
+ attr_accessor :promotion_code
70
+
71
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
72
+ @coupon = coupon
73
+ @discount = discount
74
+ @promotion_code = promotion_code
75
+ end
76
+ end
77
+
78
+ class LineItem < ::Stripe::RequestParams
79
+ class Discount < ::Stripe::RequestParams
80
+ # ID of the coupon to create a new discount for.
81
+ attr_accessor :coupon
82
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
83
+ attr_accessor :discount
84
+
85
+ def initialize(coupon: nil, discount: nil)
86
+ @coupon = coupon
87
+ @discount = discount
88
+ end
89
+ end
90
+
91
+ class PriceData < ::Stripe::RequestParams
92
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
93
+ attr_accessor :currency
94
+ # ID of the [Product](https://docs.stripe.com/api/products) this [Price](https://docs.stripe.com/api/prices) belongs to.
95
+ #
96
+ # Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
97
+ attr_accessor :product
98
+ # Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
99
+ attr_accessor :tax_behavior
100
+ # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
101
+ attr_accessor :unit_amount
102
+ # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
103
+ attr_accessor :unit_amount_decimal
104
+
105
+ def initialize(
106
+ currency: nil,
107
+ product: nil,
108
+ tax_behavior: nil,
109
+ unit_amount: nil,
110
+ unit_amount_decimal: nil
111
+ )
112
+ @currency = currency
113
+ @product = product
114
+ @tax_behavior = tax_behavior
115
+ @unit_amount = unit_amount
116
+ @unit_amount_decimal = unit_amount_decimal
117
+ end
118
+
119
+ def self.field_encodings
120
+ @field_encodings = { unit_amount_decimal: :decimal_string }
121
+ end
122
+ end
123
+
124
+ class ProductData < ::Stripe::RequestParams
125
+ class Identifiers < ::Stripe::RequestParams
126
+ # European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may optionally provide a leading 0 for a total of 14 digits. The final digit is a validated check digit.
127
+ attr_accessor :ean
128
+ # Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. The final digit is a validated check digit.
129
+ attr_accessor :gtin
130
+ # International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a `X`.
131
+ attr_accessor :isbn
132
+ # Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two digits must either be `45` or `49`. The final digit is a validated check digit.
133
+ attr_accessor :jan
134
+ # Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes.
135
+ attr_accessor :mpn
136
+ # National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh character may also be alphanumeric.
137
+ attr_accessor :nsn
138
+ # Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is a validated check digit.
139
+ attr_accessor :upc
140
+
141
+ def initialize(ean: nil, gtin: nil, isbn: nil, jan: nil, mpn: nil, nsn: nil, upc: nil)
142
+ @ean = ean
143
+ @gtin = gtin
144
+ @isbn = isbn
145
+ @jan = jan
146
+ @mpn = mpn
147
+ @nsn = nsn
148
+ @upc = upc
149
+ end
150
+ end
151
+
152
+ class PackageDimensions < ::Stripe::RequestParams
153
+ # Height, in inches. Maximum precision is 2 decimal places.
154
+ attr_accessor :height
155
+ # Length, in inches. Maximum precision is 2 decimal places.
156
+ attr_accessor :length
157
+ # Weight, in ounces. Maximum precision is 2 decimal places.
158
+ attr_accessor :weight
159
+ # Width, in inches. Maximum precision is 2 decimal places.
160
+ attr_accessor :width
161
+
162
+ def initialize(height: nil, length: nil, weight: nil, width: nil)
163
+ @height = height
164
+ @length = length
165
+ @weight = weight
166
+ @width = width
167
+ end
168
+ end
169
+ # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
170
+ attr_accessor :description
171
+ # A unique identifier for this product.
172
+ #
173
+ # `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
174
+ attr_accessor :id
175
+ # Other identifiers for this product.
176
+ attr_accessor :identifiers
177
+ # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
178
+ attr_accessor :images
179
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
180
+ attr_accessor :metadata
181
+ # The product's name, meant to be displayable to the customer.
182
+ attr_accessor :name
183
+ # The dimensions of this product for shipping purposes.
184
+ attr_accessor :package_dimensions
185
+ # Whether this product is shipped (i.e., physical goods).
186
+ attr_accessor :shippable
187
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
188
+ attr_accessor :tax_code
189
+ # A URL of a publicly-accessible webpage for this product.
190
+ attr_accessor :url
191
+
192
+ def initialize(
193
+ description: nil,
194
+ id: nil,
195
+ identifiers: nil,
196
+ images: nil,
197
+ metadata: nil,
198
+ name: nil,
199
+ package_dimensions: nil,
200
+ shippable: nil,
201
+ tax_code: nil,
202
+ url: nil
203
+ )
204
+ @description = description
205
+ @id = id
206
+ @identifiers = identifiers
207
+ @images = images
208
+ @metadata = metadata
209
+ @name = name
210
+ @package_dimensions = package_dimensions
211
+ @shippable = shippable
212
+ @tax_code = tax_code
213
+ @url = url
214
+ end
215
+ end
216
+ # The description for the line item. Will default to the name of the associated product.
217
+ attr_accessor :description
218
+ # The discounts applied to this line item.
219
+ attr_accessor :discounts
220
+ # The ID of an existing line item on the order.
221
+ attr_accessor :id
222
+ # The ID of a [Price](https://docs.stripe.com/api/prices) to add to the Order.
223
+ #
224
+ # The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
225
+ attr_accessor :price
226
+ # Data used to generate a new Price object inline.
227
+ #
228
+ # The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create a Product upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define Products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
229
+ #
230
+ # Each time you pass `price_data` we create a Price for the Product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
231
+ attr_accessor :price_data
232
+ # The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
233
+ #
234
+ # The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
235
+ attr_accessor :product
236
+ # Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
237
+ #
238
+ # `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
239
+ #
240
+ # `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
241
+ attr_accessor :product_data
242
+ # The quantity of the line item.
243
+ attr_accessor :quantity
244
+ # The tax rates applied to this line item.
245
+ attr_accessor :tax_rates
246
+
247
+ def initialize(
248
+ description: nil,
249
+ discounts: nil,
250
+ id: nil,
251
+ price: nil,
252
+ price_data: nil,
253
+ product: nil,
254
+ product_data: nil,
255
+ quantity: nil,
256
+ tax_rates: nil
257
+ )
258
+ @description = description
259
+ @discounts = discounts
260
+ @id = id
261
+ @price = price
262
+ @price_data = price_data
263
+ @product = product
264
+ @product_data = product_data
265
+ @quantity = quantity
266
+ @tax_rates = tax_rates
267
+ end
268
+
269
+ def self.field_encodings
270
+ @field_encodings = {
271
+ price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
272
+ }
273
+ end
274
+ end
275
+
276
+ class Payment < ::Stripe::RequestParams
277
+ class Settings < ::Stripe::RequestParams
278
+ class PaymentMethodOptions < ::Stripe::RequestParams
279
+ class AcssDebit < ::Stripe::RequestParams
280
+ class MandateOptions < ::Stripe::RequestParams
281
+ # A URL for custom mandate text to render during confirmation step.
282
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
283
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
284
+ attr_accessor :custom_mandate_url
285
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
286
+ attr_accessor :interval_description
287
+ # Payment schedule for the mandate.
288
+ attr_accessor :payment_schedule
289
+ # Transaction type of the mandate.
290
+ attr_accessor :transaction_type
291
+
292
+ def initialize(
293
+ custom_mandate_url: nil,
294
+ interval_description: nil,
295
+ payment_schedule: nil,
296
+ transaction_type: nil
297
+ )
298
+ @custom_mandate_url = custom_mandate_url
299
+ @interval_description = interval_description
300
+ @payment_schedule = payment_schedule
301
+ @transaction_type = transaction_type
302
+ end
303
+ end
304
+ # Additional fields for Mandate creation
305
+ attr_accessor :mandate_options
306
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
307
+ #
308
+ # 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.
309
+ #
310
+ # 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.
311
+ #
312
+ # 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).
313
+ #
314
+ # 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`.
315
+ attr_accessor :setup_future_usage
316
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
317
+ attr_accessor :target_date
318
+ # Bank account verification method. The default value is `automatic`.
319
+ attr_accessor :verification_method
320
+
321
+ def initialize(
322
+ mandate_options: nil,
323
+ setup_future_usage: nil,
324
+ target_date: nil,
325
+ verification_method: nil
326
+ )
327
+ @mandate_options = mandate_options
328
+ @setup_future_usage = setup_future_usage
329
+ @target_date = target_date
330
+ @verification_method = verification_method
331
+ end
332
+ end
333
+
334
+ class AfterpayClearpay < ::Stripe::RequestParams
335
+ # Controls when the funds are captured from the customer's account.
336
+ #
337
+ # 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.
338
+ #
339
+ # 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.
340
+ attr_accessor :capture_method
341
+ # An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
342
+ attr_accessor :reference
343
+ # Indicates that you intend to make future payments with the payment method.
344
+ #
345
+ # Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
346
+ #
347
+ # When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
348
+ #
349
+ # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
350
+ attr_accessor :setup_future_usage
351
+
352
+ def initialize(capture_method: nil, reference: nil, setup_future_usage: nil)
353
+ @capture_method = capture_method
354
+ @reference = reference
355
+ @setup_future_usage = setup_future_usage
356
+ end
357
+ end
358
+
359
+ class Alipay < ::Stripe::RequestParams
360
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
361
+ #
362
+ # 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.
363
+ #
364
+ # 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.
365
+ #
366
+ # 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).
367
+ #
368
+ # 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`.
369
+ attr_accessor :setup_future_usage
370
+
371
+ def initialize(setup_future_usage: nil)
372
+ @setup_future_usage = setup_future_usage
373
+ end
374
+ end
375
+
376
+ class Bancontact < ::Stripe::RequestParams
377
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
378
+ attr_accessor :preferred_language
379
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
380
+ #
381
+ # 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.
382
+ #
383
+ # 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.
384
+ #
385
+ # 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).
386
+ #
387
+ # 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`.
388
+ attr_accessor :setup_future_usage
389
+
390
+ def initialize(preferred_language: nil, setup_future_usage: nil)
391
+ @preferred_language = preferred_language
392
+ @setup_future_usage = setup_future_usage
393
+ end
394
+ end
395
+
396
+ class Card < ::Stripe::RequestParams
397
+ # Controls when the funds will be captured from the customer's account.
398
+ attr_accessor :capture_method
399
+ # Indicates that you intend to make future payments with the payment method.
400
+ #
401
+ # Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
402
+ #
403
+ # When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
404
+ #
405
+ # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
406
+ attr_accessor :setup_future_usage
407
+
408
+ def initialize(capture_method: nil, setup_future_usage: nil)
409
+ @capture_method = capture_method
410
+ @setup_future_usage = setup_future_usage
411
+ end
412
+ end
413
+
414
+ class CustomerBalance < ::Stripe::RequestParams
415
+ class BankTransfer < ::Stripe::RequestParams
416
+ class EuBankTransfer < ::Stripe::RequestParams
417
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
418
+ attr_accessor :country
419
+
420
+ def initialize(country: nil)
421
+ @country = country
422
+ end
423
+ end
424
+ # Configuration for the eu_bank_transfer funding type.
425
+ attr_accessor :eu_bank_transfer
426
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
427
+ #
428
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
429
+ attr_accessor :requested_address_types
430
+ # The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
431
+ attr_accessor :type
432
+
433
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
434
+ @eu_bank_transfer = eu_bank_transfer
435
+ @requested_address_types = requested_address_types
436
+ @type = type
437
+ end
438
+ end
439
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
440
+ attr_accessor :bank_transfer
441
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
442
+ attr_accessor :funding_type
443
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
444
+ #
445
+ # 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.
446
+ #
447
+ # 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.
448
+ #
449
+ # 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).
450
+ #
451
+ # 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`.
452
+ attr_accessor :setup_future_usage
453
+
454
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
455
+ @bank_transfer = bank_transfer
456
+ @funding_type = funding_type
457
+ @setup_future_usage = setup_future_usage
458
+ end
459
+ end
460
+
461
+ class Ideal < ::Stripe::RequestParams
462
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
463
+ #
464
+ # 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.
465
+ #
466
+ # 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.
467
+ #
468
+ # 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).
469
+ #
470
+ # 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`.
471
+ attr_accessor :setup_future_usage
472
+
473
+ def initialize(setup_future_usage: nil)
474
+ @setup_future_usage = setup_future_usage
475
+ end
476
+ end
477
+
478
+ class Klarna < ::Stripe::RequestParams
479
+ class OnDemand < ::Stripe::RequestParams
480
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
481
+ attr_accessor :average_amount
482
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
483
+ attr_accessor :maximum_amount
484
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
485
+ attr_accessor :minimum_amount
486
+ # Interval at which the customer is making purchases
487
+ attr_accessor :purchase_interval
488
+ # The number of `purchase_interval` between charges
489
+ attr_accessor :purchase_interval_count
490
+
491
+ def initialize(
492
+ average_amount: nil,
493
+ maximum_amount: nil,
494
+ minimum_amount: nil,
495
+ purchase_interval: nil,
496
+ purchase_interval_count: nil
497
+ )
498
+ @average_amount = average_amount
499
+ @maximum_amount = maximum_amount
500
+ @minimum_amount = minimum_amount
501
+ @purchase_interval = purchase_interval
502
+ @purchase_interval_count = purchase_interval_count
503
+ end
504
+ end
505
+
506
+ class Subscription < ::Stripe::RequestParams
507
+ class NextBilling < ::Stripe::RequestParams
508
+ # The amount of the next charge for the subscription.
509
+ attr_accessor :amount
510
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
511
+ attr_accessor :date
512
+
513
+ def initialize(amount: nil, date: nil)
514
+ @amount = amount
515
+ @date = date
516
+ end
517
+ end
518
+ # Unit of time between subscription charges.
519
+ attr_accessor :interval
520
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
521
+ attr_accessor :interval_count
522
+ # Name for subscription.
523
+ attr_accessor :name
524
+ # Describes the upcoming charge for this subscription.
525
+ attr_accessor :next_billing
526
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
527
+ attr_accessor :reference
528
+
529
+ def initialize(
530
+ interval: nil,
531
+ interval_count: nil,
532
+ name: nil,
533
+ next_billing: nil,
534
+ reference: nil
535
+ )
536
+ @interval = interval
537
+ @interval_count = interval_count
538
+ @name = name
539
+ @next_billing = next_billing
540
+ @reference = reference
541
+ end
542
+ end
543
+
544
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
545
+ class BusReservationDetail < ::Stripe::RequestParams
546
+ class Arrival < ::Stripe::RequestParams
547
+ class Address < ::Stripe::RequestParams
548
+ # The city or town.
549
+ attr_accessor :city
550
+ # The country in ISO 3166-1 alpha-2 format.
551
+ attr_accessor :country
552
+ # The postal code formatted according to country.
553
+ attr_accessor :postal_code
554
+ # The state, county, province, or region formatted according to country.
555
+ attr_accessor :region
556
+ # Line 1 of the street address.
557
+ attr_accessor :street_address
558
+ # Line 2 of the street address.
559
+ attr_accessor :street_address2
560
+
561
+ def initialize(
562
+ city: nil,
563
+ country: nil,
564
+ postal_code: nil,
565
+ region: nil,
566
+ street_address: nil,
567
+ street_address2: nil
568
+ )
569
+ @city = city
570
+ @country = country
571
+ @postal_code = postal_code
572
+ @region = region
573
+ @street_address = street_address
574
+ @street_address2 = street_address2
575
+ end
576
+ end
577
+ # Address of the arrival location.
578
+ attr_accessor :address
579
+ # Identifier name or reference for the arrival location.
580
+ attr_accessor :arrival_location
581
+
582
+ def initialize(address: nil, arrival_location: nil)
583
+ @address = address
584
+ @arrival_location = arrival_location
585
+ end
586
+ end
587
+
588
+ class Departure < ::Stripe::RequestParams
589
+ class Address < ::Stripe::RequestParams
590
+ # The city or town.
591
+ attr_accessor :city
592
+ # The country in ISO 3166-1 alpha-2 format.
593
+ attr_accessor :country
594
+ # The postal code formatted according to country.
595
+ attr_accessor :postal_code
596
+ # The state, county, province, or region formatted according to country.
597
+ attr_accessor :region
598
+ # Line 1 of the street address.
599
+ attr_accessor :street_address
600
+ # Line 2 of the street address.
601
+ attr_accessor :street_address2
602
+
603
+ def initialize(
604
+ city: nil,
605
+ country: nil,
606
+ postal_code: nil,
607
+ region: nil,
608
+ street_address: nil,
609
+ street_address2: nil
610
+ )
611
+ @city = city
612
+ @country = country
613
+ @postal_code = postal_code
614
+ @region = region
615
+ @street_address = street_address
616
+ @street_address2 = street_address2
617
+ end
618
+ end
619
+ # Address of the departure location.
620
+ attr_accessor :address
621
+ # Timestamp of departure.
622
+ attr_accessor :departs_at
623
+ # Identifier name or reference for the origin location.
624
+ attr_accessor :departure_location
625
+
626
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
627
+ @address = address
628
+ @departs_at = departs_at
629
+ @departure_location = departure_location
630
+ end
631
+ end
632
+
633
+ class Insurance < ::Stripe::RequestParams
634
+ # Insurance currency.
635
+ attr_accessor :currency
636
+ # Name of the company providing the insurance.
637
+ attr_accessor :insurance_company_name
638
+ # Type of insurance.
639
+ attr_accessor :insurance_type
640
+ # Price of insurance in cents.
641
+ attr_accessor :price
642
+
643
+ def initialize(
644
+ currency: nil,
645
+ insurance_company_name: nil,
646
+ insurance_type: nil,
647
+ price: nil
648
+ )
649
+ @currency = currency
650
+ @insurance_company_name = insurance_company_name
651
+ @insurance_type = insurance_type
652
+ @price = price
653
+ end
654
+ end
655
+
656
+ class Passenger < ::Stripe::RequestParams
657
+ # The family name of the person.
658
+ attr_accessor :family_name
659
+ # The given name of the person.
660
+ attr_accessor :given_name
661
+
662
+ def initialize(family_name: nil, given_name: nil)
663
+ @family_name = family_name
664
+ @given_name = given_name
665
+ end
666
+ end
667
+ # Name of associated or partner company for the service.
668
+ attr_accessor :affiliate_name
669
+ # Arrival details.
670
+ attr_accessor :arrival
671
+ # Name of transportation company.
672
+ attr_accessor :carrier_name
673
+ # Currency.
674
+ attr_accessor :currency
675
+ # Departure details.
676
+ attr_accessor :departure
677
+ # List of insurances for this reservation.
678
+ attr_accessor :insurances
679
+ # List of passengers that this reservation applies to.
680
+ attr_accessor :passengers
681
+ # Price in cents.
682
+ attr_accessor :price
683
+ # Ticket class.
684
+ attr_accessor :ticket_class
685
+
686
+ def initialize(
687
+ affiliate_name: nil,
688
+ arrival: nil,
689
+ carrier_name: nil,
690
+ currency: nil,
691
+ departure: nil,
692
+ insurances: nil,
693
+ passengers: nil,
694
+ price: nil,
695
+ ticket_class: nil
696
+ )
697
+ @affiliate_name = affiliate_name
698
+ @arrival = arrival
699
+ @carrier_name = carrier_name
700
+ @currency = currency
701
+ @departure = departure
702
+ @insurances = insurances
703
+ @passengers = passengers
704
+ @price = price
705
+ @ticket_class = ticket_class
706
+ end
707
+ end
708
+
709
+ class EventReservationDetail < ::Stripe::RequestParams
710
+ class Address < ::Stripe::RequestParams
711
+ # The city or town.
712
+ attr_accessor :city
713
+ # The country in ISO 3166-1 alpha-2 format.
714
+ attr_accessor :country
715
+ # The postal code formatted according to country.
716
+ attr_accessor :postal_code
717
+ # The state, county, province, or region formatted according to country.
718
+ attr_accessor :region
719
+ # Line 1 of the street address.
720
+ attr_accessor :street_address
721
+ # Line 2 of the street address.
722
+ attr_accessor :street_address2
723
+
724
+ def initialize(
725
+ city: nil,
726
+ country: nil,
727
+ postal_code: nil,
728
+ region: nil,
729
+ street_address: nil,
730
+ street_address2: nil
731
+ )
732
+ @city = city
733
+ @country = country
734
+ @postal_code = postal_code
735
+ @region = region
736
+ @street_address = street_address
737
+ @street_address2 = street_address2
738
+ end
739
+ end
740
+
741
+ class Insurance < ::Stripe::RequestParams
742
+ # Insurance currency.
743
+ attr_accessor :currency
744
+ # Name of the company providing the insurance.
745
+ attr_accessor :insurance_company_name
746
+ # Type of insurance.
747
+ attr_accessor :insurance_type
748
+ # Price of insurance in cents.
749
+ attr_accessor :price
750
+
751
+ def initialize(
752
+ currency: nil,
753
+ insurance_company_name: nil,
754
+ insurance_type: nil,
755
+ price: nil
756
+ )
757
+ @currency = currency
758
+ @insurance_company_name = insurance_company_name
759
+ @insurance_type = insurance_type
760
+ @price = price
761
+ end
762
+ end
763
+ # Indicates if the tickets are digitally checked when entering the venue.
764
+ attr_accessor :access_controlled_venue
765
+ # Address of the event.
766
+ attr_accessor :address
767
+ # Name of associated or partner company for the service.
768
+ attr_accessor :affiliate_name
769
+ # End timestamp of the event.
770
+ attr_accessor :ends_at
771
+ # Company selling the ticket.
772
+ attr_accessor :event_company_name
773
+ # Name of the event.
774
+ attr_accessor :event_name
775
+ # Type of the event.
776
+ attr_accessor :event_type
777
+ # List of insurances for this event.
778
+ attr_accessor :insurances
779
+ # Start timestamp of the event.
780
+ attr_accessor :starts_at
781
+ # Name of the venue where the event takes place.
782
+ attr_accessor :venue_name
783
+
784
+ def initialize(
785
+ access_controlled_venue: nil,
786
+ address: nil,
787
+ affiliate_name: nil,
788
+ ends_at: nil,
789
+ event_company_name: nil,
790
+ event_name: nil,
791
+ event_type: nil,
792
+ insurances: nil,
793
+ starts_at: nil,
794
+ venue_name: nil
795
+ )
796
+ @access_controlled_venue = access_controlled_venue
797
+ @address = address
798
+ @affiliate_name = affiliate_name
799
+ @ends_at = ends_at
800
+ @event_company_name = event_company_name
801
+ @event_name = event_name
802
+ @event_type = event_type
803
+ @insurances = insurances
804
+ @starts_at = starts_at
805
+ @venue_name = venue_name
806
+ end
807
+ end
808
+
809
+ class FerryReservationDetail < ::Stripe::RequestParams
810
+ class Arrival < ::Stripe::RequestParams
811
+ class Address < ::Stripe::RequestParams
812
+ # The city or town.
813
+ attr_accessor :city
814
+ # The country in ISO 3166-1 alpha-2 format.
815
+ attr_accessor :country
816
+ # The postal code formatted according to country.
817
+ attr_accessor :postal_code
818
+ # The state, county, province, or region formatted according to country.
819
+ attr_accessor :region
820
+ # Line 1 of the street address.
821
+ attr_accessor :street_address
822
+ # Line 2 of the street address.
823
+ attr_accessor :street_address2
824
+
825
+ def initialize(
826
+ city: nil,
827
+ country: nil,
828
+ postal_code: nil,
829
+ region: nil,
830
+ street_address: nil,
831
+ street_address2: nil
832
+ )
833
+ @city = city
834
+ @country = country
835
+ @postal_code = postal_code
836
+ @region = region
837
+ @street_address = street_address
838
+ @street_address2 = street_address2
839
+ end
840
+ end
841
+ # Address of the arrival location.
842
+ attr_accessor :address
843
+ # Identifier name or reference for the arrival location.
844
+ attr_accessor :arrival_location
845
+
846
+ def initialize(address: nil, arrival_location: nil)
847
+ @address = address
848
+ @arrival_location = arrival_location
849
+ end
850
+ end
851
+
852
+ class Departure < ::Stripe::RequestParams
853
+ class Address < ::Stripe::RequestParams
854
+ # The city or town.
855
+ attr_accessor :city
856
+ # The country in ISO 3166-1 alpha-2 format.
857
+ attr_accessor :country
858
+ # The postal code formatted according to country.
859
+ attr_accessor :postal_code
860
+ # The state, county, province, or region formatted according to country.
861
+ attr_accessor :region
862
+ # Line 1 of the street address.
863
+ attr_accessor :street_address
864
+ # Line 2 of the street address.
865
+ attr_accessor :street_address2
866
+
867
+ def initialize(
868
+ city: nil,
869
+ country: nil,
870
+ postal_code: nil,
871
+ region: nil,
872
+ street_address: nil,
873
+ street_address2: nil
874
+ )
875
+ @city = city
876
+ @country = country
877
+ @postal_code = postal_code
878
+ @region = region
879
+ @street_address = street_address
880
+ @street_address2 = street_address2
881
+ end
882
+ end
883
+ # Address of the departure location.
884
+ attr_accessor :address
885
+ # Timestamp of departure.
886
+ attr_accessor :departs_at
887
+ # Identifier name or reference for the origin location.
888
+ attr_accessor :departure_location
889
+
890
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
891
+ @address = address
892
+ @departs_at = departs_at
893
+ @departure_location = departure_location
894
+ end
895
+ end
896
+
897
+ class Insurance < ::Stripe::RequestParams
898
+ # Insurance currency.
899
+ attr_accessor :currency
900
+ # Name of the company providing the insurance.
901
+ attr_accessor :insurance_company_name
902
+ # Type of insurance.
903
+ attr_accessor :insurance_type
904
+ # Price of insurance in cents.
905
+ attr_accessor :price
906
+
907
+ def initialize(
908
+ currency: nil,
909
+ insurance_company_name: nil,
910
+ insurance_type: nil,
911
+ price: nil
912
+ )
913
+ @currency = currency
914
+ @insurance_company_name = insurance_company_name
915
+ @insurance_type = insurance_type
916
+ @price = price
917
+ end
918
+ end
919
+
920
+ class Passenger < ::Stripe::RequestParams
921
+ # The family name of the person.
922
+ attr_accessor :family_name
923
+ # The given name of the person.
924
+ attr_accessor :given_name
925
+
926
+ def initialize(family_name: nil, given_name: nil)
927
+ @family_name = family_name
928
+ @given_name = given_name
929
+ end
930
+ end
931
+ # Name of associated or partner company for the service.
932
+ attr_accessor :affiliate_name
933
+ # Arrival details.
934
+ attr_accessor :arrival
935
+ # Name of transportation company.
936
+ attr_accessor :carrier_name
937
+ # Currency.
938
+ attr_accessor :currency
939
+ # Departure details.
940
+ attr_accessor :departure
941
+ # List of insurances for this reservation.
942
+ attr_accessor :insurances
943
+ # List of passengers that this reservation applies to.
944
+ attr_accessor :passengers
945
+ # Price in cents.
946
+ attr_accessor :price
947
+ # Ticket class.
948
+ attr_accessor :ticket_class
949
+
950
+ def initialize(
951
+ affiliate_name: nil,
952
+ arrival: nil,
953
+ carrier_name: nil,
954
+ currency: nil,
955
+ departure: nil,
956
+ insurances: nil,
957
+ passengers: nil,
958
+ price: nil,
959
+ ticket_class: nil
960
+ )
961
+ @affiliate_name = affiliate_name
962
+ @arrival = arrival
963
+ @carrier_name = carrier_name
964
+ @currency = currency
965
+ @departure = departure
966
+ @insurances = insurances
967
+ @passengers = passengers
968
+ @price = price
969
+ @ticket_class = ticket_class
970
+ end
971
+ end
972
+
973
+ class Insurance < ::Stripe::RequestParams
974
+ # Insurance currency.
975
+ attr_accessor :currency
976
+ # Name of the company providing the insurance.
977
+ attr_accessor :insurance_company_name
978
+ # Type of insurance
979
+ attr_accessor :insurance_type
980
+ # Price of insurance in cents.
981
+ attr_accessor :price
982
+
983
+ def initialize(
984
+ currency: nil,
985
+ insurance_company_name: nil,
986
+ insurance_type: nil,
987
+ price: nil
988
+ )
989
+ @currency = currency
990
+ @insurance_company_name = insurance_company_name
991
+ @insurance_type = insurance_type
992
+ @price = price
993
+ end
994
+ end
995
+
996
+ class MarketplaceSeller < ::Stripe::RequestParams
997
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
998
+ # The city or town.
999
+ attr_accessor :city
1000
+ # The country in ISO 3166-1 alpha-2 format.
1001
+ attr_accessor :country
1002
+ # The postal code formatted according to country.
1003
+ attr_accessor :postal_code
1004
+ # The state, county, province, or region formatted according to country.
1005
+ attr_accessor :region
1006
+ # Line 1 of the street address.
1007
+ attr_accessor :street_address
1008
+ # Line 2 of the street address.
1009
+ attr_accessor :street_address2
1010
+
1011
+ def initialize(
1012
+ city: nil,
1013
+ country: nil,
1014
+ postal_code: nil,
1015
+ region: nil,
1016
+ street_address: nil,
1017
+ street_address2: nil
1018
+ )
1019
+ @city = city
1020
+ @country = country
1021
+ @postal_code = postal_code
1022
+ @region = region
1023
+ @street_address = street_address
1024
+ @street_address2 = street_address2
1025
+ end
1026
+ end
1027
+ # The references to line items for purchases with multiple associated sub-sellers.
1028
+ attr_accessor :line_item_references
1029
+ # The address of the selling or delivering merchant.
1030
+ attr_accessor :marketplace_seller_address
1031
+ # The name of the marketplace seller.
1032
+ attr_accessor :marketplace_seller_name
1033
+ # The unique identifier for the marketplace seller.
1034
+ attr_accessor :marketplace_seller_reference
1035
+ # The number of transactions the sub-seller completed in the last 12 months.
1036
+ attr_accessor :number_of_transactions
1037
+ # The category of the product.
1038
+ attr_accessor :product_category
1039
+ # The date when the seller's account with the marketplace was last logged in.
1040
+ attr_accessor :seller_last_login_at
1041
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
1042
+ attr_accessor :seller_rating
1043
+ # The date when the seller's account with the marketplace was created.
1044
+ attr_accessor :seller_registered_at
1045
+ # The date when the seller's account with the marketplace was last updated.
1046
+ attr_accessor :seller_updated_at
1047
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
1048
+ attr_accessor :shipping_references
1049
+ # 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.
1050
+ attr_accessor :volume_of_transactions
1051
+
1052
+ def initialize(
1053
+ line_item_references: nil,
1054
+ marketplace_seller_address: nil,
1055
+ marketplace_seller_name: nil,
1056
+ marketplace_seller_reference: nil,
1057
+ number_of_transactions: nil,
1058
+ product_category: nil,
1059
+ seller_last_login_at: nil,
1060
+ seller_rating: nil,
1061
+ seller_registered_at: nil,
1062
+ seller_updated_at: nil,
1063
+ shipping_references: nil,
1064
+ volume_of_transactions: nil
1065
+ )
1066
+ @line_item_references = line_item_references
1067
+ @marketplace_seller_address = marketplace_seller_address
1068
+ @marketplace_seller_name = marketplace_seller_name
1069
+ @marketplace_seller_reference = marketplace_seller_reference
1070
+ @number_of_transactions = number_of_transactions
1071
+ @product_category = product_category
1072
+ @seller_last_login_at = seller_last_login_at
1073
+ @seller_rating = seller_rating
1074
+ @seller_registered_at = seller_registered_at
1075
+ @seller_updated_at = seller_updated_at
1076
+ @shipping_references = shipping_references
1077
+ @volume_of_transactions = volume_of_transactions
1078
+ end
1079
+ end
1080
+
1081
+ class RoundTripReservationDetail < ::Stripe::RequestParams
1082
+ class Arrival < ::Stripe::RequestParams
1083
+ class Address < ::Stripe::RequestParams
1084
+ # The city or town.
1085
+ attr_accessor :city
1086
+ # The country in ISO 3166-1 alpha-2 format.
1087
+ attr_accessor :country
1088
+ # The postal code formatted according to country.
1089
+ attr_accessor :postal_code
1090
+ # The state, county, province, or region formatted according to country.
1091
+ attr_accessor :region
1092
+ # Line 1 of the street address.
1093
+ attr_accessor :street_address
1094
+ # Line 2 of the street address.
1095
+ attr_accessor :street_address2
1096
+
1097
+ def initialize(
1098
+ city: nil,
1099
+ country: nil,
1100
+ postal_code: nil,
1101
+ region: nil,
1102
+ street_address: nil,
1103
+ street_address2: nil
1104
+ )
1105
+ @city = city
1106
+ @country = country
1107
+ @postal_code = postal_code
1108
+ @region = region
1109
+ @street_address = street_address
1110
+ @street_address2 = street_address2
1111
+ end
1112
+ end
1113
+ # Address of the arrival location.
1114
+ attr_accessor :address
1115
+ # Identifier name or reference for the arrival location.
1116
+ attr_accessor :arrival_location
1117
+
1118
+ def initialize(address: nil, arrival_location: nil)
1119
+ @address = address
1120
+ @arrival_location = arrival_location
1121
+ end
1122
+ end
1123
+
1124
+ class Departure < ::Stripe::RequestParams
1125
+ class Address < ::Stripe::RequestParams
1126
+ # The city or town.
1127
+ attr_accessor :city
1128
+ # The country in ISO 3166-1 alpha-2 format.
1129
+ attr_accessor :country
1130
+ # The postal code formatted according to country.
1131
+ attr_accessor :postal_code
1132
+ # The state, county, province, or region formatted according to country.
1133
+ attr_accessor :region
1134
+ # Line 1 of the street address.
1135
+ attr_accessor :street_address
1136
+ # Line 2 of the street address.
1137
+ attr_accessor :street_address2
1138
+
1139
+ def initialize(
1140
+ city: nil,
1141
+ country: nil,
1142
+ postal_code: nil,
1143
+ region: nil,
1144
+ street_address: nil,
1145
+ street_address2: nil
1146
+ )
1147
+ @city = city
1148
+ @country = country
1149
+ @postal_code = postal_code
1150
+ @region = region
1151
+ @street_address = street_address
1152
+ @street_address2 = street_address2
1153
+ end
1154
+ end
1155
+ # Address of the departure location.
1156
+ attr_accessor :address
1157
+ # Timestamp of departure.
1158
+ attr_accessor :departs_at
1159
+ # Identifier name or reference for the origin location.
1160
+ attr_accessor :departure_location
1161
+
1162
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
1163
+ @address = address
1164
+ @departs_at = departs_at
1165
+ @departure_location = departure_location
1166
+ end
1167
+ end
1168
+
1169
+ class Insurance < ::Stripe::RequestParams
1170
+ # Insurance currency.
1171
+ attr_accessor :currency
1172
+ # Name of the company providing the insurance.
1173
+ attr_accessor :insurance_company_name
1174
+ # Type of insurance.
1175
+ attr_accessor :insurance_type
1176
+ # Price of insurance in cents.
1177
+ attr_accessor :price
1178
+
1179
+ def initialize(
1180
+ currency: nil,
1181
+ insurance_company_name: nil,
1182
+ insurance_type: nil,
1183
+ price: nil
1184
+ )
1185
+ @currency = currency
1186
+ @insurance_company_name = insurance_company_name
1187
+ @insurance_type = insurance_type
1188
+ @price = price
1189
+ end
1190
+ end
1191
+
1192
+ class Passenger < ::Stripe::RequestParams
1193
+ # The family name of the person.
1194
+ attr_accessor :family_name
1195
+ # The given name of the person.
1196
+ attr_accessor :given_name
1197
+
1198
+ def initialize(family_name: nil, given_name: nil)
1199
+ @family_name = family_name
1200
+ @given_name = given_name
1201
+ end
1202
+ end
1203
+ # Name of associated or partner company for the service.
1204
+ attr_accessor :affiliate_name
1205
+ # Arrival details.
1206
+ attr_accessor :arrival
1207
+ # Name of transportation company.
1208
+ attr_accessor :carrier_name
1209
+ # Currency.
1210
+ attr_accessor :currency
1211
+ # Departure details.
1212
+ attr_accessor :departure
1213
+ # List of insurances for this reservation.
1214
+ attr_accessor :insurances
1215
+ # List of passengers that this reservation applies to.
1216
+ attr_accessor :passengers
1217
+ # Price in cents.
1218
+ attr_accessor :price
1219
+ # Ticket class.
1220
+ attr_accessor :ticket_class
1221
+
1222
+ def initialize(
1223
+ affiliate_name: nil,
1224
+ arrival: nil,
1225
+ carrier_name: nil,
1226
+ currency: nil,
1227
+ departure: nil,
1228
+ insurances: nil,
1229
+ passengers: nil,
1230
+ price: nil,
1231
+ ticket_class: nil
1232
+ )
1233
+ @affiliate_name = affiliate_name
1234
+ @arrival = arrival
1235
+ @carrier_name = carrier_name
1236
+ @currency = currency
1237
+ @departure = departure
1238
+ @insurances = insurances
1239
+ @passengers = passengers
1240
+ @price = price
1241
+ @ticket_class = ticket_class
1242
+ end
1243
+ end
1244
+
1245
+ class TrainReservationDetail < ::Stripe::RequestParams
1246
+ class Arrival < ::Stripe::RequestParams
1247
+ class Address < ::Stripe::RequestParams
1248
+ # The city or town.
1249
+ attr_accessor :city
1250
+ # The country in ISO 3166-1 alpha-2 format.
1251
+ attr_accessor :country
1252
+ # The postal code formatted according to country.
1253
+ attr_accessor :postal_code
1254
+ # The state, county, province, or region formatted according to country.
1255
+ attr_accessor :region
1256
+ # Line 1 of the street address.
1257
+ attr_accessor :street_address
1258
+ # Line 2 of the street address.
1259
+ attr_accessor :street_address2
1260
+
1261
+ def initialize(
1262
+ city: nil,
1263
+ country: nil,
1264
+ postal_code: nil,
1265
+ region: nil,
1266
+ street_address: nil,
1267
+ street_address2: nil
1268
+ )
1269
+ @city = city
1270
+ @country = country
1271
+ @postal_code = postal_code
1272
+ @region = region
1273
+ @street_address = street_address
1274
+ @street_address2 = street_address2
1275
+ end
1276
+ end
1277
+ # Address of the arrival location.
1278
+ attr_accessor :address
1279
+ # Identifier name or reference for the arrival location.
1280
+ attr_accessor :arrival_location
1281
+
1282
+ def initialize(address: nil, arrival_location: nil)
1283
+ @address = address
1284
+ @arrival_location = arrival_location
1285
+ end
1286
+ end
1287
+
1288
+ class Departure < ::Stripe::RequestParams
1289
+ class Address < ::Stripe::RequestParams
1290
+ # The city or town.
1291
+ attr_accessor :city
1292
+ # The country in ISO 3166-1 alpha-2 format.
1293
+ attr_accessor :country
1294
+ # The postal code formatted according to country.
1295
+ attr_accessor :postal_code
1296
+ # The state, county, province, or region formatted according to country.
1297
+ attr_accessor :region
1298
+ # Line 1 of the street address.
1299
+ attr_accessor :street_address
1300
+ # Line 2 of the street address.
1301
+ attr_accessor :street_address2
1302
+
1303
+ def initialize(
1304
+ city: nil,
1305
+ country: nil,
1306
+ postal_code: nil,
1307
+ region: nil,
1308
+ street_address: nil,
1309
+ street_address2: nil
1310
+ )
1311
+ @city = city
1312
+ @country = country
1313
+ @postal_code = postal_code
1314
+ @region = region
1315
+ @street_address = street_address
1316
+ @street_address2 = street_address2
1317
+ end
1318
+ end
1319
+ # Address of the departure location.
1320
+ attr_accessor :address
1321
+ # Timestamp of departure.
1322
+ attr_accessor :departs_at
1323
+ # Identifier name or reference for the origin location.
1324
+ attr_accessor :departure_location
1325
+
1326
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
1327
+ @address = address
1328
+ @departs_at = departs_at
1329
+ @departure_location = departure_location
1330
+ end
1331
+ end
1332
+
1333
+ class Insurance < ::Stripe::RequestParams
1334
+ # Insurance currency.
1335
+ attr_accessor :currency
1336
+ # Name of the company providing the insurance.
1337
+ attr_accessor :insurance_company_name
1338
+ # Type of insurance.
1339
+ attr_accessor :insurance_type
1340
+ # Price of insurance in cents.
1341
+ attr_accessor :price
1342
+
1343
+ def initialize(
1344
+ currency: nil,
1345
+ insurance_company_name: nil,
1346
+ insurance_type: nil,
1347
+ price: nil
1348
+ )
1349
+ @currency = currency
1350
+ @insurance_company_name = insurance_company_name
1351
+ @insurance_type = insurance_type
1352
+ @price = price
1353
+ end
1354
+ end
1355
+
1356
+ class Passenger < ::Stripe::RequestParams
1357
+ # The family name of the person.
1358
+ attr_accessor :family_name
1359
+ # The given name of the person.
1360
+ attr_accessor :given_name
1361
+
1362
+ def initialize(family_name: nil, given_name: nil)
1363
+ @family_name = family_name
1364
+ @given_name = given_name
1365
+ end
1366
+ end
1367
+ # Name of associated or partner company for the service.
1368
+ attr_accessor :affiliate_name
1369
+ # Arrival details.
1370
+ attr_accessor :arrival
1371
+ # Name of transportation company.
1372
+ attr_accessor :carrier_name
1373
+ # Currency.
1374
+ attr_accessor :currency
1375
+ # Departure details.
1376
+ attr_accessor :departure
1377
+ # List of insurances for this reservation.
1378
+ attr_accessor :insurances
1379
+ # List of passengers that this reservation applies to.
1380
+ attr_accessor :passengers
1381
+ # Price in cents.
1382
+ attr_accessor :price
1383
+ # Ticket class.
1384
+ attr_accessor :ticket_class
1385
+
1386
+ def initialize(
1387
+ affiliate_name: nil,
1388
+ arrival: nil,
1389
+ carrier_name: nil,
1390
+ currency: nil,
1391
+ departure: nil,
1392
+ insurances: nil,
1393
+ passengers: nil,
1394
+ price: nil,
1395
+ ticket_class: nil
1396
+ )
1397
+ @affiliate_name = affiliate_name
1398
+ @arrival = arrival
1399
+ @carrier_name = carrier_name
1400
+ @currency = currency
1401
+ @departure = departure
1402
+ @insurances = insurances
1403
+ @passengers = passengers
1404
+ @price = price
1405
+ @ticket_class = ticket_class
1406
+ end
1407
+ end
1408
+
1409
+ class Voucher < ::Stripe::RequestParams
1410
+ # Name of associated or partner company for this voucher.
1411
+ attr_accessor :affiliate_name
1412
+ # The voucher validity end time.
1413
+ attr_accessor :ends_at
1414
+ # The voucher validity start time.
1415
+ attr_accessor :starts_at
1416
+ # The issuer or provider of this voucher.
1417
+ attr_accessor :voucher_company
1418
+ # The name or reference to identify the voucher.
1419
+ attr_accessor :voucher_name
1420
+ # The type of this voucher.
1421
+ attr_accessor :voucher_type
1422
+
1423
+ def initialize(
1424
+ affiliate_name: nil,
1425
+ ends_at: nil,
1426
+ starts_at: nil,
1427
+ voucher_company: nil,
1428
+ voucher_name: nil,
1429
+ voucher_type: nil
1430
+ )
1431
+ @affiliate_name = affiliate_name
1432
+ @ends_at = ends_at
1433
+ @starts_at = starts_at
1434
+ @voucher_company = voucher_company
1435
+ @voucher_name = voucher_name
1436
+ @voucher_type = voucher_type
1437
+ end
1438
+ end
1439
+ # Supplementary bus reservation details.
1440
+ attr_accessor :bus_reservation_details
1441
+ # Supplementary event reservation details.
1442
+ attr_accessor :event_reservation_details
1443
+ # Supplementary ferry reservation details.
1444
+ attr_accessor :ferry_reservation_details
1445
+ # Supplementary insurance details.
1446
+ attr_accessor :insurances
1447
+ # Supplementary marketplace seller details.
1448
+ attr_accessor :marketplace_sellers
1449
+ # Supplementary round trip reservation details.
1450
+ attr_accessor :round_trip_reservation_details
1451
+ # Supplementary train reservation details.
1452
+ attr_accessor :train_reservation_details
1453
+ # Voucher details, such as a gift card or discount code.
1454
+ attr_accessor :vouchers
1455
+
1456
+ def initialize(
1457
+ bus_reservation_details: nil,
1458
+ event_reservation_details: nil,
1459
+ ferry_reservation_details: nil,
1460
+ insurances: nil,
1461
+ marketplace_sellers: nil,
1462
+ round_trip_reservation_details: nil,
1463
+ train_reservation_details: nil,
1464
+ vouchers: nil
1465
+ )
1466
+ @bus_reservation_details = bus_reservation_details
1467
+ @event_reservation_details = event_reservation_details
1468
+ @ferry_reservation_details = ferry_reservation_details
1469
+ @insurances = insurances
1470
+ @marketplace_sellers = marketplace_sellers
1471
+ @round_trip_reservation_details = round_trip_reservation_details
1472
+ @train_reservation_details = train_reservation_details
1473
+ @vouchers = vouchers
1474
+ end
1475
+ end
1476
+ # Controls when the funds are captured from the customer's account.
1477
+ #
1478
+ # 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.
1479
+ #
1480
+ # 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.
1481
+ attr_accessor :capture_method
1482
+ # On-demand details if setting up or charging an on-demand payment.
1483
+ attr_accessor :on_demand
1484
+ # Preferred language of the Klarna authorization page that the customer is redirected to
1485
+ attr_accessor :preferred_locale
1486
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1487
+ #
1488
+ # 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.
1489
+ #
1490
+ # 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.
1491
+ #
1492
+ # 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).
1493
+ #
1494
+ # 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`.
1495
+ attr_accessor :setup_future_usage
1496
+ # Subscription details if setting up or charging a subscription.
1497
+ attr_accessor :subscriptions
1498
+ # Supplementary Purchase Data for the corresponding Klarna payment
1499
+ attr_accessor :supplementary_purchase_data
1500
+
1501
+ def initialize(
1502
+ capture_method: nil,
1503
+ on_demand: nil,
1504
+ preferred_locale: nil,
1505
+ setup_future_usage: nil,
1506
+ subscriptions: nil,
1507
+ supplementary_purchase_data: nil
1508
+ )
1509
+ @capture_method = capture_method
1510
+ @on_demand = on_demand
1511
+ @preferred_locale = preferred_locale
1512
+ @setup_future_usage = setup_future_usage
1513
+ @subscriptions = subscriptions
1514
+ @supplementary_purchase_data = supplementary_purchase_data
1515
+ end
1516
+ end
1517
+
1518
+ class Link < ::Stripe::RequestParams
1519
+ # Controls when the funds are captured from the customer's account.
1520
+ #
1521
+ # 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.
1522
+ #
1523
+ # 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.
1524
+ attr_accessor :capture_method
1525
+ # [Deprecated] This is a legacy parameter that no longer has any function.
1526
+ attr_accessor :persistent_token
1527
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1528
+ #
1529
+ # 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.
1530
+ #
1531
+ # 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.
1532
+ #
1533
+ # 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).
1534
+ #
1535
+ # 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`.
1536
+ attr_accessor :setup_future_usage
1537
+
1538
+ def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil)
1539
+ @capture_method = capture_method
1540
+ @persistent_token = persistent_token
1541
+ @setup_future_usage = setup_future_usage
1542
+ end
1543
+ end
1544
+
1545
+ class Oxxo < ::Stripe::RequestParams
1546
+ # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1547
+ attr_accessor :expires_after_days
1548
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1549
+ #
1550
+ # 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.
1551
+ #
1552
+ # 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.
1553
+ #
1554
+ # 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).
1555
+ #
1556
+ # 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`.
1557
+ attr_accessor :setup_future_usage
1558
+
1559
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1560
+ @expires_after_days = expires_after_days
1561
+ @setup_future_usage = setup_future_usage
1562
+ end
1563
+ end
1564
+
1565
+ class P24 < ::Stripe::RequestParams
1566
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1567
+ #
1568
+ # 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.
1569
+ #
1570
+ # 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.
1571
+ #
1572
+ # 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).
1573
+ #
1574
+ # 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`.
1575
+ attr_accessor :setup_future_usage
1576
+ # Confirm that the payer has accepted the P24 terms and conditions.
1577
+ attr_accessor :tos_shown_and_accepted
1578
+
1579
+ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1580
+ @setup_future_usage = setup_future_usage
1581
+ @tos_shown_and_accepted = tos_shown_and_accepted
1582
+ end
1583
+ end
1584
+
1585
+ class Paypal < ::Stripe::RequestParams
1586
+ class LineItem < ::Stripe::RequestParams
1587
+ class Tax < ::Stripe::RequestParams
1588
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
1589
+ attr_accessor :amount
1590
+ # The tax behavior for the line item.
1591
+ attr_accessor :behavior
1592
+
1593
+ def initialize(amount: nil, behavior: nil)
1594
+ @amount = amount
1595
+ @behavior = behavior
1596
+ end
1597
+ end
1598
+ # Type of the line item.
1599
+ attr_accessor :category
1600
+ # Description of the line item.
1601
+ attr_accessor :description
1602
+ # Descriptive name of the line item.
1603
+ attr_accessor :name
1604
+ # Quantity of the line item. Must be a positive number.
1605
+ attr_accessor :quantity
1606
+ # Client facing stock keeping unit, article number or similar.
1607
+ attr_accessor :sku
1608
+ # The Stripe account ID of the connected account that sells the item.
1609
+ attr_accessor :sold_by
1610
+ # The tax information for the line item.
1611
+ attr_accessor :tax
1612
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
1613
+ attr_accessor :unit_amount
1614
+
1615
+ def initialize(
1616
+ category: nil,
1617
+ description: nil,
1618
+ name: nil,
1619
+ quantity: nil,
1620
+ sku: nil,
1621
+ sold_by: nil,
1622
+ tax: nil,
1623
+ unit_amount: nil
1624
+ )
1625
+ @category = category
1626
+ @description = description
1627
+ @name = name
1628
+ @quantity = quantity
1629
+ @sku = sku
1630
+ @sold_by = sold_by
1631
+ @tax = tax
1632
+ @unit_amount = unit_amount
1633
+ end
1634
+ end
1635
+ # Controls when the funds will be captured from the customer's account.
1636
+ attr_accessor :capture_method
1637
+ # The line items purchased by the customer.
1638
+ attr_accessor :line_items
1639
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1640
+ attr_accessor :preferred_locale
1641
+ # 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.
1642
+ attr_accessor :reference
1643
+ # 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.
1644
+ attr_accessor :reference_id
1645
+ # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1646
+ attr_accessor :risk_correlation_id
1647
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1648
+ #
1649
+ # 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.
1650
+ #
1651
+ # 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.
1652
+ #
1653
+ # 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).
1654
+ #
1655
+ # 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`.
1656
+ attr_accessor :setup_future_usage
1657
+ # 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.
1658
+ attr_accessor :subsellers
1659
+
1660
+ def initialize(
1661
+ capture_method: nil,
1662
+ line_items: nil,
1663
+ preferred_locale: nil,
1664
+ reference: nil,
1665
+ reference_id: nil,
1666
+ risk_correlation_id: nil,
1667
+ setup_future_usage: nil,
1668
+ subsellers: nil
1669
+ )
1670
+ @capture_method = capture_method
1671
+ @line_items = line_items
1672
+ @preferred_locale = preferred_locale
1673
+ @reference = reference
1674
+ @reference_id = reference_id
1675
+ @risk_correlation_id = risk_correlation_id
1676
+ @setup_future_usage = setup_future_usage
1677
+ @subsellers = subsellers
1678
+ end
1679
+ end
1680
+
1681
+ class SepaDebit < ::Stripe::RequestParams
1682
+ class MandateOptions < ::Stripe::RequestParams
1683
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1684
+ attr_accessor :reference_prefix
1685
+
1686
+ def initialize(reference_prefix: nil)
1687
+ @reference_prefix = reference_prefix
1688
+ end
1689
+ end
1690
+ # Additional fields for Mandate creation
1691
+ attr_accessor :mandate_options
1692
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1693
+ #
1694
+ # 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.
1695
+ #
1696
+ # 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.
1697
+ #
1698
+ # 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).
1699
+ #
1700
+ # 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`.
1701
+ attr_accessor :setup_future_usage
1702
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1703
+ attr_accessor :target_date
1704
+
1705
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1706
+ @mandate_options = mandate_options
1707
+ @setup_future_usage = setup_future_usage
1708
+ @target_date = target_date
1709
+ end
1710
+ end
1711
+
1712
+ class Sofort < ::Stripe::RequestParams
1713
+ # Language shown to the payer on redirect.
1714
+ attr_accessor :preferred_language
1715
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1716
+ #
1717
+ # 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.
1718
+ #
1719
+ # 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.
1720
+ #
1721
+ # 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).
1722
+ #
1723
+ # 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`.
1724
+ attr_accessor :setup_future_usage
1725
+
1726
+ def initialize(preferred_language: nil, setup_future_usage: nil)
1727
+ @preferred_language = preferred_language
1728
+ @setup_future_usage = setup_future_usage
1729
+ end
1730
+ end
1731
+
1732
+ class WechatPay < ::Stripe::RequestParams
1733
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
1734
+ attr_accessor :app_id
1735
+ # The client type that the end customer will pay from
1736
+ attr_accessor :client
1737
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1738
+ #
1739
+ # 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.
1740
+ #
1741
+ # 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.
1742
+ #
1743
+ # 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).
1744
+ #
1745
+ # 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`.
1746
+ attr_accessor :setup_future_usage
1747
+
1748
+ def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1749
+ @app_id = app_id
1750
+ @client = client
1751
+ @setup_future_usage = setup_future_usage
1752
+ end
1753
+ end
1754
+ # If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
1755
+ attr_accessor :acss_debit
1756
+ # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
1757
+ attr_accessor :afterpay_clearpay
1758
+ # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
1759
+ attr_accessor :alipay
1760
+ # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
1761
+ attr_accessor :bancontact
1762
+ # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
1763
+ attr_accessor :card
1764
+ # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
1765
+ attr_accessor :customer_balance
1766
+ # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
1767
+ attr_accessor :ideal
1768
+ # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
1769
+ attr_accessor :klarna
1770
+ # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
1771
+ attr_accessor :link
1772
+ # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
1773
+ attr_accessor :oxxo
1774
+ # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
1775
+ attr_accessor :p24
1776
+ # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
1777
+ attr_accessor :paypal
1778
+ # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
1779
+ attr_accessor :sepa_debit
1780
+ # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
1781
+ attr_accessor :sofort
1782
+ # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
1783
+ attr_accessor :wechat_pay
1784
+
1785
+ def initialize(
1786
+ acss_debit: nil,
1787
+ afterpay_clearpay: nil,
1788
+ alipay: nil,
1789
+ bancontact: nil,
1790
+ card: nil,
1791
+ customer_balance: nil,
1792
+ ideal: nil,
1793
+ klarna: nil,
1794
+ link: nil,
1795
+ oxxo: nil,
1796
+ p24: nil,
1797
+ paypal: nil,
1798
+ sepa_debit: nil,
1799
+ sofort: nil,
1800
+ wechat_pay: nil
1801
+ )
1802
+ @acss_debit = acss_debit
1803
+ @afterpay_clearpay = afterpay_clearpay
1804
+ @alipay = alipay
1805
+ @bancontact = bancontact
1806
+ @card = card
1807
+ @customer_balance = customer_balance
1808
+ @ideal = ideal
1809
+ @klarna = klarna
1810
+ @link = link
1811
+ @oxxo = oxxo
1812
+ @p24 = p24
1813
+ @paypal = paypal
1814
+ @sepa_debit = sepa_debit
1815
+ @sofort = sofort
1816
+ @wechat_pay = wechat_pay
1817
+ end
1818
+ end
1819
+
1820
+ class TransferData < ::Stripe::RequestParams
1821
+ # The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
1822
+ attr_accessor :amount
1823
+ # ID of the Connected account receiving the transfer.
1824
+ attr_accessor :destination
1825
+
1826
+ def initialize(amount: nil, destination: nil)
1827
+ @amount = amount
1828
+ @destination = destination
1829
+ end
1830
+ end
1831
+ # 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.
1832
+ attr_accessor :application_fee_amount
1833
+ # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
1834
+ attr_accessor :payment_method_options
1835
+ # The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
1836
+ attr_accessor :payment_method_types
1837
+ # The URL to redirect the customer to after they authenticate their payment.
1838
+ attr_accessor :return_url
1839
+ # For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
1840
+ attr_accessor :statement_descriptor
1841
+ # Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
1842
+ attr_accessor :statement_descriptor_suffix
1843
+ # Provides configuration for completing a transfer for the order after it is paid.
1844
+ attr_accessor :transfer_data
1845
+
1846
+ def initialize(
1847
+ application_fee_amount: nil,
1848
+ payment_method_options: nil,
1849
+ payment_method_types: nil,
1850
+ return_url: nil,
1851
+ statement_descriptor: nil,
1852
+ statement_descriptor_suffix: nil,
1853
+ transfer_data: nil
1854
+ )
1855
+ @application_fee_amount = application_fee_amount
1856
+ @payment_method_options = payment_method_options
1857
+ @payment_method_types = payment_method_types
1858
+ @return_url = return_url
1859
+ @statement_descriptor = statement_descriptor
1860
+ @statement_descriptor_suffix = statement_descriptor_suffix
1861
+ @transfer_data = transfer_data
1862
+ end
1863
+ end
1864
+ # Settings describing how the order should configure generated PaymentIntents.
1865
+ attr_accessor :settings
1866
+
1867
+ def initialize(settings: nil)
1868
+ @settings = settings
1869
+ end
1870
+ end
1871
+
1872
+ class ShippingCost < ::Stripe::RequestParams
1873
+ class ShippingRateData < ::Stripe::RequestParams
1874
+ class DeliveryEstimate < ::Stripe::RequestParams
1875
+ class Maximum < ::Stripe::RequestParams
1876
+ # A unit of time.
1877
+ attr_accessor :unit
1878
+ # Must be greater than 0.
1879
+ attr_accessor :value
1880
+
1881
+ def initialize(unit: nil, value: nil)
1882
+ @unit = unit
1883
+ @value = value
1884
+ end
1885
+ end
1886
+
1887
+ class Minimum < ::Stripe::RequestParams
1888
+ # A unit of time.
1889
+ attr_accessor :unit
1890
+ # Must be greater than 0.
1891
+ attr_accessor :value
1892
+
1893
+ def initialize(unit: nil, value: nil)
1894
+ @unit = unit
1895
+ @value = value
1896
+ end
1897
+ end
1898
+ # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
1899
+ attr_accessor :maximum
1900
+ # The lower bound of the estimated range. If empty, represents no lower bound.
1901
+ attr_accessor :minimum
1902
+
1903
+ def initialize(maximum: nil, minimum: nil)
1904
+ @maximum = maximum
1905
+ @minimum = minimum
1906
+ end
1907
+ end
1908
+
1909
+ class FixedAmount < ::Stripe::RequestParams
1910
+ class CurrencyOptions < ::Stripe::RequestParams
1911
+ # A non-negative integer in cents representing how much to charge.
1912
+ attr_accessor :amount
1913
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1914
+ attr_accessor :tax_behavior
1915
+
1916
+ def initialize(amount: nil, tax_behavior: nil)
1917
+ @amount = amount
1918
+ @tax_behavior = tax_behavior
1919
+ end
1920
+ end
1921
+ # A non-negative integer in cents representing how much to charge.
1922
+ attr_accessor :amount
1923
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1924
+ attr_accessor :currency
1925
+ # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
1926
+ attr_accessor :currency_options
1927
+
1928
+ def initialize(amount: nil, currency: nil, currency_options: nil)
1929
+ @amount = amount
1930
+ @currency = currency
1931
+ @currency_options = currency_options
1932
+ end
1933
+ end
1934
+ # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
1935
+ attr_accessor :delivery_estimate
1936
+ # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1937
+ attr_accessor :display_name
1938
+ # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1939
+ attr_accessor :fixed_amount
1940
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1941
+ attr_accessor :metadata
1942
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1943
+ attr_accessor :tax_behavior
1944
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1945
+ attr_accessor :tax_code
1946
+ # The type of calculation to use on the shipping rate.
1947
+ attr_accessor :type
1948
+
1949
+ def initialize(
1950
+ delivery_estimate: nil,
1951
+ display_name: nil,
1952
+ fixed_amount: nil,
1953
+ metadata: nil,
1954
+ tax_behavior: nil,
1955
+ tax_code: nil,
1956
+ type: nil
1957
+ )
1958
+ @delivery_estimate = delivery_estimate
1959
+ @display_name = display_name
1960
+ @fixed_amount = fixed_amount
1961
+ @metadata = metadata
1962
+ @tax_behavior = tax_behavior
1963
+ @tax_code = tax_code
1964
+ @type = type
1965
+ end
1966
+ end
1967
+ # The ID of the shipping rate to use for this order.
1968
+ attr_accessor :shipping_rate
1969
+ # Parameters to create a new ad-hoc shipping rate for this order.
1970
+ attr_accessor :shipping_rate_data
1971
+
1972
+ def initialize(shipping_rate: nil, shipping_rate_data: nil)
1973
+ @shipping_rate = shipping_rate
1974
+ @shipping_rate_data = shipping_rate_data
1975
+ end
1976
+ end
1977
+
1978
+ class ShippingDetails < ::Stripe::RequestParams
1979
+ class Address < ::Stripe::RequestParams
1980
+ # City, district, suburb, town, or village.
1981
+ attr_accessor :city
1982
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1983
+ attr_accessor :country
1984
+ # Address line 1, such as the street, PO Box, or company name.
1985
+ attr_accessor :line1
1986
+ # Address line 2, such as the apartment, suite, unit, or building.
1987
+ attr_accessor :line2
1988
+ # ZIP or postal code.
1989
+ attr_accessor :postal_code
1990
+ # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
1991
+ attr_accessor :state
1992
+
1993
+ def initialize(
1994
+ city: nil,
1995
+ country: nil,
1996
+ line1: nil,
1997
+ line2: nil,
1998
+ postal_code: nil,
1999
+ state: nil
2000
+ )
2001
+ @city = city
2002
+ @country = country
2003
+ @line1 = line1
2004
+ @line2 = line2
2005
+ @postal_code = postal_code
2006
+ @state = state
2007
+ end
2008
+ end
2009
+ # The shipping address for the order.
2010
+ attr_accessor :address
2011
+ # The name of the recipient of the order.
2012
+ attr_accessor :name
2013
+ # The phone number (including extension) for the recipient of the order.
2014
+ attr_accessor :phone
2015
+
2016
+ def initialize(address: nil, name: nil, phone: nil)
2017
+ @address = address
2018
+ @name = name
2019
+ @phone = phone
2020
+ end
2021
+ end
2022
+
2023
+ class TaxDetails < ::Stripe::RequestParams
2024
+ class TaxId < ::Stripe::RequestParams
2025
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
2026
+ attr_accessor :type
2027
+ # Value of the tax ID.
2028
+ attr_accessor :value
2029
+
2030
+ def initialize(type: nil, value: nil)
2031
+ @type = type
2032
+ @value = value
2033
+ end
2034
+ end
2035
+ # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
2036
+ attr_accessor :tax_exempt
2037
+ # The purchaser's tax IDs to be used for this order.
2038
+ attr_accessor :tax_ids
2039
+
2040
+ def initialize(tax_exempt: nil, tax_ids: nil)
2041
+ @tax_exempt = tax_exempt
2042
+ @tax_ids = tax_ids
2043
+ end
2044
+ end
2045
+ # Settings for automatic tax calculation for this order.
2046
+ attr_accessor :automatic_tax
2047
+ # Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
2048
+ attr_accessor :billing_details
2049
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2050
+ attr_accessor :currency
2051
+ # The customer associated with this order.
2052
+ attr_accessor :customer
2053
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2054
+ attr_accessor :description
2055
+ # The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string `""` to unset this field.
2056
+ attr_accessor :discounts
2057
+ # Specifies which fields in the response should be expanded.
2058
+ attr_accessor :expand
2059
+ # The IP address of the purchaser for this order.
2060
+ attr_accessor :ip_address
2061
+ # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
2062
+ attr_accessor :line_items
2063
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2064
+ attr_accessor :metadata
2065
+ # Payment information associated with the order, including payment settings.
2066
+ attr_accessor :payment
2067
+ # Settings for the customer cost of shipping for this order.
2068
+ attr_accessor :shipping_cost
2069
+ # Shipping details for the order.
2070
+ attr_accessor :shipping_details
2071
+ # Additional tax details about the purchaser to be used for this order.
2072
+ attr_accessor :tax_details
2073
+
2074
+ def initialize(
2075
+ automatic_tax: nil,
2076
+ billing_details: nil,
2077
+ currency: nil,
2078
+ customer: nil,
2079
+ description: nil,
2080
+ discounts: nil,
2081
+ expand: nil,
2082
+ ip_address: nil,
2083
+ line_items: nil,
2084
+ metadata: nil,
2085
+ payment: nil,
2086
+ shipping_cost: nil,
2087
+ shipping_details: nil,
2088
+ tax_details: nil
2089
+ )
2090
+ @automatic_tax = automatic_tax
2091
+ @billing_details = billing_details
2092
+ @currency = currency
2093
+ @customer = customer
2094
+ @description = description
2095
+ @discounts = discounts
2096
+ @expand = expand
2097
+ @ip_address = ip_address
2098
+ @line_items = line_items
2099
+ @metadata = metadata
2100
+ @payment = payment
2101
+ @shipping_cost = shipping_cost
2102
+ @shipping_details = shipping_details
2103
+ @tax_details = tax_details
2104
+ end
2105
+
2106
+ def self.field_encodings
2107
+ @field_encodings = {
2108
+ line_items: {
2109
+ kind: :array,
2110
+ element: {
2111
+ kind: :object,
2112
+ fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2113
+ },
2114
+ },
2115
+ }
2116
+ end
2117
+ end
2118
+ end