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
@@ -3,6 +3,15 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentCreateParams < ::Stripe::RequestParams
6
+ class AllocatedFunds < ::Stripe::RequestParams
7
+ # Whether Allocated Funds creation is enabled for this PaymentIntent.
8
+ attr_accessor :enabled
9
+
10
+ def initialize(enabled: nil)
11
+ @enabled = enabled
12
+ end
13
+ end
14
+
6
15
  class AmountDetails < ::Stripe::RequestParams
7
16
  class LineItem < ::Stripe::RequestParams
8
17
  class PaymentMethodOptions < ::Stripe::RequestParams
@@ -253,20 +262,1667 @@ module Stripe
253
262
  end
254
263
 
255
264
  class PaymentDetails < ::Stripe::RequestParams
265
+ class Benefit < ::Stripe::RequestParams
266
+ class FrMealVoucher < ::Stripe::RequestParams
267
+ # The 14-digit SIRET of the meal voucher acceptor.
268
+ attr_accessor :siret
269
+
270
+ def initialize(siret: nil)
271
+ @siret = siret
272
+ end
273
+ end
274
+ # French meal voucher benefit details for this PaymentIntent.
275
+ attr_accessor :fr_meal_voucher
276
+
277
+ def initialize(fr_meal_voucher: nil)
278
+ @fr_meal_voucher = fr_meal_voucher
279
+ end
280
+ end
281
+
282
+ class CarRental < ::Stripe::RequestParams
283
+ class Affiliate < ::Stripe::RequestParams
284
+ # The name of the affiliate that originated the purchase.
285
+ attr_accessor :name
286
+
287
+ def initialize(name: nil)
288
+ @name = name
289
+ end
290
+ end
291
+
292
+ class Delivery < ::Stripe::RequestParams
293
+ class Recipient < ::Stripe::RequestParams
294
+ # The email of the recipient the ticket is delivered to.
295
+ attr_accessor :email
296
+ # The name of the recipient the ticket is delivered to.
297
+ attr_accessor :name
298
+ # The phone number of the recipient the ticket is delivered to.
299
+ attr_accessor :phone
300
+
301
+ def initialize(email: nil, name: nil, phone: nil)
302
+ @email = email
303
+ @name = name
304
+ @phone = phone
305
+ end
306
+ end
307
+ # The delivery method for the payment
308
+ attr_accessor :mode
309
+ # Details of the recipient.
310
+ attr_accessor :recipient
311
+
312
+ def initialize(mode: nil, recipient: nil)
313
+ @mode = mode
314
+ @recipient = recipient
315
+ end
316
+ end
317
+
318
+ class Distance < ::Stripe::RequestParams
319
+ # Distance traveled.
320
+ attr_accessor :amount
321
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
322
+ attr_accessor :unit
323
+
324
+ def initialize(amount: nil, unit: nil)
325
+ @amount = amount
326
+ @unit = unit
327
+ end
328
+ end
329
+
330
+ class Driver < ::Stripe::RequestParams
331
+ # Driver's identification number.
332
+ attr_accessor :driver_identification_number
333
+ # Driver's tax number.
334
+ attr_accessor :driver_tax_number
335
+ # Full name of the person or entity on the car reservation.
336
+ attr_accessor :name
337
+
338
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
339
+ @driver_identification_number = driver_identification_number
340
+ @driver_tax_number = driver_tax_number
341
+ @name = name
342
+ end
343
+ end
344
+
345
+ class PickupAddress < ::Stripe::RequestParams
346
+ # City, district, suburb, town, or village.
347
+ attr_accessor :city
348
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
349
+ attr_accessor :country
350
+ # Address line 1, such as the street, PO Box, or company name.
351
+ attr_accessor :line1
352
+ # Address line 2, such as the apartment, suite, unit, or building.
353
+ attr_accessor :line2
354
+ # ZIP or postal code.
355
+ attr_accessor :postal_code
356
+ # State, county, province, or region.
357
+ attr_accessor :state
358
+
359
+ def initialize(
360
+ city: nil,
361
+ country: nil,
362
+ line1: nil,
363
+ line2: nil,
364
+ postal_code: nil,
365
+ state: nil
366
+ )
367
+ @city = city
368
+ @country = country
369
+ @line1 = line1
370
+ @line2 = line2
371
+ @postal_code = postal_code
372
+ @state = state
373
+ end
374
+ end
375
+
376
+ class ReturnAddress < ::Stripe::RequestParams
377
+ # City, district, suburb, town, or village.
378
+ attr_accessor :city
379
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
380
+ attr_accessor :country
381
+ # Address line 1, such as the street, PO Box, or company name.
382
+ attr_accessor :line1
383
+ # Address line 2, such as the apartment, suite, unit, or building.
384
+ attr_accessor :line2
385
+ # ZIP or postal code.
386
+ attr_accessor :postal_code
387
+ # State, county, province, or region.
388
+ attr_accessor :state
389
+
390
+ def initialize(
391
+ city: nil,
392
+ country: nil,
393
+ line1: nil,
394
+ line2: nil,
395
+ postal_code: nil,
396
+ state: nil
397
+ )
398
+ @city = city
399
+ @country = country
400
+ @line1 = line1
401
+ @line2 = line2
402
+ @postal_code = postal_code
403
+ @state = state
404
+ end
405
+ end
406
+ # Affiliate details for this purchase.
407
+ attr_accessor :affiliate
408
+ # The booking number associated with the car rental.
409
+ attr_accessor :booking_number
410
+ # Class code of the car.
411
+ attr_accessor :car_class_code
412
+ # Make of the car.
413
+ attr_accessor :car_make
414
+ # Model of the car.
415
+ attr_accessor :car_model
416
+ # The name of the rental car company.
417
+ attr_accessor :company
418
+ # The customer service phone number of the car rental company.
419
+ attr_accessor :customer_service_phone_number
420
+ # Number of days the car is being rented.
421
+ attr_accessor :days_rented
422
+ # Delivery details for this purchase.
423
+ attr_accessor :delivery
424
+ # The details of the distance traveled during the rental period.
425
+ attr_accessor :distance
426
+ # The details of the passengers in the travel reservation
427
+ attr_accessor :drivers
428
+ # List of additional charges being billed.
429
+ attr_accessor :extra_charges
430
+ # Indicates if the customer did not keep nor cancel their booking.
431
+ attr_accessor :no_show
432
+ # Car pick-up address.
433
+ attr_accessor :pickup_address
434
+ # Car pick-up time. Measured in seconds since the Unix epoch.
435
+ attr_accessor :pickup_at
436
+ # Name of the pickup location.
437
+ attr_accessor :pickup_location_name
438
+ # Rental rate.
439
+ attr_accessor :rate_amount
440
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
441
+ attr_accessor :rate_interval
442
+ # The name of the person or entity renting the car.
443
+ attr_accessor :renter_name
444
+ # Car return address.
445
+ attr_accessor :return_address
446
+ # Car return time. Measured in seconds since the Unix epoch.
447
+ attr_accessor :return_at
448
+ # Name of the return location.
449
+ attr_accessor :return_location_name
450
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
451
+ attr_accessor :tax_exempt
452
+ # The vehicle identification number.
453
+ attr_accessor :vehicle_identification_number
454
+
455
+ def initialize(
456
+ affiliate: nil,
457
+ booking_number: nil,
458
+ car_class_code: nil,
459
+ car_make: nil,
460
+ car_model: nil,
461
+ company: nil,
462
+ customer_service_phone_number: nil,
463
+ days_rented: nil,
464
+ delivery: nil,
465
+ distance: nil,
466
+ drivers: nil,
467
+ extra_charges: nil,
468
+ no_show: nil,
469
+ pickup_address: nil,
470
+ pickup_at: nil,
471
+ pickup_location_name: nil,
472
+ rate_amount: nil,
473
+ rate_interval: nil,
474
+ renter_name: nil,
475
+ return_address: nil,
476
+ return_at: nil,
477
+ return_location_name: nil,
478
+ tax_exempt: nil,
479
+ vehicle_identification_number: nil
480
+ )
481
+ @affiliate = affiliate
482
+ @booking_number = booking_number
483
+ @car_class_code = car_class_code
484
+ @car_make = car_make
485
+ @car_model = car_model
486
+ @company = company
487
+ @customer_service_phone_number = customer_service_phone_number
488
+ @days_rented = days_rented
489
+ @delivery = delivery
490
+ @distance = distance
491
+ @drivers = drivers
492
+ @extra_charges = extra_charges
493
+ @no_show = no_show
494
+ @pickup_address = pickup_address
495
+ @pickup_at = pickup_at
496
+ @pickup_location_name = pickup_location_name
497
+ @rate_amount = rate_amount
498
+ @rate_interval = rate_interval
499
+ @renter_name = renter_name
500
+ @return_address = return_address
501
+ @return_at = return_at
502
+ @return_location_name = return_location_name
503
+ @tax_exempt = tax_exempt
504
+ @vehicle_identification_number = vehicle_identification_number
505
+ end
506
+ end
507
+
508
+ class CarRentalDatum < ::Stripe::RequestParams
509
+ class Affiliate < ::Stripe::RequestParams
510
+ # Affiliate partner code.
511
+ attr_accessor :code
512
+ # Name of affiliate partner.
513
+ attr_accessor :name
514
+
515
+ def initialize(code: nil, name: nil)
516
+ @code = code
517
+ @name = name
518
+ end
519
+ end
520
+
521
+ class Distance < ::Stripe::RequestParams
522
+ # Distance traveled.
523
+ attr_accessor :amount
524
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
525
+ attr_accessor :unit
526
+
527
+ def initialize(amount: nil, unit: nil)
528
+ @amount = amount
529
+ @unit = unit
530
+ end
531
+ end
532
+
533
+ class Driver < ::Stripe::RequestParams
534
+ class DateOfBirth < ::Stripe::RequestParams
535
+ # Day of birth (1-31).
536
+ attr_accessor :day
537
+ # Month of birth (1-12).
538
+ attr_accessor :month
539
+ # Year of birth (must be greater than 1900).
540
+ attr_accessor :year
541
+
542
+ def initialize(day: nil, month: nil, year: nil)
543
+ @day = day
544
+ @month = month
545
+ @year = year
546
+ end
547
+ end
548
+ # Driver's date of birth.
549
+ attr_accessor :date_of_birth
550
+ # Driver's identification number.
551
+ attr_accessor :driver_identification_number
552
+ # Driver's tax number.
553
+ attr_accessor :driver_tax_number
554
+ # Driver's full name.
555
+ attr_accessor :name
556
+
557
+ def initialize(
558
+ date_of_birth: nil,
559
+ driver_identification_number: nil,
560
+ driver_tax_number: nil,
561
+ name: nil
562
+ )
563
+ @date_of_birth = date_of_birth
564
+ @driver_identification_number = driver_identification_number
565
+ @driver_tax_number = driver_tax_number
566
+ @name = name
567
+ end
568
+ end
569
+
570
+ class DropOff < ::Stripe::RequestParams
571
+ class Address < ::Stripe::RequestParams
572
+ # City, district, suburb, town, or village.
573
+ attr_accessor :city
574
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
575
+ attr_accessor :country
576
+ # Address line 1, such as the street, PO Box, or company name.
577
+ attr_accessor :line1
578
+ # Address line 2, such as the apartment, suite, unit, or building.
579
+ attr_accessor :line2
580
+ # ZIP or postal code.
581
+ attr_accessor :postal_code
582
+ # State, county, province, or region.
583
+ attr_accessor :state
584
+
585
+ def initialize(
586
+ city: nil,
587
+ country: nil,
588
+ line1: nil,
589
+ line2: nil,
590
+ postal_code: nil,
591
+ state: nil
592
+ )
593
+ @city = city
594
+ @country = country
595
+ @line1 = line1
596
+ @line2 = line2
597
+ @postal_code = postal_code
598
+ @state = state
599
+ end
600
+ end
601
+ # Address of the rental location.
602
+ attr_accessor :address
603
+ # Location name.
604
+ attr_accessor :location_name
605
+ # Timestamp for the location.
606
+ attr_accessor :time
607
+
608
+ def initialize(address: nil, location_name: nil, time: nil)
609
+ @address = address
610
+ @location_name = location_name
611
+ @time = time
612
+ end
613
+ end
614
+
615
+ class Insurance < ::Stripe::RequestParams
616
+ # Amount of the insurance coverage in cents.
617
+ attr_accessor :amount
618
+ # Currency of the insurance amount.
619
+ attr_accessor :currency
620
+ # Name of the insurance company.
621
+ attr_accessor :insurance_company_name
622
+ # Type of insurance coverage.
623
+ attr_accessor :insurance_type
624
+
625
+ def initialize(
626
+ amount: nil,
627
+ currency: nil,
628
+ insurance_company_name: nil,
629
+ insurance_type: nil
630
+ )
631
+ @amount = amount
632
+ @currency = currency
633
+ @insurance_company_name = insurance_company_name
634
+ @insurance_type = insurance_type
635
+ end
636
+ end
637
+
638
+ class Pickup < ::Stripe::RequestParams
639
+ class Address < ::Stripe::RequestParams
640
+ # City, district, suburb, town, or village.
641
+ attr_accessor :city
642
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
643
+ attr_accessor :country
644
+ # Address line 1, such as the street, PO Box, or company name.
645
+ attr_accessor :line1
646
+ # Address line 2, such as the apartment, suite, unit, or building.
647
+ attr_accessor :line2
648
+ # ZIP or postal code.
649
+ attr_accessor :postal_code
650
+ # State, county, province, or region.
651
+ attr_accessor :state
652
+
653
+ def initialize(
654
+ city: nil,
655
+ country: nil,
656
+ line1: nil,
657
+ line2: nil,
658
+ postal_code: nil,
659
+ state: nil
660
+ )
661
+ @city = city
662
+ @country = country
663
+ @line1 = line1
664
+ @line2 = line2
665
+ @postal_code = postal_code
666
+ @state = state
667
+ end
668
+ end
669
+ # Address of the rental location.
670
+ attr_accessor :address
671
+ # Location name.
672
+ attr_accessor :location_name
673
+ # Timestamp for the location.
674
+ attr_accessor :time
675
+
676
+ def initialize(address: nil, location_name: nil, time: nil)
677
+ @address = address
678
+ @location_name = location_name
679
+ @time = time
680
+ end
681
+ end
682
+
683
+ class Total < ::Stripe::RequestParams
684
+ class Discounts < ::Stripe::RequestParams
685
+ # Corporate client discount code.
686
+ attr_accessor :corporate_client_code
687
+ # Coupon code applied to the rental.
688
+ attr_accessor :coupon
689
+ # Maximum number of free miles or kilometers included.
690
+ attr_accessor :maximum_free_miles_or_kilometers
691
+
692
+ def initialize(
693
+ corporate_client_code: nil,
694
+ coupon: nil,
695
+ maximum_free_miles_or_kilometers: nil
696
+ )
697
+ @corporate_client_code = corporate_client_code
698
+ @coupon = coupon
699
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
700
+ end
701
+ end
702
+
703
+ class ExtraCharge < ::Stripe::RequestParams
704
+ # Amount of the extra charge in cents.
705
+ attr_accessor :amount
706
+ # Type of extra charge.
707
+ attr_accessor :type
708
+
709
+ def initialize(amount: nil, type: nil)
710
+ @amount = amount
711
+ @type = type
712
+ end
713
+ end
714
+
715
+ class Tax < ::Stripe::RequestParams
716
+ class Tax < ::Stripe::RequestParams
717
+ # Tax amount.
718
+ attr_accessor :amount
719
+ # Tax rate applied.
720
+ attr_accessor :rate
721
+ # Type of tax applied.
722
+ attr_accessor :type
723
+
724
+ def initialize(amount: nil, rate: nil, type: nil)
725
+ @amount = amount
726
+ @rate = rate
727
+ @type = type
728
+ end
729
+ end
730
+ # Indicates if the transaction is tax exempt.
731
+ attr_accessor :tax_exempt_indicator
732
+ # Array of tax details.
733
+ attr_accessor :taxes
734
+
735
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
736
+ @tax_exempt_indicator = tax_exempt_indicator
737
+ @taxes = taxes
738
+ end
739
+ end
740
+ # Total amount in cents.
741
+ attr_accessor :amount
742
+ # Currency of the amount.
743
+ attr_accessor :currency
744
+ # Discount details for the rental.
745
+ attr_accessor :discounts
746
+ # Additional charges for the rental.
747
+ attr_accessor :extra_charges
748
+ # Rate per unit for the rental.
749
+ attr_accessor :rate_per_unit
750
+ # Unit of measurement for the rate.
751
+ attr_accessor :rate_unit
752
+ # Tax breakdown for the rental.
753
+ attr_accessor :tax
754
+
755
+ def initialize(
756
+ amount: nil,
757
+ currency: nil,
758
+ discounts: nil,
759
+ extra_charges: nil,
760
+ rate_per_unit: nil,
761
+ rate_unit: nil,
762
+ tax: nil
763
+ )
764
+ @amount = amount
765
+ @currency = currency
766
+ @discounts = discounts
767
+ @extra_charges = extra_charges
768
+ @rate_per_unit = rate_per_unit
769
+ @rate_unit = rate_unit
770
+ @tax = tax
771
+ end
772
+ end
773
+
774
+ class Vehicle < ::Stripe::RequestParams
775
+ # Make of the rental vehicle.
776
+ attr_accessor :make
777
+ # Model of the rental vehicle.
778
+ attr_accessor :model
779
+ # Odometer reading at the time of rental.
780
+ attr_accessor :odometer
781
+ # Type of the rental vehicle.
782
+ attr_accessor :type
783
+ # Class of the rental vehicle.
784
+ attr_accessor :vehicle_class
785
+ # Vehicle identification number (VIN).
786
+ attr_accessor :vehicle_identification_number
787
+
788
+ def initialize(
789
+ make: nil,
790
+ model: nil,
791
+ odometer: nil,
792
+ type: nil,
793
+ vehicle_class: nil,
794
+ vehicle_identification_number: nil
795
+ )
796
+ @make = make
797
+ @model = model
798
+ @odometer = odometer
799
+ @type = type
800
+ @vehicle_class = vehicle_class
801
+ @vehicle_identification_number = vehicle_identification_number
802
+ end
803
+ end
804
+ # Affiliate (such as travel agency) details for the rental.
805
+ attr_accessor :affiliate
806
+ # Booking confirmation number for the car rental.
807
+ attr_accessor :booking_number
808
+ # Name of the car rental company.
809
+ attr_accessor :carrier_name
810
+ # Customer service phone number for the car rental company.
811
+ attr_accessor :customer_service_phone_number
812
+ # Number of days the car is being rented.
813
+ attr_accessor :days_rented
814
+ # Distance details for the rental.
815
+ attr_accessor :distance
816
+ # List of drivers for the rental.
817
+ attr_accessor :drivers
818
+ # Drop-off location details.
819
+ attr_accessor :drop_off
820
+ # Insurance details for the rental.
821
+ attr_accessor :insurances
822
+ # Indicates if the customer was a no-show.
823
+ attr_accessor :no_show_indicator
824
+ # Pickup location details.
825
+ attr_accessor :pickup
826
+ # Name of the person renting the vehicle.
827
+ attr_accessor :renter_name
828
+ # Total cost breakdown for the rental.
829
+ attr_accessor :total
830
+ # Vehicle details for the rental.
831
+ attr_accessor :vehicle
832
+
833
+ def initialize(
834
+ affiliate: nil,
835
+ booking_number: nil,
836
+ carrier_name: nil,
837
+ customer_service_phone_number: nil,
838
+ days_rented: nil,
839
+ distance: nil,
840
+ drivers: nil,
841
+ drop_off: nil,
842
+ insurances: nil,
843
+ no_show_indicator: nil,
844
+ pickup: nil,
845
+ renter_name: nil,
846
+ total: nil,
847
+ vehicle: nil
848
+ )
849
+ @affiliate = affiliate
850
+ @booking_number = booking_number
851
+ @carrier_name = carrier_name
852
+ @customer_service_phone_number = customer_service_phone_number
853
+ @days_rented = days_rented
854
+ @distance = distance
855
+ @drivers = drivers
856
+ @drop_off = drop_off
857
+ @insurances = insurances
858
+ @no_show_indicator = no_show_indicator
859
+ @pickup = pickup
860
+ @renter_name = renter_name
861
+ @total = total
862
+ @vehicle = vehicle
863
+ end
864
+ end
865
+
866
+ class EventDetails < ::Stripe::RequestParams
867
+ class Address < ::Stripe::RequestParams
868
+ # City, district, suburb, town, or village.
869
+ attr_accessor :city
870
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
871
+ attr_accessor :country
872
+ # Address line 1, such as the street, PO Box, or company name.
873
+ attr_accessor :line1
874
+ # Address line 2, such as the apartment, suite, unit, or building.
875
+ attr_accessor :line2
876
+ # ZIP or postal code.
877
+ attr_accessor :postal_code
878
+ # State, county, province, or region.
879
+ attr_accessor :state
880
+
881
+ def initialize(
882
+ city: nil,
883
+ country: nil,
884
+ line1: nil,
885
+ line2: nil,
886
+ postal_code: nil,
887
+ state: nil
888
+ )
889
+ @city = city
890
+ @country = country
891
+ @line1 = line1
892
+ @line2 = line2
893
+ @postal_code = postal_code
894
+ @state = state
895
+ end
896
+ end
897
+
898
+ class Affiliate < ::Stripe::RequestParams
899
+ # The name of the affiliate that originated the purchase.
900
+ attr_accessor :name
901
+
902
+ def initialize(name: nil)
903
+ @name = name
904
+ end
905
+ end
906
+
907
+ class Delivery < ::Stripe::RequestParams
908
+ class Recipient < ::Stripe::RequestParams
909
+ # The email of the recipient the ticket is delivered to.
910
+ attr_accessor :email
911
+ # The name of the recipient the ticket is delivered to.
912
+ attr_accessor :name
913
+ # The phone number of the recipient the ticket is delivered to.
914
+ attr_accessor :phone
915
+
916
+ def initialize(email: nil, name: nil, phone: nil)
917
+ @email = email
918
+ @name = name
919
+ @phone = phone
920
+ end
921
+ end
922
+ # The delivery method for the payment
923
+ attr_accessor :mode
924
+ # Details of the recipient.
925
+ attr_accessor :recipient
926
+
927
+ def initialize(mode: nil, recipient: nil)
928
+ @mode = mode
929
+ @recipient = recipient
930
+ end
931
+ end
932
+ # Indicates if the tickets are digitally checked when entering the venue.
933
+ attr_accessor :access_controlled_venue
934
+ # The event location's address.
935
+ attr_accessor :address
936
+ # Affiliate details for this purchase.
937
+ attr_accessor :affiliate
938
+ # The name of the company
939
+ attr_accessor :company
940
+ # Delivery details for this purchase.
941
+ attr_accessor :delivery
942
+ # Event end time. Measured in seconds since the Unix epoch.
943
+ attr_accessor :ends_at
944
+ # Type of the event entertainment (concert, sports event etc)
945
+ attr_accessor :genre
946
+ # The name of the event.
947
+ attr_accessor :name
948
+ # Event start time. Measured in seconds since the Unix epoch.
949
+ attr_accessor :starts_at
950
+
951
+ def initialize(
952
+ access_controlled_venue: nil,
953
+ address: nil,
954
+ affiliate: nil,
955
+ company: nil,
956
+ delivery: nil,
957
+ ends_at: nil,
958
+ genre: nil,
959
+ name: nil,
960
+ starts_at: nil
961
+ )
962
+ @access_controlled_venue = access_controlled_venue
963
+ @address = address
964
+ @affiliate = affiliate
965
+ @company = company
966
+ @delivery = delivery
967
+ @ends_at = ends_at
968
+ @genre = genre
969
+ @name = name
970
+ @starts_at = starts_at
971
+ end
972
+ end
973
+
974
+ class Flight < ::Stripe::RequestParams
975
+ class Affiliate < ::Stripe::RequestParams
976
+ # The name of the affiliate that originated the purchase.
977
+ attr_accessor :name
978
+
979
+ def initialize(name: nil)
980
+ @name = name
981
+ end
982
+ end
983
+
984
+ class Delivery < ::Stripe::RequestParams
985
+ class Recipient < ::Stripe::RequestParams
986
+ # The email of the recipient the ticket is delivered to.
987
+ attr_accessor :email
988
+ # The name of the recipient the ticket is delivered to.
989
+ attr_accessor :name
990
+ # The phone number of the recipient the ticket is delivered to.
991
+ attr_accessor :phone
992
+
993
+ def initialize(email: nil, name: nil, phone: nil)
994
+ @email = email
995
+ @name = name
996
+ @phone = phone
997
+ end
998
+ end
999
+ # The delivery method for the payment
1000
+ attr_accessor :mode
1001
+ # Details of the recipient.
1002
+ attr_accessor :recipient
1003
+
1004
+ def initialize(mode: nil, recipient: nil)
1005
+ @mode = mode
1006
+ @recipient = recipient
1007
+ end
1008
+ end
1009
+
1010
+ class Passenger < ::Stripe::RequestParams
1011
+ # Full name of the person or entity on the flight reservation.
1012
+ attr_accessor :name
1013
+
1014
+ def initialize(name: nil)
1015
+ @name = name
1016
+ end
1017
+ end
1018
+
1019
+ class Segment < ::Stripe::RequestParams
1020
+ # The flight segment amount.
1021
+ attr_accessor :amount
1022
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1023
+ attr_accessor :arrival_airport
1024
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1025
+ attr_accessor :arrives_at
1026
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1027
+ attr_accessor :carrier
1028
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1029
+ attr_accessor :departs_at
1030
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1031
+ attr_accessor :departure_airport
1032
+ # The flight number associated with the segment
1033
+ attr_accessor :flight_number
1034
+ # The fare class for the segment.
1035
+ attr_accessor :service_class
1036
+
1037
+ def initialize(
1038
+ amount: nil,
1039
+ arrival_airport: nil,
1040
+ arrives_at: nil,
1041
+ carrier: nil,
1042
+ departs_at: nil,
1043
+ departure_airport: nil,
1044
+ flight_number: nil,
1045
+ service_class: nil
1046
+ )
1047
+ @amount = amount
1048
+ @arrival_airport = arrival_airport
1049
+ @arrives_at = arrives_at
1050
+ @carrier = carrier
1051
+ @departs_at = departs_at
1052
+ @departure_airport = departure_airport
1053
+ @flight_number = flight_number
1054
+ @service_class = service_class
1055
+ end
1056
+ end
1057
+ # Affiliate details for this purchase.
1058
+ attr_accessor :affiliate
1059
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1060
+ attr_accessor :agency_number
1061
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1062
+ attr_accessor :carrier
1063
+ # Delivery details for this purchase.
1064
+ attr_accessor :delivery
1065
+ # The name of the person or entity on the reservation.
1066
+ attr_accessor :passenger_name
1067
+ # The details of the passengers in the travel reservation.
1068
+ attr_accessor :passengers
1069
+ # The individual flight segments associated with the trip.
1070
+ attr_accessor :segments
1071
+ # The ticket number associated with the travel reservation.
1072
+ attr_accessor :ticket_number
1073
+
1074
+ def initialize(
1075
+ affiliate: nil,
1076
+ agency_number: nil,
1077
+ carrier: nil,
1078
+ delivery: nil,
1079
+ passenger_name: nil,
1080
+ passengers: nil,
1081
+ segments: nil,
1082
+ ticket_number: nil
1083
+ )
1084
+ @affiliate = affiliate
1085
+ @agency_number = agency_number
1086
+ @carrier = carrier
1087
+ @delivery = delivery
1088
+ @passenger_name = passenger_name
1089
+ @passengers = passengers
1090
+ @segments = segments
1091
+ @ticket_number = ticket_number
1092
+ end
1093
+ end
1094
+
1095
+ class FlightDatum < ::Stripe::RequestParams
1096
+ class Affiliate < ::Stripe::RequestParams
1097
+ # Affiliate partner code.
1098
+ attr_accessor :code
1099
+ # Name of affiliate partner.
1100
+ attr_accessor :name
1101
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1102
+ attr_accessor :travel_authorization_code
1103
+
1104
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1105
+ @code = code
1106
+ @name = name
1107
+ @travel_authorization_code = travel_authorization_code
1108
+ end
1109
+ end
1110
+
1111
+ class Insurance < ::Stripe::RequestParams
1112
+ # Insurance cost.
1113
+ attr_accessor :amount
1114
+ # Insurance currency.
1115
+ attr_accessor :currency
1116
+ # Insurance company name.
1117
+ attr_accessor :insurance_company_name
1118
+ # Type of insurance.
1119
+ attr_accessor :insurance_type
1120
+
1121
+ def initialize(
1122
+ amount: nil,
1123
+ currency: nil,
1124
+ insurance_company_name: nil,
1125
+ insurance_type: nil
1126
+ )
1127
+ @amount = amount
1128
+ @currency = currency
1129
+ @insurance_company_name = insurance_company_name
1130
+ @insurance_type = insurance_type
1131
+ end
1132
+ end
1133
+
1134
+ class Passenger < ::Stripe::RequestParams
1135
+ # Passenger's full name.
1136
+ attr_accessor :name
1137
+
1138
+ def initialize(name: nil)
1139
+ @name = name
1140
+ end
1141
+ end
1142
+
1143
+ class Segment < ::Stripe::RequestParams
1144
+ class Arrival < ::Stripe::RequestParams
1145
+ # Arrival airport IATA code.
1146
+ attr_accessor :airport
1147
+ # Arrival date/time.
1148
+ attr_accessor :arrives_at
1149
+ # Arrival city.
1150
+ attr_accessor :city
1151
+ # Arrival country.
1152
+ attr_accessor :country
1153
+
1154
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1155
+ @airport = airport
1156
+ @arrives_at = arrives_at
1157
+ @city = city
1158
+ @country = country
1159
+ end
1160
+ end
1161
+
1162
+ class Departure < ::Stripe::RequestParams
1163
+ # Departure airport IATA code.
1164
+ attr_accessor :airport
1165
+ # Departure city.
1166
+ attr_accessor :city
1167
+ # Departure country.
1168
+ attr_accessor :country
1169
+ # Departure date/time.
1170
+ attr_accessor :departs_at
1171
+
1172
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1173
+ @airport = airport
1174
+ @city = city
1175
+ @country = country
1176
+ @departs_at = departs_at
1177
+ end
1178
+ end
1179
+ # Segment fare amount.
1180
+ attr_accessor :amount
1181
+ # Arrival details.
1182
+ attr_accessor :arrival
1183
+ # Airline carrier code.
1184
+ attr_accessor :carrier_code
1185
+ # Carrier name.
1186
+ attr_accessor :carrier_name
1187
+ # Segment currency.
1188
+ attr_accessor :currency
1189
+ # Departure details.
1190
+ attr_accessor :departure
1191
+ # Exchange ticket number.
1192
+ attr_accessor :exchange_ticket_number
1193
+ # Fare basis code.
1194
+ attr_accessor :fare_basis_code
1195
+ # Additional fees.
1196
+ attr_accessor :fees
1197
+ # Flight number.
1198
+ attr_accessor :flight_number
1199
+ # Stopover indicator.
1200
+ attr_accessor :is_stop_over_indicator
1201
+ # Refundable ticket indicator.
1202
+ attr_accessor :refundable
1203
+ # Class of service.
1204
+ attr_accessor :service_class
1205
+ # Tax amount for segment.
1206
+ attr_accessor :tax_amount
1207
+ # Ticket number.
1208
+ attr_accessor :ticket_number
1209
+
1210
+ def initialize(
1211
+ amount: nil,
1212
+ arrival: nil,
1213
+ carrier_code: nil,
1214
+ carrier_name: nil,
1215
+ currency: nil,
1216
+ departure: nil,
1217
+ exchange_ticket_number: nil,
1218
+ fare_basis_code: nil,
1219
+ fees: nil,
1220
+ flight_number: nil,
1221
+ is_stop_over_indicator: nil,
1222
+ refundable: nil,
1223
+ service_class: nil,
1224
+ tax_amount: nil,
1225
+ ticket_number: nil
1226
+ )
1227
+ @amount = amount
1228
+ @arrival = arrival
1229
+ @carrier_code = carrier_code
1230
+ @carrier_name = carrier_name
1231
+ @currency = currency
1232
+ @departure = departure
1233
+ @exchange_ticket_number = exchange_ticket_number
1234
+ @fare_basis_code = fare_basis_code
1235
+ @fees = fees
1236
+ @flight_number = flight_number
1237
+ @is_stop_over_indicator = is_stop_over_indicator
1238
+ @refundable = refundable
1239
+ @service_class = service_class
1240
+ @tax_amount = tax_amount
1241
+ @ticket_number = ticket_number
1242
+ end
1243
+ end
1244
+
1245
+ class Total < ::Stripe::RequestParams
1246
+ class Discounts < ::Stripe::RequestParams
1247
+ # Corporate client discount code.
1248
+ attr_accessor :corporate_client_code
1249
+
1250
+ def initialize(corporate_client_code: nil)
1251
+ @corporate_client_code = corporate_client_code
1252
+ end
1253
+ end
1254
+
1255
+ class ExtraCharge < ::Stripe::RequestParams
1256
+ # Amount of additional charges.
1257
+ attr_accessor :amount
1258
+ # Type of additional charges.
1259
+ attr_accessor :type
1260
+
1261
+ def initialize(amount: nil, type: nil)
1262
+ @amount = amount
1263
+ @type = type
1264
+ end
1265
+ end
1266
+
1267
+ class Tax < ::Stripe::RequestParams
1268
+ class Tax < ::Stripe::RequestParams
1269
+ # Tax amount.
1270
+ attr_accessor :amount
1271
+ # Tax rate.
1272
+ attr_accessor :rate
1273
+ # Type of tax.
1274
+ attr_accessor :type
1275
+
1276
+ def initialize(amount: nil, rate: nil, type: nil)
1277
+ @amount = amount
1278
+ @rate = rate
1279
+ @type = type
1280
+ end
1281
+ end
1282
+ # Array of tax details.
1283
+ attr_accessor :taxes
1284
+
1285
+ def initialize(taxes: nil)
1286
+ @taxes = taxes
1287
+ end
1288
+ end
1289
+ # Total flight amount.
1290
+ attr_accessor :amount
1291
+ # Reason for credit.
1292
+ attr_accessor :credit_reason
1293
+ # Total currency.
1294
+ attr_accessor :currency
1295
+ # Discount details.
1296
+ attr_accessor :discounts
1297
+ # Additional charges.
1298
+ attr_accessor :extra_charges
1299
+ # Tax breakdown.
1300
+ attr_accessor :tax
1301
+
1302
+ def initialize(
1303
+ amount: nil,
1304
+ credit_reason: nil,
1305
+ currency: nil,
1306
+ discounts: nil,
1307
+ extra_charges: nil,
1308
+ tax: nil
1309
+ )
1310
+ @amount = amount
1311
+ @credit_reason = credit_reason
1312
+ @currency = currency
1313
+ @discounts = discounts
1314
+ @extra_charges = extra_charges
1315
+ @tax = tax
1316
+ end
1317
+ end
1318
+ # Affiliate details if applicable.
1319
+ attr_accessor :affiliate
1320
+ # Reservation reference.
1321
+ attr_accessor :booking_number
1322
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1323
+ attr_accessor :computerized_reservation_system
1324
+ # Ticket restrictions.
1325
+ attr_accessor :endorsements_and_restrictions
1326
+ # List of insurances.
1327
+ attr_accessor :insurances
1328
+ # List of passengers.
1329
+ attr_accessor :passengers
1330
+ # List of flight segments.
1331
+ attr_accessor :segments
1332
+ # Electronic ticket indicator.
1333
+ attr_accessor :ticket_electronically_issued_indicator
1334
+ # Total cost breakdown.
1335
+ attr_accessor :total
1336
+ # Type of flight transaction.
1337
+ attr_accessor :transaction_type
1338
+
1339
+ def initialize(
1340
+ affiliate: nil,
1341
+ booking_number: nil,
1342
+ computerized_reservation_system: nil,
1343
+ endorsements_and_restrictions: nil,
1344
+ insurances: nil,
1345
+ passengers: nil,
1346
+ segments: nil,
1347
+ ticket_electronically_issued_indicator: nil,
1348
+ total: nil,
1349
+ transaction_type: nil
1350
+ )
1351
+ @affiliate = affiliate
1352
+ @booking_number = booking_number
1353
+ @computerized_reservation_system = computerized_reservation_system
1354
+ @endorsements_and_restrictions = endorsements_and_restrictions
1355
+ @insurances = insurances
1356
+ @passengers = passengers
1357
+ @segments = segments
1358
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1359
+ @total = total
1360
+ @transaction_type = transaction_type
1361
+ end
1362
+ end
1363
+
1364
+ class Lodging < ::Stripe::RequestParams
1365
+ class Address < ::Stripe::RequestParams
1366
+ # City, district, suburb, town, or village.
1367
+ attr_accessor :city
1368
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1369
+ attr_accessor :country
1370
+ # Address line 1, such as the street, PO Box, or company name.
1371
+ attr_accessor :line1
1372
+ # Address line 2, such as the apartment, suite, unit, or building.
1373
+ attr_accessor :line2
1374
+ # ZIP or postal code.
1375
+ attr_accessor :postal_code
1376
+ # State, county, province, or region.
1377
+ attr_accessor :state
1378
+
1379
+ def initialize(
1380
+ city: nil,
1381
+ country: nil,
1382
+ line1: nil,
1383
+ line2: nil,
1384
+ postal_code: nil,
1385
+ state: nil
1386
+ )
1387
+ @city = city
1388
+ @country = country
1389
+ @line1 = line1
1390
+ @line2 = line2
1391
+ @postal_code = postal_code
1392
+ @state = state
1393
+ end
1394
+ end
1395
+
1396
+ class Affiliate < ::Stripe::RequestParams
1397
+ # The name of the affiliate that originated the purchase.
1398
+ attr_accessor :name
1399
+
1400
+ def initialize(name: nil)
1401
+ @name = name
1402
+ end
1403
+ end
1404
+
1405
+ class Delivery < ::Stripe::RequestParams
1406
+ class Recipient < ::Stripe::RequestParams
1407
+ # The email of the recipient the ticket is delivered to.
1408
+ attr_accessor :email
1409
+ # The name of the recipient the ticket is delivered to.
1410
+ attr_accessor :name
1411
+ # The phone number of the recipient the ticket is delivered to.
1412
+ attr_accessor :phone
1413
+
1414
+ def initialize(email: nil, name: nil, phone: nil)
1415
+ @email = email
1416
+ @name = name
1417
+ @phone = phone
1418
+ end
1419
+ end
1420
+ # The delivery method for the payment
1421
+ attr_accessor :mode
1422
+ # Details of the recipient.
1423
+ attr_accessor :recipient
1424
+
1425
+ def initialize(mode: nil, recipient: nil)
1426
+ @mode = mode
1427
+ @recipient = recipient
1428
+ end
1429
+ end
1430
+
1431
+ class Passenger < ::Stripe::RequestParams
1432
+ # Full name of the person or entity on the lodging reservation.
1433
+ attr_accessor :name
1434
+
1435
+ def initialize(name: nil)
1436
+ @name = name
1437
+ end
1438
+ end
1439
+ # The lodging location's address.
1440
+ attr_accessor :address
1441
+ # The number of adults on the booking
1442
+ attr_accessor :adults
1443
+ # Affiliate details for this purchase.
1444
+ attr_accessor :affiliate
1445
+ # The booking number associated with the lodging reservation.
1446
+ attr_accessor :booking_number
1447
+ # The lodging category
1448
+ attr_accessor :category
1449
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1450
+ attr_accessor :checkin_at
1451
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1452
+ attr_accessor :checkout_at
1453
+ # The customer service phone number of the lodging company.
1454
+ attr_accessor :customer_service_phone_number
1455
+ # The daily lodging room rate.
1456
+ attr_accessor :daily_room_rate_amount
1457
+ # Delivery details for this purchase.
1458
+ attr_accessor :delivery
1459
+ # List of additional charges being billed.
1460
+ attr_accessor :extra_charges
1461
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1462
+ attr_accessor :fire_safety_act_compliance
1463
+ # The name of the lodging location.
1464
+ attr_accessor :name
1465
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1466
+ attr_accessor :no_show
1467
+ # The number of rooms on the booking
1468
+ attr_accessor :number_of_rooms
1469
+ # The details of the passengers in the travel reservation
1470
+ attr_accessor :passengers
1471
+ # The phone number of the lodging location.
1472
+ attr_accessor :property_phone_number
1473
+ # The room class for this purchase.
1474
+ attr_accessor :room_class
1475
+ # The number of room nights
1476
+ attr_accessor :room_nights
1477
+ # The total tax amount associating with the room reservation.
1478
+ attr_accessor :total_room_tax_amount
1479
+ # The total tax amount
1480
+ attr_accessor :total_tax_amount
1481
+
1482
+ def initialize(
1483
+ address: nil,
1484
+ adults: nil,
1485
+ affiliate: nil,
1486
+ booking_number: nil,
1487
+ category: nil,
1488
+ checkin_at: nil,
1489
+ checkout_at: nil,
1490
+ customer_service_phone_number: nil,
1491
+ daily_room_rate_amount: nil,
1492
+ delivery: nil,
1493
+ extra_charges: nil,
1494
+ fire_safety_act_compliance: nil,
1495
+ name: nil,
1496
+ no_show: nil,
1497
+ number_of_rooms: nil,
1498
+ passengers: nil,
1499
+ property_phone_number: nil,
1500
+ room_class: nil,
1501
+ room_nights: nil,
1502
+ total_room_tax_amount: nil,
1503
+ total_tax_amount: nil
1504
+ )
1505
+ @address = address
1506
+ @adults = adults
1507
+ @affiliate = affiliate
1508
+ @booking_number = booking_number
1509
+ @category = category
1510
+ @checkin_at = checkin_at
1511
+ @checkout_at = checkout_at
1512
+ @customer_service_phone_number = customer_service_phone_number
1513
+ @daily_room_rate_amount = daily_room_rate_amount
1514
+ @delivery = delivery
1515
+ @extra_charges = extra_charges
1516
+ @fire_safety_act_compliance = fire_safety_act_compliance
1517
+ @name = name
1518
+ @no_show = no_show
1519
+ @number_of_rooms = number_of_rooms
1520
+ @passengers = passengers
1521
+ @property_phone_number = property_phone_number
1522
+ @room_class = room_class
1523
+ @room_nights = room_nights
1524
+ @total_room_tax_amount = total_room_tax_amount
1525
+ @total_tax_amount = total_tax_amount
1526
+ end
1527
+ end
1528
+
1529
+ class LodgingDatum < ::Stripe::RequestParams
1530
+ class Accommodation < ::Stripe::RequestParams
1531
+ # Type of accommodation.
1532
+ attr_accessor :accommodation_type
1533
+ # Bed type.
1534
+ attr_accessor :bed_type
1535
+ # Daily accommodation rate in cents.
1536
+ attr_accessor :daily_rate_amount
1537
+ # Number of nights.
1538
+ attr_accessor :nights
1539
+ # Number of rooms, cabanas, apartments, and so on.
1540
+ attr_accessor :number_of_rooms
1541
+ # Rate type.
1542
+ attr_accessor :rate_type
1543
+ # Whether smoking is allowed.
1544
+ attr_accessor :smoking_indicator
1545
+
1546
+ def initialize(
1547
+ accommodation_type: nil,
1548
+ bed_type: nil,
1549
+ daily_rate_amount: nil,
1550
+ nights: nil,
1551
+ number_of_rooms: nil,
1552
+ rate_type: nil,
1553
+ smoking_indicator: nil
1554
+ )
1555
+ @accommodation_type = accommodation_type
1556
+ @bed_type = bed_type
1557
+ @daily_rate_amount = daily_rate_amount
1558
+ @nights = nights
1559
+ @number_of_rooms = number_of_rooms
1560
+ @rate_type = rate_type
1561
+ @smoking_indicator = smoking_indicator
1562
+ end
1563
+ end
1564
+
1565
+ class Affiliate < ::Stripe::RequestParams
1566
+ # Affiliate partner code.
1567
+ attr_accessor :code
1568
+ # Affiliate partner name.
1569
+ attr_accessor :name
1570
+
1571
+ def initialize(code: nil, name: nil)
1572
+ @code = code
1573
+ @name = name
1574
+ end
1575
+ end
1576
+
1577
+ class Guest < ::Stripe::RequestParams
1578
+ # Guest's full name.
1579
+ attr_accessor :name
1580
+
1581
+ def initialize(name: nil)
1582
+ @name = name
1583
+ end
1584
+ end
1585
+
1586
+ class Host < ::Stripe::RequestParams
1587
+ class Address < ::Stripe::RequestParams
1588
+ # City, district, suburb, town, or village.
1589
+ attr_accessor :city
1590
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1591
+ attr_accessor :country
1592
+ # Address line 1, such as the street, PO Box, or company name.
1593
+ attr_accessor :line1
1594
+ # Address line 2, such as the apartment, suite, unit, or building.
1595
+ attr_accessor :line2
1596
+ # ZIP or postal code.
1597
+ attr_accessor :postal_code
1598
+ # State, county, province, or region.
1599
+ attr_accessor :state
1600
+
1601
+ def initialize(
1602
+ city: nil,
1603
+ country: nil,
1604
+ line1: nil,
1605
+ line2: nil,
1606
+ postal_code: nil,
1607
+ state: nil
1608
+ )
1609
+ @city = city
1610
+ @country = country
1611
+ @line1 = line1
1612
+ @line2 = line2
1613
+ @postal_code = postal_code
1614
+ @state = state
1615
+ end
1616
+ end
1617
+ # Address of the host.
1618
+ attr_accessor :address
1619
+ # Host's country of domicile.
1620
+ attr_accessor :country_of_domicile
1621
+ # Reference number for the host.
1622
+ attr_accessor :host_reference
1623
+ # Type of host.
1624
+ attr_accessor :host_type
1625
+ # Name of the lodging property or host.
1626
+ attr_accessor :name
1627
+ # Total number of reservations for the host.
1628
+ attr_accessor :number_of_reservations
1629
+ # Property phone number.
1630
+ attr_accessor :property_phone_number
1631
+ # Host's registration date.
1632
+ attr_accessor :registered_at
1633
+
1634
+ def initialize(
1635
+ address: nil,
1636
+ country_of_domicile: nil,
1637
+ host_reference: nil,
1638
+ host_type: nil,
1639
+ name: nil,
1640
+ number_of_reservations: nil,
1641
+ property_phone_number: nil,
1642
+ registered_at: nil
1643
+ )
1644
+ @address = address
1645
+ @country_of_domicile = country_of_domicile
1646
+ @host_reference = host_reference
1647
+ @host_type = host_type
1648
+ @name = name
1649
+ @number_of_reservations = number_of_reservations
1650
+ @property_phone_number = property_phone_number
1651
+ @registered_at = registered_at
1652
+ end
1653
+ end
1654
+
1655
+ class Insurance < ::Stripe::RequestParams
1656
+ # Price of the insurance coverage in cents.
1657
+ attr_accessor :amount
1658
+ # Currency of the insurance amount.
1659
+ attr_accessor :currency
1660
+ # Name of the insurance company.
1661
+ attr_accessor :insurance_company_name
1662
+ # Type of insurance coverage.
1663
+ attr_accessor :insurance_type
1664
+
1665
+ def initialize(
1666
+ amount: nil,
1667
+ currency: nil,
1668
+ insurance_company_name: nil,
1669
+ insurance_type: nil
1670
+ )
1671
+ @amount = amount
1672
+ @currency = currency
1673
+ @insurance_company_name = insurance_company_name
1674
+ @insurance_type = insurance_type
1675
+ end
1676
+ end
1677
+
1678
+ class Total < ::Stripe::RequestParams
1679
+ class Discounts < ::Stripe::RequestParams
1680
+ # Corporate client discount code.
1681
+ attr_accessor :corporate_client_code
1682
+ # Coupon code.
1683
+ attr_accessor :coupon
1684
+
1685
+ def initialize(corporate_client_code: nil, coupon: nil)
1686
+ @corporate_client_code = corporate_client_code
1687
+ @coupon = coupon
1688
+ end
1689
+ end
1690
+
1691
+ class ExtraCharge < ::Stripe::RequestParams
1692
+ # Amount of the extra charge in cents.
1693
+ attr_accessor :amount
1694
+ # Type of extra charge.
1695
+ attr_accessor :type
1696
+
1697
+ def initialize(amount: nil, type: nil)
1698
+ @amount = amount
1699
+ @type = type
1700
+ end
1701
+ end
1702
+
1703
+ class Tax < ::Stripe::RequestParams
1704
+ class Tax < ::Stripe::RequestParams
1705
+ # Tax amount in cents.
1706
+ attr_accessor :amount
1707
+ # Tax rate.
1708
+ attr_accessor :rate
1709
+ # Type of tax applied.
1710
+ attr_accessor :type
1711
+
1712
+ def initialize(amount: nil, rate: nil, type: nil)
1713
+ @amount = amount
1714
+ @rate = rate
1715
+ @type = type
1716
+ end
1717
+ end
1718
+ # Indicates whether the transaction is tax exempt.
1719
+ attr_accessor :tax_exempt_indicator
1720
+ # Tax details.
1721
+ attr_accessor :taxes
1722
+
1723
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1724
+ @tax_exempt_indicator = tax_exempt_indicator
1725
+ @taxes = taxes
1726
+ end
1727
+ end
1728
+ # Total price of the lodging reservation in cents.
1729
+ attr_accessor :amount
1730
+ # Cash advances in cents.
1731
+ attr_accessor :cash_advances
1732
+ # Currency of the total amount.
1733
+ attr_accessor :currency
1734
+ # Discount details for the lodging.
1735
+ attr_accessor :discounts
1736
+ # Additional charges for the lodging.
1737
+ attr_accessor :extra_charges
1738
+ # Prepaid amount in cents.
1739
+ attr_accessor :prepaid_amount
1740
+ # Tax breakdown for the lodging reservation.
1741
+ attr_accessor :tax
1742
+
1743
+ def initialize(
1744
+ amount: nil,
1745
+ cash_advances: nil,
1746
+ currency: nil,
1747
+ discounts: nil,
1748
+ extra_charges: nil,
1749
+ prepaid_amount: nil,
1750
+ tax: nil
1751
+ )
1752
+ @amount = amount
1753
+ @cash_advances = cash_advances
1754
+ @currency = currency
1755
+ @discounts = discounts
1756
+ @extra_charges = extra_charges
1757
+ @prepaid_amount = prepaid_amount
1758
+ @tax = tax
1759
+ end
1760
+ end
1761
+ # Accommodation details for the lodging.
1762
+ attr_accessor :accommodation
1763
+ # Affiliate details if applicable.
1764
+ attr_accessor :affiliate
1765
+ # Booking confirmation number for the lodging.
1766
+ attr_accessor :booking_number
1767
+ # Check-in date.
1768
+ attr_accessor :checkin_at
1769
+ # Check-out date.
1770
+ attr_accessor :checkout_at
1771
+ # Customer service phone number for the lodging company.
1772
+ attr_accessor :customer_service_phone_number
1773
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1774
+ attr_accessor :fire_safety_act_compliance_indicator
1775
+ # List of guests for the lodging.
1776
+ attr_accessor :guests
1777
+ # Host details for the lodging.
1778
+ attr_accessor :host
1779
+ # List of insurances for the lodging.
1780
+ attr_accessor :insurances
1781
+ # Whether the renter is a no-show.
1782
+ attr_accessor :no_show_indicator
1783
+ # Renter ID number for the lodging.
1784
+ attr_accessor :renter_id_number
1785
+ # Renter name for the lodging.
1786
+ attr_accessor :renter_name
1787
+ # Total details for the lodging.
1788
+ attr_accessor :total
1789
+
1790
+ def initialize(
1791
+ accommodation: nil,
1792
+ affiliate: nil,
1793
+ booking_number: nil,
1794
+ checkin_at: nil,
1795
+ checkout_at: nil,
1796
+ customer_service_phone_number: nil,
1797
+ fire_safety_act_compliance_indicator: nil,
1798
+ guests: nil,
1799
+ host: nil,
1800
+ insurances: nil,
1801
+ no_show_indicator: nil,
1802
+ renter_id_number: nil,
1803
+ renter_name: nil,
1804
+ total: nil
1805
+ )
1806
+ @accommodation = accommodation
1807
+ @affiliate = affiliate
1808
+ @booking_number = booking_number
1809
+ @checkin_at = checkin_at
1810
+ @checkout_at = checkout_at
1811
+ @customer_service_phone_number = customer_service_phone_number
1812
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1813
+ @guests = guests
1814
+ @host = host
1815
+ @insurances = insurances
1816
+ @no_show_indicator = no_show_indicator
1817
+ @renter_id_number = renter_id_number
1818
+ @renter_name = renter_name
1819
+ @total = total
1820
+ end
1821
+ end
1822
+
1823
+ class Subscription < ::Stripe::RequestParams
1824
+ class Affiliate < ::Stripe::RequestParams
1825
+ # The name of the affiliate that originated the purchase.
1826
+ attr_accessor :name
1827
+
1828
+ def initialize(name: nil)
1829
+ @name = name
1830
+ end
1831
+ end
1832
+
1833
+ class BillingInterval < ::Stripe::RequestParams
1834
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1835
+ attr_accessor :count
1836
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1837
+ attr_accessor :interval
1838
+
1839
+ def initialize(count: nil, interval: nil)
1840
+ @count = count
1841
+ @interval = interval
1842
+ end
1843
+ end
1844
+ # Affiliate details for this purchase.
1845
+ attr_accessor :affiliate
1846
+ # Info whether the subscription will be auto renewed upon expiry.
1847
+ attr_accessor :auto_renewal
1848
+ # Subscription billing details for this purchase.
1849
+ attr_accessor :billing_interval
1850
+ # Subscription end time. Measured in seconds since the Unix epoch.
1851
+ attr_accessor :ends_at
1852
+ # Name of the product on subscription. e.g. Apple Music Subscription
1853
+ attr_accessor :name
1854
+ # Subscription start time. Measured in seconds since the Unix epoch.
1855
+ attr_accessor :starts_at
1856
+
1857
+ def initialize(
1858
+ affiliate: nil,
1859
+ auto_renewal: nil,
1860
+ billing_interval: nil,
1861
+ ends_at: nil,
1862
+ name: nil,
1863
+ starts_at: nil
1864
+ )
1865
+ @affiliate = affiliate
1866
+ @auto_renewal = auto_renewal
1867
+ @billing_interval = billing_interval
1868
+ @ends_at = ends_at
1869
+ @name = name
1870
+ @starts_at = starts_at
1871
+ end
1872
+ end
1873
+ # Benefit details for this PaymentIntent
1874
+ attr_accessor :benefit
1875
+ # Car rental details for this PaymentIntent.
1876
+ attr_accessor :car_rental
1877
+ # Car rental data for this PaymentIntent.
1878
+ attr_accessor :car_rental_data
256
1879
  # A unique value to identify the customer. This field is available only for card payments.
