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,2114 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class OrderCreateParams < ::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 a [Price](https://docs.stripe.com/api/prices) to add to the Order.
221
+ #
222
+ # 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.
223
+ attr_accessor :price
224
+ # Data used to generate a new Price object inline.
225
+ #
226
+ # 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.
227
+ #
228
+ # 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.
229
+ attr_accessor :price_data
230
+ # The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
231
+ #
232
+ # The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
233
+ attr_accessor :product
234
+ # Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
235
+ #
236
+ # `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.
237
+ #
238
+ # `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.
239
+ attr_accessor :product_data
240
+ # The quantity of the line item.
241
+ attr_accessor :quantity
242
+ # The tax rates applied to this line item.
243
+ attr_accessor :tax_rates
244
+
245
+ def initialize(
246
+ description: nil,
247
+ discounts: nil,
248
+ price: nil,
249
+ price_data: nil,
250
+ product: nil,
251
+ product_data: nil,
252
+ quantity: nil,
253
+ tax_rates: nil
254
+ )
255
+ @description = description
256
+ @discounts = discounts
257
+ @price = price
258
+ @price_data = price_data
259
+ @product = product
260
+ @product_data = product_data
261
+ @quantity = quantity
262
+ @tax_rates = tax_rates
263
+ end
264
+
265
+ def self.field_encodings
266
+ @field_encodings = {
267
+ price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
268
+ }
269
+ end
270
+ end
271
+
272
+ class Payment < ::Stripe::RequestParams
273
+ class Settings < ::Stripe::RequestParams
274
+ class PaymentMethodOptions < ::Stripe::RequestParams
275
+ class AcssDebit < ::Stripe::RequestParams
276
+ class MandateOptions < ::Stripe::RequestParams
277
+ # A URL for custom mandate text to render during confirmation step.
278
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
279
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
280
+ attr_accessor :custom_mandate_url
281
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
282
+ attr_accessor :interval_description
283
+ # Payment schedule for the mandate.
284
+ attr_accessor :payment_schedule
285
+ # Transaction type of the mandate.
286
+ attr_accessor :transaction_type
287
+
288
+ def initialize(
289
+ custom_mandate_url: nil,
290
+ interval_description: nil,
291
+ payment_schedule: nil,
292
+ transaction_type: nil
293
+ )
294
+ @custom_mandate_url = custom_mandate_url
295
+ @interval_description = interval_description
296
+ @payment_schedule = payment_schedule
297
+ @transaction_type = transaction_type
298
+ end
299
+ end
300
+ # Additional fields for Mandate creation
301
+ attr_accessor :mandate_options
302
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
303
+ #
304
+ # 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.
305
+ #
306
+ # 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.
307
+ #
308
+ # 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).
309
+ #
310
+ # 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`.
311
+ attr_accessor :setup_future_usage
312
+ # 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.
313
+ attr_accessor :target_date
314
+ # Bank account verification method. The default value is `automatic`.
315
+ attr_accessor :verification_method
316
+
317
+ def initialize(
318
+ mandate_options: nil,
319
+ setup_future_usage: nil,
320
+ target_date: nil,
321
+ verification_method: nil
322
+ )
323
+ @mandate_options = mandate_options
324
+ @setup_future_usage = setup_future_usage
325
+ @target_date = target_date
326
+ @verification_method = verification_method
327
+ end
328
+ end
329
+
330
+ class AfterpayClearpay < ::Stripe::RequestParams
331
+ # Controls when the funds are captured from the customer's account.
332
+ #
333
+ # 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.
334
+ #
335
+ # 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.
336
+ attr_accessor :capture_method
337
+ # 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.
338
+ attr_accessor :reference
339
+ # Indicates that you intend to make future payments with the payment method.
340
+ #
341
+ # 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.
342
+ #
343
+ # 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).
344
+ #
345
+ # 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`.
346
+ attr_accessor :setup_future_usage
347
+
348
+ def initialize(capture_method: nil, reference: nil, setup_future_usage: nil)
349
+ @capture_method = capture_method
350
+ @reference = reference
351
+ @setup_future_usage = setup_future_usage
352
+ end
353
+ end
354
+
355
+ class Alipay < ::Stripe::RequestParams
356
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
357
+ #
358
+ # 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.
359
+ #
360
+ # 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.
361
+ #
362
+ # 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).
363
+ #
364
+ # 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`.
365
+ attr_accessor :setup_future_usage
366
+
367
+ def initialize(setup_future_usage: nil)
368
+ @setup_future_usage = setup_future_usage
369
+ end
370
+ end
371
+
372
+ class Bancontact < ::Stripe::RequestParams
373
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
374
+ attr_accessor :preferred_language
375
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
376
+ #
377
+ # 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.
378
+ #
379
+ # 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.
380
+ #
381
+ # 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).
382
+ #
383
+ # 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`.
384
+ attr_accessor :setup_future_usage
385
+
386
+ def initialize(preferred_language: nil, setup_future_usage: nil)
387
+ @preferred_language = preferred_language
388
+ @setup_future_usage = setup_future_usage
389
+ end
390
+ end
391
+
392
+ class Card < ::Stripe::RequestParams
393
+ # Controls when the funds will be captured from the customer's account.
394
+ attr_accessor :capture_method
395
+ # Indicates that you intend to make future payments with the payment method.
396
+ #
397
+ # 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.
398
+ #
399
+ # 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).
400
+ #
401
+ # 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`.
402
+ attr_accessor :setup_future_usage
403
+
404
+ def initialize(capture_method: nil, setup_future_usage: nil)
405
+ @capture_method = capture_method
406
+ @setup_future_usage = setup_future_usage
407
+ end
408
+ end
409
+
410
+ class CustomerBalance < ::Stripe::RequestParams
411
+ class BankTransfer < ::Stripe::RequestParams
412
+ class EuBankTransfer < ::Stripe::RequestParams
413
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
414
+ attr_accessor :country
415
+
416
+ def initialize(country: nil)
417
+ @country = country
418
+ end
419
+ end
420
+ # Configuration for the eu_bank_transfer funding type.
421
+ attr_accessor :eu_bank_transfer
422
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
423
+ #
424
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
425
+ attr_accessor :requested_address_types
426
+ # 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`.
427
+ attr_accessor :type
428
+
429
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
430
+ @eu_bank_transfer = eu_bank_transfer
431
+ @requested_address_types = requested_address_types
432
+ @type = type
433
+ end
434
+ end
435
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
436
+ attr_accessor :bank_transfer
437
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
438
+ attr_accessor :funding_type
439
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
440
+ #
441
+ # 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.
442
+ #
443
+ # 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.
444
+ #
445
+ # 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).
446
+ #
447
+ # 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`.
448
+ attr_accessor :setup_future_usage
449
+
450
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
451
+ @bank_transfer = bank_transfer
452
+ @funding_type = funding_type
453
+ @setup_future_usage = setup_future_usage
454
+ end
455
+ end
456
+
457
+ class Ideal < ::Stripe::RequestParams
458
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
459
+ #
460
+ # 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.
461
+ #
462
+ # 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.
463
+ #
464
+ # 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).
465
+ #
466
+ # 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`.
467
+ attr_accessor :setup_future_usage
468
+
469
+ def initialize(setup_future_usage: nil)
470
+ @setup_future_usage = setup_future_usage
471
+ end
472
+ end
473
+
474
+ class Klarna < ::Stripe::RequestParams
475
+ class OnDemand < ::Stripe::RequestParams
476
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
477
+ attr_accessor :average_amount
478
+ # 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.
479
+ attr_accessor :maximum_amount
480
+ # 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.
481
+ attr_accessor :minimum_amount
482
+ # Interval at which the customer is making purchases
483
+ attr_accessor :purchase_interval
484
+ # The number of `purchase_interval` between charges
485
+ attr_accessor :purchase_interval_count
486
+
487
+ def initialize(
488
+ average_amount: nil,
489
+ maximum_amount: nil,
490
+ minimum_amount: nil,
491
+ purchase_interval: nil,
492
+ purchase_interval_count: nil
493
+ )
494
+ @average_amount = average_amount
495
+ @maximum_amount = maximum_amount
496
+ @minimum_amount = minimum_amount
497
+ @purchase_interval = purchase_interval
498
+ @purchase_interval_count = purchase_interval_count
499
+ end
500
+ end
501
+
502
+ class Subscription < ::Stripe::RequestParams
503
+ class NextBilling < ::Stripe::RequestParams
504
+ # The amount of the next charge for the subscription.
505
+ attr_accessor :amount
506
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
507
+ attr_accessor :date
508
+
509
+ def initialize(amount: nil, date: nil)
510
+ @amount = amount
511
+ @date = date
512
+ end
513
+ end
514
+ # Unit of time between subscription charges.
515
+ attr_accessor :interval
516
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
517
+ attr_accessor :interval_count
518
+ # Name for subscription.
519
+ attr_accessor :name
520
+ # Describes the upcoming charge for this subscription.
521
+ attr_accessor :next_billing
522
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
523
+ attr_accessor :reference
524
+
525
+ def initialize(
526
+ interval: nil,
527
+ interval_count: nil,
528
+ name: nil,
529
+ next_billing: nil,
530
+ reference: nil
531
+ )
532
+ @interval = interval
533
+ @interval_count = interval_count
534
+ @name = name
535
+ @next_billing = next_billing
536
+ @reference = reference
537
+ end
538
+ end
539
+
540
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
541
+ class BusReservationDetail < ::Stripe::RequestParams
542
+ class Arrival < ::Stripe::RequestParams
543
+ class Address < ::Stripe::RequestParams
544
+ # The city or town.
545
+ attr_accessor :city
546
+ # The country in ISO 3166-1 alpha-2 format.
547
+ attr_accessor :country
548
+ # The postal code formatted according to country.
549
+ attr_accessor :postal_code
550
+ # The state, county, province, or region formatted according to country.
551
+ attr_accessor :region
552
+ # Line 1 of the street address.
553
+ attr_accessor :street_address
554
+ # Line 2 of the street address.
555
+ attr_accessor :street_address2
556
+
557
+ def initialize(
558
+ city: nil,
559
+ country: nil,
560
+ postal_code: nil,
561
+ region: nil,
562
+ street_address: nil,
563
+ street_address2: nil
564
+ )
565
+ @city = city
566
+ @country = country
567
+ @postal_code = postal_code
568
+ @region = region
569
+ @street_address = street_address
570
+ @street_address2 = street_address2
571
+ end
572
+ end
573
+ # Address of the arrival location.
574
+ attr_accessor :address
575
+ # Identifier name or reference for the arrival location.
576
+ attr_accessor :arrival_location
577
+
578
+ def initialize(address: nil, arrival_location: nil)
579
+ @address = address
580
+ @arrival_location = arrival_location
581
+ end
582
+ end
583
+
584
+ class Departure < ::Stripe::RequestParams
585
+ class Address < ::Stripe::RequestParams
586
+ # The city or town.
587
+ attr_accessor :city
588
+ # The country in ISO 3166-1 alpha-2 format.
589
+ attr_accessor :country
590
+ # The postal code formatted according to country.
591
+ attr_accessor :postal_code
592
+ # The state, county, province, or region formatted according to country.
593
+ attr_accessor :region
594
+ # Line 1 of the street address.
595
+ attr_accessor :street_address
596
+ # Line 2 of the street address.
597
+ attr_accessor :street_address2
598
+
599
+ def initialize(
600
+ city: nil,
601
+ country: nil,
602
+ postal_code: nil,
603
+ region: nil,
604
+ street_address: nil,
605
+ street_address2: nil
606
+ )
607
+ @city = city
608
+ @country = country
609
+ @postal_code = postal_code
610
+ @region = region
611
+ @street_address = street_address
612
+ @street_address2 = street_address2
613
+ end
614
+ end
615
+ # Address of the departure location.
616
+ attr_accessor :address
617
+ # Timestamp of departure.
618
+ attr_accessor :departs_at
619
+ # Identifier name or reference for the origin location.
620
+ attr_accessor :departure_location
621
+
622
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
623
+ @address = address
624
+ @departs_at = departs_at
625
+ @departure_location = departure_location
626
+ end
627
+ end
628
+
629
+ class Insurance < ::Stripe::RequestParams
630
+ # Insurance currency.
631
+ attr_accessor :currency
632
+ # Name of the company providing the insurance.
633
+ attr_accessor :insurance_company_name
634
+ # Type of insurance.
635
+ attr_accessor :insurance_type
636
+ # Price of insurance in cents.
637
+ attr_accessor :price
638
+
639
+ def initialize(
640
+ currency: nil,
641
+ insurance_company_name: nil,
642
+ insurance_type: nil,
643
+ price: nil
644
+ )
645
+ @currency = currency
646
+ @insurance_company_name = insurance_company_name
647
+ @insurance_type = insurance_type
648
+ @price = price
649
+ end
650
+ end
651
+
652
+ class Passenger < ::Stripe::RequestParams
653
+ # The family name of the person.
654
+ attr_accessor :family_name
655
+ # The given name of the person.
656
+ attr_accessor :given_name
657
+
658
+ def initialize(family_name: nil, given_name: nil)
659
+ @family_name = family_name
660
+ @given_name = given_name
661
+ end
662
+ end
663
+ # Name of associated or partner company for the service.
664
+ attr_accessor :affiliate_name
665
+ # Arrival details.
666
+ attr_accessor :arrival
667
+ # Name of transportation company.
668
+ attr_accessor :carrier_name
669
+ # Currency.
670
+ attr_accessor :currency
671
+ # Departure details.
672
+ attr_accessor :departure
673
+ # List of insurances for this reservation.
674
+ attr_accessor :insurances
675
+ # List of passengers that this reservation applies to.
676
+ attr_accessor :passengers
677
+ # Price in cents.
678
+ attr_accessor :price
679
+ # Ticket class.
680
+ attr_accessor :ticket_class
681
+
682
+ def initialize(
683
+ affiliate_name: nil,
684
+ arrival: nil,
685
+ carrier_name: nil,
686
+ currency: nil,
687
+ departure: nil,
688
+ insurances: nil,
689
+ passengers: nil,
690
+ price: nil,
691
+ ticket_class: nil
692
+ )
693
+ @affiliate_name = affiliate_name
694
+ @arrival = arrival
695
+ @carrier_name = carrier_name
696
+ @currency = currency
697
+ @departure = departure
698
+ @insurances = insurances
699
+ @passengers = passengers
700
+ @price = price
701
+ @ticket_class = ticket_class
702
+ end
703
+ end
704
+
705
+ class EventReservationDetail < ::Stripe::RequestParams
706
+ class Address < ::Stripe::RequestParams
707
+ # The city or town.
708
+ attr_accessor :city
709
+ # The country in ISO 3166-1 alpha-2 format.
710
+ attr_accessor :country
711
+ # The postal code formatted according to country.
712
+ attr_accessor :postal_code
713
+ # The state, county, province, or region formatted according to country.
714
+ attr_accessor :region
715
+ # Line 1 of the street address.
716
+ attr_accessor :street_address
717
+ # Line 2 of the street address.
718
+ attr_accessor :street_address2
719
+
720
+ def initialize(
721
+ city: nil,
722
+ country: nil,
723
+ postal_code: nil,
724
+ region: nil,
725
+ street_address: nil,
726
+ street_address2: nil
727
+ )
728
+ @city = city
729
+ @country = country
730
+ @postal_code = postal_code
731
+ @region = region
732
+ @street_address = street_address
733
+ @street_address2 = street_address2
734
+ end
735
+ end
736
+
737
+ class Insurance < ::Stripe::RequestParams
738
+ # Insurance currency.
739
+ attr_accessor :currency
740
+ # Name of the company providing the insurance.
741
+ attr_accessor :insurance_company_name
742
+ # Type of insurance.
743
+ attr_accessor :insurance_type
744
+ # Price of insurance in cents.
745
+ attr_accessor :price
746
+
747
+ def initialize(
748
+ currency: nil,
749
+ insurance_company_name: nil,
750
+ insurance_type: nil,
751
+ price: nil
752
+ )
753
+ @currency = currency
754
+ @insurance_company_name = insurance_company_name
755
+ @insurance_type = insurance_type
756
+ @price = price
757
+ end
758
+ end
759
+ # Indicates if the tickets are digitally checked when entering the venue.
760
+ attr_accessor :access_controlled_venue
761
+ # Address of the event.
762
+ attr_accessor :address
763
+ # Name of associated or partner company for the service.
764
+ attr_accessor :affiliate_name
765
+ # End timestamp of the event.
766
+ attr_accessor :ends_at
767
+ # Company selling the ticket.
768
+ attr_accessor :event_company_name
769
+ # Name of the event.
770
+ attr_accessor :event_name
771
+ # Type of the event.
772
+ attr_accessor :event_type
773
+ # List of insurances for this event.
774
+ attr_accessor :insurances
775
+ # Start timestamp of the event.
776
+ attr_accessor :starts_at
777
+ # Name of the venue where the event takes place.
778
+ attr_accessor :venue_name
779
+
780
+ def initialize(
781
+ access_controlled_venue: nil,
782
+ address: nil,
783
+ affiliate_name: nil,
784
+ ends_at: nil,
785
+ event_company_name: nil,
786
+ event_name: nil,
787
+ event_type: nil,
788
+ insurances: nil,
789
+ starts_at: nil,
790
+ venue_name: nil
791
+ )
792
+ @access_controlled_venue = access_controlled_venue
793
+ @address = address
794
+ @affiliate_name = affiliate_name
795
+ @ends_at = ends_at
796
+ @event_company_name = event_company_name
797
+ @event_name = event_name
798
+ @event_type = event_type
799
+ @insurances = insurances
800
+ @starts_at = starts_at
801
+ @venue_name = venue_name
802
+ end
803
+ end
804
+
805
+ class FerryReservationDetail < ::Stripe::RequestParams
806
+ class Arrival < ::Stripe::RequestParams
807
+ class Address < ::Stripe::RequestParams
808
+ # The city or town.
809
+ attr_accessor :city
810
+ # The country in ISO 3166-1 alpha-2 format.
811
+ attr_accessor :country
812
+ # The postal code formatted according to country.
813
+ attr_accessor :postal_code
814
+ # The state, county, province, or region formatted according to country.
815
+ attr_accessor :region
816
+ # Line 1 of the street address.
817
+ attr_accessor :street_address
818
+ # Line 2 of the street address.
819
+ attr_accessor :street_address2
820
+
821
+ def initialize(
822
+ city: nil,
823
+ country: nil,
824
+ postal_code: nil,
825
+ region: nil,
826
+ street_address: nil,
827
+ street_address2: nil
828
+ )
829
+ @city = city
830
+ @country = country
831
+ @postal_code = postal_code
832
+ @region = region
833
+ @street_address = street_address
834
+ @street_address2 = street_address2
835
+ end
836
+ end
837
+ # Address of the arrival location.
838
+ attr_accessor :address
839
+ # Identifier name or reference for the arrival location.
840
+ attr_accessor :arrival_location
841
+
842
+ def initialize(address: nil, arrival_location: nil)
843
+ @address = address
844
+ @arrival_location = arrival_location
845
+ end
846
+ end
847
+
848
+ class Departure < ::Stripe::RequestParams
849
+ class Address < ::Stripe::RequestParams
850
+ # The city or town.
851
+ attr_accessor :city
852
+ # The country in ISO 3166-1 alpha-2 format.
853
+ attr_accessor :country
854
+ # The postal code formatted according to country.
855
+ attr_accessor :postal_code
856
+ # The state, county, province, or region formatted according to country.
857
+ attr_accessor :region
858
+ # Line 1 of the street address.
859
+ attr_accessor :street_address
860
+ # Line 2 of the street address.
861
+ attr_accessor :street_address2
862
+
863
+ def initialize(
864
+ city: nil,
865
+ country: nil,
866
+ postal_code: nil,
867
+ region: nil,
868
+ street_address: nil,
869
+ street_address2: nil
870
+ )
871
+ @city = city
872
+ @country = country
873
+ @postal_code = postal_code
874
+ @region = region
875
+ @street_address = street_address
876
+ @street_address2 = street_address2
877
+ end
878
+ end
879
+ # Address of the departure location.
880
+ attr_accessor :address
881
+ # Timestamp of departure.
882
+ attr_accessor :departs_at
883
+ # Identifier name or reference for the origin location.
884
+ attr_accessor :departure_location
885
+
886
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
887
+ @address = address
888
+ @departs_at = departs_at
889
+ @departure_location = departure_location
890
+ end
891
+ end
892
+
893
+ class Insurance < ::Stripe::RequestParams
894
+ # Insurance currency.
895
+ attr_accessor :currency
896
+ # Name of the company providing the insurance.
897
+ attr_accessor :insurance_company_name
898
+ # Type of insurance.
899
+ attr_accessor :insurance_type
900
+ # Price of insurance in cents.
901
+ attr_accessor :price
902
+
903
+ def initialize(
904
+ currency: nil,
905
+ insurance_company_name: nil,
906
+ insurance_type: nil,
907
+ price: nil
908
+ )
909
+ @currency = currency
910
+ @insurance_company_name = insurance_company_name
911
+ @insurance_type = insurance_type
912
+ @price = price
913
+ end
914
+ end
915
+
916
+ class Passenger < ::Stripe::RequestParams
917
+ # The family name of the person.
918
+ attr_accessor :family_name
919
+ # The given name of the person.
920
+ attr_accessor :given_name
921
+
922
+ def initialize(family_name: nil, given_name: nil)
923
+ @family_name = family_name
924
+ @given_name = given_name
925
+ end
926
+ end
927
+ # Name of associated or partner company for the service.
928
+ attr_accessor :affiliate_name
929
+ # Arrival details.
930
+ attr_accessor :arrival
931
+ # Name of transportation company.
932
+ attr_accessor :carrier_name
933
+ # Currency.
934
+ attr_accessor :currency
935
+ # Departure details.
936
+ attr_accessor :departure
937
+ # List of insurances for this reservation.
938
+ attr_accessor :insurances
939
+ # List of passengers that this reservation applies to.
940
+ attr_accessor :passengers
941
+ # Price in cents.
942
+ attr_accessor :price
943
+ # Ticket class.
944
+ attr_accessor :ticket_class
945
+
946
+ def initialize(
947
+ affiliate_name: nil,
948
+ arrival: nil,
949
+ carrier_name: nil,
950
+ currency: nil,
951
+ departure: nil,
952
+ insurances: nil,
953
+ passengers: nil,
954
+ price: nil,
955
+ ticket_class: nil
956
+ )
957
+ @affiliate_name = affiliate_name
958
+ @arrival = arrival
959
+ @carrier_name = carrier_name
960
+ @currency = currency
961
+ @departure = departure
962
+ @insurances = insurances
963
+ @passengers = passengers
964
+ @price = price
965
+ @ticket_class = ticket_class
966
+ end
967
+ end
968
+
969
+ class Insurance < ::Stripe::RequestParams
970
+ # Insurance currency.
971
+ attr_accessor :currency
972
+ # Name of the company providing the insurance.
973
+ attr_accessor :insurance_company_name
974
+ # Type of insurance
975
+ attr_accessor :insurance_type
976
+ # Price of insurance in cents.
977
+ attr_accessor :price
978
+
979
+ def initialize(
980
+ currency: nil,
981
+ insurance_company_name: nil,
982
+ insurance_type: nil,
983
+ price: nil
984
+ )
985
+ @currency = currency
986
+ @insurance_company_name = insurance_company_name
987
+ @insurance_type = insurance_type
988
+ @price = price
989
+ end
990
+ end
991
+
992
+ class MarketplaceSeller < ::Stripe::RequestParams
993
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
994
+ # The city or town.
995
+ attr_accessor :city
996
+ # The country in ISO 3166-1 alpha-2 format.
997
+ attr_accessor :country
998
+ # The postal code formatted according to country.
999
+ attr_accessor :postal_code
1000
+ # The state, county, province, or region formatted according to country.
1001
+ attr_accessor :region
1002
+ # Line 1 of the street address.
1003
+ attr_accessor :street_address
1004
+ # Line 2 of the street address.
1005
+ attr_accessor :street_address2
1006
+
1007
+ def initialize(
1008
+ city: nil,
1009
+ country: nil,
1010
+ postal_code: nil,
1011
+ region: nil,
1012
+ street_address: nil,
1013
+ street_address2: nil
1014
+ )
1015
+ @city = city
1016
+ @country = country
1017
+ @postal_code = postal_code
1018
+ @region = region
1019
+ @street_address = street_address
1020
+ @street_address2 = street_address2
1021
+ end
1022
+ end
1023
+ # The references to line items for purchases with multiple associated sub-sellers.
1024
+ attr_accessor :line_item_references
1025
+ # The address of the selling or delivering merchant.
1026
+ attr_accessor :marketplace_seller_address
1027
+ # The name of the marketplace seller.
1028
+ attr_accessor :marketplace_seller_name
1029
+ # The unique identifier for the marketplace seller.
1030
+ attr_accessor :marketplace_seller_reference
1031
+ # The number of transactions the sub-seller completed in the last 12 months.
1032
+ attr_accessor :number_of_transactions
1033
+ # The category of the product.
1034
+ attr_accessor :product_category
1035
+ # The date when the seller's account with the marketplace was last logged in.
1036
+ attr_accessor :seller_last_login_at
1037
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
1038
+ attr_accessor :seller_rating
1039
+ # The date when the seller's account with the marketplace was created.
1040
+ attr_accessor :seller_registered_at
1041
+ # The date when the seller's account with the marketplace was last updated.
1042
+ attr_accessor :seller_updated_at
1043
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
1044
+ attr_accessor :shipping_references
1045
+ # 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.
1046
+ attr_accessor :volume_of_transactions
1047
+
1048
+ def initialize(
1049
+ line_item_references: nil,
1050
+ marketplace_seller_address: nil,
1051
+ marketplace_seller_name: nil,
1052
+ marketplace_seller_reference: nil,
1053
+ number_of_transactions: nil,
1054
+ product_category: nil,
1055
+ seller_last_login_at: nil,
1056
+ seller_rating: nil,
1057
+ seller_registered_at: nil,
1058
+ seller_updated_at: nil,
1059
+ shipping_references: nil,
1060
+ volume_of_transactions: nil
1061
+ )
1062
+ @line_item_references = line_item_references
1063
+ @marketplace_seller_address = marketplace_seller_address
1064
+ @marketplace_seller_name = marketplace_seller_name
1065
+ @marketplace_seller_reference = marketplace_seller_reference
1066
+ @number_of_transactions = number_of_transactions
1067
+ @product_category = product_category
1068
+ @seller_last_login_at = seller_last_login_at
1069
+ @seller_rating = seller_rating
1070
+ @seller_registered_at = seller_registered_at
1071
+ @seller_updated_at = seller_updated_at
1072
+ @shipping_references = shipping_references
1073
+ @volume_of_transactions = volume_of_transactions
1074
+ end
1075
+ end
1076
+
1077
+ class RoundTripReservationDetail < ::Stripe::RequestParams
1078
+ class Arrival < ::Stripe::RequestParams
1079
+ class Address < ::Stripe::RequestParams
1080
+ # The city or town.
1081
+ attr_accessor :city
1082
+ # The country in ISO 3166-1 alpha-2 format.
1083
+ attr_accessor :country
1084
+ # The postal code formatted according to country.
1085
+ attr_accessor :postal_code
1086
+ # The state, county, province, or region formatted according to country.
1087
+ attr_accessor :region
1088
+ # Line 1 of the street address.
1089
+ attr_accessor :street_address
1090
+ # Line 2 of the street address.
1091
+ attr_accessor :street_address2
1092
+
1093
+ def initialize(
1094
+ city: nil,
1095
+ country: nil,
1096
+ postal_code: nil,
1097
+ region: nil,
1098
+ street_address: nil,
1099
+ street_address2: nil
1100
+ )
1101
+ @city = city
1102
+ @country = country
1103
+ @postal_code = postal_code
1104
+ @region = region
1105
+ @street_address = street_address
1106
+ @street_address2 = street_address2
1107
+ end
1108
+ end
1109
+ # Address of the arrival location.
1110
+ attr_accessor :address
1111
+ # Identifier name or reference for the arrival location.
1112
+ attr_accessor :arrival_location
1113
+
1114
+ def initialize(address: nil, arrival_location: nil)
1115
+ @address = address
1116
+ @arrival_location = arrival_location
1117
+ end
1118
+ end
1119
+
1120
+ class Departure < ::Stripe::RequestParams
1121
+ class Address < ::Stripe::RequestParams
1122
+ # The city or town.
1123
+ attr_accessor :city
1124
+ # The country in ISO 3166-1 alpha-2 format.
1125
+ attr_accessor :country
1126
+ # The postal code formatted according to country.
1127
+ attr_accessor :postal_code
1128
+ # The state, county, province, or region formatted according to country.
1129
+ attr_accessor :region
1130
+ # Line 1 of the street address.
1131
+ attr_accessor :street_address
1132
+ # Line 2 of the street address.
1133
+ attr_accessor :street_address2
1134
+
1135
+ def initialize(
1136
+ city: nil,
1137
+ country: nil,
1138
+ postal_code: nil,
1139
+ region: nil,
1140
+ street_address: nil,
1141
+ street_address2: nil
1142
+ )
1143
+ @city = city
1144
+ @country = country
1145
+ @postal_code = postal_code
1146
+ @region = region
1147
+ @street_address = street_address
1148
+ @street_address2 = street_address2
1149
+ end
1150
+ end
1151
+ # Address of the departure location.
1152
+ attr_accessor :address
1153
+ # Timestamp of departure.
1154
+ attr_accessor :departs_at
1155
+ # Identifier name or reference for the origin location.
1156
+ attr_accessor :departure_location
1157
+
1158
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
1159
+ @address = address
1160
+ @departs_at = departs_at
1161
+ @departure_location = departure_location
1162
+ end
1163
+ end
1164
+
1165
+ class Insurance < ::Stripe::RequestParams
1166
+ # Insurance currency.
1167
+ attr_accessor :currency
1168
+ # Name of the company providing the insurance.
1169
+ attr_accessor :insurance_company_name
1170
+ # Type of insurance.
1171
+ attr_accessor :insurance_type
1172
+ # Price of insurance in cents.
1173
+ attr_accessor :price
1174
+
1175
+ def initialize(
1176
+ currency: nil,
1177
+ insurance_company_name: nil,
1178
+ insurance_type: nil,
1179
+ price: nil
1180
+ )
1181
+ @currency = currency
1182
+ @insurance_company_name = insurance_company_name
1183
+ @insurance_type = insurance_type
1184
+ @price = price
1185
+ end
1186
+ end
1187
+
1188
+ class Passenger < ::Stripe::RequestParams
1189
+ # The family name of the person.
1190
+ attr_accessor :family_name
1191
+ # The given name of the person.
1192
+ attr_accessor :given_name
1193
+
1194
+ def initialize(family_name: nil, given_name: nil)
1195
+ @family_name = family_name
1196
+ @given_name = given_name
1197
+ end
1198
+ end
1199
+ # Name of associated or partner company for the service.
1200
+ attr_accessor :affiliate_name
1201
+ # Arrival details.
1202
+ attr_accessor :arrival
1203
+ # Name of transportation company.
1204
+ attr_accessor :carrier_name
1205
+ # Currency.
1206
+ attr_accessor :currency
1207
+ # Departure details.
1208
+ attr_accessor :departure
1209
+ # List of insurances for this reservation.
1210
+ attr_accessor :insurances
1211
+ # List of passengers that this reservation applies to.
1212
+ attr_accessor :passengers
1213
+ # Price in cents.
1214
+ attr_accessor :price
1215
+ # Ticket class.
1216
+ attr_accessor :ticket_class
1217
+
1218
+ def initialize(
1219
+ affiliate_name: nil,
1220
+ arrival: nil,
1221
+ carrier_name: nil,
1222
+ currency: nil,
1223
+ departure: nil,
1224
+ insurances: nil,
1225
+ passengers: nil,
1226
+ price: nil,
1227
+ ticket_class: nil
1228
+ )
1229
+ @affiliate_name = affiliate_name
1230
+ @arrival = arrival
1231
+ @carrier_name = carrier_name
1232
+ @currency = currency
1233
+ @departure = departure
1234
+ @insurances = insurances
1235
+ @passengers = passengers
1236
+ @price = price
1237
+ @ticket_class = ticket_class
1238
+ end
1239
+ end
1240
+
1241
+ class TrainReservationDetail < ::Stripe::RequestParams
1242
+ class Arrival < ::Stripe::RequestParams
1243
+ class Address < ::Stripe::RequestParams
1244
+ # The city or town.
1245
+ attr_accessor :city
1246
+ # The country in ISO 3166-1 alpha-2 format.
1247
+ attr_accessor :country
1248
+ # The postal code formatted according to country.
1249
+ attr_accessor :postal_code
1250
+ # The state, county, province, or region formatted according to country.
1251
+ attr_accessor :region
1252
+ # Line 1 of the street address.
1253
+ attr_accessor :street_address
1254
+ # Line 2 of the street address.
1255
+ attr_accessor :street_address2
1256
+
1257
+ def initialize(
1258
+ city: nil,
1259
+ country: nil,
1260
+ postal_code: nil,
1261
+ region: nil,
1262
+ street_address: nil,
1263
+ street_address2: nil
1264
+ )
1265
+ @city = city
1266
+ @country = country
1267
+ @postal_code = postal_code
1268
+ @region = region
1269
+ @street_address = street_address
1270
+ @street_address2 = street_address2
1271
+ end
1272
+ end
1273
+ # Address of the arrival location.
1274
+ attr_accessor :address
1275
+ # Identifier name or reference for the arrival location.
1276
+ attr_accessor :arrival_location
1277
+
1278
+ def initialize(address: nil, arrival_location: nil)
1279
+ @address = address
1280
+ @arrival_location = arrival_location
1281
+ end
1282
+ end
1283
+
1284
+ class Departure < ::Stripe::RequestParams
1285
+ class Address < ::Stripe::RequestParams
1286
+ # The city or town.
1287
+ attr_accessor :city
1288
+ # The country in ISO 3166-1 alpha-2 format.
1289
+ attr_accessor :country
1290
+ # The postal code formatted according to country.
1291
+ attr_accessor :postal_code
1292
+ # The state, county, province, or region formatted according to country.
1293
+ attr_accessor :region
1294
+ # Line 1 of the street address.
1295
+ attr_accessor :street_address
1296
+ # Line 2 of the street address.
1297
+ attr_accessor :street_address2
1298
+
1299
+ def initialize(
1300
+ city: nil,
1301
+ country: nil,
1302
+ postal_code: nil,
1303
+ region: nil,
1304
+ street_address: nil,
1305
+ street_address2: nil
1306
+ )
1307
+ @city = city
1308
+ @country = country
1309
+ @postal_code = postal_code
1310
+ @region = region
1311
+ @street_address = street_address
1312
+ @street_address2 = street_address2
1313
+ end
1314
+ end
1315
+ # Address of the departure location.
1316
+ attr_accessor :address
1317
+ # Timestamp of departure.
1318
+ attr_accessor :departs_at
1319
+ # Identifier name or reference for the origin location.
1320
+ attr_accessor :departure_location
1321
+
1322
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
1323
+ @address = address
1324
+ @departs_at = departs_at
1325
+ @departure_location = departure_location
1326
+ end
1327
+ end
1328
+
1329
+ class Insurance < ::Stripe::RequestParams
1330
+ # Insurance currency.
1331
+ attr_accessor :currency
1332
+ # Name of the company providing the insurance.
1333
+ attr_accessor :insurance_company_name
1334
+ # Type of insurance.
1335
+ attr_accessor :insurance_type
1336
+ # Price of insurance in cents.
1337
+ attr_accessor :price
1338
+
1339
+ def initialize(
1340
+ currency: nil,
1341
+ insurance_company_name: nil,
1342
+ insurance_type: nil,
1343
+ price: nil
1344
+ )
1345
+ @currency = currency
1346
+ @insurance_company_name = insurance_company_name
1347
+ @insurance_type = insurance_type
1348
+ @price = price
1349
+ end
1350
+ end
1351
+
1352
+ class Passenger < ::Stripe::RequestParams
1353
+ # The family name of the person.
1354
+ attr_accessor :family_name
1355
+ # The given name of the person.
1356
+ attr_accessor :given_name
1357
+
1358
+ def initialize(family_name: nil, given_name: nil)
1359
+ @family_name = family_name
1360
+ @given_name = given_name
1361
+ end
1362
+ end
1363
+ # Name of associated or partner company for the service.
1364
+ attr_accessor :affiliate_name
1365
+ # Arrival details.
1366
+ attr_accessor :arrival
1367
+ # Name of transportation company.
1368
+ attr_accessor :carrier_name
1369
+ # Currency.
1370
+ attr_accessor :currency
1371
+ # Departure details.
1372
+ attr_accessor :departure
1373
+ # List of insurances for this reservation.
1374
+ attr_accessor :insurances
1375
+ # List of passengers that this reservation applies to.
1376
+ attr_accessor :passengers
1377
+ # Price in cents.
1378
+ attr_accessor :price
1379
+ # Ticket class.
1380
+ attr_accessor :ticket_class
1381
+
1382
+ def initialize(
1383
+ affiliate_name: nil,
1384
+ arrival: nil,
1385
+ carrier_name: nil,
1386
+ currency: nil,
1387
+ departure: nil,
1388
+ insurances: nil,
1389
+ passengers: nil,
1390
+ price: nil,
1391
+ ticket_class: nil
1392
+ )
1393
+ @affiliate_name = affiliate_name
1394
+ @arrival = arrival
1395
+ @carrier_name = carrier_name
1396
+ @currency = currency
1397
+ @departure = departure
1398
+ @insurances = insurances
1399
+ @passengers = passengers
1400
+ @price = price
1401
+ @ticket_class = ticket_class
1402
+ end
1403
+ end
1404
+
1405
+ class Voucher < ::Stripe::RequestParams
1406
+ # Name of associated or partner company for this voucher.
1407
+ attr_accessor :affiliate_name
1408
+ # The voucher validity end time.
1409
+ attr_accessor :ends_at
1410
+ # The voucher validity start time.
1411
+ attr_accessor :starts_at
1412
+ # The issuer or provider of this voucher.
1413
+ attr_accessor :voucher_company
1414
+ # The name or reference to identify the voucher.
1415
+ attr_accessor :voucher_name
1416
+ # The type of this voucher.
1417
+ attr_accessor :voucher_type
1418
+
1419
+ def initialize(
1420
+ affiliate_name: nil,
1421
+ ends_at: nil,
1422
+ starts_at: nil,
1423
+ voucher_company: nil,
1424
+ voucher_name: nil,
1425
+ voucher_type: nil
1426
+ )
1427
+ @affiliate_name = affiliate_name
1428
+ @ends_at = ends_at
1429
+ @starts_at = starts_at
1430
+ @voucher_company = voucher_company
1431
+ @voucher_name = voucher_name
1432
+ @voucher_type = voucher_type
1433
+ end
1434
+ end
1435
+ # Supplementary bus reservation details.
1436
+ attr_accessor :bus_reservation_details
1437
+ # Supplementary event reservation details.
1438
+ attr_accessor :event_reservation_details
1439
+ # Supplementary ferry reservation details.
1440
+ attr_accessor :ferry_reservation_details
1441
+ # Supplementary insurance details.
1442
+ attr_accessor :insurances
1443
+ # Supplementary marketplace seller details.
1444
+ attr_accessor :marketplace_sellers
1445
+ # Supplementary round trip reservation details.
1446
+ attr_accessor :round_trip_reservation_details
1447
+ # Supplementary train reservation details.
1448
+ attr_accessor :train_reservation_details
1449
+ # Voucher details, such as a gift card or discount code.
1450
+ attr_accessor :vouchers
1451
+
1452
+ def initialize(
1453
+ bus_reservation_details: nil,
1454
+ event_reservation_details: nil,
1455
+ ferry_reservation_details: nil,
1456
+ insurances: nil,
1457
+ marketplace_sellers: nil,
1458
+ round_trip_reservation_details: nil,
1459
+ train_reservation_details: nil,
1460
+ vouchers: nil
1461
+ )
1462
+ @bus_reservation_details = bus_reservation_details
1463
+ @event_reservation_details = event_reservation_details
1464
+ @ferry_reservation_details = ferry_reservation_details
1465
+ @insurances = insurances
1466
+ @marketplace_sellers = marketplace_sellers
1467
+ @round_trip_reservation_details = round_trip_reservation_details
1468
+ @train_reservation_details = train_reservation_details
1469
+ @vouchers = vouchers
1470
+ end
1471
+ end
1472
+ # Controls when the funds are captured from the customer's account.
1473
+ #
1474
+ # 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.
1475
+ #
1476
+ # 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.
1477
+ attr_accessor :capture_method
1478
+ # On-demand details if setting up or charging an on-demand payment.
1479
+ attr_accessor :on_demand
1480
+ # Preferred language of the Klarna authorization page that the customer is redirected to
1481
+ attr_accessor :preferred_locale
1482
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1483
+ #
1484
+ # 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.
1485
+ #
1486
+ # 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.
1487
+ #
1488
+ # 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).
1489
+ #
1490
+ # 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`.
1491
+ attr_accessor :setup_future_usage
1492
+ # Subscription details if setting up or charging a subscription.
1493
+ attr_accessor :subscriptions
1494
+ # Supplementary Purchase Data for the corresponding Klarna payment
1495
+ attr_accessor :supplementary_purchase_data
1496
+
1497
+ def initialize(
1498
+ capture_method: nil,
1499
+ on_demand: nil,
1500
+ preferred_locale: nil,
1501
+ setup_future_usage: nil,
1502
+ subscriptions: nil,
1503
+ supplementary_purchase_data: nil
1504
+ )
1505
+ @capture_method = capture_method
1506
+ @on_demand = on_demand
1507
+ @preferred_locale = preferred_locale
1508
+ @setup_future_usage = setup_future_usage
1509
+ @subscriptions = subscriptions
1510
+ @supplementary_purchase_data = supplementary_purchase_data
1511
+ end
1512
+ end
1513
+
1514
+ class Link < ::Stripe::RequestParams
1515
+ # Controls when the funds are captured from the customer's account.
1516
+ #
1517
+ # 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.
1518
+ #
1519
+ # 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.
1520
+ attr_accessor :capture_method
1521
+ # [Deprecated] This is a legacy parameter that no longer has any function.
1522
+ attr_accessor :persistent_token
1523
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1524
+ #
1525
+ # 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.
1526
+ #
1527
+ # 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.
1528
+ #
1529
+ # 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).
1530
+ #
1531
+ # 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`.
1532
+ attr_accessor :setup_future_usage
1533
+
1534
+ def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil)
1535
+ @capture_method = capture_method
1536
+ @persistent_token = persistent_token
1537
+ @setup_future_usage = setup_future_usage
1538
+ end
1539
+ end
1540
+
1541
+ class Oxxo < ::Stripe::RequestParams
1542
+ # 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.
1543
+ attr_accessor :expires_after_days
1544
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1545
+ #
1546
+ # 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.
1547
+ #
1548
+ # 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.
1549
+ #
1550
+ # 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).
1551
+ #
1552
+ # 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`.
1553
+ attr_accessor :setup_future_usage
1554
+
1555
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1556
+ @expires_after_days = expires_after_days
1557
+ @setup_future_usage = setup_future_usage
1558
+ end
1559
+ end
1560
+
1561
+ class P24 < ::Stripe::RequestParams
1562
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1563
+ #
1564
+ # 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.
1565
+ #
1566
+ # 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.
1567
+ #
1568
+ # 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).
1569
+ #
1570
+ # 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`.
1571
+ attr_accessor :setup_future_usage
1572
+ # Confirm that the payer has accepted the P24 terms and conditions.
1573
+ attr_accessor :tos_shown_and_accepted
1574
+
1575
+ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1576
+ @setup_future_usage = setup_future_usage
1577
+ @tos_shown_and_accepted = tos_shown_and_accepted
1578
+ end
1579
+ end
1580
+
1581
+ class Paypal < ::Stripe::RequestParams
1582
+ class LineItem < ::Stripe::RequestParams
1583
+ class Tax < ::Stripe::RequestParams
1584
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
1585
+ attr_accessor :amount
1586
+ # The tax behavior for the line item.
1587
+ attr_accessor :behavior
1588
+
1589
+ def initialize(amount: nil, behavior: nil)
1590
+ @amount = amount
1591
+ @behavior = behavior
1592
+ end
1593
+ end
1594
+ # Type of the line item.
1595
+ attr_accessor :category
1596
+ # Description of the line item.
1597
+ attr_accessor :description
1598
+ # Descriptive name of the line item.
1599
+ attr_accessor :name
1600
+ # Quantity of the line item. Must be a positive number.
1601
+ attr_accessor :quantity
1602
+ # Client facing stock keeping unit, article number or similar.
1603
+ attr_accessor :sku
1604
+ # The Stripe account ID of the connected account that sells the item.
1605
+ attr_accessor :sold_by
1606
+ # The tax information for the line item.
1607
+ attr_accessor :tax
1608
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
1609
+ attr_accessor :unit_amount
1610
+
1611
+ def initialize(
1612
+ category: nil,
1613
+ description: nil,
1614
+ name: nil,
1615
+ quantity: nil,
1616
+ sku: nil,
1617
+ sold_by: nil,
1618
+ tax: nil,
1619
+ unit_amount: nil
1620
+ )
1621
+ @category = category
1622
+ @description = description
1623
+ @name = name
1624
+ @quantity = quantity
1625
+ @sku = sku
1626
+ @sold_by = sold_by
1627
+ @tax = tax
1628
+ @unit_amount = unit_amount
1629
+ end
1630
+ end
1631
+ # Controls when the funds will be captured from the customer's account.
1632
+ attr_accessor :capture_method
1633
+ # The line items purchased by the customer.
1634
+ attr_accessor :line_items
1635
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1636
+ attr_accessor :preferred_locale
1637
+ # 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.
1638
+ attr_accessor :reference
1639
+ # 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.
1640
+ attr_accessor :reference_id
1641
+ # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1642
+ attr_accessor :risk_correlation_id
1643
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1644
+ #
1645
+ # 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.
1646
+ #
1647
+ # 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.
1648
+ #
1649
+ # 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).
1650
+ #
1651
+ # 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`.
1652
+ attr_accessor :setup_future_usage
1653
+ # 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.
1654
+ attr_accessor :subsellers
1655
+
1656
+ def initialize(
1657
+ capture_method: nil,
1658
+ line_items: nil,
1659
+ preferred_locale: nil,
1660
+ reference: nil,
1661
+ reference_id: nil,
1662
+ risk_correlation_id: nil,
1663
+ setup_future_usage: nil,
1664
+ subsellers: nil
1665
+ )
1666
+ @capture_method = capture_method
1667
+ @line_items = line_items
1668
+ @preferred_locale = preferred_locale
1669
+ @reference = reference
1670
+ @reference_id = reference_id
1671
+ @risk_correlation_id = risk_correlation_id
1672
+ @setup_future_usage = setup_future_usage
1673
+ @subsellers = subsellers
1674
+ end
1675
+ end
1676
+
1677
+ class SepaDebit < ::Stripe::RequestParams
1678
+ class MandateOptions < ::Stripe::RequestParams
1679
+ # 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'.
1680
+ attr_accessor :reference_prefix
1681
+
1682
+ def initialize(reference_prefix: nil)
1683
+ @reference_prefix = reference_prefix
1684
+ end
1685
+ end
1686
+ # Additional fields for Mandate creation
1687
+ attr_accessor :mandate_options
1688
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1689
+ #
1690
+ # 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.
1691
+ #
1692
+ # 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.
1693
+ #
1694
+ # 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).
1695
+ #
1696
+ # 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`.
1697
+ attr_accessor :setup_future_usage
1698
+ # 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.
1699
+ attr_accessor :target_date
1700
+
1701
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1702
+ @mandate_options = mandate_options
1703
+ @setup_future_usage = setup_future_usage
1704
+ @target_date = target_date
1705
+ end
1706
+ end
1707
+
1708
+ class Sofort < ::Stripe::RequestParams
1709
+ # Language shown to the payer on redirect.
1710
+ attr_accessor :preferred_language
1711
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1712
+ #
1713
+ # 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.
1714
+ #
1715
+ # 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.
1716
+ #
1717
+ # 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).
1718
+ #
1719
+ # 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`.
1720
+ attr_accessor :setup_future_usage
1721
+
1722
+ def initialize(preferred_language: nil, setup_future_usage: nil)
1723
+ @preferred_language = preferred_language
1724
+ @setup_future_usage = setup_future_usage
1725
+ end
1726
+ end
1727
+
1728
+ class WechatPay < ::Stripe::RequestParams
1729
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
1730
+ attr_accessor :app_id
1731
+ # The client type that the end customer will pay from
1732
+ attr_accessor :client
1733
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1734
+ #
1735
+ # 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.
1736
+ #
1737
+ # 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.
1738
+ #
1739
+ # 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).
1740
+ #
1741
+ # 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`.
1742
+ attr_accessor :setup_future_usage
1743
+
1744
+ def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1745
+ @app_id = app_id
1746
+ @client = client
1747
+ @setup_future_usage = setup_future_usage
1748
+ end
1749
+ end
1750
+ # If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
1751
+ attr_accessor :acss_debit
1752
+ # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
1753
+ attr_accessor :afterpay_clearpay
1754
+ # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
1755
+ attr_accessor :alipay
1756
+ # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
1757
+ attr_accessor :bancontact
1758
+ # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
1759
+ attr_accessor :card
1760
+ # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
1761
+ attr_accessor :customer_balance
1762
+ # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
1763
+ attr_accessor :ideal
1764
+ # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
1765
+ attr_accessor :klarna
1766
+ # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
1767
+ attr_accessor :link
1768
+ # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
1769
+ attr_accessor :oxxo
1770
+ # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
1771
+ attr_accessor :p24
1772
+ # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
1773
+ attr_accessor :paypal
1774
+ # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
1775
+ attr_accessor :sepa_debit
1776
+ # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
1777
+ attr_accessor :sofort
1778
+ # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
1779
+ attr_accessor :wechat_pay
1780
+
1781
+ def initialize(
1782
+ acss_debit: nil,
1783
+ afterpay_clearpay: nil,
1784
+ alipay: nil,
1785
+ bancontact: nil,
1786
+ card: nil,
1787
+ customer_balance: nil,
1788
+ ideal: nil,
1789
+ klarna: nil,
1790
+ link: nil,
1791
+ oxxo: nil,
1792
+ p24: nil,
1793
+ paypal: nil,
1794
+ sepa_debit: nil,
1795
+ sofort: nil,
1796
+ wechat_pay: nil
1797
+ )
1798
+ @acss_debit = acss_debit
1799
+ @afterpay_clearpay = afterpay_clearpay
1800
+ @alipay = alipay
1801
+ @bancontact = bancontact
1802
+ @card = card
1803
+ @customer_balance = customer_balance
1804
+ @ideal = ideal
1805
+ @klarna = klarna
1806
+ @link = link
1807
+ @oxxo = oxxo
1808
+ @p24 = p24
1809
+ @paypal = paypal
1810
+ @sepa_debit = sepa_debit
1811
+ @sofort = sofort
1812
+ @wechat_pay = wechat_pay
1813
+ end
1814
+ end
1815
+
1816
+ class TransferData < ::Stripe::RequestParams
1817
+ # 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.
1818
+ attr_accessor :amount
1819
+ # ID of the Connected account receiving the transfer.
1820
+ attr_accessor :destination
1821
+
1822
+ def initialize(amount: nil, destination: nil)
1823
+ @amount = amount
1824
+ @destination = destination
1825
+ end
1826
+ end
1827
+ # 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.
1828
+ attr_accessor :application_fee_amount
1829
+ # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
1830
+ attr_accessor :payment_method_options
1831
+ # 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).
1832
+ attr_accessor :payment_method_types
1833
+ # The URL to redirect the customer to after they authenticate their payment.
1834
+ attr_accessor :return_url
1835
+ # 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.
1836
+ attr_accessor :statement_descriptor
1837
+ # 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.
1838
+ attr_accessor :statement_descriptor_suffix
1839
+ # Provides configuration for completing a transfer for the order after it is paid.
1840
+ attr_accessor :transfer_data
1841
+
1842
+ def initialize(
1843
+ application_fee_amount: nil,
1844
+ payment_method_options: nil,
1845
+ payment_method_types: nil,
1846
+ return_url: nil,
1847
+ statement_descriptor: nil,
1848
+ statement_descriptor_suffix: nil,
1849
+ transfer_data: nil
1850
+ )
1851
+ @application_fee_amount = application_fee_amount
1852
+ @payment_method_options = payment_method_options
1853
+ @payment_method_types = payment_method_types
1854
+ @return_url = return_url
1855
+ @statement_descriptor = statement_descriptor
1856
+ @statement_descriptor_suffix = statement_descriptor_suffix
1857
+ @transfer_data = transfer_data
1858
+ end
1859
+ end
1860
+ # Settings describing how the order should configure generated PaymentIntents.
1861
+ attr_accessor :settings
1862
+
1863
+ def initialize(settings: nil)
1864
+ @settings = settings
1865
+ end
1866
+ end
1867
+
1868
+ class ShippingCost < ::Stripe::RequestParams
1869
+ class ShippingRateData < ::Stripe::RequestParams
1870
+ class DeliveryEstimate < ::Stripe::RequestParams
1871
+ class Maximum < ::Stripe::RequestParams
1872
+ # A unit of time.
1873
+ attr_accessor :unit
1874
+ # Must be greater than 0.
1875
+ attr_accessor :value
1876
+
1877
+ def initialize(unit: nil, value: nil)
1878
+ @unit = unit
1879
+ @value = value
1880
+ end
1881
+ end
1882
+
1883
+ class Minimum < ::Stripe::RequestParams
1884
+ # A unit of time.
1885
+ attr_accessor :unit
1886
+ # Must be greater than 0.
1887
+ attr_accessor :value
1888
+
1889
+ def initialize(unit: nil, value: nil)
1890
+ @unit = unit
1891
+ @value = value
1892
+ end
1893
+ end
1894
+ # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
1895
+ attr_accessor :maximum
1896
+ # The lower bound of the estimated range. If empty, represents no lower bound.
1897
+ attr_accessor :minimum
1898
+
1899
+ def initialize(maximum: nil, minimum: nil)
1900
+ @maximum = maximum
1901
+ @minimum = minimum
1902
+ end
1903
+ end
1904
+
1905
+ class FixedAmount < ::Stripe::RequestParams
1906
+ class CurrencyOptions < ::Stripe::RequestParams
1907
+ # A non-negative integer in cents representing how much to charge.
1908
+ attr_accessor :amount
1909
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1910
+ attr_accessor :tax_behavior
1911
+
1912
+ def initialize(amount: nil, tax_behavior: nil)
1913
+ @amount = amount
1914
+ @tax_behavior = tax_behavior
1915
+ end
1916
+ end
1917
+ # A non-negative integer in cents representing how much to charge.
1918
+ attr_accessor :amount
1919
+ # 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).
1920
+ attr_accessor :currency
1921
+ # 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).
1922
+ attr_accessor :currency_options
1923
+
1924
+ def initialize(amount: nil, currency: nil, currency_options: nil)
1925
+ @amount = amount
1926
+ @currency = currency
1927
+ @currency_options = currency_options
1928
+ end
1929
+ end
1930
+ # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
1931
+ attr_accessor :delivery_estimate
1932
+ # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1933
+ attr_accessor :display_name
1934
+ # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1935
+ attr_accessor :fixed_amount
1936
+ # 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`.
1937
+ attr_accessor :metadata
1938
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1939
+ attr_accessor :tax_behavior
1940
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1941
+ attr_accessor :tax_code
1942
+ # The type of calculation to use on the shipping rate.
1943
+ attr_accessor :type
1944
+
1945
+ def initialize(
1946
+ delivery_estimate: nil,
1947
+ display_name: nil,
1948
+ fixed_amount: nil,
1949
+ metadata: nil,
1950
+ tax_behavior: nil,
1951
+ tax_code: nil,
1952
+ type: nil
1953
+ )
1954
+ @delivery_estimate = delivery_estimate
1955
+ @display_name = display_name
1956
+ @fixed_amount = fixed_amount
1957
+ @metadata = metadata
1958
+ @tax_behavior = tax_behavior
1959
+ @tax_code = tax_code
1960
+ @type = type
1961
+ end
1962
+ end
1963
+ # The ID of the shipping rate to use for this order.
1964
+ attr_accessor :shipping_rate
1965
+ # Parameters to create a new ad-hoc shipping rate for this order.
1966
+ attr_accessor :shipping_rate_data
1967
+
1968
+ def initialize(shipping_rate: nil, shipping_rate_data: nil)
1969
+ @shipping_rate = shipping_rate
1970
+ @shipping_rate_data = shipping_rate_data
1971
+ end
1972
+ end
1973
+
1974
+ class ShippingDetails < ::Stripe::RequestParams
1975
+ class Address < ::Stripe::RequestParams
1976
+ # City, district, suburb, town, or village.
1977
+ attr_accessor :city
1978
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1979
+ attr_accessor :country
1980
+ # Address line 1, such as the street, PO Box, or company name.
1981
+ attr_accessor :line1
1982
+ # Address line 2, such as the apartment, suite, unit, or building.
1983
+ attr_accessor :line2
1984
+ # ZIP or postal code.
1985
+ attr_accessor :postal_code
1986
+ # 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".
1987
+ attr_accessor :state
1988
+
1989
+ def initialize(
1990
+ city: nil,
1991
+ country: nil,
1992
+ line1: nil,
1993
+ line2: nil,
1994
+ postal_code: nil,
1995
+ state: nil
1996
+ )
1997
+ @city = city
1998
+ @country = country
1999
+ @line1 = line1
2000
+ @line2 = line2
2001
+ @postal_code = postal_code
2002
+ @state = state
2003
+ end
2004
+ end
2005
+ # The shipping address for the order.
2006
+ attr_accessor :address
2007
+ # The name of the recipient of the order.
2008
+ attr_accessor :name
2009
+ # The phone number (including extension) for the recipient of the order.
2010
+ attr_accessor :phone
2011
+
2012
+ def initialize(address: nil, name: nil, phone: nil)
2013
+ @address = address
2014
+ @name = name
2015
+ @phone = phone
2016
+ end
2017
+ end
2018
+
2019
+ class TaxDetails < ::Stripe::RequestParams
2020
+ class TaxId < ::Stripe::RequestParams
2021
+ # 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`
2022
+ attr_accessor :type
2023
+ # Value of the tax ID.
2024
+ attr_accessor :value
2025
+
2026
+ def initialize(type: nil, value: nil)
2027
+ @type = type
2028
+ @value = value
2029
+ end
2030
+ end
2031
+ # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
2032
+ attr_accessor :tax_exempt
2033
+ # The purchaser's tax IDs to be used for this order.
2034
+ attr_accessor :tax_ids
2035
+
2036
+ def initialize(tax_exempt: nil, tax_ids: nil)
2037
+ @tax_exempt = tax_exempt
2038
+ @tax_ids = tax_ids
2039
+ end
2040
+ end
2041
+ # Settings for automatic tax calculation for this order.
2042
+ attr_accessor :automatic_tax
2043
+ # 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.
2044
+ attr_accessor :billing_details
2045
+ # 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).
2046
+ attr_accessor :currency
2047
+ # The customer associated with this order.
2048
+ attr_accessor :customer
2049
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2050
+ attr_accessor :description
2051
+ # The coupons, promotion codes, and/or discounts to apply to the order.
2052
+ attr_accessor :discounts
2053
+ # Specifies which fields in the response should be expanded.
2054
+ attr_accessor :expand
2055
+ # The IP address of the purchaser for this order.
2056
+ attr_accessor :ip_address
2057
+ # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
2058
+ attr_accessor :line_items
2059
+ # 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`.
2060
+ attr_accessor :metadata
2061
+ # Payment information associated with the order, including payment settings.
2062
+ attr_accessor :payment
2063
+ # Settings for the customer cost of shipping for this order.
2064
+ attr_accessor :shipping_cost
2065
+ # Shipping details for the order.
2066
+ attr_accessor :shipping_details
2067
+ # Additional tax details about the purchaser to be used for this order.
2068
+ attr_accessor :tax_details
2069
+
2070
+ def initialize(
2071
+ automatic_tax: nil,
2072
+ billing_details: nil,
2073
+ currency: nil,
2074
+ customer: nil,
2075
+ description: nil,
2076
+ discounts: nil,
2077
+ expand: nil,
2078
+ ip_address: nil,
2079
+ line_items: nil,
2080
+ metadata: nil,
2081
+ payment: nil,
2082
+ shipping_cost: nil,
2083
+ shipping_details: nil,
2084
+ tax_details: nil
2085
+ )
2086
+ @automatic_tax = automatic_tax
2087
+ @billing_details = billing_details
2088
+ @currency = currency
2089
+ @customer = customer
2090
+ @description = description
2091
+ @discounts = discounts
2092
+ @expand = expand
2093
+ @ip_address = ip_address
2094
+ @line_items = line_items
2095
+ @metadata = metadata
2096
+ @payment = payment
2097
+ @shipping_cost = shipping_cost
2098
+ @shipping_details = shipping_details
2099
+ @tax_details = tax_details
2100
+ end
2101
+
2102
+ def self.field_encodings
2103
+ @field_encodings = {
2104
+ line_items: {
2105
+ kind: :array,
2106
+ element: {
2107
+ kind: :object,
2108
+ fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2109
+ },
2110
+ },
2111
+ }
2112
+ end
2113
+ end
2114
+ end