stripe 18.0.0 → 18.1.0.pre.alpha.1

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