257
1880
  #
258
1881
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
259
1882
  attr_accessor :customer_reference
1883
+ # Event details for this PaymentIntent
1884
+ attr_accessor :event_details
1885
+ # Flight reservation details for this PaymentIntent
1886
+ attr_accessor :flight
1887
+ # Flight data for this PaymentIntent.
1888
+ attr_accessor :flight_data
1889
+ # Lodging reservation details for this PaymentIntent
1890
+ attr_accessor :lodging
1891
+ # Lodging data for this PaymentIntent.
1892
+ attr_accessor :lodging_data
260
1893
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
261
1894
  #
262
1895
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
263
1896
  #
264
1897
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
265
1898
  attr_accessor :order_reference
1899
+ # Subscription details for this PaymentIntent
1900
+ attr_accessor :subscription
266
1901
 
267
- def initialize(customer_reference: nil, order_reference: nil)
1902
+ def initialize(
1903
+ benefit: nil,
1904
+ car_rental: nil,
1905
+ car_rental_data: nil,
1906
+ customer_reference: nil,
1907
+ event_details: nil,
1908
+ flight: nil,
1909
+ flight_data: nil,
1910
+ lodging: nil,
1911
+ lodging_data: nil,
1912
+ order_reference: nil,
1913
+ subscription: nil
1914
+ )
1915
+ @benefit = benefit
1916
+ @car_rental = car_rental
1917
+ @car_rental_data = car_rental_data
268
1918
  @customer_reference = customer_reference
1919
+ @event_details = event_details
1920
+ @flight = flight
1921
+ @flight_data = flight_data
1922
+ @lodging = lodging
1923
+ @lodging_data = lodging_data
269
1924
  @order_reference = order_reference
1925
+ @subscription = subscription
270
1926
  end
271
1927
  end
272
1928
 
@@ -407,8 +2063,18 @@ module Stripe
407
2063
  end
408
2064
 
409
2065
  class Giropay < ::Stripe::RequestParams; end
2066
+ class Gopay < ::Stripe::RequestParams; end
410
2067
  class Grabpay < ::Stripe::RequestParams; end
411
2068
 
2069
+ class IdBankTransfer < ::Stripe::RequestParams
2070
+ # Bank where the account is held.
2071
+ attr_accessor :bank
2072
+
2073
+ def initialize(bank: nil)
2074
+ @bank = bank
2075
+ end
2076
+ end
2077
+
412
2078
  class Ideal < ::Stripe::RequestParams
413
2079
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
414
2080
  attr_accessor :bank
@@ -506,8 +2172,26 @@ module Stripe
506
2172
  class Payco < ::Stripe::RequestParams; end
507
2173
  class Paynow < ::Stripe::RequestParams; end
508
2174
  class Paypal < ::Stripe::RequestParams; end
2175
+ class Paypay < ::Stripe::RequestParams; end
2176
+
2177
+ class Payto < ::Stripe::RequestParams
2178
+ # The account number for the bank account.
2179
+ attr_accessor :account_number
2180
+ # Bank-State-Branch number of the bank account.
2181
+ attr_accessor :bsb_number
2182
+ # The PayID alias for the bank account.
2183
+ attr_accessor :pay_id
2184
+
2185
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
2186
+ @account_number = account_number
2187
+ @bsb_number = bsb_number
2188
+ @pay_id = pay_id
2189
+ end
2190
+ end
2191
+
509
2192
  class Pix < ::Stripe::RequestParams; end
510
2193
  class Promptpay < ::Stripe::RequestParams; end
2194
+ class Qris < ::Stripe::RequestParams; end
511
2195
 
512
2196
  class RadarOptions < ::Stripe::RequestParams
513
2197
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -518,6 +2202,29 @@ module Stripe
518
2202
  end
519
2203
  end
520
2204
 
2205
+ class Rechnung < ::Stripe::RequestParams
2206
+ class Dob < ::Stripe::RequestParams
2207
+ # The day of birth, between 1 and 31.
2208
+ attr_accessor :day
2209
+ # The month of birth, between 1 and 12.
2210
+ attr_accessor :month
2211
+ # The four-digit year of birth.
2212
+ attr_accessor :year
2213
+
2214
+ def initialize(day: nil, month: nil, year: nil)
2215
+ @day = day
2216
+ @month = month
2217
+ @year = year
2218
+ end
2219
+ end
2220
+ # Customer's date of birth
2221
+ attr_accessor :dob
2222
+
2223
+ def initialize(dob: nil)
2224
+ @dob = dob
2225
+ end
2226
+ end
2227
+
521
2228
  class RevolutPay < ::Stripe::RequestParams; end
522
2229
  class SamsungPay < ::Stripe::RequestParams; end
523
2230
  class Satispay < ::Stripe::RequestParams; end
@@ -531,6 +2238,8 @@ module Stripe
531
2238
  end
532
2239
  end
533
2240
 
2241
+ class Shopeepay < ::Stripe::RequestParams; end
2242
+
534
2243
  class Sofort < ::Stripe::RequestParams
535
2244
  # Two-letter ISO code representing the country the bank account is located in.
536
2245
  attr_accessor :country
@@ -540,6 +2249,18 @@ module Stripe
540
2249
  end
541
2250
  end
542
2251
 
2252
+ class StripeBalance < ::Stripe::RequestParams
2253
+ # The connected account ID whose Stripe balance to use as the source of payment
2254
+ attr_accessor :account
2255
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2256
+ attr_accessor :source_type
2257
+
2258
+ def initialize(account: nil, source_type: nil)
2259
+ @account = account
2260
+ @source_type = source_type
2261
+ end
2262
+ end
2263
+
543
2264
  class Swish < ::Stripe::RequestParams; end
544
2265
  class Twint < ::Stripe::RequestParams; end
545
2266
 
@@ -612,8 +2333,12 @@ module Stripe
612
2333
  attr_accessor :fpx
613
2334
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
614
2335
  attr_accessor :giropay
2336
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2337
+ attr_accessor :gopay
615
2338
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
616
2339
  attr_accessor :grabpay
2340
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2341
+ attr_accessor :id_bank_transfer
617
2342
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
618
2343
  attr_accessor :ideal
619
2344
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -652,12 +2377,20 @@ module Stripe
652
2377
  attr_accessor :paynow
653
2378
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
654
2379
  attr_accessor :paypal
2380
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2381
+ attr_accessor :paypay
2382
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2383
+ attr_accessor :payto
655
2384
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
656
2385
  attr_accessor :pix
657
2386
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
658
2387
  attr_accessor :promptpay
2388
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2389
+ attr_accessor :qris
659
2390
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
660
2391
  attr_accessor :radar_options
2392
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2393
+ attr_accessor :rechnung
661
2394
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
662
2395
  attr_accessor :revolut_pay
663
2396
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -666,8 +2399,12 @@ module Stripe
666
2399
  attr_accessor :satispay
667
2400
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
668
2401
  attr_accessor :sepa_debit
2402
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2403
+ attr_accessor :shopeepay
669
2404
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
670
2405
  attr_accessor :sofort
2406
+ # This hash contains details about the Stripe balance payment method.
2407
+ attr_accessor :stripe_balance
671
2408
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
672
2409
  attr_accessor :swish
673
2410
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -702,7 +2439,9 @@ module Stripe
702
2439
  eps: nil,
703
2440
  fpx: nil,
704
2441
  giropay: nil,
2442
+ gopay: nil,
705
2443
  grabpay: nil,
2444
+ id_bank_transfer: nil,
706
2445
  ideal: nil,
707
2446
  interac_present: nil,
708
2447
  kakao_pay: nil,
@@ -722,14 +2461,20 @@ module Stripe
722
2461
  payco: nil,
723
2462
  paynow: nil,
724
2463
  paypal: nil,
2464
+ paypay: nil,
2465
+ payto: nil,
725
2466
  pix: nil,
726
2467
  promptpay: nil,
2468
+ qris: nil,
727
2469
  radar_options: nil,
2470
+ rechnung: nil,
728
2471
  revolut_pay: nil,
729
2472
  samsung_pay: nil,
730
2473
  satispay: nil,
731
2474
  sepa_debit: nil,
2475
+ shopeepay: nil,
732
2476
  sofort: nil,
2477
+ stripe_balance: nil,
733
2478
  swish: nil,
734
2479
  twint: nil,
735
2480
  type: nil,
@@ -757,7 +2502,9 @@ module Stripe
757
2502
  @eps = eps
758
2503
  @fpx = fpx
759
2504
  @giropay = giropay
2505
+ @gopay = gopay
760
2506
  @grabpay = grabpay
2507
+ @id_bank_transfer = id_bank_transfer
761
2508
  @ideal = ideal
762
2509
  @interac_present = interac_present
763
2510
  @kakao_pay = kakao_pay
@@ -777,14 +2524,20 @@ module Stripe
777
2524
  @payco = payco
778
2525
  @paynow = paynow
779
2526
  @paypal = paypal
2527
+ @paypay = paypay
2528
+ @payto = payto
780
2529
  @pix = pix
781
2530
  @promptpay = promptpay
2531
+ @qris = qris
782
2532
  @radar_options = radar_options
2533
+ @rechnung = rechnung
783
2534
  @revolut_pay = revolut_pay
784
2535
  @samsung_pay = samsung_pay
785
2536
  @satispay = satispay
786
2537
  @sepa_debit = sepa_debit
2538
+ @shopeepay = shopeepay
787
2539
  @sofort = sofort
2540
+ @stripe_balance = stripe_balance
788
2541
  @swish = swish
789
2542
  @twint = twint
790
2543
  @type = type
@@ -1155,6 +2908,48 @@ module Stripe
1155
2908
  end
1156
2909
  end
1157
2910
 
2911
+ class StatementDetails < ::Stripe::RequestParams
2912
+ class Address < ::Stripe::RequestParams
2913
+ # City, district, suburb, town, or village.
2914
+ attr_accessor :city
2915
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2916
+ attr_accessor :country
2917
+ # Address line 1, such as the street, PO Box, or company name.
2918
+ attr_accessor :line1
2919
+ # Address line 2, such as the apartment, suite, unit, or building.
2920
+ attr_accessor :line2
2921
+ # ZIP or postal code.
2922
+ attr_accessor :postal_code
2923
+ # State, county, province, or region.
2924
+ attr_accessor :state
2925
+
2926
+ def initialize(
2927
+ city: nil,
2928
+ country: nil,
2929
+ line1: nil,
2930
+ line2: nil,
2931
+ postal_code: nil,
2932
+ state: nil
2933
+ )
2934
+ @city = city
2935
+ @country = country
2936
+ @line1 = line1
2937
+ @line2 = line2
2938
+ @postal_code = postal_code
2939
+ @state = state
2940
+ end
2941
+ end
2942
+ # Please pass in an address that is within your Stripe user account country
2943
+ attr_accessor :address
2944
+ # Phone number (e.g., a toll-free number that customers can call)
2945
+ attr_accessor :phone
2946
+
2947
+ def initialize(address: nil, phone: nil)
2948
+ @address = address
2949
+ @phone = phone
2950
+ end
2951
+ end
2952
+
1158
2953
  class ThreeDSecure < ::Stripe::RequestParams
1159
2954
  class NetworkOptions < ::Stripe::RequestParams
1160
2955
  class CartesBancaires < ::Stripe::RequestParams
@@ -1249,6 +3044,8 @@ module Stripe
1249
3044
  attr_accessor :moto
1250
3045
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
1251
3046
  attr_accessor :network
3047
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
3048
+ attr_accessor :request_decremental_authorization
1252
3049
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1253
3050
  attr_accessor :request_extended_authorization
1254
3051
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1257,6 +3054,8 @@ module Stripe
1257
3054
  attr_accessor :request_multicapture
1258
3055
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1259
3056
  attr_accessor :request_overcapture
3057
+ # Request partial authorization on this PaymentIntent.
3058
+ attr_accessor :request_partial_authorization
1260
3059
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1261
3060
  attr_accessor :request_three_d_secure
1262
3061
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -1275,6 +3074,8 @@ module Stripe
1275
3074
  attr_accessor :statement_descriptor_suffix_kana
1276
3075
  # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1277
3076
  attr_accessor :statement_descriptor_suffix_kanji
3077
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3078
+ attr_accessor :statement_details
1278
3079
  # If 3D Secure authentication was performed with a third-party provider,
1279
3080
  # the authentication details to use for this payment.
1280
3081
  attr_accessor :three_d_secure
@@ -1286,15 +3087,18 @@ module Stripe
1286
3087
  mandate_options: nil,
1287
3088
  moto: nil,
1288
3089
  network: nil,
3090
+ request_decremental_authorization: nil,
1289
3091
  request_extended_authorization: nil,
1290
3092
  request_incremental_authorization: nil,
1291
3093
  request_multicapture: nil,
1292
3094
  request_overcapture: nil,
3095
+ request_partial_authorization: nil,
1293
3096
  request_three_d_secure: nil,
1294
3097
  require_cvc_recollection: nil,
1295
3098
  setup_future_usage: nil,
1296
3099
  statement_descriptor_suffix_kana: nil,
1297
3100
  statement_descriptor_suffix_kanji: nil,
3101
+ statement_details: nil,
1298
3102
  three_d_secure: nil
1299
3103
  )
1300
3104
  @capture_method = capture_method
@@ -1303,15 +3107,18 @@ module Stripe
1303
3107
  @mandate_options = mandate_options
1304
3108
  @moto = moto
1305
3109
  @network = network
3110
+ @request_decremental_authorization = request_decremental_authorization
1306
3111
  @request_extended_authorization = request_extended_authorization
1307
3112
  @request_incremental_authorization = request_incremental_authorization
1308
3113
  @request_multicapture = request_multicapture
1309
3114
  @request_overcapture = request_overcapture
3115
+ @request_partial_authorization = request_partial_authorization
1310
3116
  @request_three_d_secure = request_three_d_secure
1311
3117
  @require_cvc_recollection = require_cvc_recollection
1312
3118
  @setup_future_usage = setup_future_usage
1313
3119
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1314
3120
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3121
+ @statement_details = statement_details
1315
3122
  @three_d_secure = three_d_secure
1316
3123
  end
1317
3124
  end
@@ -1490,6 +3297,23 @@ module Stripe
1490
3297
  end
1491
3298
  end
1492
3299
 
3300
+ class Gopay < ::Stripe::RequestParams
3301
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3302
+ #
3303
+ # 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.
3304
+ #
3305
+ # 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.
3306
+ #
3307
+ # 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).
3308
+ #
3309
+ # 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`.
3310
+ attr_accessor :setup_future_usage
3311
+
3312
+ def initialize(setup_future_usage: nil)
3313
+ @setup_future_usage = setup_future_usage
3314
+ end
3315
+ end
3316
+
1493
3317
  class Grabpay < ::Stripe::RequestParams
1494
3318
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1495
3319
  #
@@ -1507,6 +3331,29 @@ module Stripe
1507
3331
  end
1508
3332
  end
1509
3333
 
3334
+ class IdBankTransfer < ::Stripe::RequestParams
3335
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
3336
+ attr_accessor :expires_after
3337
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
3338
+ attr_accessor :expires_at
3339
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3340
+ #
3341
+ # 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.
3342
+ #
3343
+ # 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.
3344
+ #
3345
+ # 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).
3346
+ #
3347
+ # 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`.
3348
+ attr_accessor :setup_future_usage
3349
+
3350
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3351
+ @expires_after = expires_after
3352
+ @expires_at = expires_at
3353
+ @setup_future_usage = setup_future_usage
3354
+ end
3355
+ end
3356
+
1510
3357
  class Ideal < ::Stripe::RequestParams
1511
3358
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1512
3359
  #
@@ -1519,98 +3366,1031 @@ module Stripe
1519
3366
  # 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`.
1520
3367
  attr_accessor :setup_future_usage
1521
3368
 
1522
- def initialize(setup_future_usage: nil)
1523
- @setup_future_usage = setup_future_usage
1524
- end
1525
- end
3369
+ def initialize(setup_future_usage: nil)
3370
+ @setup_future_usage = setup_future_usage
3371
+ end
3372
+ end
3373
+
3374
+ class InteracPresent < ::Stripe::RequestParams; end
3375
+
3376
+ class KakaoPay < ::Stripe::RequestParams
3377
+ # Controls when the funds are captured from the customer's account.
3378
+ #
3379
+ # 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.
3380
+ #
3381
+ # 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.
3382
+ attr_accessor :capture_method
3383
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3384
+ #
3385
+ # 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.
3386
+ #
3387
+ # 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.
3388
+ #
3389
+ # 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).
3390
+ attr_accessor :setup_future_usage
3391
+
3392
+ def initialize(capture_method: nil, setup_future_usage: nil)
3393
+ @capture_method = capture_method
3394
+ @setup_future_usage = setup_future_usage
3395
+ end
3396
+ end
3397
+
3398
+ class Klarna < ::Stripe::RequestParams
3399
+ class OnDemand < ::Stripe::RequestParams
3400
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
3401
+ attr_accessor :average_amount
3402
+ # 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.
3403
+ attr_accessor :maximum_amount
3404
+ # 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.
3405
+ attr_accessor :minimum_amount
3406
+ # Interval at which the customer is making purchases
3407
+ attr_accessor :purchase_interval
3408
+ # The number of `purchase_interval` between charges
3409
+ attr_accessor :purchase_interval_count
3410
+
3411
+ def initialize(
3412
+ average_amount: nil,
3413
+ maximum_amount: nil,
3414
+ minimum_amount: nil,
3415
+ purchase_interval: nil,
3416
+ purchase_interval_count: nil
3417
+ )
3418
+ @average_amount = average_amount
3419
+ @maximum_amount = maximum_amount
3420
+ @minimum_amount = minimum_amount
3421
+ @purchase_interval = purchase_interval
3422
+ @purchase_interval_count = purchase_interval_count
3423
+ end
3424
+ end
3425
+
3426
+ class Subscription < ::Stripe::RequestParams
3427
+ class NextBilling < ::Stripe::RequestParams
3428
+ # The amount of the next charge for the subscription.
3429
+ attr_accessor :amount
3430
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
3431
+ attr_accessor :date
3432
+
3433
+ def initialize(amount: nil, date: nil)
3434
+ @amount = amount
3435
+ @date = date
3436
+ end
3437
+ end
3438
+ # Unit of time between subscription charges.
3439
+ attr_accessor :interval
3440
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
3441
+ attr_accessor :interval_count
3442
+ # Name for subscription.
3443
+ attr_accessor :name
3444
+ # Describes the upcoming charge for this subscription.
3445
+ attr_accessor :next_billing
3446
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
3447
+ attr_accessor :reference
3448
+
3449
+ def initialize(
3450
+ interval: nil,
3451
+ interval_count: nil,
3452
+ name: nil,
3453
+ next_billing: nil,
3454
+ reference: nil
3455
+ )
3456
+ @interval = interval
3457
+ @interval_count = interval_count
3458
+ @name = name
3459
+ @next_billing = next_billing
3460
+ @reference = reference
3461
+ end
3462
+ end
3463
+
3464
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3465
+ class BusReservationDetail < ::Stripe::RequestParams
3466
+ class Arrival < ::Stripe::RequestParams
3467
+ class Address < ::Stripe::RequestParams
3468
+ # The city or town.
3469
+ attr_accessor :city
3470
+ # The country in ISO 3166-1 alpha-2 format.
3471
+ attr_accessor :country
3472
+ # The postal code formatted according to country.
3473
+ attr_accessor :postal_code
3474
+ # The state, county, province, or region formatted according to country.
3475
+ attr_accessor :region
3476
+ # Line 1 of the street address.
3477
+ attr_accessor :street_address
3478
+ # Line 2 of the street address.
3479
+ attr_accessor :street_address2
3480
+
3481
+ def initialize(
3482
+ city: nil,
3483
+ country: nil,
3484
+ postal_code: nil,
3485
+ region: nil,
3486
+ street_address: nil,
3487
+ street_address2: nil
3488
+ )
3489
+ @city = city
3490
+ @country = country
3491
+ @postal_code = postal_code
3492
+ @region = region
3493
+ @street_address = street_address
3494
+ @street_address2 = street_address2
3495
+ end
3496
+ end
3497
+ # Address of the arrival location.
3498
+ attr_accessor :address
3499
+ # Identifier name or reference for the arrival location.
3500
+ attr_accessor :arrival_location
3501
+
3502
+ def initialize(address: nil, arrival_location: nil)
3503
+ @address = address
3504
+ @arrival_location = arrival_location
3505
+ end
3506
+ end
3507
+
3508
+ class Departure < ::Stripe::RequestParams
3509
+ class Address < ::Stripe::RequestParams
3510
+ # The city or town.
3511
+ attr_accessor :city
3512
+ # The country in ISO 3166-1 alpha-2 format.
3513
+ attr_accessor :country
3514
+ # The postal code formatted according to country.
3515
+ attr_accessor :postal_code
3516
+ # The state, county, province, or region formatted according to country.
3517
+ attr_accessor :region
3518
+ # Line 1 of the street address.
3519
+ attr_accessor :street_address
3520
+ # Line 2 of the street address.
3521
+ attr_accessor :street_address2
3522
+
3523
+ def initialize(
3524
+ city: nil,
3525
+ country: nil,
3526
+ postal_code: nil,
3527
+ region: nil,
3528
+ street_address: nil,
3529
+ street_address2: nil
3530
+ )
3531
+ @city = city
3532
+ @country = country
3533
+ @postal_code = postal_code
3534
+ @region = region
3535
+ @street_address = street_address
3536
+ @street_address2 = street_address2
3537
+ end
3538
+ end
3539
+ # Address of the departure location.
3540
+ attr_accessor :address
3541
+ # Timestamp of departure.
3542
+ attr_accessor :departs_at
3543
+ # Identifier name or reference for the origin location.
3544
+ attr_accessor :departure_location
3545
+
3546
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3547
+ @address = address
3548
+ @departs_at = departs_at
3549
+ @departure_location = departure_location
3550
+ end
3551
+ end
3552
+
3553
+ class Insurance < ::Stripe::RequestParams
3554
+ # Insurance currency.
3555
+ attr_accessor :currency
3556
+ # Name of the company providing the insurance.
3557
+ attr_accessor :insurance_company_name
3558
+ # Type of insurance.
3559
+ attr_accessor :insurance_type
3560
+ # Price of insurance in cents.
3561
+ attr_accessor :price
3562
+
3563
+ def initialize(
3564
+ currency: nil,
3565
+ insurance_company_name: nil,
3566
+ insurance_type: nil,
3567
+ price: nil
3568
+ )
3569
+ @currency = currency
3570
+ @insurance_company_name = insurance_company_name
3571
+ @insurance_type = insurance_type
3572
+ @price = price
3573
+ end
3574
+ end
3575
+
3576
+ class Passenger < ::Stripe::RequestParams
3577
+ # The family name of the person.
3578
+ attr_accessor :family_name
3579
+ # The given name of the person.
3580
+ attr_accessor :given_name
3581
+
3582
+ def initialize(family_name: nil, given_name: nil)
3583
+ @family_name = family_name
3584
+ @given_name = given_name
3585
+ end
3586
+ end
3587
+ # Name of associated or partner company for the service.
3588
+ attr_accessor :affiliate_name
3589
+ # Arrival details.
3590
+ attr_accessor :arrival
3591
+ # Name of transportation company.
3592
+ attr_accessor :carrier_name
3593
+ # Currency.
3594
+ attr_accessor :currency
3595
+ # Departure details.
3596
+ attr_accessor :departure
3597
+ # List of insurances for this reservation.
3598
+ attr_accessor :insurances
3599
+ # List of passengers that this reservation applies to.
3600
+ attr_accessor :passengers
3601
+ # Price in cents.
3602
+ attr_accessor :price
3603
+ # Ticket class.
3604
+ attr_accessor :ticket_class
3605
+
3606
+ def initialize(
3607
+ affiliate_name: nil,
3608
+ arrival: nil,
3609
+ carrier_name: nil,
3610
+ currency: nil,
3611
+ departure: nil,
3612
+ insurances: nil,
3613
+ passengers: nil,
3614
+ price: nil,
3615
+ ticket_class: nil
3616
+ )
3617
+ @affiliate_name = affiliate_name
3618
+ @arrival = arrival
3619
+ @carrier_name = carrier_name
3620
+ @currency = currency
3621
+ @departure = departure
3622
+ @insurances = insurances
3623
+ @passengers = passengers
3624
+ @price = price
3625
+ @ticket_class = ticket_class
3626
+ end
3627
+ end
3628
+
3629
+ class EventReservationDetail < ::Stripe::RequestParams
3630
+ class Address < ::Stripe::RequestParams
3631
+ # The city or town.
3632
+ attr_accessor :city
3633
+ # The country in ISO 3166-1 alpha-2 format.
3634
+ attr_accessor :country
3635
+ # The postal code formatted according to country.
3636
+ attr_accessor :postal_code
3637
+ # The state, county, province, or region formatted according to country.
3638
+ attr_accessor :region
3639
+ # Line 1 of the street address.
3640
+ attr_accessor :street_address
3641
+ # Line 2 of the street address.
3642
+ attr_accessor :street_address2
3643
+
3644
+ def initialize(
3645
+ city: nil,
3646
+ country: nil,
3647
+ postal_code: nil,
3648
+ region: nil,
3649
+ street_address: nil,
3650
+ street_address2: nil
3651
+ )
3652
+ @city = city
3653
+ @country = country
3654
+ @postal_code = postal_code
3655
+ @region = region
3656
+ @street_address = street_address
3657
+ @street_address2 = street_address2
3658
+ end
3659
+ end
3660
+
3661
+ class Insurance < ::Stripe::RequestParams
3662
+ # Insurance currency.
3663
+ attr_accessor :currency
3664
+ # Name of the company providing the insurance.
3665
+ attr_accessor :insurance_company_name
3666
+ # Type of insurance.
3667
+ attr_accessor :insurance_type
3668
+ # Price of insurance in cents.
3669
+ attr_accessor :price
3670
+
3671
+ def initialize(
3672
+ currency: nil,
3673
+ insurance_company_name: nil,
3674
+ insurance_type: nil,
3675
+ price: nil
3676
+ )
3677
+ @currency = currency
3678
+ @insurance_company_name = insurance_company_name
3679
+ @insurance_type = insurance_type
3680
+ @price = price
3681
+ end
3682
+ end
3683
+ # Indicates if the tickets are digitally checked when entering the venue.
3684
+ attr_accessor :access_controlled_venue
3685
+ # Address of the event.
3686
+ attr_accessor :address
3687
+ # Name of associated or partner company for the service.
3688
+ attr_accessor :affiliate_name
3689
+ # End timestamp of the event.
3690
+ attr_accessor :ends_at
3691
+ # Company selling the ticket.
3692
+ attr_accessor :event_company_name
3693
+ # Name of the event.
3694
+ attr_accessor :event_name
3695
+ # Type of the event.
3696
+ attr_accessor :event_type
3697
+ # List of insurances for this event.
3698
+ attr_accessor :insurances
3699
+ # Start timestamp of the event.
3700
+ attr_accessor :starts_at
3701
+ # Name of the venue where the event takes place.
3702
+ attr_accessor :venue_name
3703
+
3704
+ def initialize(
3705
+ access_controlled_venue: nil,
3706
+ address: nil,
3707
+ affiliate_name: nil,
3708
+ ends_at: nil,
3709
+ event_company_name: nil,
3710
+ event_name: nil,
3711
+ event_type: nil,
3712
+ insurances: nil,
3713
+ starts_at: nil,
3714
+ venue_name: nil
3715
+ )
3716
+ @access_controlled_venue = access_controlled_venue
3717
+ @address = address
3718
+ @affiliate_name = affiliate_name
3719
+ @ends_at = ends_at
3720
+ @event_company_name = event_company_name
3721
+ @event_name = event_name
3722
+ @event_type = event_type
3723
+ @insurances = insurances
3724
+ @starts_at = starts_at
3725
+ @venue_name = venue_name
3726
+ end
3727
+ end
3728
+
3729
+ class FerryReservationDetail < ::Stripe::RequestParams
3730
+ class Arrival < ::Stripe::RequestParams
3731
+ class Address < ::Stripe::RequestParams
3732
+ # The city or town.
3733
+ attr_accessor :city
3734
+ # The country in ISO 3166-1 alpha-2 format.
3735
+ attr_accessor :country
3736
+ # The postal code formatted according to country.
3737
+ attr_accessor :postal_code
3738
+ # The state, county, province, or region formatted according to country.
3739
+ attr_accessor :region
3740
+ # Line 1 of the street address.
3741
+ attr_accessor :street_address
3742
+ # Line 2 of the street address.
3743
+ attr_accessor :street_address2
3744
+
3745
+ def initialize(
3746
+ city: nil,
3747
+ country: nil,
3748
+ postal_code: nil,
3749
+ region: nil,
3750
+ street_address: nil,
3751
+ street_address2: nil
3752
+ )
3753
+ @city = city
3754
+ @country = country
3755
+ @postal_code = postal_code
3756
+ @region = region
3757
+ @street_address = street_address
3758
+ @street_address2 = street_address2
3759
+ end
3760
+ end
3761
+ # Address of the arrival location.
3762
+ attr_accessor :address
3763
+ # Identifier name or reference for the arrival location.
3764
+ attr_accessor :arrival_location
3765
+
3766
+ def initialize(address: nil, arrival_location: nil)
3767
+ @address = address
3768
+ @arrival_location = arrival_location
3769
+ end
3770
+ end
3771
+
3772
+ class Departure < ::Stripe::RequestParams
3773
+ class Address < ::Stripe::RequestParams
3774
+ # The city or town.
3775
+ attr_accessor :city
3776
+ # The country in ISO 3166-1 alpha-2 format.
3777
+ attr_accessor :country
3778
+ # The postal code formatted according to country.
3779
+ attr_accessor :postal_code
3780
+ # The state, county, province, or region formatted according to country.
3781
+ attr_accessor :region
3782
+ # Line 1 of the street address.
3783
+ attr_accessor :street_address
3784
+ # Line 2 of the street address.
3785
+ attr_accessor :street_address2
3786
+
3787
+ def initialize(
3788
+ city: nil,
3789
+ country: nil,
3790
+ postal_code: nil,
3791
+ region: nil,
3792
+ street_address: nil,
3793
+ street_address2: nil
3794
+ )
3795
+ @city = city
3796
+ @country = country
3797
+ @postal_code = postal_code
3798
+ @region = region
3799
+ @street_address = street_address
3800
+ @street_address2 = street_address2
3801
+ end
3802
+ end
3803
+ # Address of the departure location.
3804
+ attr_accessor :address
3805
+ # Timestamp of departure.
3806
+ attr_accessor :departs_at
3807
+ # Identifier name or reference for the origin location.
3808
+ attr_accessor :departure_location
3809
+
3810
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3811
+ @address = address
3812
+ @departs_at = departs_at
3813
+ @departure_location = departure_location
3814
+ end
3815
+ end
3816
+
3817
+ class Insurance < ::Stripe::RequestParams
3818
+ # Insurance currency.
3819
+ attr_accessor :currency
3820
+ # Name of the company providing the insurance.
3821
+ attr_accessor :insurance_company_name
3822
+ # Type of insurance.
3823
+ attr_accessor :insurance_type
3824
+ # Price of insurance in cents.
3825
+ attr_accessor :price
3826
+
3827
+ def initialize(
3828
+ currency: nil,
3829
+ insurance_company_name: nil,
3830
+ insurance_type: nil,
3831
+ price: nil
3832
+ )
3833
+ @currency = currency
3834
+ @insurance_company_name = insurance_company_name
3835
+ @insurance_type = insurance_type
3836
+ @price = price
3837
+ end
3838
+ end
3839
+
3840
+ class Passenger < ::Stripe::RequestParams
3841
+ # The family name of the person.
3842
+ attr_accessor :family_name
3843
+ # The given name of the person.
3844
+ attr_accessor :given_name
3845
+
3846
+ def initialize(family_name: nil, given_name: nil)
3847
+ @family_name = family_name
3848
+ @given_name = given_name
3849
+ end
3850
+ end
3851
+ # Name of associated or partner company for the service.
3852
+ attr_accessor :affiliate_name
3853
+ # Arrival details.
3854
+ attr_accessor :arrival
3855
+ # Name of transportation company.
3856
+ attr_accessor :carrier_name
3857
+ # Currency.
3858
+ attr_accessor :currency
3859
+ # Departure details.
3860
+ attr_accessor :departure
3861
+ # List of insurances for this reservation.
3862
+ attr_accessor :insurances
3863
+ # List of passengers that this reservation applies to.
3864
+ attr_accessor :passengers
3865
+ # Price in cents.
3866
+ attr_accessor :price
3867
+ # Ticket class.
3868
+ attr_accessor :ticket_class
3869
+
3870
+ def initialize(
3871
+ affiliate_name: nil,
3872
+ arrival: nil,
3873
+ carrier_name: nil,
3874
+ currency: nil,
3875
+ departure: nil,
3876
+ insurances: nil,
3877
+ passengers: nil,
3878
+ price: nil,
3879
+ ticket_class: nil
3880
+ )
3881
+ @affiliate_name = affiliate_name
3882
+ @arrival = arrival
3883
+ @carrier_name = carrier_name
3884
+ @currency = currency
3885
+ @departure = departure
3886
+ @insurances = insurances
3887
+ @passengers = passengers
3888
+ @price = price
3889
+ @ticket_class = ticket_class
3890
+ end
3891
+ end
3892
+
3893
+ class Insurance < ::Stripe::RequestParams
3894
+ # Insurance currency.
3895
+ attr_accessor :currency
3896
+ # Name of the company providing the insurance.
3897
+ attr_accessor :insurance_company_name
3898
+ # Type of insurance
3899
+ attr_accessor :insurance_type
3900
+ # Price of insurance in cents.
3901
+ attr_accessor :price
3902
+
3903
+ def initialize(
3904
+ currency: nil,
3905
+ insurance_company_name: nil,
3906
+ insurance_type: nil,
3907
+ price: nil
3908
+ )
3909
+ @currency = currency
3910
+ @insurance_company_name = insurance_company_name
3911
+ @insurance_type = insurance_type
3912
+ @price = price
3913
+ end
3914
+ end
3915
+
3916
+ class MarketplaceSeller < ::Stripe::RequestParams
3917
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3918
+ # The city or town.
3919
+ attr_accessor :city
3920
+ # The country in ISO 3166-1 alpha-2 format.
3921
+ attr_accessor :country
3922
+ # The postal code formatted according to country.
3923
+ attr_accessor :postal_code
3924
+ # The state, county, province, or region formatted according to country.
3925
+ attr_accessor :region
3926
+ # Line 1 of the street address.
3927
+ attr_accessor :street_address
3928
+ # Line 2 of the street address.
3929
+ attr_accessor :street_address2
3930
+
3931
+ def initialize(
3932
+ city: nil,
3933
+ country: nil,
3934
+ postal_code: nil,
3935
+ region: nil,
3936
+ street_address: nil,
3937
+ street_address2: nil
3938
+ )
3939
+ @city = city
3940
+ @country = country
3941
+ @postal_code = postal_code
3942
+ @region = region
3943
+ @street_address = street_address
3944
+ @street_address2 = street_address2
3945
+ end
3946
+ end
3947
+ # The references to line items for purchases with multiple associated sub-sellers.
3948
+ attr_accessor :line_item_references
3949
+ # The address of the selling or delivering merchant.
3950
+ attr_accessor :marketplace_seller_address
3951
+ # The name of the marketplace seller.
3952
+ attr_accessor :marketplace_seller_name
3953
+ # The unique identifier for the marketplace seller.
3954
+ attr_accessor :marketplace_seller_reference
3955
+ # The number of transactions the sub-seller completed in the last 12 months.
3956
+ attr_accessor :number_of_transactions
3957
+ # The category of the product.
3958
+ attr_accessor :product_category
3959
+ # The date when the seller's account with the marketplace was last logged in.
3960
+ attr_accessor :seller_last_login_at
3961
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3962
+ attr_accessor :seller_rating
3963
+ # The date when the seller's account with the marketplace was created.
3964
+ attr_accessor :seller_registered_at
3965
+ # The date when the seller's account with the marketplace was last updated.
3966
+ attr_accessor :seller_updated_at
3967
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3968
+ attr_accessor :shipping_references
3969
+ # 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.
3970
+ attr_accessor :volume_of_transactions
3971
+
3972
+ def initialize(
3973
+ line_item_references: nil,
3974
+ marketplace_seller_address: nil,
3975
+ marketplace_seller_name: nil,
3976
+ marketplace_seller_reference: nil,
3977
+ number_of_transactions: nil,
3978
+ product_category: nil,
3979
+ seller_last_login_at: nil,
3980
+ seller_rating: nil,
3981
+ seller_registered_at: nil,
3982
+ seller_updated_at: nil,
3983
+ shipping_references: nil,
3984
+ volume_of_transactions: nil
3985
+ )
3986
+ @line_item_references = line_item_references
3987
+ @marketplace_seller_address = marketplace_seller_address
3988
+ @marketplace_seller_name = marketplace_seller_name
3989
+ @marketplace_seller_reference = marketplace_seller_reference
3990
+ @number_of_transactions = number_of_transactions
3991
+ @product_category = product_category
3992
+ @seller_last_login_at = seller_last_login_at
3993
+ @seller_rating = seller_rating
3994
+ @seller_registered_at = seller_registered_at
3995
+ @seller_updated_at = seller_updated_at
3996
+ @shipping_references = shipping_references
3997
+ @volume_of_transactions = volume_of_transactions
3998
+ end
3999
+ end
4000
+
4001
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4002
+ class Arrival < ::Stripe::RequestParams
4003
+ class Address < ::Stripe::RequestParams
4004
+ # The city or town.
4005
+ attr_accessor :city
4006
+ # The country in ISO 3166-1 alpha-2 format.
4007
+ attr_accessor :country
4008
+ # The postal code formatted according to country.
4009
+ attr_accessor :postal_code
4010
+ # The state, county, province, or region formatted according to country.
4011
+ attr_accessor :region
4012
+ # Line 1 of the street address.
4013
+ attr_accessor :street_address
4014
+ # Line 2 of the street address.
4015
+ attr_accessor :street_address2
4016
+
4017
+ def initialize(
4018
+ city: nil,
4019
+ country: nil,
4020
+ postal_code: nil,
4021
+ region: nil,
4022
+ street_address: nil,
4023
+ street_address2: nil
4024
+ )
4025
+ @city = city
4026
+ @country = country
4027
+ @postal_code = postal_code
4028
+ @region = region
4029
+ @street_address = street_address
4030
+ @street_address2 = street_address2
4031
+ end
4032
+ end
4033
+ # Address of the arrival location.
4034
+ attr_accessor :address
4035
+ # Identifier name or reference for the arrival location.
4036
+ attr_accessor :arrival_location
4037
+
4038
+ def initialize(address: nil, arrival_location: nil)
4039
+ @address = address
4040
+ @arrival_location = arrival_location
4041
+ end
4042
+ end
4043
+
4044
+ class Departure < ::Stripe::RequestParams
4045
+ class Address < ::Stripe::RequestParams
4046
+ # The city or town.
4047
+ attr_accessor :city
4048
+ # The country in ISO 3166-1 alpha-2 format.
4049
+ attr_accessor :country
4050
+ # The postal code formatted according to country.
4051
+ attr_accessor :postal_code
4052
+ # The state, county, province, or region formatted according to country.
4053
+ attr_accessor :region
4054
+ # Line 1 of the street address.
4055
+ attr_accessor :street_address
4056
+ # Line 2 of the street address.
4057
+ attr_accessor :street_address2
4058
+
4059
+ def initialize(
4060
+ city: nil,
4061
+ country: nil,
4062
+ postal_code: nil,
4063
+ region: nil,
4064
+ street_address: nil,
4065
+ street_address2: nil
4066
+ )
4067
+ @city = city
4068
+ @country = country
4069
+ @postal_code = postal_code
4070
+ @region = region
4071
+ @street_address = street_address
4072
+ @street_address2 = street_address2
4073
+ end
4074
+ end
4075
+ # Address of the departure location.
4076
+ attr_accessor :address
4077
+ # Timestamp of departure.
4078
+ attr_accessor :departs_at
4079
+ # Identifier name or reference for the origin location.
4080
+ attr_accessor :departure_location
4081
+
4082
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4083
+ @address = address
4084
+ @departs_at = departs_at
4085
+ @departure_location = departure_location
4086
+ end
4087
+ end
4088
+
4089
+ class Insurance < ::Stripe::RequestParams
4090
+ # Insurance currency.
4091
+ attr_accessor :currency
4092
+ # Name of the company providing the insurance.
4093
+ attr_accessor :insurance_company_name
4094
+ # Type of insurance.
4095
+ attr_accessor :insurance_type
4096
+ # Price of insurance in cents.
4097
+ attr_accessor :price
4098
+
4099
+ def initialize(
4100
+ currency: nil,
4101
+ insurance_company_name: nil,
4102
+ insurance_type: nil,
4103
+ price: nil
4104
+ )
4105
+ @currency = currency
4106
+ @insurance_company_name = insurance_company_name
4107
+ @insurance_type = insurance_type
4108
+ @price = price
4109
+ end
4110
+ end
1526
4111
 
1527
- class InteracPresent < ::Stripe::RequestParams; end
4112
+ class Passenger < ::Stripe::RequestParams
4113
+ # The family name of the person.
4114
+ attr_accessor :family_name
4115
+ # The given name of the person.
4116
+ attr_accessor :given_name
1528
4117
 
1529
- class KakaoPay < ::Stripe::RequestParams
1530
- # Controls when the funds are captured from the customer's account.
1531
- #
1532
- # 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.
1533
- #
1534
- # 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.
1535
- attr_accessor :capture_method
1536
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1537
- #
1538
- # 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.
1539
- #
1540
- # 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.
1541
- #
1542
- # 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).
1543
- attr_accessor :setup_future_usage
4118
+ def initialize(family_name: nil, given_name: nil)
4119
+ @family_name = family_name
4120
+ @given_name = given_name
4121
+ end
4122
+ end
4123
+ # Name of associated or partner company for the service.
4124
+ attr_accessor :affiliate_name
4125
+ # Arrival details.
4126
+ attr_accessor :arrival
4127
+ # Name of transportation company.
4128
+ attr_accessor :carrier_name
4129
+ # Currency.
4130
+ attr_accessor :currency
4131
+ # Departure details.
4132
+ attr_accessor :departure
4133
+ # List of insurances for this reservation.
4134
+ attr_accessor :insurances
4135
+ # List of passengers that this reservation applies to.
4136
+ attr_accessor :passengers
4137
+ # Price in cents.
4138
+ attr_accessor :price
4139
+ # Ticket class.
4140
+ attr_accessor :ticket_class
1544
4141
 
1545
- def initialize(capture_method: nil, setup_future_usage: nil)
1546
- @capture_method = capture_method
1547
- @setup_future_usage = setup_future_usage
1548
- end
1549
- end
4142
+ def initialize(
4143
+ affiliate_name: nil,
4144
+ arrival: nil,
4145
+ carrier_name: nil,
4146
+ currency: nil,
4147
+ departure: nil,
4148
+ insurances: nil,
4149
+ passengers: nil,
4150
+ price: nil,
4151
+ ticket_class: nil
4152
+ )
4153
+ @affiliate_name = affiliate_name
4154
+ @arrival = arrival
4155
+ @carrier_name = carrier_name
4156
+ @currency = currency
4157
+ @departure = departure
4158
+ @insurances = insurances
4159
+ @passengers = passengers
4160
+ @price = price
4161
+ @ticket_class = ticket_class
4162
+ end
4163
+ end
1550
4164
 
1551
- class Klarna < ::Stripe::RequestParams
1552
- class OnDemand < ::Stripe::RequestParams
1553
- # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1554
- attr_accessor :average_amount
1555
- # 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.
1556
- attr_accessor :maximum_amount
1557
- # 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.
1558
- attr_accessor :minimum_amount
1559
- # Interval at which the customer is making purchases
1560
- attr_accessor :purchase_interval
1561
- # The number of `purchase_interval` between charges
1562
- attr_accessor :purchase_interval_count
4165
+ class TrainReservationDetail < ::Stripe::RequestParams
4166
+ class Arrival < ::Stripe::RequestParams
4167
+ class Address < ::Stripe::RequestParams
4168
+ # The city or town.
4169
+ attr_accessor :city
4170
+ # The country in ISO 3166-1 alpha-2 format.
4171
+ attr_accessor :country
4172
+ # The postal code formatted according to country.
4173
+ attr_accessor :postal_code
4174
+ # The state, county, province, or region formatted according to country.
4175
+ attr_accessor :region
4176
+ # Line 1 of the street address.
4177
+ attr_accessor :street_address
4178
+ # Line 2 of the street address.
4179
+ attr_accessor :street_address2
4180
+
4181
+ def initialize(
4182
+ city: nil,
4183
+ country: nil,
4184
+ postal_code: nil,
4185
+ region: nil,
4186
+ street_address: nil,
4187
+ street_address2: nil
4188
+ )
4189
+ @city = city
4190
+ @country = country
4191
+ @postal_code = postal_code
4192
+ @region = region
4193
+ @street_address = street_address
4194
+ @street_address2 = street_address2
4195
+ end
4196
+ end
4197
+ # Address of the arrival location.
4198
+ attr_accessor :address
4199
+ # Identifier name or reference for the arrival location.
4200
+ attr_accessor :arrival_location
4201
+
4202
+ def initialize(address: nil, arrival_location: nil)
4203
+ @address = address
4204
+ @arrival_location = arrival_location
4205
+ end
4206
+ end
1563
4207
 
1564
- def initialize(
1565
- average_amount: nil,
1566
- maximum_amount: nil,
1567
- minimum_amount: nil,
1568
- purchase_interval: nil,
1569
- purchase_interval_count: nil
1570
- )
1571
- @average_amount = average_amount
1572
- @maximum_amount = maximum_amount
1573
- @minimum_amount = minimum_amount
1574
- @purchase_interval = purchase_interval
1575
- @purchase_interval_count = purchase_interval_count
4208
+ class Departure < ::Stripe::RequestParams
4209
+ class Address < ::Stripe::RequestParams
4210
+ # The city or town.
4211
+ attr_accessor :city
4212
+ # The country in ISO 3166-1 alpha-2 format.
4213
+ attr_accessor :country
4214
+ # The postal code formatted according to country.
4215
+ attr_accessor :postal_code
4216
+ # The state, county, province, or region formatted according to country.
4217
+ attr_accessor :region
4218
+ # Line 1 of the street address.
4219
+ attr_accessor :street_address
4220
+ # Line 2 of the street address.
4221
+ attr_accessor :street_address2
4222
+
4223
+ def initialize(
4224
+ city: nil,
4225
+ country: nil,
4226
+ postal_code: nil,
4227
+ region: nil,
4228
+ street_address: nil,
4229
+ street_address2: nil
4230
+ )
4231
+ @city = city
4232
+ @country = country
4233
+ @postal_code = postal_code
4234
+ @region = region
4235
+ @street_address = street_address
4236
+ @street_address2 = street_address2
4237
+ end
4238
+ end
4239
+ # Address of the departure location.
4240
+ attr_accessor :address
4241
+ # Timestamp of departure.
4242
+ attr_accessor :departs_at
4243
+ # Identifier name or reference for the origin location.
4244
+ attr_accessor :departure_location
4245
+
4246
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4247
+ @address = address
4248
+ @departs_at = departs_at
4249
+ @departure_location = departure_location
4250
+ end
4251
+ end
4252
+
4253
+ class Insurance < ::Stripe::RequestParams
4254
+ # Insurance currency.
4255
+ attr_accessor :currency
4256
+ # Name of the company providing the insurance.
4257
+ attr_accessor :insurance_company_name
4258
+ # Type of insurance.
4259
+ attr_accessor :insurance_type
4260
+ # Price of insurance in cents.
4261
+ attr_accessor :price
4262
+
4263
+ def initialize(
4264
+ currency: nil,
4265
+ insurance_company_name: nil,
4266
+ insurance_type: nil,
4267
+ price: nil
4268
+ )
4269
+ @currency = currency
4270
+ @insurance_company_name = insurance_company_name
4271
+ @insurance_type = insurance_type
4272
+ @price = price
4273
+ end
4274
+ end
4275
+
4276
+ class Passenger < ::Stripe::RequestParams
4277
+ # The family name of the person.
4278
+ attr_accessor :family_name
4279
+ # The given name of the person.
4280
+ attr_accessor :given_name
4281
+
4282
+ def initialize(family_name: nil, given_name: nil)
4283
+ @family_name = family_name
4284
+ @given_name = given_name
4285
+ end
4286
+ end
4287
+ # Name of associated or partner company for the service.
4288
+ attr_accessor :affiliate_name
4289
+ # Arrival details.
4290
+ attr_accessor :arrival
4291
+ # Name of transportation company.
4292
+ attr_accessor :carrier_name
4293
+ # Currency.
4294
+ attr_accessor :currency
4295
+ # Departure details.
4296
+ attr_accessor :departure
4297
+ # List of insurances for this reservation.
4298
+ attr_accessor :insurances
4299
+ # List of passengers that this reservation applies to.
4300
+ attr_accessor :passengers
4301
+ # Price in cents.
4302
+ attr_accessor :price
4303
+ # Ticket class.
4304
+ attr_accessor :ticket_class
4305
+
4306
+ def initialize(
4307
+ affiliate_name: nil,
4308
+ arrival: nil,
4309
+ carrier_name: nil,
4310
+ currency: nil,
4311
+ departure: nil,
4312
+ insurances: nil,
4313
+ passengers: nil,
4314
+ price: nil,
4315
+ ticket_class: nil
4316
+ )
4317
+ @affiliate_name = affiliate_name
4318
+ @arrival = arrival
4319
+ @carrier_name = carrier_name
4320
+ @currency = currency
4321
+ @departure = departure
4322
+ @insurances = insurances
4323
+ @passengers = passengers
4324
+ @price = price
4325
+ @ticket_class = ticket_class
4326
+ end
1576
4327
  end
1577
- end
1578
4328
 
1579
- class Subscription < ::Stripe::RequestParams
1580
- class NextBilling < ::Stripe::RequestParams
1581
- # The amount of the next charge for the subscription.
1582
- attr_accessor :amount
1583
- # The date of the next charge for the subscription in YYYY-MM-DD format.
1584
- attr_accessor :date
4329
+ class Voucher < ::Stripe::RequestParams
4330
+ # Name of associated or partner company for this voucher.
4331
+ attr_accessor :affiliate_name
4332
+ # The voucher validity end time.
4333
+ attr_accessor :ends_at
4334
+ # The voucher validity start time.
4335
+ attr_accessor :starts_at
4336
+ # The issuer or provider of this voucher.
4337
+ attr_accessor :voucher_company
4338
+ # The name or reference to identify the voucher.
4339
+ attr_accessor :voucher_name
4340
+ # The type of this voucher.
4341
+ attr_accessor :voucher_type
1585
4342
 
1586
- def initialize(amount: nil, date: nil)
1587
- @amount = amount
1588
- @date = date
4343
+ def initialize(
4344
+ affiliate_name: nil,
4345
+ ends_at: nil,
4346
+ starts_at: nil,
4347
+ voucher_company: nil,
4348
+ voucher_name: nil,
4349
+ voucher_type: nil
4350
+ )
4351
+ @affiliate_name = affiliate_name
4352
+ @ends_at = ends_at
4353
+ @starts_at = starts_at
4354
+ @voucher_company = voucher_company
4355
+ @voucher_name = voucher_name
4356
+ @voucher_type = voucher_type
1589
4357
  end
1590
4358
  end
1591
- # Unit of time between subscription charges.
1592
- attr_accessor :interval
1593
- # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1594
- attr_accessor :interval_count
1595
- # Name for subscription.
1596
- attr_accessor :name
1597
- # Describes the upcoming charge for this subscription.
1598
- attr_accessor :next_billing
1599
- # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1600
- attr_accessor :reference
4359
+ # Supplementary bus reservation details.
4360
+ attr_accessor :bus_reservation_details
4361
+ # Supplementary event reservation details.
4362
+ attr_accessor :event_reservation_details
4363
+ # Supplementary ferry reservation details.
4364
+ attr_accessor :ferry_reservation_details
4365
+ # Supplementary insurance details.
4366
+ attr_accessor :insurances
4367
+ # Supplementary marketplace seller details.
4368
+ attr_accessor :marketplace_sellers
4369
+ # Supplementary round trip reservation details.
4370
+ attr_accessor :round_trip_reservation_details
4371
+ # Supplementary train reservation details.
4372
+ attr_accessor :train_reservation_details
4373
+ # Voucher details, such as a gift card or discount code.
4374
+ attr_accessor :vouchers
1601
4375
 
1602
4376
  def initialize(
1603
- interval: nil,
1604
- interval_count: nil,
1605
- name: nil,
1606
- next_billing: nil,
1607
- reference: nil
4377
+ bus_reservation_details: nil,
4378
+ event_reservation_details: nil,
4379
+ ferry_reservation_details: nil,
4380
+ insurances: nil,
4381
+ marketplace_sellers: nil,
4382
+ round_trip_reservation_details: nil,
4383
+ train_reservation_details: nil,
4384
+ vouchers: nil
1608
4385
  )
1609
- @interval = interval
1610
- @interval_count = interval_count
1611
- @name = name
1612
- @next_billing = next_billing
1613
- @reference = reference
4386
+ @bus_reservation_details = bus_reservation_details
4387
+ @event_reservation_details = event_reservation_details
4388
+ @ferry_reservation_details = ferry_reservation_details
4389
+ @insurances = insurances
4390
+ @marketplace_sellers = marketplace_sellers
4391
+ @round_trip_reservation_details = round_trip_reservation_details
4392
+ @train_reservation_details = train_reservation_details
4393
+ @vouchers = vouchers
1614
4394
  end
1615
4395
  end
1616
4396
  # Controls when the funds are captured from the customer's account.
@@ -1635,19 +4415,23 @@ module Stripe
1635
4415
  attr_accessor :setup_future_usage
1636
4416
  # Subscription details if setting up or charging a subscription.
1637
4417
  attr_accessor :subscriptions
4418
+ # Supplementary Purchase Data for the corresponding Klarna payment
4419
+ attr_accessor :supplementary_purchase_data
1638
4420
 
1639
4421
  def initialize(
1640
4422
  capture_method: nil,
1641
4423
  on_demand: nil,
1642
4424
  preferred_locale: nil,
1643
4425
  setup_future_usage: nil,
1644
- subscriptions: nil
4426
+ subscriptions: nil,
4427
+ supplementary_purchase_data: nil
1645
4428
  )
1646
4429
  @capture_method = capture_method
1647
4430
  @on_demand = on_demand
1648
4431
  @preferred_locale = preferred_locale
1649
4432
  @setup_future_usage = setup_future_usage
1650
4433
  @subscriptions = subscriptions
4434
+ @supplementary_purchase_data = supplementary_purchase_data
1651
4435
  end
1652
4436
  end
1653
4437
 
@@ -1908,12 +4692,65 @@ module Stripe
1908
4692
  end
1909
4693
 
1910
4694
  class Paypal < ::Stripe::RequestParams
4695
+ class LineItem < ::Stripe::RequestParams
4696
+ class Tax < ::Stripe::RequestParams
4697
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4698
+ attr_accessor :amount
4699
+ # The tax behavior for the line item.
4700
+ attr_accessor :behavior
4701
+
4702
+ def initialize(amount: nil, behavior: nil)
4703
+ @amount = amount
4704
+ @behavior = behavior
4705
+ end
4706
+ end
4707
+ # Type of the line item.
4708
+ attr_accessor :category
4709
+ # Description of the line item.
4710
+ attr_accessor :description
4711
+ # Descriptive name of the line item.
4712
+ attr_accessor :name
4713
+ # Quantity of the line item. Must be a positive number.
4714
+ attr_accessor :quantity
4715
+ # Client facing stock keeping unit, article number or similar.
4716
+ attr_accessor :sku
4717
+ # The Stripe account ID of the connected account that sells the item.
4718
+ attr_accessor :sold_by
4719
+ # The tax information for the line item.
4720
+ attr_accessor :tax
4721
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4722
+ attr_accessor :unit_amount
4723
+
4724
+ def initialize(
4725
+ category: nil,
4726
+ description: nil,
4727
+ name: nil,
4728
+ quantity: nil,
4729
+ sku: nil,
4730
+ sold_by: nil,
4731
+ tax: nil,
4732
+ unit_amount: nil
4733
+ )
4734
+ @category = category
4735
+ @description = description
4736
+ @name = name
4737
+ @quantity = quantity
4738
+ @sku = sku
4739
+ @sold_by = sold_by
4740
+ @tax = tax
4741
+ @unit_amount = unit_amount
4742
+ end
4743
+ end
1911
4744
  # Controls when the funds will be captured from the customer's account.
1912
4745
  attr_accessor :capture_method
4746
+ # The line items purchased by the customer.
4747
+ attr_accessor :line_items
1913
4748
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1914
4749
  attr_accessor :preferred_locale
1915
4750
  # 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.
1916
4751
  attr_accessor :reference
4752
+ # 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.
4753
+ attr_accessor :reference_id
1917
4754
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1918
4755
  attr_accessor :risk_correlation_id
1919
4756
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1926,29 +4763,140 @@ module Stripe
1926
4763
  #
1927
4764
  # 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`.
1928
4765
  attr_accessor :setup_future_usage
4766
+ # 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.
4767
+ attr_accessor :subsellers
1929
4768
 
1930
4769
  def initialize(
1931
4770
  capture_method: nil,
4771
+ line_items: nil,
1932
4772
  preferred_locale: nil,
1933
4773
  reference: nil,
4774
+ reference_id: nil,
1934
4775
  risk_correlation_id: nil,
1935
- setup_future_usage: nil
4776
+ setup_future_usage: nil,
4777
+ subsellers: nil
1936
4778
  )
1937
4779
  @capture_method = capture_method
4780
+ @line_items = line_items
1938
4781
  @preferred_locale = preferred_locale
1939
4782
  @reference = reference
4783
+ @reference_id = reference_id
1940
4784
  @risk_correlation_id = risk_correlation_id
1941
4785
  @setup_future_usage = setup_future_usage
4786
+ @subsellers = subsellers
4787
+ end
4788
+ end
4789
+
4790
+ class Paypay < ::Stripe::RequestParams
4791
+ # Controls when the funds are captured from the customer's account.
4792
+ #
4793
+ # 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.
4794
+ #
4795
+ # 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.
4796
+ attr_accessor :capture_method
4797
+
4798
+ def initialize(capture_method: nil)
4799
+ @capture_method = capture_method
4800
+ end
4801
+ end
4802
+
4803
+ class Payto < ::Stripe::RequestParams
4804
+ class MandateOptions < ::Stripe::RequestParams
4805
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
4806
+ attr_accessor :amount
4807
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
4808
+ attr_accessor :amount_type
4809
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4810
+ attr_accessor :end_date
4811
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
4812
+ attr_accessor :payment_schedule
4813
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
4814
+ attr_accessor :payments_per_period
4815
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
4816
+ attr_accessor :purpose
4817
+
4818
+ def initialize(
4819
+ amount: nil,
4820
+ amount_type: nil,
4821
+ end_date: nil,
4822
+ payment_schedule: nil,
4823
+ payments_per_period: nil,
4824
+ purpose: nil
4825
+ )
4826
+ @amount = amount
4827
+ @amount_type = amount_type
4828
+ @end_date = end_date
4829
+ @payment_schedule = payment_schedule
4830
+ @payments_per_period = payments_per_period
4831
+ @purpose = purpose
4832
+ end
4833
+ end
4834
+ # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
4835
+ attr_accessor :mandate_options
4836
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4837
+ #
4838
+ # 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.
4839
+ #
4840
+ # 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.
4841
+ #
4842
+ # 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).
4843
+ #
4844
+ # 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`.
4845
+ attr_accessor :setup_future_usage
4846
+
4847
+ def initialize(mandate_options: nil, setup_future_usage: nil)
4848
+ @mandate_options = mandate_options
4849
+ @setup_future_usage = setup_future_usage
1942
4850
  end
1943
4851
  end
1944
4852
 
1945
4853
  class Pix < ::Stripe::RequestParams
4854
+ class MandateOptions < ::Stripe::RequestParams
4855
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4856
+ attr_accessor :amount
4857
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
4858
+ attr_accessor :amount_includes_iof
4859
+ # Type of amount. Defaults to `maximum`.
4860
+ attr_accessor :amount_type
4861
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4862
+ attr_accessor :currency
4863
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
4864
+ attr_accessor :end_date
4865
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
4866
+ attr_accessor :payment_schedule
4867
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4868
+ attr_accessor :reference
4869
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
4870
+ attr_accessor :start_date
4871
+
4872
+ def initialize(
4873
+ amount: nil,
4874
+ amount_includes_iof: nil,
4875
+ amount_type: nil,
4876
+ currency: nil,
4877
+ end_date: nil,
4878
+ payment_schedule: nil,
4879
+ reference: nil,
4880
+ start_date: nil
4881
+ )
4882
+ @amount = amount
4883
+ @amount_includes_iof = amount_includes_iof
4884
+ @amount_type = amount_type
4885
+ @currency = currency
4886
+ @end_date = end_date
4887
+ @payment_schedule = payment_schedule
4888
+ @reference = reference
4889
+ @start_date = start_date
4890
+ end
4891
+ end
1946
4892
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1947
4893
  attr_accessor :amount_includes_iof
1948
4894
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1949
4895
  attr_accessor :expires_after_seconds
1950
4896
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1951
4897
  attr_accessor :expires_at
4898
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4899
+ attr_accessor :mandate_options
1952
4900
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1953
4901
  #
1954
4902
  # 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.
@@ -1964,11 +4912,13 @@ module Stripe
1964
4912
  amount_includes_iof: nil,
1965
4913
  expires_after_seconds: nil,
1966
4914
  expires_at: nil,
4915
+ mandate_options: nil,
1967
4916
  setup_future_usage: nil
1968
4917
  )
1969
4918
  @amount_includes_iof = amount_includes_iof
1970
4919
  @expires_after_seconds = expires_after_seconds
1971
4920
  @expires_at = expires_at
4921
+ @mandate_options = mandate_options
1972
4922
  @setup_future_usage = setup_future_usage
1973
4923
  end
1974
4924
  end
@@ -1990,6 +4940,25 @@ module Stripe
1990
4940
  end
1991
4941
  end
1992
4942
 
4943
+ class Qris < ::Stripe::RequestParams
4944
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4945
+ #
4946
+ # 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.
4947
+ #
4948
+ # 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.
4949
+ #
4950
+ # 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).
4951
+ #
4952
+ # 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`.
4953
+ attr_accessor :setup_future_usage
4954
+
4955
+ def initialize(setup_future_usage: nil)
4956
+ @setup_future_usage = setup_future_usage
4957
+ end
4958
+ end
4959
+
4960
+ class Rechnung < ::Stripe::RequestParams; end
4961
+
1993
4962
  class RevolutPay < ::Stripe::RequestParams
1994
4963
  # Controls when the funds are captured from the customer's account.
1995
4964
  #
@@ -2069,6 +5038,23 @@ module Stripe
2069
5038
  end
2070
5039
  end
2071
5040
 
5041
+ class Shopeepay < ::Stripe::RequestParams
5042
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5043
+ #
5044
+ # 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.
5045
+ #
5046
+ # 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.
5047
+ #
5048
+ # 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).
5049
+ #
5050
+ # 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`.
5051
+ attr_accessor :setup_future_usage
5052
+
5053
+ def initialize(setup_future_usage: nil)
5054
+ @setup_future_usage = setup_future_usage
5055
+ end
5056
+ end
5057
+
2072
5058
  class Sofort < ::Stripe::RequestParams
2073
5059
  # Language shown to the payer on redirect.
2074
5060
  attr_accessor :preferred_language
@@ -2089,6 +5075,23 @@ module Stripe
2089
5075
  end
2090
5076
  end
2091
5077
 
5078
+ class StripeBalance < ::Stripe::RequestParams
5079
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5080
+ #
5081
+ # 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.
5082
+ #
5083
+ # 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.
5084
+ #
5085
+ # 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).
5086
+ #
5087
+ # 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`.
5088
+ attr_accessor :setup_future_usage
5089
+
5090
+ def initialize(setup_future_usage: nil)
5091
+ @setup_future_usage = setup_future_usage
5092
+ end
5093
+ end
5094
+
2092
5095
  class Swish < ::Stripe::RequestParams
2093
5096
  # A reference for this payment to be displayed in the Swish app.
2094
5097
  attr_accessor :reference
@@ -2131,13 +5134,27 @@ module Stripe
2131
5134
  class Filters < ::Stripe::RequestParams
2132
5135
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2133
5136
  attr_accessor :account_subcategories
5137
+ # ID of the institution to use to filter for selectable accounts.
5138
+ attr_accessor :institution
2134
5139
 
2135
- def initialize(account_subcategories: nil)
5140
+ def initialize(account_subcategories: nil, institution: nil)
2136
5141
  @account_subcategories = account_subcategories
5142
+ @institution = institution
5143
+ end
5144
+ end
5145
+
5146
+ class ManualEntry < ::Stripe::RequestParams
5147
+ # Settings for configuring manual entry of account details.
5148
+ attr_accessor :mode
5149
+
5150
+ def initialize(mode: nil)
5151
+ @mode = mode
2137
5152
  end
2138
5153
  end
2139
5154
  # Provide filters for the linked accounts that the customer can select for the payment method.
2140
5155
  attr_accessor :filters
5156
+ # Customize manual entry behavior
5157
+ attr_accessor :manual_entry
2141
5158
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2142
5159
  attr_accessor :permissions
2143
5160
  # List of data features that you would like to retrieve upon account creation.
@@ -2145,8 +5162,15 @@ module Stripe
2145
5162
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
2146
5163
  attr_accessor :return_url
2147
5164
 
2148
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5165
+ def initialize(
5166
+ filters: nil,
5167
+ manual_entry: nil,
5168
+ permissions: nil,
5169
+ prefetch: nil,
5170
+ return_url: nil
5171
+ )
2149
5172
  @filters = filters
5173
+ @manual_entry = manual_entry
2150
5174
  @permissions = permissions
2151
5175
  @prefetch = prefetch
2152
5176
  @return_url = return_url
@@ -2291,8 +5315,12 @@ module Stripe
2291
5315
  attr_accessor :fpx
2292
5316
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2293
5317
  attr_accessor :giropay
5318
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5319
+ attr_accessor :gopay
2294
5320
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2295
5321
  attr_accessor :grabpay
5322
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5323
+ attr_accessor :id_bank_transfer
2296
5324
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2297
5325
  attr_accessor :ideal
2298
5326
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2329,10 +5357,18 @@ module Stripe
2329
5357
  attr_accessor :paynow
2330
5358
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2331
5359
  attr_accessor :paypal
5360
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5361
+ attr_accessor :paypay
5362
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5363
+ attr_accessor :payto
2332
5364
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2333
5365
  attr_accessor :pix
2334
5366
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2335
5367
  attr_accessor :promptpay
5368
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5369
+ attr_accessor :qris
5370
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5371
+ attr_accessor :rechnung
2336
5372
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2337
5373
  attr_accessor :revolut_pay
2338
5374
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2341,8 +5377,12 @@ module Stripe
2341
5377
  attr_accessor :satispay
2342
5378
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2343
5379
  attr_accessor :sepa_debit
5380
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5381
+ attr_accessor :shopeepay
2344
5382
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2345
5383
  attr_accessor :sofort
5384
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5385
+ attr_accessor :stripe_balance
2346
5386
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2347
5387
  attr_accessor :swish
2348
5388
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2375,7 +5415,9 @@ module Stripe
2375
5415
  eps: nil,
2376
5416
  fpx: nil,
2377
5417
  giropay: nil,
5418
+ gopay: nil,
2378
5419
  grabpay: nil,
5420
+ id_bank_transfer: nil,
2379
5421
  ideal: nil,
2380
5422
  interac_present: nil,
2381
5423
  kakao_pay: nil,
@@ -2394,13 +5436,19 @@ module Stripe
2394
5436
  payco: nil,
2395
5437
  paynow: nil,
2396
5438
  paypal: nil,
5439
+ paypay: nil,
5440
+ payto: nil,
2397
5441
  pix: nil,
2398
5442
  promptpay: nil,
5443
+ qris: nil,
5444
+ rechnung: nil,
2399
5445
  revolut_pay: nil,
2400
5446
  samsung_pay: nil,
2401
5447
  satispay: nil,
2402
5448
  sepa_debit: nil,
5449
+ shopeepay: nil,
2403
5450
  sofort: nil,
5451
+ stripe_balance: nil,
2404
5452
  swish: nil,
2405
5453
  twint: nil,
2406
5454
  us_bank_account: nil,
@@ -2427,7 +5475,9 @@ module Stripe
2427
5475
  @eps = eps
2428
5476
  @fpx = fpx
2429
5477
  @giropay = giropay
5478
+ @gopay = gopay
2430
5479
  @grabpay = grabpay
5480
+ @id_bank_transfer = id_bank_transfer
2431
5481
  @ideal = ideal
2432
5482
  @interac_present = interac_present
2433
5483
  @kakao_pay = kakao_pay
@@ -2446,13 +5496,19 @@ module Stripe
2446
5496
  @payco = payco
2447
5497
  @paynow = paynow
2448
5498
  @paypal = paypal
5499
+ @paypay = paypay
5500
+ @payto = payto
2449
5501
  @pix = pix
2450
5502
  @promptpay = promptpay
5503
+ @qris = qris
5504
+ @rechnung = rechnung
2451
5505
  @revolut_pay = revolut_pay
2452
5506
  @samsung_pay = samsung_pay
2453
5507
  @satispay = satispay
2454
5508
  @sepa_debit = sepa_debit
5509
+ @shopeepay = shopeepay
2455
5510
  @sofort = sofort
5511
+ @stripe_balance = stripe_balance
2456
5512
  @swish = swish
2457
5513
  @twint = twint
2458
5514
  @us_bank_account = us_bank_account
@@ -2541,6 +5597,8 @@ module Stripe
2541
5597
  @destination = destination
2542
5598
  end
2543
5599
  end
5600
+ # Allocated Funds configuration for this PaymentIntent.
5601
+ attr_accessor :allocated_funds
2544
5602
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2545
5603
  attr_accessor :amount
2546
5604
  # Provides industry-specific information about the amount.
@@ -2567,6 +5625,12 @@ module Stripe
2567
5625
  #
2568
5626
  # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2569
5627
  attr_accessor :customer
5628
+ # ID of the Account this PaymentIntent belongs to, if one exists.
5629
+ #
5630
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
5631
+ #
5632
+ # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
5633
+ attr_accessor :customer_account
2570
5634
  # An arbitrary string attached to the object. Often useful for displaying to users.
2571
5635
  attr_accessor :description
2572
5636
  # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2575,6 +5639,8 @@ module Stripe
2575
5639
  attr_accessor :excluded_payment_method_types
2576
5640
  # Specifies which fields in the response should be expanded.
2577
5641
  attr_accessor :expand
5642
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5643
+ attr_accessor :fx_quote
2578
5644
  # Automations to be run during the PaymentIntent lifecycle
2579
5645
  attr_accessor :hooks
2580
5646
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2611,6 +5677,8 @@ module Stripe
2611
5677
  attr_accessor :receipt_email
2612
5678
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2613
5679
  attr_accessor :return_url
5680
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
5681
+ attr_accessor :secret_key_confirmation
2614
5682
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2615
5683
  #
2616
5684
  # 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.
@@ -2636,6 +5704,7 @@ module Stripe
2636
5704
  attr_accessor :use_stripe_sdk
2637
5705
 
2638
5706
  def initialize(
5707
+ allocated_funds: nil,
2639
5708
  amount: nil,
2640
5709
  amount_details: nil,
2641
5710
  application_fee_amount: nil,
@@ -2646,10 +5715,12 @@ module Stripe
2646
5715
  confirmation_token: nil,
2647
5716
  currency: nil,
2648
5717
  customer: nil,
5718
+ customer_account: nil,
2649
5719
  description: nil,
2650
5720
  error_on_requires_action: nil,
2651
5721
  excluded_payment_method_types: nil,
2652
5722
  expand: nil,
5723
+ fx_quote: nil,
2653
5724
  hooks: nil,
2654
5725
  mandate: nil,
2655
5726
  mandate_data: nil,
@@ -2665,6 +5736,7 @@ module Stripe
2665
5736
  radar_options: nil,
2666
5737
  receipt_email: nil,
2667
5738
  return_url: nil,
5739
+ secret_key_confirmation: nil,
2668
5740
  setup_future_usage: nil,
2669
5741
  shipping: nil,
2670
5742
  statement_descriptor: nil,
@@ -2673,6 +5745,7 @@ module Stripe
2673
5745
  transfer_group: nil,
2674
5746
  use_stripe_sdk: nil
2675
5747
  )
5748
+ @allocated_funds = allocated_funds
2676
5749
  @amount = amount
2677
5750
  @amount_details = amount_details
2678
5751
  @application_fee_amount = application_fee_amount
@@ -2683,10 +5756,12 @@ module Stripe
2683
5756
  @confirmation_token = confirmation_token
2684
5757
  @currency = currency
2685
5758
  @customer = customer
5759
+ @customer_account = customer_account
2686
5760
  @description = description
2687
5761
  @error_on_requires_action = error_on_requires_action
2688
5762
  @excluded_payment_method_types = excluded_payment_method_types
2689
5763
  @expand = expand
5764
+ @fx_quote = fx_quote
2690
5765
  @hooks = hooks
2691
5766
  @mandate = mandate
2692
5767
  @mandate_data = mandate_data
@@ -2702,6 +5777,7 @@ module Stripe
2702
5777
  @radar_options = radar_options
2703
5778
  @receipt_email = receipt_email
2704
5779
  @return_url = return_url
5780
+ @secret_key_confirmation = secret_key_confirmation
2705
5781
  @setup_future_usage = setup_future_usage
2706
5782
  @shipping = shipping
2707
5783
  @statement_descriptor = statement_descriptor