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 PaymentIntentConfirmParams < ::Stripe::RequestParams
6
+ class AllocatedFunds < ::Stripe::RequestParams
7
+ # Whether Allocated Funds creation is enabled for this PaymentIntent.
8
+ attr_accessor :enabled
9
+
10
+ def initialize(enabled: nil)
11
+ @enabled = enabled
12
+ end
13
+ end
14
+
6
15
  class AmountDetails < ::Stripe::RequestParams
7
16
  class LineItem < ::Stripe::RequestParams
8
17
  class PaymentMethodOptions < ::Stripe::RequestParams
@@ -239,74 +248,118 @@ module Stripe
239
248
  end
240
249
 
241
250
  class PaymentDetails < ::Stripe::RequestParams
242
- # A unique value to identify the customer. This field is available only for card payments.
243
- #
244
- # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
245
- attr_accessor :customer_reference
246
- # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
247
- #
248
- # 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`.
249
- #
250
- # 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.
251
- attr_accessor :order_reference
251
+ class Benefit < ::Stripe::RequestParams
252
+ class FrMealVoucher < ::Stripe::RequestParams
253
+ # The 14-digit SIRET of the meal voucher acceptor.
254
+ attr_accessor :siret
252
255
 
253
- def initialize(customer_reference: nil, order_reference: nil)
254
- @customer_reference = customer_reference
255
- @order_reference = order_reference
256
+ def initialize(siret: nil)
257
+ @siret = siret
258
+ end
259
+ end
260
+ # French meal voucher benefit details for this PaymentIntent.
261
+ attr_accessor :fr_meal_voucher
262
+
263
+ def initialize(fr_meal_voucher: nil)
264
+ @fr_meal_voucher = fr_meal_voucher
265
+ end
256
266
  end
257
- end
258
267
 
259
- class PaymentMethodData < ::Stripe::RequestParams
260
- class AcssDebit < ::Stripe::RequestParams
261
- # Customer's bank account number.
262
- attr_accessor :account_number
263
- # Institution number of the customer's bank.
264
- attr_accessor :institution_number
265
- # Transit number of the customer's bank.
266
- attr_accessor :transit_number
268
+ class CarRental < ::Stripe::RequestParams
269
+ class Affiliate < ::Stripe::RequestParams
270
+ # The name of the affiliate that originated the purchase.
271
+ attr_accessor :name
267
272
 
268
- def initialize(account_number: nil, institution_number: nil, transit_number: nil)
269
- @account_number = account_number
270
- @institution_number = institution_number
271
- @transit_number = transit_number
273
+ def initialize(name: nil)
274
+ @name = name
275
+ end
272
276
  end
273
- end
274
277
 
275
- class Affirm < ::Stripe::RequestParams; end
276
- class AfterpayClearpay < ::Stripe::RequestParams; end
277
- class Alipay < ::Stripe::RequestParams; end
278
- class Alma < ::Stripe::RequestParams; end
279
- class AmazonPay < ::Stripe::RequestParams; end
278
+ class Delivery < ::Stripe::RequestParams
279
+ class Recipient < ::Stripe::RequestParams
280
+ # The email of the recipient the ticket is delivered to.
281
+ attr_accessor :email
282
+ # The name of the recipient the ticket is delivered to.
283
+ attr_accessor :name
284
+ # The phone number of the recipient the ticket is delivered to.
285
+ attr_accessor :phone
286
+
287
+ def initialize(email: nil, name: nil, phone: nil)
288
+ @email = email
289
+ @name = name
290
+ @phone = phone
291
+ end
292
+ end
293
+ # The delivery method for the payment
294
+ attr_accessor :mode
295
+ # Details of the recipient.
296
+ attr_accessor :recipient
297
+
298
+ def initialize(mode: nil, recipient: nil)
299
+ @mode = mode
300
+ @recipient = recipient
301
+ end
302
+ end
280
303
 
281
- class AuBecsDebit < ::Stripe::RequestParams
282
- # The account number for the bank account.
283
- attr_accessor :account_number
284
- # Bank-State-Branch number of the bank account.
285
- attr_accessor :bsb_number
304
+ class Distance < ::Stripe::RequestParams
305
+ # Distance traveled.
306
+ attr_accessor :amount
307
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
308
+ attr_accessor :unit
286
309
 
287
- def initialize(account_number: nil, bsb_number: nil)
288
- @account_number = account_number
289
- @bsb_number = bsb_number
310
+ def initialize(amount: nil, unit: nil)
311
+ @amount = amount
312
+ @unit = unit
313
+ end
290
314
  end
291
- end
292
315
 
293
- class BacsDebit < ::Stripe::RequestParams
294
- # Account number of the bank account that the funds will be debited from.
295
- attr_accessor :account_number
296
- # Sort code of the bank account. (e.g., `10-20-30`)
297
- attr_accessor :sort_code
316
+ class Driver < ::Stripe::RequestParams
317
+ # Driver's identification number.
318
+ attr_accessor :driver_identification_number
319
+ # Driver's tax number.
320
+ attr_accessor :driver_tax_number
321
+ # Full name of the person or entity on the car reservation.
322
+ attr_accessor :name
298
323
 
299
- def initialize(account_number: nil, sort_code: nil)
300
- @account_number = account_number
301
- @sort_code = sort_code
324
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
325
+ @driver_identification_number = driver_identification_number
326
+ @driver_tax_number = driver_tax_number
327
+ @name = name
328
+ end
302
329
  end
303
- end
304
330
 
305
- class Bancontact < ::Stripe::RequestParams; end
306
- class Billie < ::Stripe::RequestParams; end
331
+ class PickupAddress < ::Stripe::RequestParams
332
+ # City, district, suburb, town, or village.
333
+ attr_accessor :city
334
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
335
+ attr_accessor :country
336
+ # Address line 1, such as the street, PO Box, or company name.
337
+ attr_accessor :line1
338
+ # Address line 2, such as the apartment, suite, unit, or building.
339
+ attr_accessor :line2
340
+ # ZIP or postal code.
341
+ attr_accessor :postal_code
342
+ # State, county, province, or region.
343
+ attr_accessor :state
307
344
 
308
- class BillingDetails < ::Stripe::RequestParams
309
- class Address < ::Stripe::RequestParams
345
+ def initialize(
346
+ city: nil,
347
+ country: nil,
348
+ line1: nil,
349
+ line2: nil,
350
+ postal_code: nil,
351
+ state: nil
352
+ )
353
+ @city = city
354
+ @country = country
355
+ @line1 = line1
356
+ @line2 = line2
357
+ @postal_code = postal_code
358
+ @state = state
359
+ end
360
+ end
361
+
362
+ class ReturnAddress < ::Stripe::RequestParams
310
363
  # City, district, suburb, town, or village.
311
364
  attr_accessor :city
312
365
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -336,120 +389,1733 @@ module Stripe
336
389
  @state = state
337
390
  end
338
391
  end
339
- # Billing address.
340
- attr_accessor :address
341
- # Email address.
342
- attr_accessor :email
343
- # Full name.
344
- attr_accessor :name
345
- # Billing phone number (including extension).
346
- attr_accessor :phone
347
- # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
348
- attr_accessor :tax_id
392
+ # Affiliate details for this purchase.
393
+ attr_accessor :affiliate
394
+ # The booking number associated with the car rental.
395
+ attr_accessor :booking_number
396
+ # Class code of the car.
397
+ attr_accessor :car_class_code
398
+ # Make of the car.
399
+ attr_accessor :car_make
400
+ # Model of the car.
401
+ attr_accessor :car_model
402
+ # The name of the rental car company.
403
+ attr_accessor :company
404
+ # The customer service phone number of the car rental company.
405
+ attr_accessor :customer_service_phone_number
406
+ # Number of days the car is being rented.
407
+ attr_accessor :days_rented
408
+ # Delivery details for this purchase.
409
+ attr_accessor :delivery
410
+ # The details of the distance traveled during the rental period.
411
+ attr_accessor :distance
412
+ # The details of the passengers in the travel reservation
413
+ attr_accessor :drivers
414
+ # List of additional charges being billed.
415
+ attr_accessor :extra_charges
416
+ # Indicates if the customer did not keep nor cancel their booking.
417
+ attr_accessor :no_show
418
+ # Car pick-up address.
419
+ attr_accessor :pickup_address
420
+ # Car pick-up time. Measured in seconds since the Unix epoch.
421
+ attr_accessor :pickup_at
422
+ # Name of the pickup location.
423
+ attr_accessor :pickup_location_name
424
+ # Rental rate.
425
+ attr_accessor :rate_amount
426
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
427
+ attr_accessor :rate_interval
428
+ # The name of the person or entity renting the car.
429
+ attr_accessor :renter_name
430
+ # Car return address.
431
+ attr_accessor :return_address
432
+ # Car return time. Measured in seconds since the Unix epoch.
433
+ attr_accessor :return_at
434
+ # Name of the return location.
435
+ attr_accessor :return_location_name
436
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
437
+ attr_accessor :tax_exempt
438
+ # The vehicle identification number.
439
+ attr_accessor :vehicle_identification_number
349
440
 
350
- def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
351
- @address = address
352
- @email = email
353
- @name = name
354
- @phone = phone
355
- @tax_id = tax_id
441
+ def initialize(
442
+ affiliate: nil,
443
+ booking_number: nil,
444
+ car_class_code: nil,
445
+ car_make: nil,
446
+ car_model: nil,
447
+ company: nil,
448
+ customer_service_phone_number: nil,
449
+ days_rented: nil,
450
+ delivery: nil,
451
+ distance: nil,
452
+ drivers: nil,
453
+ extra_charges: nil,
454
+ no_show: nil,
455
+ pickup_address: nil,
456
+ pickup_at: nil,
457
+ pickup_location_name: nil,
458
+ rate_amount: nil,
459
+ rate_interval: nil,
460
+ renter_name: nil,
461
+ return_address: nil,
462
+ return_at: nil,
463
+ return_location_name: nil,
464
+ tax_exempt: nil,
465
+ vehicle_identification_number: nil
466
+ )
467
+ @affiliate = affiliate
468
+ @booking_number = booking_number
469
+ @car_class_code = car_class_code
470
+ @car_make = car_make
471
+ @car_model = car_model
472
+ @company = company
473
+ @customer_service_phone_number = customer_service_phone_number
474
+ @days_rented = days_rented
475
+ @delivery = delivery
476
+ @distance = distance
477
+ @drivers = drivers
478
+ @extra_charges = extra_charges
479
+ @no_show = no_show
480
+ @pickup_address = pickup_address
481
+ @pickup_at = pickup_at
482
+ @pickup_location_name = pickup_location_name
483
+ @rate_amount = rate_amount
484
+ @rate_interval = rate_interval
485
+ @renter_name = renter_name
486
+ @return_address = return_address
487
+ @return_at = return_at
488
+ @return_location_name = return_location_name
489
+ @tax_exempt = tax_exempt
490
+ @vehicle_identification_number = vehicle_identification_number
356
491
  end
357
492
  end
358
493
 
359
- class Blik < ::Stripe::RequestParams; end
360
-
361
- class Boleto < ::Stripe::RequestParams
362
- # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
363
- attr_accessor :tax_id
494
+ class CarRentalDatum < ::Stripe::RequestParams
495
+ class Affiliate < ::Stripe::RequestParams
496
+ # Affiliate partner code.
497
+ attr_accessor :code
498
+ # Name of affiliate partner.
499
+ attr_accessor :name
364
500
 
365
- def initialize(tax_id: nil)
366
- @tax_id = tax_id
501
+ def initialize(code: nil, name: nil)
502
+ @code = code
503
+ @name = name
504
+ end
367
505
  end
368
- end
369
506
 
370
- class Cashapp < ::Stripe::RequestParams; end
371
- class Crypto < ::Stripe::RequestParams; end
372
- class CustomerBalance < ::Stripe::RequestParams; end
507
+ class Distance < ::Stripe::RequestParams
508
+ # Distance traveled.
509
+ attr_accessor :amount
510
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
511
+ attr_accessor :unit
373
512
 
374
- class Eps < ::Stripe::RequestParams
375
- # The customer's bank.
376
- attr_accessor :bank
513
+ def initialize(amount: nil, unit: nil)
514
+ @amount = amount
515
+ @unit = unit
516
+ end
517
+ end
377
518
 
378
- def initialize(bank: nil)
379
- @bank = bank
519
+ class Driver < ::Stripe::RequestParams
520
+ class DateOfBirth < ::Stripe::RequestParams
521
+ # Day of birth (1-31).
522
+ attr_accessor :day
523
+ # Month of birth (1-12).
524
+ attr_accessor :month
525
+ # Year of birth (must be greater than 1900).
526
+ attr_accessor :year
527
+
528
+ def initialize(day: nil, month: nil, year: nil)
529
+ @day = day
530
+ @month = month
531
+ @year = year
532
+ end
533
+ end
534
+ # Driver's date of birth.
535
+ attr_accessor :date_of_birth
536
+ # Driver's identification number.
537
+ attr_accessor :driver_identification_number
538
+ # Driver's tax number.
539
+ attr_accessor :driver_tax_number
540
+ # Driver's full name.
541
+ attr_accessor :name
542
+
543
+ def initialize(
544
+ date_of_birth: nil,
545
+ driver_identification_number: nil,
546
+ driver_tax_number: nil,
547
+ name: nil
548
+ )
549
+ @date_of_birth = date_of_birth
550
+ @driver_identification_number = driver_identification_number
551
+ @driver_tax_number = driver_tax_number
552
+ @name = name
553
+ end
380
554
  end
381
- end
382
555
 
383
- class Fpx < ::Stripe::RequestParams
384
- # Account holder type for FPX transaction
385
- attr_accessor :account_holder_type
386
- # The customer's bank.
387
- attr_accessor :bank
556
+ class DropOff < ::Stripe::RequestParams
557
+ class Address < ::Stripe::RequestParams
558
+ # City, district, suburb, town, or village.
559
+ attr_accessor :city
560
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
561
+ attr_accessor :country
562
+ # Address line 1, such as the street, PO Box, or company name.
563
+ attr_accessor :line1
564
+ # Address line 2, such as the apartment, suite, unit, or building.
565
+ attr_accessor :line2
566
+ # ZIP or postal code.
567
+ attr_accessor :postal_code
568
+ # State, county, province, or region.
569
+ attr_accessor :state
388
570
 
389
- def initialize(account_holder_type: nil, bank: nil)
390
- @account_holder_type = account_holder_type
391
- @bank = bank
571
+ def initialize(
572
+ city: nil,
573
+ country: nil,
574
+ line1: nil,
575
+ line2: nil,
576
+ postal_code: nil,
577
+ state: nil
578
+ )
579
+ @city = city
580
+ @country = country
581
+ @line1 = line1
582
+ @line2 = line2
583
+ @postal_code = postal_code
584
+ @state = state
585
+ end
586
+ end
587
+ # Address of the rental location.
588
+ attr_accessor :address
589
+ # Location name.
590
+ attr_accessor :location_name
591
+ # Timestamp for the location.
592
+ attr_accessor :time
593
+
594
+ def initialize(address: nil, location_name: nil, time: nil)
595
+ @address = address
596
+ @location_name = location_name
597
+ @time = time
598
+ end
392
599
  end
393
- end
394
600
 
395
- class Giropay < ::Stripe::RequestParams; end
396
- class Grabpay < ::Stripe::RequestParams; end
601
+ class Insurance < ::Stripe::RequestParams
602
+ # Amount of the insurance coverage in cents.
603
+ attr_accessor :amount
604
+ # Currency of the insurance amount.
605
+ attr_accessor :currency
606
+ # Name of the insurance company.
607
+ attr_accessor :insurance_company_name
608
+ # Type of insurance coverage.
609
+ attr_accessor :insurance_type
397
610
 
398
- class Ideal < ::Stripe::RequestParams
399
- # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
400
- attr_accessor :bank
611
+ def initialize(
612
+ amount: nil,
613
+ currency: nil,
614
+ insurance_company_name: nil,
615
+ insurance_type: nil
616
+ )
617
+ @amount = amount
618
+ @currency = currency
619
+ @insurance_company_name = insurance_company_name
620
+ @insurance_type = insurance_type
621
+ end
622
+ end
401
623
 
402
- def initialize(bank: nil)
403
- @bank = bank
624
+ class Pickup < ::Stripe::RequestParams
625
+ class Address < ::Stripe::RequestParams
626
+ # City, district, suburb, town, or village.
627
+ attr_accessor :city
628
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
629
+ attr_accessor :country
630
+ # Address line 1, such as the street, PO Box, or company name.
631
+ attr_accessor :line1
632
+ # Address line 2, such as the apartment, suite, unit, or building.
633
+ attr_accessor :line2
634
+ # ZIP or postal code.
635
+ attr_accessor :postal_code
636
+ # State, county, province, or region.
637
+ attr_accessor :state
638
+
639
+ def initialize(
640
+ city: nil,
641
+ country: nil,
642
+ line1: nil,
643
+ line2: nil,
644
+ postal_code: nil,
645
+ state: nil
646
+ )
647
+ @city = city
648
+ @country = country
649
+ @line1 = line1
650
+ @line2 = line2
651
+ @postal_code = postal_code
652
+ @state = state
653
+ end
654
+ end
655
+ # Address of the rental location.
656
+ attr_accessor :address
657
+ # Location name.
658
+ attr_accessor :location_name
659
+ # Timestamp for the location.
660
+ attr_accessor :time
661
+
662
+ def initialize(address: nil, location_name: nil, time: nil)
663
+ @address = address
664
+ @location_name = location_name
665
+ @time = time
666
+ end
404
667
  end
405
- end
406
668
 
407
- class InteracPresent < ::Stripe::RequestParams; end
408
- class KakaoPay < ::Stripe::RequestParams; end
669
+ class Total < ::Stripe::RequestParams
670
+ class Discounts < ::Stripe::RequestParams
671
+ # Corporate client discount code.
672
+ attr_accessor :corporate_client_code
673
+ # Coupon code applied to the rental.
674
+ attr_accessor :coupon
675
+ # Maximum number of free miles or kilometers included.
676
+ attr_accessor :maximum_free_miles_or_kilometers
409
677
 
410
- class Klarna < ::Stripe::RequestParams
411
- class Dob < ::Stripe::RequestParams
412
- # The day of birth, between 1 and 31.
413
- attr_accessor :day
414
- # The month of birth, between 1 and 12.
415
- attr_accessor :month
416
- # The four-digit year of birth.
417
- attr_accessor :year
678
+ def initialize(
679
+ corporate_client_code: nil,
680
+ coupon: nil,
681
+ maximum_free_miles_or_kilometers: nil
682
+ )
683
+ @corporate_client_code = corporate_client_code
684
+ @coupon = coupon
685
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
686
+ end
687
+ end
418
688
 
419
- def initialize(day: nil, month: nil, year: nil)
420
- @day = day
421
- @month = month
422
- @year = year
689
+ class ExtraCharge < ::Stripe::RequestParams
690
+ # Amount of the extra charge in cents.
691
+ attr_accessor :amount
692
+ # Type of extra charge.
693
+ attr_accessor :type
694
+
695
+ def initialize(amount: nil, type: nil)
696
+ @amount = amount
697
+ @type = type
698
+ end
423
699
  end
424
- end
425
- # Customer's date of birth
426
- attr_accessor :dob
427
700
 
428
- def initialize(dob: nil)
429
- @dob = dob
701
+ class Tax < ::Stripe::RequestParams
702
+ class Tax < ::Stripe::RequestParams
703
+ # Tax amount.
704
+ attr_accessor :amount
705
+ # Tax rate applied.
706
+ attr_accessor :rate
707
+ # Type of tax applied.
708
+ attr_accessor :type
709
+
710
+ def initialize(amount: nil, rate: nil, type: nil)
711
+ @amount = amount
712
+ @rate = rate
713
+ @type = type
714
+ end
715
+ end
716
+ # Indicates if the transaction is tax exempt.
717
+ attr_accessor :tax_exempt_indicator
718
+ # Array of tax details.
719
+ attr_accessor :taxes
720
+
721
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
722
+ @tax_exempt_indicator = tax_exempt_indicator
723
+ @taxes = taxes
724
+ end
725
+ end
726
+ # Total amount in cents.
727
+ attr_accessor :amount
728
+ # Currency of the amount.
729
+ attr_accessor :currency
730
+ # Discount details for the rental.
731
+ attr_accessor :discounts
732
+ # Additional charges for the rental.
733
+ attr_accessor :extra_charges
734
+ # Rate per unit for the rental.
735
+ attr_accessor :rate_per_unit
736
+ # Unit of measurement for the rate.
737
+ attr_accessor :rate_unit
738
+ # Tax breakdown for the rental.
739
+ attr_accessor :tax
740
+
741
+ def initialize(
742
+ amount: nil,
743
+ currency: nil,
744
+ discounts: nil,
745
+ extra_charges: nil,
746
+ rate_per_unit: nil,
747
+ rate_unit: nil,
748
+ tax: nil
749
+ )
750
+ @amount = amount
751
+ @currency = currency
752
+ @discounts = discounts
753
+ @extra_charges = extra_charges
754
+ @rate_per_unit = rate_per_unit
755
+ @rate_unit = rate_unit
756
+ @tax = tax
757
+ end
430
758
  end
431
- end
432
759
 
433
- class Konbini < ::Stripe::RequestParams; end
434
- class KrCard < ::Stripe::RequestParams; end
435
- class Link < ::Stripe::RequestParams; end
436
- class MbWay < ::Stripe::RequestParams; end
437
- class Mobilepay < ::Stripe::RequestParams; end
438
- class Multibanco < ::Stripe::RequestParams; end
760
+ class Vehicle < ::Stripe::RequestParams
761
+ # Make of the rental vehicle.
762
+ attr_accessor :make
763
+ # Model of the rental vehicle.
764
+ attr_accessor :model
765
+ # Odometer reading at the time of rental.
766
+ attr_accessor :odometer
767
+ # Type of the rental vehicle.
768
+ attr_accessor :type
769
+ # Class of the rental vehicle.
770
+ attr_accessor :vehicle_class
771
+ # Vehicle identification number (VIN).
772
+ attr_accessor :vehicle_identification_number
439
773
 
440
- class NaverPay < ::Stripe::RequestParams
441
- # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
442
- attr_accessor :funding
774
+ def initialize(
775
+ make: nil,
776
+ model: nil,
777
+ odometer: nil,
778
+ type: nil,
779
+ vehicle_class: nil,
780
+ vehicle_identification_number: nil
781
+ )
782
+ @make = make
783
+ @model = model
784
+ @odometer = odometer
785
+ @type = type
786
+ @vehicle_class = vehicle_class
787
+ @vehicle_identification_number = vehicle_identification_number
788
+ end
789
+ end
790
+ # Affiliate (such as travel agency) details for the rental.
791
+ attr_accessor :affiliate
792
+ # Booking confirmation number for the car rental.
793
+ attr_accessor :booking_number
794
+ # Name of the car rental company.
795
+ attr_accessor :carrier_name
796
+ # Customer service phone number for the car rental company.
797
+ attr_accessor :customer_service_phone_number
798
+ # Number of days the car is being rented.
799
+ attr_accessor :days_rented
800
+ # Distance details for the rental.
801
+ attr_accessor :distance
802
+ # List of drivers for the rental.
803
+ attr_accessor :drivers
804
+ # Drop-off location details.
805
+ attr_accessor :drop_off
806
+ # Insurance details for the rental.
807
+ attr_accessor :insurances
808
+ # Indicates if the customer was a no-show.
809
+ attr_accessor :no_show_indicator
810
+ # Pickup location details.
811
+ attr_accessor :pickup
812
+ # Name of the person renting the vehicle.
813
+ attr_accessor :renter_name
814
+ # Total cost breakdown for the rental.
815
+ attr_accessor :total
816
+ # Vehicle details for the rental.
817
+ attr_accessor :vehicle
443
818
 
444
- def initialize(funding: nil)
445
- @funding = funding
819
+ def initialize(
820
+ affiliate: nil,
821
+ booking_number: nil,
822
+ carrier_name: nil,
823
+ customer_service_phone_number: nil,
824
+ days_rented: nil,
825
+ distance: nil,
826
+ drivers: nil,
827
+ drop_off: nil,
828
+ insurances: nil,
829
+ no_show_indicator: nil,
830
+ pickup: nil,
831
+ renter_name: nil,
832
+ total: nil,
833
+ vehicle: nil
834
+ )
835
+ @affiliate = affiliate
836
+ @booking_number = booking_number
837
+ @carrier_name = carrier_name
838
+ @customer_service_phone_number = customer_service_phone_number
839
+ @days_rented = days_rented
840
+ @distance = distance
841
+ @drivers = drivers
842
+ @drop_off = drop_off
843
+ @insurances = insurances
844
+ @no_show_indicator = no_show_indicator
845
+ @pickup = pickup
846
+ @renter_name = renter_name
847
+ @total = total
848
+ @vehicle = vehicle
446
849
  end
447
850
  end
448
851
 
449
- class NzBankAccount < ::Stripe::RequestParams
450
- # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
451
- attr_accessor :account_holder_name
452
- # The account number for the bank account.
852
+ class EventDetails < ::Stripe::RequestParams
853
+ class Address < ::Stripe::RequestParams
854
+ # City, district, suburb, town, or village.
855
+ attr_accessor :city
856
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
857
+ attr_accessor :country
858
+ # Address line 1, such as the street, PO Box, or company name.
859
+ attr_accessor :line1
860
+ # Address line 2, such as the apartment, suite, unit, or building.
861
+ attr_accessor :line2
862
+ # ZIP or postal code.
863
+ attr_accessor :postal_code
864
+ # State, county, province, or region.
865
+ attr_accessor :state
866
+
867
+ def initialize(
868
+ city: nil,
869
+ country: nil,
870
+ line1: nil,
871
+ line2: nil,
872
+ postal_code: nil,
873
+ state: nil
874
+ )
875
+ @city = city
876
+ @country = country
877
+ @line1 = line1
878
+ @line2 = line2
879
+ @postal_code = postal_code
880
+ @state = state
881
+ end
882
+ end
883
+
884
+ class Affiliate < ::Stripe::RequestParams
885
+ # The name of the affiliate that originated the purchase.
886
+ attr_accessor :name
887
+
888
+ def initialize(name: nil)
889
+ @name = name
890
+ end
891
+ end
892
+
893
+ class Delivery < ::Stripe::RequestParams
894
+ class Recipient < ::Stripe::RequestParams
895
+ # The email of the recipient the ticket is delivered to.
896
+ attr_accessor :email
897
+ # The name of the recipient the ticket is delivered to.
898
+ attr_accessor :name
899
+ # The phone number of the recipient the ticket is delivered to.
900
+ attr_accessor :phone
901
+
902
+ def initialize(email: nil, name: nil, phone: nil)
903
+ @email = email
904
+ @name = name
905
+ @phone = phone
906
+ end
907
+ end
908
+ # The delivery method for the payment
909
+ attr_accessor :mode
910
+ # Details of the recipient.
911
+ attr_accessor :recipient
912
+
913
+ def initialize(mode: nil, recipient: nil)
914
+ @mode = mode
915
+ @recipient = recipient
916
+ end
917
+ end
918
+ # Indicates if the tickets are digitally checked when entering the venue.
919
+ attr_accessor :access_controlled_venue
920
+ # The event location's address.
921
+ attr_accessor :address
922
+ # Affiliate details for this purchase.
923
+ attr_accessor :affiliate
924
+ # The name of the company
925
+ attr_accessor :company
926
+ # Delivery details for this purchase.
927
+ attr_accessor :delivery
928
+ # Event end time. Measured in seconds since the Unix epoch.
929
+ attr_accessor :ends_at
930
+ # Type of the event entertainment (concert, sports event etc)
931
+ attr_accessor :genre
932
+ # The name of the event.
933
+ attr_accessor :name
934
+ # Event start time. Measured in seconds since the Unix epoch.
935
+ attr_accessor :starts_at
936
+
937
+ def initialize(
938
+ access_controlled_venue: nil,
939
+ address: nil,
940
+ affiliate: nil,
941
+ company: nil,
942
+ delivery: nil,
943
+ ends_at: nil,
944
+ genre: nil,
945
+ name: nil,
946
+ starts_at: nil
947
+ )
948
+ @access_controlled_venue = access_controlled_venue
949
+ @address = address
950
+ @affiliate = affiliate
951
+ @company = company
952
+ @delivery = delivery
953
+ @ends_at = ends_at
954
+ @genre = genre
955
+ @name = name
956
+ @starts_at = starts_at
957
+ end
958
+ end
959
+
960
+ class Flight < ::Stripe::RequestParams
961
+ class Affiliate < ::Stripe::RequestParams
962
+ # The name of the affiliate that originated the purchase.
963
+ attr_accessor :name
964
+
965
+ def initialize(name: nil)
966
+ @name = name
967
+ end
968
+ end
969
+
970
+ class Delivery < ::Stripe::RequestParams
971
+ class Recipient < ::Stripe::RequestParams
972
+ # The email of the recipient the ticket is delivered to.
973
+ attr_accessor :email
974
+ # The name of the recipient the ticket is delivered to.
975
+ attr_accessor :name
976
+ # The phone number of the recipient the ticket is delivered to.
977
+ attr_accessor :phone
978
+
979
+ def initialize(email: nil, name: nil, phone: nil)
980
+ @email = email
981
+ @name = name
982
+ @phone = phone
983
+ end
984
+ end
985
+ # The delivery method for the payment
986
+ attr_accessor :mode
987
+ # Details of the recipient.
988
+ attr_accessor :recipient
989
+
990
+ def initialize(mode: nil, recipient: nil)
991
+ @mode = mode
992
+ @recipient = recipient
993
+ end
994
+ end
995
+
996
+ class Passenger < ::Stripe::RequestParams
997
+ # Full name of the person or entity on the flight reservation.
998
+ attr_accessor :name
999
+
1000
+ def initialize(name: nil)
1001
+ @name = name
1002
+ end
1003
+ end
1004
+
1005
+ class Segment < ::Stripe::RequestParams
1006
+ # The flight segment amount.
1007
+ attr_accessor :amount
1008
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1009
+ attr_accessor :arrival_airport
1010
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1011
+ attr_accessor :arrives_at
1012
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1013
+ attr_accessor :carrier
1014
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1015
+ attr_accessor :departs_at
1016
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1017
+ attr_accessor :departure_airport
1018
+ # The flight number associated with the segment
1019
+ attr_accessor :flight_number
1020
+ # The fare class for the segment.
1021
+ attr_accessor :service_class
1022
+
1023
+ def initialize(
1024
+ amount: nil,
1025
+ arrival_airport: nil,
1026
+ arrives_at: nil,
1027
+ carrier: nil,
1028
+ departs_at: nil,
1029
+ departure_airport: nil,
1030
+ flight_number: nil,
1031
+ service_class: nil
1032
+ )
1033
+ @amount = amount
1034
+ @arrival_airport = arrival_airport
1035
+ @arrives_at = arrives_at
1036
+ @carrier = carrier
1037
+ @departs_at = departs_at
1038
+ @departure_airport = departure_airport
1039
+ @flight_number = flight_number
1040
+ @service_class = service_class
1041
+ end
1042
+ end
1043
+ # Affiliate details for this purchase.
1044
+ attr_accessor :affiliate
1045
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1046
+ attr_accessor :agency_number
1047
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1048
+ attr_accessor :carrier
1049
+ # Delivery details for this purchase.
1050
+ attr_accessor :delivery
1051
+ # The name of the person or entity on the reservation.
1052
+ attr_accessor :passenger_name
1053
+ # The details of the passengers in the travel reservation.
1054
+ attr_accessor :passengers
1055
+ # The individual flight segments associated with the trip.
1056
+ attr_accessor :segments
1057
+ # The ticket number associated with the travel reservation.
1058
+ attr_accessor :ticket_number
1059
+
1060
+ def initialize(
1061
+ affiliate: nil,
1062
+ agency_number: nil,
1063
+ carrier: nil,
1064
+ delivery: nil,
1065
+ passenger_name: nil,
1066
+ passengers: nil,
1067
+ segments: nil,
1068
+ ticket_number: nil
1069
+ )
1070
+ @affiliate = affiliate
1071
+ @agency_number = agency_number
1072
+ @carrier = carrier
1073
+ @delivery = delivery
1074
+ @passenger_name = passenger_name
1075
+ @passengers = passengers
1076
+ @segments = segments
1077
+ @ticket_number = ticket_number
1078
+ end
1079
+ end
1080
+
1081
+ class FlightDatum < ::Stripe::RequestParams
1082
+ class Affiliate < ::Stripe::RequestParams
1083
+ # Affiliate partner code.
1084
+ attr_accessor :code
1085
+ # Name of affiliate partner.
1086
+ attr_accessor :name
1087
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1088
+ attr_accessor :travel_authorization_code
1089
+
1090
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1091
+ @code = code
1092
+ @name = name
1093
+ @travel_authorization_code = travel_authorization_code
1094
+ end
1095
+ end
1096
+
1097
+ class Insurance < ::Stripe::RequestParams
1098
+ # Insurance cost.
1099
+ attr_accessor :amount
1100
+ # Insurance currency.
1101
+ attr_accessor :currency
1102
+ # Insurance company name.
1103
+ attr_accessor :insurance_company_name
1104
+ # Type of insurance.
1105
+ attr_accessor :insurance_type
1106
+
1107
+ def initialize(
1108
+ amount: nil,
1109
+ currency: nil,
1110
+ insurance_company_name: nil,
1111
+ insurance_type: nil
1112
+ )
1113
+ @amount = amount
1114
+ @currency = currency
1115
+ @insurance_company_name = insurance_company_name
1116
+ @insurance_type = insurance_type
1117
+ end
1118
+ end
1119
+
1120
+ class Passenger < ::Stripe::RequestParams
1121
+ # Passenger's full name.
1122
+ attr_accessor :name
1123
+
1124
+ def initialize(name: nil)
1125
+ @name = name
1126
+ end
1127
+ end
1128
+
1129
+ class Segment < ::Stripe::RequestParams
1130
+ class Arrival < ::Stripe::RequestParams
1131
+ # Arrival airport IATA code.
1132
+ attr_accessor :airport
1133
+ # Arrival date/time.
1134
+ attr_accessor :arrives_at
1135
+ # Arrival city.
1136
+ attr_accessor :city
1137
+ # Arrival country.
1138
+ attr_accessor :country
1139
+
1140
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1141
+ @airport = airport
1142
+ @arrives_at = arrives_at
1143
+ @city = city
1144
+ @country = country
1145
+ end
1146
+ end
1147
+
1148
+ class Departure < ::Stripe::RequestParams
1149
+ # Departure airport IATA code.
1150
+ attr_accessor :airport
1151
+ # Departure city.
1152
+ attr_accessor :city
1153
+ # Departure country.
1154
+ attr_accessor :country
1155
+ # Departure date/time.
1156
+ attr_accessor :departs_at
1157
+
1158
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1159
+ @airport = airport
1160
+ @city = city
1161
+ @country = country
1162
+ @departs_at = departs_at
1163
+ end
1164
+ end
1165
+ # Segment fare amount.
1166
+ attr_accessor :amount
1167
+ # Arrival details.
1168
+ attr_accessor :arrival
1169
+ # Airline carrier code.
1170
+ attr_accessor :carrier_code
1171
+ # Carrier name.
1172
+ attr_accessor :carrier_name
1173
+ # Segment currency.
1174
+ attr_accessor :currency
1175
+ # Departure details.
1176
+ attr_accessor :departure
1177
+ # Exchange ticket number.
1178
+ attr_accessor :exchange_ticket_number
1179
+ # Fare basis code.
1180
+ attr_accessor :fare_basis_code
1181
+ # Additional fees.
1182
+ attr_accessor :fees
1183
+ # Flight number.
1184
+ attr_accessor :flight_number
1185
+ # Stopover indicator.
1186
+ attr_accessor :is_stop_over_indicator
1187
+ # Refundable ticket indicator.
1188
+ attr_accessor :refundable
1189
+ # Class of service.
1190
+ attr_accessor :service_class
1191
+ # Tax amount for segment.
1192
+ attr_accessor :tax_amount
1193
+ # Ticket number.
1194
+ attr_accessor :ticket_number
1195
+
1196
+ def initialize(
1197
+ amount: nil,
1198
+ arrival: nil,
1199
+ carrier_code: nil,
1200
+ carrier_name: nil,
1201
+ currency: nil,
1202
+ departure: nil,
1203
+ exchange_ticket_number: nil,
1204
+ fare_basis_code: nil,
1205
+ fees: nil,
1206
+ flight_number: nil,
1207
+ is_stop_over_indicator: nil,
1208
+ refundable: nil,
1209
+ service_class: nil,
1210
+ tax_amount: nil,
1211
+ ticket_number: nil
1212
+ )
1213
+ @amount = amount
1214
+ @arrival = arrival
1215
+ @carrier_code = carrier_code
1216
+ @carrier_name = carrier_name
1217
+ @currency = currency
1218
+ @departure = departure
1219
+ @exchange_ticket_number = exchange_ticket_number
1220
+ @fare_basis_code = fare_basis_code
1221
+ @fees = fees
1222
+ @flight_number = flight_number
1223
+ @is_stop_over_indicator = is_stop_over_indicator
1224
+ @refundable = refundable
1225
+ @service_class = service_class
1226
+ @tax_amount = tax_amount
1227
+ @ticket_number = ticket_number
1228
+ end
1229
+ end
1230
+
1231
+ class Total < ::Stripe::RequestParams
1232
+ class Discounts < ::Stripe::RequestParams
1233
+ # Corporate client discount code.
1234
+ attr_accessor :corporate_client_code
1235
+
1236
+ def initialize(corporate_client_code: nil)
1237
+ @corporate_client_code = corporate_client_code
1238
+ end
1239
+ end
1240
+
1241
+ class ExtraCharge < ::Stripe::RequestParams
1242
+ # Amount of additional charges.
1243
+ attr_accessor :amount
1244
+ # Type of additional charges.
1245
+ attr_accessor :type
1246
+
1247
+ def initialize(amount: nil, type: nil)
1248
+ @amount = amount
1249
+ @type = type
1250
+ end
1251
+ end
1252
+
1253
+ class Tax < ::Stripe::RequestParams
1254
+ class Tax < ::Stripe::RequestParams
1255
+ # Tax amount.
1256
+ attr_accessor :amount
1257
+ # Tax rate.
1258
+ attr_accessor :rate
1259
+ # Type of tax.
1260
+ attr_accessor :type
1261
+
1262
+ def initialize(amount: nil, rate: nil, type: nil)
1263
+ @amount = amount
1264
+ @rate = rate
1265
+ @type = type
1266
+ end
1267
+ end
1268
+ # Array of tax details.
1269
+ attr_accessor :taxes
1270
+
1271
+ def initialize(taxes: nil)
1272
+ @taxes = taxes
1273
+ end
1274
+ end
1275
+ # Total flight amount.
1276
+ attr_accessor :amount
1277
+ # Reason for credit.
1278
+ attr_accessor :credit_reason
1279
+ # Total currency.
1280
+ attr_accessor :currency
1281
+ # Discount details.
1282
+ attr_accessor :discounts
1283
+ # Additional charges.
1284
+ attr_accessor :extra_charges
1285
+ # Tax breakdown.
1286
+ attr_accessor :tax
1287
+
1288
+ def initialize(
1289
+ amount: nil,
1290
+ credit_reason: nil,
1291
+ currency: nil,
1292
+ discounts: nil,
1293
+ extra_charges: nil,
1294
+ tax: nil
1295
+ )
1296
+ @amount = amount
1297
+ @credit_reason = credit_reason
1298
+ @currency = currency
1299
+ @discounts = discounts
1300
+ @extra_charges = extra_charges
1301
+ @tax = tax
1302
+ end
1303
+ end
1304
+ # Affiliate details if applicable.
1305
+ attr_accessor :affiliate
1306
+ # Reservation reference.
1307
+ attr_accessor :booking_number
1308
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1309
+ attr_accessor :computerized_reservation_system
1310
+ # Ticket restrictions.
1311
+ attr_accessor :endorsements_and_restrictions
1312
+ # List of insurances.
1313
+ attr_accessor :insurances
1314
+ # List of passengers.
1315
+ attr_accessor :passengers
1316
+ # List of flight segments.
1317
+ attr_accessor :segments
1318
+ # Electronic ticket indicator.
1319
+ attr_accessor :ticket_electronically_issued_indicator
1320
+ # Total cost breakdown.
1321
+ attr_accessor :total
1322
+ # Type of flight transaction.
1323
+ attr_accessor :transaction_type
1324
+
1325
+ def initialize(
1326
+ affiliate: nil,
1327
+ booking_number: nil,
1328
+ computerized_reservation_system: nil,
1329
+ endorsements_and_restrictions: nil,
1330
+ insurances: nil,
1331
+ passengers: nil,
1332
+ segments: nil,
1333
+ ticket_electronically_issued_indicator: nil,
1334
+ total: nil,
1335
+ transaction_type: nil
1336
+ )
1337
+ @affiliate = affiliate
1338
+ @booking_number = booking_number
1339
+ @computerized_reservation_system = computerized_reservation_system
1340
+ @endorsements_and_restrictions = endorsements_and_restrictions
1341
+ @insurances = insurances
1342
+ @passengers = passengers
1343
+ @segments = segments
1344
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1345
+ @total = total
1346
+ @transaction_type = transaction_type
1347
+ end
1348
+ end
1349
+
1350
+ class Lodging < ::Stripe::RequestParams
1351
+ class Address < ::Stripe::RequestParams
1352
+ # City, district, suburb, town, or village.
1353
+ attr_accessor :city
1354
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1355
+ attr_accessor :country
1356
+ # Address line 1, such as the street, PO Box, or company name.
1357
+ attr_accessor :line1
1358
+ # Address line 2, such as the apartment, suite, unit, or building.
1359
+ attr_accessor :line2
1360
+ # ZIP or postal code.
1361
+ attr_accessor :postal_code
1362
+ # State, county, province, or region.
1363
+ attr_accessor :state
1364
+
1365
+ def initialize(
1366
+ city: nil,
1367
+ country: nil,
1368
+ line1: nil,
1369
+ line2: nil,
1370
+ postal_code: nil,
1371
+ state: nil
1372
+ )
1373
+ @city = city
1374
+ @country = country
1375
+ @line1 = line1
1376
+ @line2 = line2
1377
+ @postal_code = postal_code
1378
+ @state = state
1379
+ end
1380
+ end
1381
+
1382
+ class Affiliate < ::Stripe::RequestParams
1383
+ # The name of the affiliate that originated the purchase.
1384
+ attr_accessor :name
1385
+
1386
+ def initialize(name: nil)
1387
+ @name = name
1388
+ end
1389
+ end
1390
+
1391
+ class Delivery < ::Stripe::RequestParams
1392
+ class Recipient < ::Stripe::RequestParams
1393
+ # The email of the recipient the ticket is delivered to.
1394
+ attr_accessor :email
1395
+ # The name of the recipient the ticket is delivered to.
1396
+ attr_accessor :name
1397
+ # The phone number of the recipient the ticket is delivered to.
1398
+ attr_accessor :phone
1399
+
1400
+ def initialize(email: nil, name: nil, phone: nil)
1401
+ @email = email
1402
+ @name = name
1403
+ @phone = phone
1404
+ end
1405
+ end
1406
+ # The delivery method for the payment
1407
+ attr_accessor :mode
1408
+ # Details of the recipient.
1409
+ attr_accessor :recipient
1410
+
1411
+ def initialize(mode: nil, recipient: nil)
1412
+ @mode = mode
1413
+ @recipient = recipient
1414
+ end
1415
+ end
1416
+
1417
+ class Passenger < ::Stripe::RequestParams
1418
+ # Full name of the person or entity on the lodging reservation.
1419
+ attr_accessor :name
1420
+
1421
+ def initialize(name: nil)
1422
+ @name = name
1423
+ end
1424
+ end
1425
+ # The lodging location's address.
1426
+ attr_accessor :address
1427
+ # The number of adults on the booking
1428
+ attr_accessor :adults
1429
+ # Affiliate details for this purchase.
1430
+ attr_accessor :affiliate
1431
+ # The booking number associated with the lodging reservation.
1432
+ attr_accessor :booking_number
1433
+ # The lodging category
1434
+ attr_accessor :category
1435
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1436
+ attr_accessor :checkin_at
1437
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1438
+ attr_accessor :checkout_at
1439
+ # The customer service phone number of the lodging company.
1440
+ attr_accessor :customer_service_phone_number
1441
+ # The daily lodging room rate.
1442
+ attr_accessor :daily_room_rate_amount
1443
+ # Delivery details for this purchase.
1444
+ attr_accessor :delivery
1445
+ # List of additional charges being billed.
1446
+ attr_accessor :extra_charges
1447
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1448
+ attr_accessor :fire_safety_act_compliance
1449
+ # The name of the lodging location.
1450
+ attr_accessor :name
1451
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1452
+ attr_accessor :no_show
1453
+ # The number of rooms on the booking
1454
+ attr_accessor :number_of_rooms
1455
+ # The details of the passengers in the travel reservation
1456
+ attr_accessor :passengers
1457
+ # The phone number of the lodging location.
1458
+ attr_accessor :property_phone_number
1459
+ # The room class for this purchase.
1460
+ attr_accessor :room_class
1461
+ # The number of room nights
1462
+ attr_accessor :room_nights
1463
+ # The total tax amount associating with the room reservation.
1464
+ attr_accessor :total_room_tax_amount
1465
+ # The total tax amount
1466
+ attr_accessor :total_tax_amount
1467
+
1468
+ def initialize(
1469
+ address: nil,
1470
+ adults: nil,
1471
+ affiliate: nil,
1472
+ booking_number: nil,
1473
+ category: nil,
1474
+ checkin_at: nil,
1475
+ checkout_at: nil,
1476
+ customer_service_phone_number: nil,
1477
+ daily_room_rate_amount: nil,
1478
+ delivery: nil,
1479
+ extra_charges: nil,
1480
+ fire_safety_act_compliance: nil,
1481
+ name: nil,
1482
+ no_show: nil,
1483
+ number_of_rooms: nil,
1484
+ passengers: nil,
1485
+ property_phone_number: nil,
1486
+ room_class: nil,
1487
+ room_nights: nil,
1488
+ total_room_tax_amount: nil,
1489
+ total_tax_amount: nil
1490
+ )
1491
+ @address = address
1492
+ @adults = adults
1493
+ @affiliate = affiliate
1494
+ @booking_number = booking_number
1495
+ @category = category
1496
+ @checkin_at = checkin_at
1497
+ @checkout_at = checkout_at
1498
+ @customer_service_phone_number = customer_service_phone_number
1499
+ @daily_room_rate_amount = daily_room_rate_amount
1500
+ @delivery = delivery
1501
+ @extra_charges = extra_charges
1502
+ @fire_safety_act_compliance = fire_safety_act_compliance
1503
+ @name = name
1504
+ @no_show = no_show
1505
+ @number_of_rooms = number_of_rooms
1506
+ @passengers = passengers
1507
+ @property_phone_number = property_phone_number
1508
+ @room_class = room_class
1509
+ @room_nights = room_nights
1510
+ @total_room_tax_amount = total_room_tax_amount
1511
+ @total_tax_amount = total_tax_amount
1512
+ end
1513
+ end
1514
+
1515
+ class LodgingDatum < ::Stripe::RequestParams
1516
+ class Accommodation < ::Stripe::RequestParams
1517
+ # Type of accommodation.
1518
+ attr_accessor :accommodation_type
1519
+ # Bed type.
1520
+ attr_accessor :bed_type
1521
+ # Daily accommodation rate in cents.
1522
+ attr_accessor :daily_rate_amount
1523
+ # Number of nights.
1524
+ attr_accessor :nights
1525
+ # Number of rooms, cabanas, apartments, and so on.
1526
+ attr_accessor :number_of_rooms
1527
+ # Rate type.
1528
+ attr_accessor :rate_type
1529
+ # Whether smoking is allowed.
1530
+ attr_accessor :smoking_indicator
1531
+
1532
+ def initialize(
1533
+ accommodation_type: nil,
1534
+ bed_type: nil,
1535
+ daily_rate_amount: nil,
1536
+ nights: nil,
1537
+ number_of_rooms: nil,
1538
+ rate_type: nil,
1539
+ smoking_indicator: nil
1540
+ )
1541
+ @accommodation_type = accommodation_type
1542
+ @bed_type = bed_type
1543
+ @daily_rate_amount = daily_rate_amount
1544
+ @nights = nights
1545
+ @number_of_rooms = number_of_rooms
1546
+ @rate_type = rate_type
1547
+ @smoking_indicator = smoking_indicator
1548
+ end
1549
+ end
1550
+
1551
+ class Affiliate < ::Stripe::RequestParams
1552
+ # Affiliate partner code.
1553
+ attr_accessor :code
1554
+ # Affiliate partner name.
1555
+ attr_accessor :name
1556
+
1557
+ def initialize(code: nil, name: nil)
1558
+ @code = code
1559
+ @name = name
1560
+ end
1561
+ end
1562
+
1563
+ class Guest < ::Stripe::RequestParams
1564
+ # Guest's full name.
1565
+ attr_accessor :name
1566
+
1567
+ def initialize(name: nil)
1568
+ @name = name
1569
+ end
1570
+ end
1571
+
1572
+ class Host < ::Stripe::RequestParams
1573
+ class Address < ::Stripe::RequestParams
1574
+ # City, district, suburb, town, or village.
1575
+ attr_accessor :city
1576
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1577
+ attr_accessor :country
1578
+ # Address line 1, such as the street, PO Box, or company name.
1579
+ attr_accessor :line1
1580
+ # Address line 2, such as the apartment, suite, unit, or building.
1581
+ attr_accessor :line2
1582
+ # ZIP or postal code.
1583
+ attr_accessor :postal_code
1584
+ # State, county, province, or region.
1585
+ attr_accessor :state
1586
+
1587
+ def initialize(
1588
+ city: nil,
1589
+ country: nil,
1590
+ line1: nil,
1591
+ line2: nil,
1592
+ postal_code: nil,
1593
+ state: nil
1594
+ )
1595
+ @city = city
1596
+ @country = country
1597
+ @line1 = line1
1598
+ @line2 = line2
1599
+ @postal_code = postal_code
1600
+ @state = state
1601
+ end
1602
+ end
1603
+ # Address of the host.
1604
+ attr_accessor :address
1605
+ # Host's country of domicile.
1606
+ attr_accessor :country_of_domicile
1607
+ # Reference number for the host.
1608
+ attr_accessor :host_reference
1609
+ # Type of host.
1610
+ attr_accessor :host_type
1611
+ # Name of the lodging property or host.
1612
+ attr_accessor :name
1613
+ # Total number of reservations for the host.
1614
+ attr_accessor :number_of_reservations
1615
+ # Property phone number.
1616
+ attr_accessor :property_phone_number
1617
+ # Host's registration date.
1618
+ attr_accessor :registered_at
1619
+
1620
+ def initialize(
1621
+ address: nil,
1622
+ country_of_domicile: nil,
1623
+ host_reference: nil,
1624
+ host_type: nil,
1625
+ name: nil,
1626
+ number_of_reservations: nil,
1627
+ property_phone_number: nil,
1628
+ registered_at: nil
1629
+ )
1630
+ @address = address
1631
+ @country_of_domicile = country_of_domicile
1632
+ @host_reference = host_reference
1633
+ @host_type = host_type
1634
+ @name = name
1635
+ @number_of_reservations = number_of_reservations
1636
+ @property_phone_number = property_phone_number
1637
+ @registered_at = registered_at
1638
+ end
1639
+ end
1640
+
1641
+ class Insurance < ::Stripe::RequestParams
1642
+ # Price of the insurance coverage in cents.
1643
+ attr_accessor :amount
1644
+ # Currency of the insurance amount.
1645
+ attr_accessor :currency
1646
+ # Name of the insurance company.
1647
+ attr_accessor :insurance_company_name
1648
+ # Type of insurance coverage.
1649
+ attr_accessor :insurance_type
1650
+
1651
+ def initialize(
1652
+ amount: nil,
1653
+ currency: nil,
1654
+ insurance_company_name: nil,
1655
+ insurance_type: nil
1656
+ )
1657
+ @amount = amount
1658
+ @currency = currency
1659
+ @insurance_company_name = insurance_company_name
1660
+ @insurance_type = insurance_type
1661
+ end
1662
+ end
1663
+
1664
+ class Total < ::Stripe::RequestParams
1665
+ class Discounts < ::Stripe::RequestParams
1666
+ # Corporate client discount code.
1667
+ attr_accessor :corporate_client_code
1668
+ # Coupon code.
1669
+ attr_accessor :coupon
1670
+
1671
+ def initialize(corporate_client_code: nil, coupon: nil)
1672
+ @corporate_client_code = corporate_client_code
1673
+ @coupon = coupon
1674
+ end
1675
+ end
1676
+
1677
+ class ExtraCharge < ::Stripe::RequestParams
1678
+ # Amount of the extra charge in cents.
1679
+ attr_accessor :amount
1680
+ # Type of extra charge.
1681
+ attr_accessor :type
1682
+
1683
+ def initialize(amount: nil, type: nil)
1684
+ @amount = amount
1685
+ @type = type
1686
+ end
1687
+ end
1688
+
1689
+ class Tax < ::Stripe::RequestParams
1690
+ class Tax < ::Stripe::RequestParams
1691
+ # Tax amount in cents.
1692
+ attr_accessor :amount
1693
+ # Tax rate.
1694
+ attr_accessor :rate
1695
+ # Type of tax applied.
1696
+ attr_accessor :type
1697
+
1698
+ def initialize(amount: nil, rate: nil, type: nil)
1699
+ @amount = amount
1700
+ @rate = rate
1701
+ @type = type
1702
+ end
1703
+ end
1704
+ # Indicates whether the transaction is tax exempt.
1705
+ attr_accessor :tax_exempt_indicator
1706
+ # Tax details.
1707
+ attr_accessor :taxes
1708
+
1709
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1710
+ @tax_exempt_indicator = tax_exempt_indicator
1711
+ @taxes = taxes
1712
+ end
1713
+ end
1714
+ # Total price of the lodging reservation in cents.
1715
+ attr_accessor :amount
1716
+ # Cash advances in cents.
1717
+ attr_accessor :cash_advances
1718
+ # Currency of the total amount.
1719
+ attr_accessor :currency
1720
+ # Discount details for the lodging.
1721
+ attr_accessor :discounts
1722
+ # Additional charges for the lodging.
1723
+ attr_accessor :extra_charges
1724
+ # Prepaid amount in cents.
1725
+ attr_accessor :prepaid_amount
1726
+ # Tax breakdown for the lodging reservation.
1727
+ attr_accessor :tax
1728
+
1729
+ def initialize(
1730
+ amount: nil,
1731
+ cash_advances: nil,
1732
+ currency: nil,
1733
+ discounts: nil,
1734
+ extra_charges: nil,
1735
+ prepaid_amount: nil,
1736
+ tax: nil
1737
+ )
1738
+ @amount = amount
1739
+ @cash_advances = cash_advances
1740
+ @currency = currency
1741
+ @discounts = discounts
1742
+ @extra_charges = extra_charges
1743
+ @prepaid_amount = prepaid_amount
1744
+ @tax = tax
1745
+ end
1746
+ end
1747
+ # Accommodation details for the lodging.
1748
+ attr_accessor :accommodation
1749
+ # Affiliate details if applicable.
1750
+ attr_accessor :affiliate
1751
+ # Booking confirmation number for the lodging.
1752
+ attr_accessor :booking_number
1753
+ # Check-in date.
1754
+ attr_accessor :checkin_at
1755
+ # Check-out date.
1756
+ attr_accessor :checkout_at
1757
+ # Customer service phone number for the lodging company.
1758
+ attr_accessor :customer_service_phone_number
1759
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1760
+ attr_accessor :fire_safety_act_compliance_indicator
1761
+ # List of guests for the lodging.
1762
+ attr_accessor :guests
1763
+ # Host details for the lodging.
1764
+ attr_accessor :host
1765
+ # List of insurances for the lodging.
1766
+ attr_accessor :insurances
1767
+ # Whether the renter is a no-show.
1768
+ attr_accessor :no_show_indicator
1769
+ # Renter ID number for the lodging.
1770
+ attr_accessor :renter_id_number
1771
+ # Renter name for the lodging.
1772
+ attr_accessor :renter_name
1773
+ # Total details for the lodging.
1774
+ attr_accessor :total
1775
+
1776
+ def initialize(
1777
+ accommodation: nil,
1778
+ affiliate: nil,
1779
+ booking_number: nil,
1780
+ checkin_at: nil,
1781
+ checkout_at: nil,
1782
+ customer_service_phone_number: nil,
1783
+ fire_safety_act_compliance_indicator: nil,
1784
+ guests: nil,
1785
+ host: nil,
1786
+ insurances: nil,
1787
+ no_show_indicator: nil,
1788
+ renter_id_number: nil,
1789
+ renter_name: nil,
1790
+ total: nil
1791
+ )
1792
+ @accommodation = accommodation
1793
+ @affiliate = affiliate
1794
+ @booking_number = booking_number
1795
+ @checkin_at = checkin_at
1796
+ @checkout_at = checkout_at
1797
+ @customer_service_phone_number = customer_service_phone_number
1798
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1799
+ @guests = guests
1800
+ @host = host
1801
+ @insurances = insurances
1802
+ @no_show_indicator = no_show_indicator
1803
+ @renter_id_number = renter_id_number
1804
+ @renter_name = renter_name
1805
+ @total = total
1806
+ end
1807
+ end
1808
+
1809
+ class Subscription < ::Stripe::RequestParams
1810
+ class Affiliate < ::Stripe::RequestParams
1811
+ # The name of the affiliate that originated the purchase.
1812
+ attr_accessor :name
1813
+
1814
+ def initialize(name: nil)
1815
+ @name = name
1816
+ end
1817
+ end
1818
+
1819
+ class BillingInterval < ::Stripe::RequestParams
1820
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1821
+ attr_accessor :count
1822
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1823
+ attr_accessor :interval
1824
+
1825
+ def initialize(count: nil, interval: nil)
1826
+ @count = count
1827
+ @interval = interval
1828
+ end
1829
+ end
1830
+ # Affiliate details for this purchase.
1831
+ attr_accessor :affiliate
1832
+ # Info whether the subscription will be auto renewed upon expiry.
1833
+ attr_accessor :auto_renewal
1834
+ # Subscription billing details for this purchase.
1835
+ attr_accessor :billing_interval
1836
+ # Subscription end time. Measured in seconds since the Unix epoch.
1837
+ attr_accessor :ends_at
1838
+ # Name of the product on subscription. e.g. Apple Music Subscription
1839
+ attr_accessor :name
1840
+ # Subscription start time. Measured in seconds since the Unix epoch.
1841
+ attr_accessor :starts_at
1842
+
1843
+ def initialize(
1844
+ affiliate: nil,
1845
+ auto_renewal: nil,
1846
+ billing_interval: nil,
1847
+ ends_at: nil,
1848
+ name: nil,
1849
+ starts_at: nil
1850
+ )
1851
+ @affiliate = affiliate
1852
+ @auto_renewal = auto_renewal
1853
+ @billing_interval = billing_interval
1854
+ @ends_at = ends_at
1855
+ @name = name
1856
+ @starts_at = starts_at
1857
+ end
1858
+ end
1859
+ # Benefit details for this PaymentIntent
1860
+ attr_accessor :benefit
1861
+ # Car rental details for this PaymentIntent.
1862
+ attr_accessor :car_rental
1863
+ # Car rental data for this PaymentIntent.
1864
+ attr_accessor :car_rental_data
1865
+ # A unique value to identify the customer. This field is available only for card payments.
1866
+ #
1867
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1868
+ attr_accessor :customer_reference
1869
+ # Event details for this PaymentIntent
1870
+ attr_accessor :event_details
1871
+ # Flight reservation details for this PaymentIntent
1872
+ attr_accessor :flight
1873
+ # Flight data for this PaymentIntent.
1874
+ attr_accessor :flight_data
1875
+ # Lodging reservation details for this PaymentIntent
1876
+ attr_accessor :lodging
1877
+ # Lodging data for this PaymentIntent.
1878
+ attr_accessor :lodging_data
1879
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1880
+ #
1881
+ # 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`.
1882
+ #
1883
+ # 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.
1884
+ attr_accessor :order_reference
1885
+ # Subscription details for this PaymentIntent
1886
+ attr_accessor :subscription
1887
+
1888
+ def initialize(
1889
+ benefit: nil,
1890
+ car_rental: nil,
1891
+ car_rental_data: nil,
1892
+ customer_reference: nil,
1893
+ event_details: nil,
1894
+ flight: nil,
1895
+ flight_data: nil,
1896
+ lodging: nil,
1897
+ lodging_data: nil,
1898
+ order_reference: nil,
1899
+ subscription: nil
1900
+ )
1901
+ @benefit = benefit
1902
+ @car_rental = car_rental
1903
+ @car_rental_data = car_rental_data
1904
+ @customer_reference = customer_reference
1905
+ @event_details = event_details
1906
+ @flight = flight
1907
+ @flight_data = flight_data
1908
+ @lodging = lodging
1909
+ @lodging_data = lodging_data
1910
+ @order_reference = order_reference
1911
+ @subscription = subscription
1912
+ end
1913
+ end
1914
+
1915
+ class PaymentMethodData < ::Stripe::RequestParams
1916
+ class AcssDebit < ::Stripe::RequestParams
1917
+ # Customer's bank account number.
1918
+ attr_accessor :account_number
1919
+ # Institution number of the customer's bank.
1920
+ attr_accessor :institution_number
1921
+ # Transit number of the customer's bank.
1922
+ attr_accessor :transit_number
1923
+
1924
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil)
1925
+ @account_number = account_number
1926
+ @institution_number = institution_number
1927
+ @transit_number = transit_number
1928
+ end
1929
+ end
1930
+
1931
+ class Affirm < ::Stripe::RequestParams; end
1932
+ class AfterpayClearpay < ::Stripe::RequestParams; end
1933
+ class Alipay < ::Stripe::RequestParams; end
1934
+ class Alma < ::Stripe::RequestParams; end
1935
+ class AmazonPay < ::Stripe::RequestParams; end
1936
+
1937
+ class AuBecsDebit < ::Stripe::RequestParams
1938
+ # The account number for the bank account.
1939
+ attr_accessor :account_number
1940
+ # Bank-State-Branch number of the bank account.
1941
+ attr_accessor :bsb_number
1942
+
1943
+ def initialize(account_number: nil, bsb_number: nil)
1944
+ @account_number = account_number
1945
+ @bsb_number = bsb_number
1946
+ end
1947
+ end
1948
+
1949
+ class BacsDebit < ::Stripe::RequestParams
1950
+ # Account number of the bank account that the funds will be debited from.
1951
+ attr_accessor :account_number
1952
+ # Sort code of the bank account. (e.g., `10-20-30`)
1953
+ attr_accessor :sort_code
1954
+
1955
+ def initialize(account_number: nil, sort_code: nil)
1956
+ @account_number = account_number
1957
+ @sort_code = sort_code
1958
+ end
1959
+ end
1960
+
1961
+ class Bancontact < ::Stripe::RequestParams; end
1962
+ class Billie < ::Stripe::RequestParams; end
1963
+
1964
+ class BillingDetails < ::Stripe::RequestParams
1965
+ class Address < ::Stripe::RequestParams
1966
+ # City, district, suburb, town, or village.
1967
+ attr_accessor :city
1968
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1969
+ attr_accessor :country
1970
+ # Address line 1, such as the street, PO Box, or company name.
1971
+ attr_accessor :line1
1972
+ # Address line 2, such as the apartment, suite, unit, or building.
1973
+ attr_accessor :line2
1974
+ # ZIP or postal code.
1975
+ attr_accessor :postal_code
1976
+ # State, county, province, or region.
1977
+ attr_accessor :state
1978
+
1979
+ def initialize(
1980
+ city: nil,
1981
+ country: nil,
1982
+ line1: nil,
1983
+ line2: nil,
1984
+ postal_code: nil,
1985
+ state: nil
1986
+ )
1987
+ @city = city
1988
+ @country = country
1989
+ @line1 = line1
1990
+ @line2 = line2
1991
+ @postal_code = postal_code
1992
+ @state = state
1993
+ end
1994
+ end
1995
+ # Billing address.
1996
+ attr_accessor :address
1997
+ # Email address.
1998
+ attr_accessor :email
1999
+ # Full name.
2000
+ attr_accessor :name
2001
+ # Billing phone number (including extension).
2002
+ attr_accessor :phone
2003
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
2004
+ attr_accessor :tax_id
2005
+
2006
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
2007
+ @address = address
2008
+ @email = email
2009
+ @name = name
2010
+ @phone = phone
2011
+ @tax_id = tax_id
2012
+ end
2013
+ end
2014
+
2015
+ class Blik < ::Stripe::RequestParams; end
2016
+
2017
+ class Boleto < ::Stripe::RequestParams
2018
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
2019
+ attr_accessor :tax_id
2020
+
2021
+ def initialize(tax_id: nil)
2022
+ @tax_id = tax_id
2023
+ end
2024
+ end
2025
+
2026
+ class Cashapp < ::Stripe::RequestParams; end
2027
+ class Crypto < ::Stripe::RequestParams; end
2028
+ class CustomerBalance < ::Stripe::RequestParams; end
2029
+
2030
+ class Eps < ::Stripe::RequestParams
2031
+ # The customer's bank.
2032
+ attr_accessor :bank
2033
+
2034
+ def initialize(bank: nil)
2035
+ @bank = bank
2036
+ end
2037
+ end
2038
+
2039
+ class Fpx < ::Stripe::RequestParams
2040
+ # Account holder type for FPX transaction
2041
+ attr_accessor :account_holder_type
2042
+ # The customer's bank.
2043
+ attr_accessor :bank
2044
+
2045
+ def initialize(account_holder_type: nil, bank: nil)
2046
+ @account_holder_type = account_holder_type
2047
+ @bank = bank
2048
+ end
2049
+ end
2050
+
2051
+ class Giropay < ::Stripe::RequestParams; end
2052
+ class Gopay < ::Stripe::RequestParams; end
2053
+ class Grabpay < ::Stripe::RequestParams; end
2054
+
2055
+ class IdBankTransfer < ::Stripe::RequestParams
2056
+ # Bank where the account is held.
2057
+ attr_accessor :bank
2058
+
2059
+ def initialize(bank: nil)
2060
+ @bank = bank
2061
+ end
2062
+ end
2063
+
2064
+ class Ideal < ::Stripe::RequestParams
2065
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2066
+ attr_accessor :bank
2067
+
2068
+ def initialize(bank: nil)
2069
+ @bank = bank
2070
+ end
2071
+ end
2072
+
2073
+ class InteracPresent < ::Stripe::RequestParams; end
2074
+ class KakaoPay < ::Stripe::RequestParams; end
2075
+
2076
+ class Klarna < ::Stripe::RequestParams
2077
+ class Dob < ::Stripe::RequestParams
2078
+ # The day of birth, between 1 and 31.
2079
+ attr_accessor :day
2080
+ # The month of birth, between 1 and 12.
2081
+ attr_accessor :month
2082
+ # The four-digit year of birth.
2083
+ attr_accessor :year
2084
+
2085
+ def initialize(day: nil, month: nil, year: nil)
2086
+ @day = day
2087
+ @month = month
2088
+ @year = year
2089
+ end
2090
+ end
2091
+ # Customer's date of birth
2092
+ attr_accessor :dob
2093
+
2094
+ def initialize(dob: nil)
2095
+ @dob = dob
2096
+ end
2097
+ end
2098
+
2099
+ class Konbini < ::Stripe::RequestParams; end
2100
+ class KrCard < ::Stripe::RequestParams; end
2101
+ class Link < ::Stripe::RequestParams; end
2102
+ class MbWay < ::Stripe::RequestParams; end
2103
+ class Mobilepay < ::Stripe::RequestParams; end
2104
+ class Multibanco < ::Stripe::RequestParams; end
2105
+
2106
+ class NaverPay < ::Stripe::RequestParams
2107
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
2108
+ attr_accessor :funding
2109
+
2110
+ def initialize(funding: nil)
2111
+ @funding = funding
2112
+ end
2113
+ end
2114
+
2115
+ class NzBankAccount < ::Stripe::RequestParams
2116
+ # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
2117
+ attr_accessor :account_holder_name
2118
+ # The account number for the bank account.
453
2119
  attr_accessor :account_number
454
2120
  # The numeric code for the bank account's bank.
455
2121
  attr_accessor :bank_code
@@ -492,15 +2158,56 @@ module Stripe
492
2158
  class Payco < ::Stripe::RequestParams; end
493
2159
  class Paynow < ::Stripe::RequestParams; end
494
2160
  class Paypal < ::Stripe::RequestParams; end
2161
+ class Paypay < ::Stripe::RequestParams; end
2162
+
2163
+ class Payto < ::Stripe::RequestParams
2164
+ # The account number for the bank account.
2165
+ attr_accessor :account_number
2166
+ # Bank-State-Branch number of the bank account.
2167
+ attr_accessor :bsb_number
2168
+ # The PayID alias for the bank account.
2169
+ attr_accessor :pay_id
2170
+
2171
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
2172
+ @account_number = account_number
2173
+ @bsb_number = bsb_number
2174
+ @pay_id = pay_id
2175
+ end
2176
+ end
2177
+
495
2178
  class Pix < ::Stripe::RequestParams; end
496
2179
  class Promptpay < ::Stripe::RequestParams; end
2180
+ class Qris < ::Stripe::RequestParams; end
2181
+
2182
+ class RadarOptions < ::Stripe::RequestParams
2183
+ # 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.
2184
+ attr_accessor :session
2185
+
2186
+ def initialize(session: nil)
2187
+ @session = session
2188
+ end
2189
+ end
2190
+
2191
+ class Rechnung < ::Stripe::RequestParams
2192
+ class Dob < ::Stripe::RequestParams
2193
+ # The day of birth, between 1 and 31.
2194
+ attr_accessor :day
2195
+ # The month of birth, between 1 and 12.
2196
+ attr_accessor :month
2197
+ # The four-digit year of birth.
2198
+ attr_accessor :year
497
2199
 
498
- class RadarOptions < ::Stripe::RequestParams
499
- # 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.
500
- attr_accessor :session
2200
+ def initialize(day: nil, month: nil, year: nil)
2201
+ @day = day
2202
+ @month = month
2203
+ @year = year
2204
+ end
2205
+ end
2206
+ # Customer's date of birth
2207
+ attr_accessor :dob
501
2208
 
502
- def initialize(session: nil)
503
- @session = session
2209
+ def initialize(dob: nil)
2210
+ @dob = dob
504
2211
  end
505
2212
  end
506
2213
 
@@ -517,6 +2224,8 @@ module Stripe
517
2224
  end
518
2225
  end
519
2226
 
2227
+ class Shopeepay < ::Stripe::RequestParams; end
2228
+
520
2229
  class Sofort < ::Stripe::RequestParams
521
2230
  # Two-letter ISO code representing the country the bank account is located in.
522
2231
  attr_accessor :country
@@ -526,6 +2235,18 @@ module Stripe
526
2235
  end
527
2236
  end
528
2237
 
2238
+ class StripeBalance < ::Stripe::RequestParams
2239
+ # The connected account ID whose Stripe balance to use as the source of payment
2240
+ attr_accessor :account
2241
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2242
+ attr_accessor :source_type
2243
+
2244
+ def initialize(account: nil, source_type: nil)
2245
+ @account = account
2246
+ @source_type = source_type
2247
+ end
2248
+ end
2249
+
529
2250
  class Swish < ::Stripe::RequestParams; end
530
2251
  class Twint < ::Stripe::RequestParams; end
531
2252
 
@@ -598,8 +2319,12 @@ module Stripe
598
2319
  attr_accessor :fpx
599
2320
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
600
2321
  attr_accessor :giropay
2322
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2323
+ attr_accessor :gopay
601
2324
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
602
2325
  attr_accessor :grabpay
2326
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2327
+ attr_accessor :id_bank_transfer
603
2328
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
604
2329
  attr_accessor :ideal
605
2330
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -638,12 +2363,20 @@ module Stripe
638
2363
  attr_accessor :paynow
639
2364
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
640
2365
  attr_accessor :paypal
2366
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2367
+ attr_accessor :paypay
2368
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2369
+ attr_accessor :payto
641
2370
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
642
2371
  attr_accessor :pix
643
2372
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
644
2373
  attr_accessor :promptpay
2374
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2375
+ attr_accessor :qris
645
2376
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
646
2377
  attr_accessor :radar_options
2378
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2379
+ attr_accessor :rechnung
647
2380
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
648
2381
  attr_accessor :revolut_pay
649
2382
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -652,8 +2385,12 @@ module Stripe
652
2385
  attr_accessor :satispay
653
2386
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
654
2387
  attr_accessor :sepa_debit
2388
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2389
+ attr_accessor :shopeepay
655
2390
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
656
2391
  attr_accessor :sofort
2392
+ # This hash contains details about the Stripe balance payment method.
2393
+ attr_accessor :stripe_balance
657
2394
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
658
2395
  attr_accessor :swish
659
2396
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -688,7 +2425,9 @@ module Stripe
688
2425
  eps: nil,
689
2426
  fpx: nil,
690
2427
  giropay: nil,
2428
+ gopay: nil,
691
2429
  grabpay: nil,
2430
+ id_bank_transfer: nil,
692
2431
  ideal: nil,
693
2432
  interac_present: nil,
694
2433
  kakao_pay: nil,
@@ -708,14 +2447,20 @@ module Stripe
708
2447
  payco: nil,
709
2448
  paynow: nil,
710
2449
  paypal: nil,
2450
+ paypay: nil,
2451
+ payto: nil,
711
2452
  pix: nil,
712
2453
  promptpay: nil,
2454
+ qris: nil,
713
2455
  radar_options: nil,
2456
+ rechnung: nil,
714
2457
  revolut_pay: nil,
715
2458
  samsung_pay: nil,
716
2459
  satispay: nil,
717
2460
  sepa_debit: nil,
2461
+ shopeepay: nil,
718
2462
  sofort: nil,
2463
+ stripe_balance: nil,
719
2464
  swish: nil,
720
2465
  twint: nil,
721
2466
  type: nil,
@@ -743,7 +2488,9 @@ module Stripe
743
2488
  @eps = eps
744
2489
  @fpx = fpx
745
2490
  @giropay = giropay
2491
+ @gopay = gopay
746
2492
  @grabpay = grabpay
2493
+ @id_bank_transfer = id_bank_transfer
747
2494
  @ideal = ideal
748
2495
  @interac_present = interac_present
749
2496
  @kakao_pay = kakao_pay
@@ -763,14 +2510,20 @@ module Stripe
763
2510
  @payco = payco
764
2511
  @paynow = paynow
765
2512
  @paypal = paypal
2513
+ @paypay = paypay
2514
+ @payto = payto
766
2515
  @pix = pix
767
2516
  @promptpay = promptpay
2517
+ @qris = qris
768
2518
  @radar_options = radar_options
2519
+ @rechnung = rechnung
769
2520
  @revolut_pay = revolut_pay
770
2521
  @samsung_pay = samsung_pay
771
2522
  @satispay = satispay
772
2523
  @sepa_debit = sepa_debit
2524
+ @shopeepay = shopeepay
773
2525
  @sofort = sofort
2526
+ @stripe_balance = stripe_balance
774
2527
  @swish = swish
775
2528
  @twint = twint
776
2529
  @type = type
@@ -1141,6 +2894,48 @@ module Stripe
1141
2894
  end
1142
2895
  end
1143
2896
 
2897
+ class StatementDetails < ::Stripe::RequestParams
2898
+ class Address < ::Stripe::RequestParams
2899
+ # City, district, suburb, town, or village.
2900
+ attr_accessor :city
2901
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2902
+ attr_accessor :country
2903
+ # Address line 1, such as the street, PO Box, or company name.
2904
+ attr_accessor :line1
2905
+ # Address line 2, such as the apartment, suite, unit, or building.
2906
+ attr_accessor :line2
2907
+ # ZIP or postal code.
2908
+ attr_accessor :postal_code
2909
+ # State, county, province, or region.
2910
+ attr_accessor :state
2911
+
2912
+ def initialize(
2913
+ city: nil,
2914
+ country: nil,
2915
+ line1: nil,
2916
+ line2: nil,
2917
+ postal_code: nil,
2918
+ state: nil
2919
+ )
2920
+ @city = city
2921
+ @country = country
2922
+ @line1 = line1
2923
+ @line2 = line2
2924
+ @postal_code = postal_code
2925
+ @state = state
2926
+ end
2927
+ end
2928
+ # Please pass in an address that is within your Stripe user account country
2929
+ attr_accessor :address
2930
+ # Phone number (e.g., a toll-free number that customers can call)
2931
+ attr_accessor :phone
2932
+
2933
+ def initialize(address: nil, phone: nil)
2934
+ @address = address
2935
+ @phone = phone
2936
+ end
2937
+ end
2938
+
1144
2939
  class ThreeDSecure < ::Stripe::RequestParams
1145
2940
  class NetworkOptions < ::Stripe::RequestParams
1146
2941
  class CartesBancaires < ::Stripe::RequestParams
@@ -1235,6 +3030,8 @@ module Stripe
1235
3030
  attr_accessor :moto
1236
3031
  # 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.
1237
3032
  attr_accessor :network
3033
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
3034
+ attr_accessor :request_decremental_authorization
1238
3035
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1239
3036
  attr_accessor :request_extended_authorization
1240
3037
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1243,6 +3040,8 @@ module Stripe
1243
3040
  attr_accessor :request_multicapture
1244
3041
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1245
3042
  attr_accessor :request_overcapture
3043
+ # Request partial authorization on this PaymentIntent.
3044
+ attr_accessor :request_partial_authorization
1246
3045
  # 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.
1247
3046
  attr_accessor :request_three_d_secure
1248
3047
  # 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).
@@ -1261,6 +3060,8 @@ module Stripe
1261
3060
  attr_accessor :statement_descriptor_suffix_kana
1262
3061
  # 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.
1263
3062
  attr_accessor :statement_descriptor_suffix_kanji
3063
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3064
+ attr_accessor :statement_details
1264
3065
  # If 3D Secure authentication was performed with a third-party provider,
1265
3066
  # the authentication details to use for this payment.
1266
3067
  attr_accessor :three_d_secure
@@ -1272,15 +3073,18 @@ module Stripe
1272
3073
  mandate_options: nil,
1273
3074
  moto: nil,
1274
3075
  network: nil,
3076
+ request_decremental_authorization: nil,
1275
3077
  request_extended_authorization: nil,
1276
3078
  request_incremental_authorization: nil,
1277
3079
  request_multicapture: nil,
1278
3080
  request_overcapture: nil,
3081
+ request_partial_authorization: nil,
1279
3082
  request_three_d_secure: nil,
1280
3083
  require_cvc_recollection: nil,
1281
3084
  setup_future_usage: nil,
1282
3085
  statement_descriptor_suffix_kana: nil,
1283
3086
  statement_descriptor_suffix_kanji: nil,
3087
+ statement_details: nil,
1284
3088
  three_d_secure: nil
1285
3089
  )
1286
3090
  @capture_method = capture_method
@@ -1289,15 +3093,18 @@ module Stripe
1289
3093
  @mandate_options = mandate_options
1290
3094
  @moto = moto
1291
3095
  @network = network
3096
+ @request_decremental_authorization = request_decremental_authorization
1292
3097
  @request_extended_authorization = request_extended_authorization
1293
3098
  @request_incremental_authorization = request_incremental_authorization
1294
3099
  @request_multicapture = request_multicapture
1295
3100
  @request_overcapture = request_overcapture
3101
+ @request_partial_authorization = request_partial_authorization
1296
3102
  @request_three_d_secure = request_three_d_secure
1297
3103
  @require_cvc_recollection = require_cvc_recollection
1298
3104
  @setup_future_usage = setup_future_usage
1299
3105
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1300
3106
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3107
+ @statement_details = statement_details
1301
3108
  @three_d_secure = three_d_secure
1302
3109
  end
1303
3110
  end
@@ -1476,6 +3283,23 @@ module Stripe
1476
3283
  end
1477
3284
  end
1478
3285
 
3286
+ class Gopay < ::Stripe::RequestParams
3287
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3288
+ #
3289
+ # 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.
3290
+ #
3291
+ # 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.
3292
+ #
3293
+ # 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).
3294
+ #
3295
+ # 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`.
3296
+ attr_accessor :setup_future_usage
3297
+
3298
+ def initialize(setup_future_usage: nil)
3299
+ @setup_future_usage = setup_future_usage
3300
+ end
3301
+ end
3302
+
1479
3303
  class Grabpay < ::Stripe::RequestParams
1480
3304
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1481
3305
  #
@@ -1493,110 +3317,1066 @@ module Stripe
1493
3317
  end
1494
3318
  end
1495
3319
 
1496
- class Ideal < ::Stripe::RequestParams
1497
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1498
- #
1499
- # 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.
1500
- #
1501
- # 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.
1502
- #
1503
- # 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).
1504
- #
1505
- # 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`.
1506
- attr_accessor :setup_future_usage
3320
+ class IdBankTransfer < ::Stripe::RequestParams
3321
+ # 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.
3322
+ attr_accessor :expires_after
3323
+ # 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.
3324
+ attr_accessor :expires_at
3325
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3326
+ #
3327
+ # 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.
3328
+ #
3329
+ # 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.
3330
+ #
3331
+ # 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).
3332
+ #
3333
+ # 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`.
3334
+ attr_accessor :setup_future_usage
3335
+
3336
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3337
+ @expires_after = expires_after
3338
+ @expires_at = expires_at
3339
+ @setup_future_usage = setup_future_usage
3340
+ end
3341
+ end
3342
+
3343
+ class Ideal < ::Stripe::RequestParams
3344
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3345
+ #
3346
+ # 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.
3347
+ #
3348
+ # 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.
3349
+ #
3350
+ # 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).
3351
+ #
3352
+ # 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`.
3353
+ attr_accessor :setup_future_usage
3354
+
3355
+ def initialize(setup_future_usage: nil)
3356
+ @setup_future_usage = setup_future_usage
3357
+ end
3358
+ end
3359
+
3360
+ class InteracPresent < ::Stripe::RequestParams; end
3361
+
3362
+ class KakaoPay < ::Stripe::RequestParams
3363
+ # Controls when the funds are captured from the customer's account.
3364
+ #
3365
+ # 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.
3366
+ #
3367
+ # 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.
3368
+ attr_accessor :capture_method
3369
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3370
+ #
3371
+ # 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.
3372
+ #
3373
+ # 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.
3374
+ #
3375
+ # 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).
3376
+ attr_accessor :setup_future_usage
3377
+
3378
+ def initialize(capture_method: nil, setup_future_usage: nil)
3379
+ @capture_method = capture_method
3380
+ @setup_future_usage = setup_future_usage
3381
+ end
3382
+ end
3383
+
3384
+ class Klarna < ::Stripe::RequestParams
3385
+ class OnDemand < ::Stripe::RequestParams
3386
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
3387
+ attr_accessor :average_amount
3388
+ # 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.
3389
+ attr_accessor :maximum_amount
3390
+ # 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.
3391
+ attr_accessor :minimum_amount
3392
+ # Interval at which the customer is making purchases
3393
+ attr_accessor :purchase_interval
3394
+ # The number of `purchase_interval` between charges
3395
+ attr_accessor :purchase_interval_count
3396
+
3397
+ def initialize(
3398
+ average_amount: nil,
3399
+ maximum_amount: nil,
3400
+ minimum_amount: nil,
3401
+ purchase_interval: nil,
3402
+ purchase_interval_count: nil
3403
+ )
3404
+ @average_amount = average_amount
3405
+ @maximum_amount = maximum_amount
3406
+ @minimum_amount = minimum_amount
3407
+ @purchase_interval = purchase_interval
3408
+ @purchase_interval_count = purchase_interval_count
3409
+ end
3410
+ end
3411
+
3412
+ class Subscription < ::Stripe::RequestParams
3413
+ class NextBilling < ::Stripe::RequestParams
3414
+ # The amount of the next charge for the subscription.
3415
+ attr_accessor :amount
3416
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
3417
+ attr_accessor :date
3418
+
3419
+ def initialize(amount: nil, date: nil)
3420
+ @amount = amount
3421
+ @date = date
3422
+ end
3423
+ end
3424
+ # Unit of time between subscription charges.
3425
+ attr_accessor :interval
3426
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
3427
+ attr_accessor :interval_count
3428
+ # Name for subscription.
3429
+ attr_accessor :name
3430
+ # Describes the upcoming charge for this subscription.
3431
+ attr_accessor :next_billing
3432
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
3433
+ attr_accessor :reference
3434
+
3435
+ def initialize(
3436
+ interval: nil,
3437
+ interval_count: nil,
3438
+ name: nil,
3439
+ next_billing: nil,
3440
+ reference: nil
3441
+ )
3442
+ @interval = interval
3443
+ @interval_count = interval_count
3444
+ @name = name
3445
+ @next_billing = next_billing
3446
+ @reference = reference
3447
+ end
3448
+ end
3449
+
3450
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3451
+ class BusReservationDetail < ::Stripe::RequestParams
3452
+ class Arrival < ::Stripe::RequestParams
3453
+ class Address < ::Stripe::RequestParams
3454
+ # The city or town.
3455
+ attr_accessor :city
3456
+ # The country in ISO 3166-1 alpha-2 format.
3457
+ attr_accessor :country
3458
+ # The postal code formatted according to country.
3459
+ attr_accessor :postal_code
3460
+ # The state, county, province, or region formatted according to country.
3461
+ attr_accessor :region
3462
+ # Line 1 of the street address.
3463
+ attr_accessor :street_address
3464
+ # Line 2 of the street address.
3465
+ attr_accessor :street_address2
3466
+
3467
+ def initialize(
3468
+ city: nil,
3469
+ country: nil,
3470
+ postal_code: nil,
3471
+ region: nil,
3472
+ street_address: nil,
3473
+ street_address2: nil
3474
+ )
3475
+ @city = city
3476
+ @country = country
3477
+ @postal_code = postal_code
3478
+ @region = region
3479
+ @street_address = street_address
3480
+ @street_address2 = street_address2
3481
+ end
3482
+ end
3483
+ # Address of the arrival location.
3484
+ attr_accessor :address
3485
+ # Identifier name or reference for the arrival location.
3486
+ attr_accessor :arrival_location
3487
+
3488
+ def initialize(address: nil, arrival_location: nil)
3489
+ @address = address
3490
+ @arrival_location = arrival_location
3491
+ end
3492
+ end
3493
+
3494
+ class Departure < ::Stripe::RequestParams
3495
+ class Address < ::Stripe::RequestParams
3496
+ # The city or town.
3497
+ attr_accessor :city
3498
+ # The country in ISO 3166-1 alpha-2 format.
3499
+ attr_accessor :country
3500
+ # The postal code formatted according to country.
3501
+ attr_accessor :postal_code
3502
+ # The state, county, province, or region formatted according to country.
3503
+ attr_accessor :region
3504
+ # Line 1 of the street address.
3505
+ attr_accessor :street_address
3506
+ # Line 2 of the street address.
3507
+ attr_accessor :street_address2
3508
+
3509
+ def initialize(
3510
+ city: nil,
3511
+ country: nil,
3512
+ postal_code: nil,
3513
+ region: nil,
3514
+ street_address: nil,
3515
+ street_address2: nil
3516
+ )
3517
+ @city = city
3518
+ @country = country
3519
+ @postal_code = postal_code
3520
+ @region = region
3521
+ @street_address = street_address
3522
+ @street_address2 = street_address2
3523
+ end
3524
+ end
3525
+ # Address of the departure location.
3526
+ attr_accessor :address
3527
+ # Timestamp of departure.
3528
+ attr_accessor :departs_at
3529
+ # Identifier name or reference for the origin location.
3530
+ attr_accessor :departure_location
3531
+
3532
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3533
+ @address = address
3534
+ @departs_at = departs_at
3535
+ @departure_location = departure_location
3536
+ end
3537
+ end
3538
+
3539
+ class Insurance < ::Stripe::RequestParams
3540
+ # Insurance currency.
3541
+ attr_accessor :currency
3542
+ # Name of the company providing the insurance.
3543
+ attr_accessor :insurance_company_name
3544
+ # Type of insurance.
3545
+ attr_accessor :insurance_type
3546
+ # Price of insurance in cents.
3547
+ attr_accessor :price
3548
+
3549
+ def initialize(
3550
+ currency: nil,
3551
+ insurance_company_name: nil,
3552
+ insurance_type: nil,
3553
+ price: nil
3554
+ )
3555
+ @currency = currency
3556
+ @insurance_company_name = insurance_company_name
3557
+ @insurance_type = insurance_type
3558
+ @price = price
3559
+ end
3560
+ end
3561
+
3562
+ class Passenger < ::Stripe::RequestParams
3563
+ # The family name of the person.
3564
+ attr_accessor :family_name
3565
+ # The given name of the person.
3566
+ attr_accessor :given_name
3567
+
3568
+ def initialize(family_name: nil, given_name: nil)
3569
+ @family_name = family_name
3570
+ @given_name = given_name
3571
+ end
3572
+ end
3573
+ # Name of associated or partner company for the service.
3574
+ attr_accessor :affiliate_name
3575
+ # Arrival details.
3576
+ attr_accessor :arrival
3577
+ # Name of transportation company.
3578
+ attr_accessor :carrier_name
3579
+ # Currency.
3580
+ attr_accessor :currency
3581
+ # Departure details.
3582
+ attr_accessor :departure
3583
+ # List of insurances for this reservation.
3584
+ attr_accessor :insurances
3585
+ # List of passengers that this reservation applies to.
3586
+ attr_accessor :passengers
3587
+ # Price in cents.
3588
+ attr_accessor :price
3589
+ # Ticket class.
3590
+ attr_accessor :ticket_class
3591
+
3592
+ def initialize(
3593
+ affiliate_name: nil,
3594
+ arrival: nil,
3595
+ carrier_name: nil,
3596
+ currency: nil,
3597
+ departure: nil,
3598
+ insurances: nil,
3599
+ passengers: nil,
3600
+ price: nil,
3601
+ ticket_class: nil
3602
+ )
3603
+ @affiliate_name = affiliate_name
3604
+ @arrival = arrival
3605
+ @carrier_name = carrier_name
3606
+ @currency = currency
3607
+ @departure = departure
3608
+ @insurances = insurances
3609
+ @passengers = passengers
3610
+ @price = price
3611
+ @ticket_class = ticket_class
3612
+ end
3613
+ end
3614
+
3615
+ class EventReservationDetail < ::Stripe::RequestParams
3616
+ class Address < ::Stripe::RequestParams
3617
+ # The city or town.
3618
+ attr_accessor :city
3619
+ # The country in ISO 3166-1 alpha-2 format.
3620
+ attr_accessor :country
3621
+ # The postal code formatted according to country.
3622
+ attr_accessor :postal_code
3623
+ # The state, county, province, or region formatted according to country.
3624
+ attr_accessor :region
3625
+ # Line 1 of the street address.
3626
+ attr_accessor :street_address
3627
+ # Line 2 of the street address.
3628
+ attr_accessor :street_address2
3629
+
3630
+ def initialize(
3631
+ city: nil,
3632
+ country: nil,
3633
+ postal_code: nil,
3634
+ region: nil,
3635
+ street_address: nil,
3636
+ street_address2: nil
3637
+ )
3638
+ @city = city
3639
+ @country = country
3640
+ @postal_code = postal_code
3641
+ @region = region
3642
+ @street_address = street_address
3643
+ @street_address2 = street_address2
3644
+ end
3645
+ end
3646
+
3647
+ class Insurance < ::Stripe::RequestParams
3648
+ # Insurance currency.
3649
+ attr_accessor :currency
3650
+ # Name of the company providing the insurance.
3651
+ attr_accessor :insurance_company_name
3652
+ # Type of insurance.
3653
+ attr_accessor :insurance_type
3654
+ # Price of insurance in cents.
3655
+ attr_accessor :price
3656
+
3657
+ def initialize(
3658
+ currency: nil,
3659
+ insurance_company_name: nil,
3660
+ insurance_type: nil,
3661
+ price: nil
3662
+ )
3663
+ @currency = currency
3664
+ @insurance_company_name = insurance_company_name
3665
+ @insurance_type = insurance_type
3666
+ @price = price
3667
+ end
3668
+ end
3669
+ # Indicates if the tickets are digitally checked when entering the venue.
3670
+ attr_accessor :access_controlled_venue
3671
+ # Address of the event.
3672
+ attr_accessor :address
3673
+ # Name of associated or partner company for the service.
3674
+ attr_accessor :affiliate_name
3675
+ # End timestamp of the event.
3676
+ attr_accessor :ends_at
3677
+ # Company selling the ticket.
3678
+ attr_accessor :event_company_name
3679
+ # Name of the event.
3680
+ attr_accessor :event_name
3681
+ # Type of the event.
3682
+ attr_accessor :event_type
3683
+ # List of insurances for this event.
3684
+ attr_accessor :insurances
3685
+ # Start timestamp of the event.
3686
+ attr_accessor :starts_at
3687
+ # Name of the venue where the event takes place.
3688
+ attr_accessor :venue_name
3689
+
3690
+ def initialize(
3691
+ access_controlled_venue: nil,
3692
+ address: nil,
3693
+ affiliate_name: nil,
3694
+ ends_at: nil,
3695
+ event_company_name: nil,
3696
+ event_name: nil,
3697
+ event_type: nil,
3698
+ insurances: nil,
3699
+ starts_at: nil,
3700
+ venue_name: nil
3701
+ )
3702
+ @access_controlled_venue = access_controlled_venue
3703
+ @address = address
3704
+ @affiliate_name = affiliate_name
3705
+ @ends_at = ends_at
3706
+ @event_company_name = event_company_name
3707
+ @event_name = event_name
3708
+ @event_type = event_type
3709
+ @insurances = insurances
3710
+ @starts_at = starts_at
3711
+ @venue_name = venue_name
3712
+ end
3713
+ end
3714
+
3715
+ class FerryReservationDetail < ::Stripe::RequestParams
3716
+ class Arrival < ::Stripe::RequestParams
3717
+ class Address < ::Stripe::RequestParams
3718
+ # The city or town.
3719
+ attr_accessor :city
3720
+ # The country in ISO 3166-1 alpha-2 format.
3721
+ attr_accessor :country
3722
+ # The postal code formatted according to country.
3723
+ attr_accessor :postal_code
3724
+ # The state, county, province, or region formatted according to country.
3725
+ attr_accessor :region
3726
+ # Line 1 of the street address.
3727
+ attr_accessor :street_address
3728
+ # Line 2 of the street address.
3729
+ attr_accessor :street_address2
3730
+
3731
+ def initialize(
3732
+ city: nil,
3733
+ country: nil,
3734
+ postal_code: nil,
3735
+ region: nil,
3736
+ street_address: nil,
3737
+ street_address2: nil
3738
+ )
3739
+ @city = city
3740
+ @country = country
3741
+ @postal_code = postal_code
3742
+ @region = region
3743
+ @street_address = street_address
3744
+ @street_address2 = street_address2
3745
+ end
3746
+ end
3747
+ # Address of the arrival location.
3748
+ attr_accessor :address
3749
+ # Identifier name or reference for the arrival location.
3750
+ attr_accessor :arrival_location
3751
+
3752
+ def initialize(address: nil, arrival_location: nil)
3753
+ @address = address
3754
+ @arrival_location = arrival_location
3755
+ end
3756
+ end
3757
+
3758
+ class Departure < ::Stripe::RequestParams
3759
+ class Address < ::Stripe::RequestParams
3760
+ # The city or town.
3761
+ attr_accessor :city
3762
+ # The country in ISO 3166-1 alpha-2 format.
3763
+ attr_accessor :country
3764
+ # The postal code formatted according to country.
3765
+ attr_accessor :postal_code
3766
+ # The state, county, province, or region formatted according to country.
3767
+ attr_accessor :region
3768
+ # Line 1 of the street address.
3769
+ attr_accessor :street_address
3770
+ # Line 2 of the street address.
3771
+ attr_accessor :street_address2
3772
+
3773
+ def initialize(
3774
+ city: nil,
3775
+ country: nil,
3776
+ postal_code: nil,
3777
+ region: nil,
3778
+ street_address: nil,
3779
+ street_address2: nil
3780
+ )
3781
+ @city = city
3782
+ @country = country
3783
+ @postal_code = postal_code
3784
+ @region = region
3785
+ @street_address = street_address
3786
+ @street_address2 = street_address2
3787
+ end
3788
+ end
3789
+ # Address of the departure location.
3790
+ attr_accessor :address
3791
+ # Timestamp of departure.
3792
+ attr_accessor :departs_at
3793
+ # Identifier name or reference for the origin location.
3794
+ attr_accessor :departure_location
3795
+
3796
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3797
+ @address = address
3798
+ @departs_at = departs_at
3799
+ @departure_location = departure_location
3800
+ end
3801
+ end
3802
+
3803
+ class Insurance < ::Stripe::RequestParams
3804
+ # Insurance currency.
3805
+ attr_accessor :currency
3806
+ # Name of the company providing the insurance.
3807
+ attr_accessor :insurance_company_name
3808
+ # Type of insurance.
3809
+ attr_accessor :insurance_type
3810
+ # Price of insurance in cents.
3811
+ attr_accessor :price
3812
+
3813
+ def initialize(
3814
+ currency: nil,
3815
+ insurance_company_name: nil,
3816
+ insurance_type: nil,
3817
+ price: nil
3818
+ )
3819
+ @currency = currency
3820
+ @insurance_company_name = insurance_company_name
3821
+ @insurance_type = insurance_type
3822
+ @price = price
3823
+ end
3824
+ end
3825
+
3826
+ class Passenger < ::Stripe::RequestParams
3827
+ # The family name of the person.
3828
+ attr_accessor :family_name
3829
+ # The given name of the person.
3830
+ attr_accessor :given_name
3831
+
3832
+ def initialize(family_name: nil, given_name: nil)
3833
+ @family_name = family_name
3834
+ @given_name = given_name
3835
+ end
3836
+ end
3837
+ # Name of associated or partner company for the service.
3838
+ attr_accessor :affiliate_name
3839
+ # Arrival details.
3840
+ attr_accessor :arrival
3841
+ # Name of transportation company.
3842
+ attr_accessor :carrier_name
3843
+ # Currency.
3844
+ attr_accessor :currency
3845
+ # Departure details.
3846
+ attr_accessor :departure
3847
+ # List of insurances for this reservation.
3848
+ attr_accessor :insurances
3849
+ # List of passengers that this reservation applies to.
3850
+ attr_accessor :passengers
3851
+ # Price in cents.
3852
+ attr_accessor :price
3853
+ # Ticket class.
3854
+ attr_accessor :ticket_class
3855
+
3856
+ def initialize(
3857
+ affiliate_name: nil,
3858
+ arrival: nil,
3859
+ carrier_name: nil,
3860
+ currency: nil,
3861
+ departure: nil,
3862
+ insurances: nil,
3863
+ passengers: nil,
3864
+ price: nil,
3865
+ ticket_class: nil
3866
+ )
3867
+ @affiliate_name = affiliate_name
3868
+ @arrival = arrival
3869
+ @carrier_name = carrier_name
3870
+ @currency = currency
3871
+ @departure = departure
3872
+ @insurances = insurances
3873
+ @passengers = passengers
3874
+ @price = price
3875
+ @ticket_class = ticket_class
3876
+ end
3877
+ end
3878
+
3879
+ class Insurance < ::Stripe::RequestParams
3880
+ # Insurance currency.
3881
+ attr_accessor :currency
3882
+ # Name of the company providing the insurance.
3883
+ attr_accessor :insurance_company_name
3884
+ # Type of insurance
3885
+ attr_accessor :insurance_type
3886
+ # Price of insurance in cents.
3887
+ attr_accessor :price
3888
+
3889
+ def initialize(
3890
+ currency: nil,
3891
+ insurance_company_name: nil,
3892
+ insurance_type: nil,
3893
+ price: nil
3894
+ )
3895
+ @currency = currency
3896
+ @insurance_company_name = insurance_company_name
3897
+ @insurance_type = insurance_type
3898
+ @price = price
3899
+ end
3900
+ end
3901
+
3902
+ class MarketplaceSeller < ::Stripe::RequestParams
3903
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3904
+ # The city or town.
3905
+ attr_accessor :city
3906
+ # The country in ISO 3166-1 alpha-2 format.
3907
+ attr_accessor :country
3908
+ # The postal code formatted according to country.
3909
+ attr_accessor :postal_code
3910
+ # The state, county, province, or region formatted according to country.
3911
+ attr_accessor :region
3912
+ # Line 1 of the street address.
3913
+ attr_accessor :street_address
3914
+ # Line 2 of the street address.
3915
+ attr_accessor :street_address2
3916
+
3917
+ def initialize(
3918
+ city: nil,
3919
+ country: nil,
3920
+ postal_code: nil,
3921
+ region: nil,
3922
+ street_address: nil,
3923
+ street_address2: nil
3924
+ )
3925
+ @city = city
3926
+ @country = country
3927
+ @postal_code = postal_code
3928
+ @region = region
3929
+ @street_address = street_address
3930
+ @street_address2 = street_address2
3931
+ end
3932
+ end
3933
+ # The references to line items for purchases with multiple associated sub-sellers.
3934
+ attr_accessor :line_item_references
3935
+ # The address of the selling or delivering merchant.
3936
+ attr_accessor :marketplace_seller_address
3937
+ # The name of the marketplace seller.
3938
+ attr_accessor :marketplace_seller_name
3939
+ # The unique identifier for the marketplace seller.
3940
+ attr_accessor :marketplace_seller_reference
3941
+ # The number of transactions the sub-seller completed in the last 12 months.
3942
+ attr_accessor :number_of_transactions
3943
+ # The category of the product.
3944
+ attr_accessor :product_category
3945
+ # The date when the seller's account with the marketplace was last logged in.
3946
+ attr_accessor :seller_last_login_at
3947
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3948
+ attr_accessor :seller_rating
3949
+ # The date when the seller's account with the marketplace was created.
3950
+ attr_accessor :seller_registered_at
3951
+ # The date when the seller's account with the marketplace was last updated.
3952
+ attr_accessor :seller_updated_at
3953
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3954
+ attr_accessor :shipping_references
3955
+ # 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.
3956
+ attr_accessor :volume_of_transactions
3957
+
3958
+ def initialize(
3959
+ line_item_references: nil,
3960
+ marketplace_seller_address: nil,
3961
+ marketplace_seller_name: nil,
3962
+ marketplace_seller_reference: nil,
3963
+ number_of_transactions: nil,
3964
+ product_category: nil,
3965
+ seller_last_login_at: nil,
3966
+ seller_rating: nil,
3967
+ seller_registered_at: nil,
3968
+ seller_updated_at: nil,
3969
+ shipping_references: nil,
3970
+ volume_of_transactions: nil
3971
+ )
3972
+ @line_item_references = line_item_references
3973
+ @marketplace_seller_address = marketplace_seller_address
3974
+ @marketplace_seller_name = marketplace_seller_name
3975
+ @marketplace_seller_reference = marketplace_seller_reference
3976
+ @number_of_transactions = number_of_transactions
3977
+ @product_category = product_category
3978
+ @seller_last_login_at = seller_last_login_at
3979
+ @seller_rating = seller_rating
3980
+ @seller_registered_at = seller_registered_at
3981
+ @seller_updated_at = seller_updated_at
3982
+ @shipping_references = shipping_references
3983
+ @volume_of_transactions = volume_of_transactions
3984
+ end
3985
+ end
3986
+
3987
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3988
+ class Arrival < ::Stripe::RequestParams
3989
+ class Address < ::Stripe::RequestParams
3990
+ # The city or town.
3991
+ attr_accessor :city
3992
+ # The country in ISO 3166-1 alpha-2 format.
3993
+ attr_accessor :country
3994
+ # The postal code formatted according to country.
3995
+ attr_accessor :postal_code
3996
+ # The state, county, province, or region formatted according to country.
3997
+ attr_accessor :region
3998
+ # Line 1 of the street address.
3999
+ attr_accessor :street_address
4000
+ # Line 2 of the street address.
4001
+ attr_accessor :street_address2
4002
+
4003
+ def initialize(
4004
+ city: nil,
4005
+ country: nil,
4006
+ postal_code: nil,
4007
+ region: nil,
4008
+ street_address: nil,
4009
+ street_address2: nil
4010
+ )
4011
+ @city = city
4012
+ @country = country
4013
+ @postal_code = postal_code
4014
+ @region = region
4015
+ @street_address = street_address
4016
+ @street_address2 = street_address2
4017
+ end
4018
+ end
4019
+ # Address of the arrival location.
4020
+ attr_accessor :address
4021
+ # Identifier name or reference for the arrival location.
4022
+ attr_accessor :arrival_location
4023
+
4024
+ def initialize(address: nil, arrival_location: nil)
4025
+ @address = address
4026
+ @arrival_location = arrival_location
4027
+ end
4028
+ end
4029
+
4030
+ class Departure < ::Stripe::RequestParams
4031
+ class Address < ::Stripe::RequestParams
4032
+ # The city or town.
4033
+ attr_accessor :city
4034
+ # The country in ISO 3166-1 alpha-2 format.
4035
+ attr_accessor :country
4036
+ # The postal code formatted according to country.
4037
+ attr_accessor :postal_code
4038
+ # The state, county, province, or region formatted according to country.
4039
+ attr_accessor :region
4040
+ # Line 1 of the street address.
4041
+ attr_accessor :street_address
4042
+ # Line 2 of the street address.
4043
+ attr_accessor :street_address2
4044
+
4045
+ def initialize(
4046
+ city: nil,
4047
+ country: nil,
4048
+ postal_code: nil,
4049
+ region: nil,
4050
+ street_address: nil,
4051
+ street_address2: nil
4052
+ )
4053
+ @city = city
4054
+ @country = country
4055
+ @postal_code = postal_code
4056
+ @region = region
4057
+ @street_address = street_address
4058
+ @street_address2 = street_address2
4059
+ end
4060
+ end
4061
+ # Address of the departure location.
4062
+ attr_accessor :address
4063
+ # Timestamp of departure.
4064
+ attr_accessor :departs_at
4065
+ # Identifier name or reference for the origin location.
4066
+ attr_accessor :departure_location
4067
+
4068
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4069
+ @address = address
4070
+ @departs_at = departs_at
4071
+ @departure_location = departure_location
4072
+ end
4073
+ end
4074
+
4075
+ class Insurance < ::Stripe::RequestParams
4076
+ # Insurance currency.
4077
+ attr_accessor :currency
4078
+ # Name of the company providing the insurance.
4079
+ attr_accessor :insurance_company_name
4080
+ # Type of insurance.
4081
+ attr_accessor :insurance_type
4082
+ # Price of insurance in cents.
4083
+ attr_accessor :price
4084
+
4085
+ def initialize(
4086
+ currency: nil,
4087
+ insurance_company_name: nil,
4088
+ insurance_type: nil,
4089
+ price: nil
4090
+ )
4091
+ @currency = currency
4092
+ @insurance_company_name = insurance_company_name
4093
+ @insurance_type = insurance_type
4094
+ @price = price
4095
+ end
4096
+ end
4097
+
4098
+ class Passenger < ::Stripe::RequestParams
4099
+ # The family name of the person.
4100
+ attr_accessor :family_name
4101
+ # The given name of the person.
4102
+ attr_accessor :given_name
4103
+
4104
+ def initialize(family_name: nil, given_name: nil)
4105
+ @family_name = family_name
4106
+ @given_name = given_name
4107
+ end
4108
+ end
4109
+ # Name of associated or partner company for the service.
4110
+ attr_accessor :affiliate_name
4111
+ # Arrival details.
4112
+ attr_accessor :arrival
4113
+ # Name of transportation company.
4114
+ attr_accessor :carrier_name
4115
+ # Currency.
4116
+ attr_accessor :currency
4117
+ # Departure details.
4118
+ attr_accessor :departure
4119
+ # List of insurances for this reservation.
4120
+ attr_accessor :insurances
4121
+ # List of passengers that this reservation applies to.
4122
+ attr_accessor :passengers
4123
+ # Price in cents.
4124
+ attr_accessor :price
4125
+ # Ticket class.
4126
+ attr_accessor :ticket_class
4127
+
4128
+ def initialize(
4129
+ affiliate_name: nil,
4130
+ arrival: nil,
4131
+ carrier_name: nil,
4132
+ currency: nil,
4133
+ departure: nil,
4134
+ insurances: nil,
4135
+ passengers: nil,
4136
+ price: nil,
4137
+ ticket_class: nil
4138
+ )
4139
+ @affiliate_name = affiliate_name
4140
+ @arrival = arrival
4141
+ @carrier_name = carrier_name
4142
+ @currency = currency
4143
+ @departure = departure
4144
+ @insurances = insurances
4145
+ @passengers = passengers
4146
+ @price = price
4147
+ @ticket_class = ticket_class
4148
+ end
4149
+ end
1507
4150
 
1508
- def initialize(setup_future_usage: nil)
1509
- @setup_future_usage = setup_future_usage
1510
- end
1511
- end
4151
+ class TrainReservationDetail < ::Stripe::RequestParams
4152
+ class Arrival < ::Stripe::RequestParams
4153
+ class Address < ::Stripe::RequestParams
4154
+ # The city or town.
4155
+ attr_accessor :city
4156
+ # The country in ISO 3166-1 alpha-2 format.
4157
+ attr_accessor :country
4158
+ # The postal code formatted according to country.
4159
+ attr_accessor :postal_code
4160
+ # The state, county, province, or region formatted according to country.
4161
+ attr_accessor :region
4162
+ # Line 1 of the street address.
4163
+ attr_accessor :street_address
4164
+ # Line 2 of the street address.
4165
+ attr_accessor :street_address2
4166
+
4167
+ def initialize(
4168
+ city: nil,
4169
+ country: nil,
4170
+ postal_code: nil,
4171
+ region: nil,
4172
+ street_address: nil,
4173
+ street_address2: nil
4174
+ )
4175
+ @city = city
4176
+ @country = country
4177
+ @postal_code = postal_code
4178
+ @region = region
4179
+ @street_address = street_address
4180
+ @street_address2 = street_address2
4181
+ end
4182
+ end
4183
+ # Address of the arrival location.
4184
+ attr_accessor :address
4185
+ # Identifier name or reference for the arrival location.
4186
+ attr_accessor :arrival_location
4187
+
4188
+ def initialize(address: nil, arrival_location: nil)
4189
+ @address = address
4190
+ @arrival_location = arrival_location
4191
+ end
4192
+ end
1512
4193
 
1513
- class InteracPresent < ::Stripe::RequestParams; end
4194
+ class Departure < ::Stripe::RequestParams
4195
+ class Address < ::Stripe::RequestParams
4196
+ # The city or town.
4197
+ attr_accessor :city
4198
+ # The country in ISO 3166-1 alpha-2 format.
4199
+ attr_accessor :country
4200
+ # The postal code formatted according to country.
4201
+ attr_accessor :postal_code
4202
+ # The state, county, province, or region formatted according to country.
4203
+ attr_accessor :region
4204
+ # Line 1 of the street address.
4205
+ attr_accessor :street_address
4206
+ # Line 2 of the street address.
4207
+ attr_accessor :street_address2
4208
+
4209
+ def initialize(
4210
+ city: nil,
4211
+ country: nil,
4212
+ postal_code: nil,
4213
+ region: nil,
4214
+ street_address: nil,
4215
+ street_address2: nil
4216
+ )
4217
+ @city = city
4218
+ @country = country
4219
+ @postal_code = postal_code
4220
+ @region = region
4221
+ @street_address = street_address
4222
+ @street_address2 = street_address2
4223
+ end
4224
+ end
4225
+ # Address of the departure location.
4226
+ attr_accessor :address
4227
+ # Timestamp of departure.
4228
+ attr_accessor :departs_at
4229
+ # Identifier name or reference for the origin location.
4230
+ attr_accessor :departure_location
4231
+
4232
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4233
+ @address = address
4234
+ @departs_at = departs_at
4235
+ @departure_location = departure_location
4236
+ end
4237
+ end
1514
4238
 
1515
- class KakaoPay < ::Stripe::RequestParams
1516
- # Controls when the funds are captured from the customer's account.
1517
- #
1518
- # 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.
1519
- #
1520
- # 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.
1521
- attr_accessor :capture_method
1522
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1523
- #
1524
- # 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.
1525
- #
1526
- # 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.
1527
- #
1528
- # 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).
1529
- attr_accessor :setup_future_usage
4239
+ class Insurance < ::Stripe::RequestParams
4240
+ # Insurance currency.
4241
+ attr_accessor :currency
4242
+ # Name of the company providing the insurance.
4243
+ attr_accessor :insurance_company_name
4244
+ # Type of insurance.
4245
+ attr_accessor :insurance_type
4246
+ # Price of insurance in cents.
4247
+ attr_accessor :price
4248
+
4249
+ def initialize(
4250
+ currency: nil,
4251
+ insurance_company_name: nil,
4252
+ insurance_type: nil,
4253
+ price: nil
4254
+ )
4255
+ @currency = currency
4256
+ @insurance_company_name = insurance_company_name
4257
+ @insurance_type = insurance_type
4258
+ @price = price
4259
+ end
4260
+ end
1530
4261
 
1531
- def initialize(capture_method: nil, setup_future_usage: nil)
1532
- @capture_method = capture_method
1533
- @setup_future_usage = setup_future_usage
1534
- end
1535
- end
4262
+ class Passenger < ::Stripe::RequestParams
4263
+ # The family name of the person.
4264
+ attr_accessor :family_name
4265
+ # The given name of the person.
4266
+ attr_accessor :given_name
1536
4267
 
1537
- class Klarna < ::Stripe::RequestParams
1538
- class OnDemand < ::Stripe::RequestParams
1539
- # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1540
- attr_accessor :average_amount
1541
- # 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.
1542
- attr_accessor :maximum_amount
1543
- # 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.
1544
- attr_accessor :minimum_amount
1545
- # Interval at which the customer is making purchases
1546
- attr_accessor :purchase_interval
1547
- # The number of `purchase_interval` between charges
1548
- attr_accessor :purchase_interval_count
4268
+ def initialize(family_name: nil, given_name: nil)
4269
+ @family_name = family_name
4270
+ @given_name = given_name
4271
+ end
4272
+ end
4273
+ # Name of associated or partner company for the service.
4274
+ attr_accessor :affiliate_name
4275
+ # Arrival details.
4276
+ attr_accessor :arrival
4277
+ # Name of transportation company.
4278
+ attr_accessor :carrier_name
4279
+ # Currency.
4280
+ attr_accessor :currency
4281
+ # Departure details.
4282
+ attr_accessor :departure
4283
+ # List of insurances for this reservation.
4284
+ attr_accessor :insurances
4285
+ # List of passengers that this reservation applies to.
4286
+ attr_accessor :passengers
4287
+ # Price in cents.
4288
+ attr_accessor :price
4289
+ # Ticket class.
4290
+ attr_accessor :ticket_class
1549
4291
 
1550
- def initialize(
1551
- average_amount: nil,
1552
- maximum_amount: nil,
1553
- minimum_amount: nil,
1554
- purchase_interval: nil,
1555
- purchase_interval_count: nil
1556
- )
1557
- @average_amount = average_amount
1558
- @maximum_amount = maximum_amount
1559
- @minimum_amount = minimum_amount
1560
- @purchase_interval = purchase_interval
1561
- @purchase_interval_count = purchase_interval_count
4292
+ def initialize(
4293
+ affiliate_name: nil,
4294
+ arrival: nil,
4295
+ carrier_name: nil,
4296
+ currency: nil,
4297
+ departure: nil,
4298
+ insurances: nil,
4299
+ passengers: nil,
4300
+ price: nil,
4301
+ ticket_class: nil
4302
+ )
4303
+ @affiliate_name = affiliate_name
4304
+ @arrival = arrival
4305
+ @carrier_name = carrier_name
4306
+ @currency = currency
4307
+ @departure = departure
4308
+ @insurances = insurances
4309
+ @passengers = passengers
4310
+ @price = price
4311
+ @ticket_class = ticket_class
4312
+ end
1562
4313
  end
1563
- end
1564
4314
 
1565
- class Subscription < ::Stripe::RequestParams
1566
- class NextBilling < ::Stripe::RequestParams
1567
- # The amount of the next charge for the subscription.
1568
- attr_accessor :amount
1569
- # The date of the next charge for the subscription in YYYY-MM-DD format.
1570
- attr_accessor :date
4315
+ class Voucher < ::Stripe::RequestParams
4316
+ # Name of associated or partner company for this voucher.
4317
+ attr_accessor :affiliate_name
4318
+ # The voucher validity end time.
4319
+ attr_accessor :ends_at
4320
+ # The voucher validity start time.
4321
+ attr_accessor :starts_at
4322
+ # The issuer or provider of this voucher.
4323
+ attr_accessor :voucher_company
4324
+ # The name or reference to identify the voucher.
4325
+ attr_accessor :voucher_name
4326
+ # The type of this voucher.
4327
+ attr_accessor :voucher_type
1571
4328
 
1572
- def initialize(amount: nil, date: nil)
1573
- @amount = amount
1574
- @date = date
4329
+ def initialize(
4330
+ affiliate_name: nil,
4331
+ ends_at: nil,
4332
+ starts_at: nil,
4333
+ voucher_company: nil,
4334
+ voucher_name: nil,
4335
+ voucher_type: nil
4336
+ )
4337
+ @affiliate_name = affiliate_name
4338
+ @ends_at = ends_at
4339
+ @starts_at = starts_at
4340
+ @voucher_company = voucher_company
4341
+ @voucher_name = voucher_name
4342
+ @voucher_type = voucher_type
1575
4343
  end
1576
4344
  end
1577
- # Unit of time between subscription charges.
1578
- attr_accessor :interval
1579
- # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1580
- attr_accessor :interval_count
1581
- # Name for subscription.
1582
- attr_accessor :name
1583
- # Describes the upcoming charge for this subscription.
1584
- attr_accessor :next_billing
1585
- # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1586
- attr_accessor :reference
4345
+ # Supplementary bus reservation details.
4346
+ attr_accessor :bus_reservation_details
4347
+ # Supplementary event reservation details.
4348
+ attr_accessor :event_reservation_details
4349
+ # Supplementary ferry reservation details.
4350
+ attr_accessor :ferry_reservation_details
4351
+ # Supplementary insurance details.
4352
+ attr_accessor :insurances
4353
+ # Supplementary marketplace seller details.
4354
+ attr_accessor :marketplace_sellers
4355
+ # Supplementary round trip reservation details.
4356
+ attr_accessor :round_trip_reservation_details
4357
+ # Supplementary train reservation details.
4358
+ attr_accessor :train_reservation_details
4359
+ # Voucher details, such as a gift card or discount code.
4360
+ attr_accessor :vouchers
1587
4361
 
1588
4362
  def initialize(
1589
- interval: nil,
1590
- interval_count: nil,
1591
- name: nil,
1592
- next_billing: nil,
1593
- reference: nil
4363
+ bus_reservation_details: nil,
4364
+ event_reservation_details: nil,
4365
+ ferry_reservation_details: nil,
4366
+ insurances: nil,
4367
+ marketplace_sellers: nil,
4368
+ round_trip_reservation_details: nil,
4369
+ train_reservation_details: nil,
4370
+ vouchers: nil
1594
4371
  )
1595
- @interval = interval
1596
- @interval_count = interval_count
1597
- @name = name
1598
- @next_billing = next_billing
1599
- @reference = reference
4372
+ @bus_reservation_details = bus_reservation_details
4373
+ @event_reservation_details = event_reservation_details
4374
+ @ferry_reservation_details = ferry_reservation_details
4375
+ @insurances = insurances
4376
+ @marketplace_sellers = marketplace_sellers
4377
+ @round_trip_reservation_details = round_trip_reservation_details
4378
+ @train_reservation_details = train_reservation_details
4379
+ @vouchers = vouchers
1600
4380
  end
1601
4381
  end
1602
4382
  # Controls when the funds are captured from the customer's account.
@@ -1621,19 +4401,23 @@ module Stripe
1621
4401
  attr_accessor :setup_future_usage
1622
4402
  # Subscription details if setting up or charging a subscription.
1623
4403
  attr_accessor :subscriptions
4404
+ # Supplementary Purchase Data for the corresponding Klarna payment
4405
+ attr_accessor :supplementary_purchase_data
1624
4406
 
1625
4407
  def initialize(
1626
4408
  capture_method: nil,
1627
4409
  on_demand: nil,
1628
4410
  preferred_locale: nil,
1629
4411
  setup_future_usage: nil,
1630
- subscriptions: nil
4412
+ subscriptions: nil,
4413
+ supplementary_purchase_data: nil
1631
4414
  )
1632
4415
  @capture_method = capture_method
1633
4416
  @on_demand = on_demand
1634
4417
  @preferred_locale = preferred_locale
1635
4418
  @setup_future_usage = setup_future_usage
1636
4419
  @subscriptions = subscriptions
4420
+ @supplementary_purchase_data = supplementary_purchase_data
1637
4421
  end
1638
4422
  end
1639
4423
 
@@ -1894,12 +4678,65 @@ module Stripe
1894
4678
  end
1895
4679
 
1896
4680
  class Paypal < ::Stripe::RequestParams
4681
+ class LineItem < ::Stripe::RequestParams
4682
+ class Tax < ::Stripe::RequestParams
4683
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4684
+ attr_accessor :amount
4685
+ # The tax behavior for the line item.
4686
+ attr_accessor :behavior
4687
+
4688
+ def initialize(amount: nil, behavior: nil)
4689
+ @amount = amount
4690
+ @behavior = behavior
4691
+ end
4692
+ end
4693
+ # Type of the line item.
4694
+ attr_accessor :category
4695
+ # Description of the line item.
4696
+ attr_accessor :description
4697
+ # Descriptive name of the line item.
4698
+ attr_accessor :name
4699
+ # Quantity of the line item. Must be a positive number.
4700
+ attr_accessor :quantity
4701
+ # Client facing stock keeping unit, article number or similar.
4702
+ attr_accessor :sku
4703
+ # The Stripe account ID of the connected account that sells the item.
4704
+ attr_accessor :sold_by
4705
+ # The tax information for the line item.
4706
+ attr_accessor :tax
4707
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4708
+ attr_accessor :unit_amount
4709
+
4710
+ def initialize(
4711
+ category: nil,
4712
+ description: nil,
4713
+ name: nil,
4714
+ quantity: nil,
4715
+ sku: nil,
4716
+ sold_by: nil,
4717
+ tax: nil,
4718
+ unit_amount: nil
4719
+ )
4720
+ @category = category
4721
+ @description = description
4722
+ @name = name
4723
+ @quantity = quantity
4724
+ @sku = sku
4725
+ @sold_by = sold_by
4726
+ @tax = tax
4727
+ @unit_amount = unit_amount
4728
+ end
4729
+ end
1897
4730
  # Controls when the funds will be captured from the customer's account.
1898
4731
  attr_accessor :capture_method
4732
+ # The line items purchased by the customer.
4733
+ attr_accessor :line_items
1899
4734
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1900
4735
  attr_accessor :preferred_locale
1901
4736
  # 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.
1902
4737
  attr_accessor :reference
4738
+ # 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.
4739
+ attr_accessor :reference_id
1903
4740
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1904
4741
  attr_accessor :risk_correlation_id
1905
4742
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1912,29 +4749,140 @@ module Stripe
1912
4749
  #
1913
4750
  # 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`.
1914
4751
  attr_accessor :setup_future_usage
4752
+ # 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.
4753
+ attr_accessor :subsellers
1915
4754
 
1916
4755
  def initialize(
1917
4756
  capture_method: nil,
4757
+ line_items: nil,
1918
4758
  preferred_locale: nil,
1919
4759
  reference: nil,
4760
+ reference_id: nil,
1920
4761
  risk_correlation_id: nil,
1921
- setup_future_usage: nil
4762
+ setup_future_usage: nil,
4763
+ subsellers: nil
1922
4764
  )
1923
4765
  @capture_method = capture_method
4766
+ @line_items = line_items
1924
4767
  @preferred_locale = preferred_locale
1925
4768
  @reference = reference
4769
+ @reference_id = reference_id
1926
4770
  @risk_correlation_id = risk_correlation_id
1927
4771
  @setup_future_usage = setup_future_usage
4772
+ @subsellers = subsellers
4773
+ end
4774
+ end
4775
+
4776
+ class Paypay < ::Stripe::RequestParams
4777
+ # Controls when the funds are captured from the customer's account.
4778
+ #
4779
+ # 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.
4780
+ #
4781
+ # 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.
4782
+ attr_accessor :capture_method
4783
+
4784
+ def initialize(capture_method: nil)
4785
+ @capture_method = capture_method
4786
+ end
4787
+ end
4788
+
4789
+ class Payto < ::Stripe::RequestParams
4790
+ class MandateOptions < ::Stripe::RequestParams
4791
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
4792
+ attr_accessor :amount
4793
+ # 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`.
4794
+ attr_accessor :amount_type
4795
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4796
+ attr_accessor :end_date
4797
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
4798
+ attr_accessor :payment_schedule
4799
+ # 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.
4800
+ attr_accessor :payments_per_period
4801
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
4802
+ attr_accessor :purpose
4803
+
4804
+ def initialize(
4805
+ amount: nil,
4806
+ amount_type: nil,
4807
+ end_date: nil,
4808
+ payment_schedule: nil,
4809
+ payments_per_period: nil,
4810
+ purpose: nil
4811
+ )
4812
+ @amount = amount
4813
+ @amount_type = amount_type
4814
+ @end_date = end_date
4815
+ @payment_schedule = payment_schedule
4816
+ @payments_per_period = payments_per_period
4817
+ @purpose = purpose
4818
+ end
4819
+ end
4820
+ # 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`
4821
+ attr_accessor :mandate_options
4822
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4823
+ #
4824
+ # 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.
4825
+ #
4826
+ # 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.
4827
+ #
4828
+ # 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).
4829
+ #
4830
+ # 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`.
4831
+ attr_accessor :setup_future_usage
4832
+
4833
+ def initialize(mandate_options: nil, setup_future_usage: nil)
4834
+ @mandate_options = mandate_options
4835
+ @setup_future_usage = setup_future_usage
1928
4836
  end
1929
4837
  end
1930
4838
 
1931
4839
  class Pix < ::Stripe::RequestParams
4840
+ class MandateOptions < ::Stripe::RequestParams
4841
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4842
+ attr_accessor :amount
4843
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
4844
+ attr_accessor :amount_includes_iof
4845
+ # Type of amount. Defaults to `maximum`.
4846
+ attr_accessor :amount_type
4847
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4848
+ attr_accessor :currency
4849
+ # 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.
4850
+ attr_accessor :end_date
4851
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
4852
+ attr_accessor :payment_schedule
4853
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4854
+ attr_accessor :reference
4855
+ # 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.
4856
+ attr_accessor :start_date
4857
+
4858
+ def initialize(
4859
+ amount: nil,
4860
+ amount_includes_iof: nil,
4861
+ amount_type: nil,
4862
+ currency: nil,
4863
+ end_date: nil,
4864
+ payment_schedule: nil,
4865
+ reference: nil,
4866
+ start_date: nil
4867
+ )
4868
+ @amount = amount
4869
+ @amount_includes_iof = amount_includes_iof
4870
+ @amount_type = amount_type
4871
+ @currency = currency
4872
+ @end_date = end_date
4873
+ @payment_schedule = payment_schedule
4874
+ @reference = reference
4875
+ @start_date = start_date
4876
+ end
4877
+ end
1932
4878
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1933
4879
  attr_accessor :amount_includes_iof
1934
4880
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1935
4881
  attr_accessor :expires_after_seconds
1936
4882
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1937
4883
  attr_accessor :expires_at
4884
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4885
+ attr_accessor :mandate_options
1938
4886
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1939
4887
  #
1940
4888
  # 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.
@@ -1950,11 +4898,13 @@ module Stripe
1950
4898
  amount_includes_iof: nil,
1951
4899
  expires_after_seconds: nil,
1952
4900
  expires_at: nil,
4901
+ mandate_options: nil,
1953
4902
  setup_future_usage: nil
1954
4903
  )
1955
4904
  @amount_includes_iof = amount_includes_iof
1956
4905
  @expires_after_seconds = expires_after_seconds
1957
4906
  @expires_at = expires_at
4907
+ @mandate_options = mandate_options
1958
4908
  @setup_future_usage = setup_future_usage
1959
4909
  end
1960
4910
  end
@@ -1976,6 +4926,25 @@ module Stripe
1976
4926
  end
1977
4927
  end
1978
4928
 
4929
+ class Qris < ::Stripe::RequestParams
4930
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4931
+ #
4932
+ # 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.
4933
+ #
4934
+ # 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.
4935
+ #
4936
+ # 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).
4937
+ #
4938
+ # 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`.
4939
+ attr_accessor :setup_future_usage
4940
+
4941
+ def initialize(setup_future_usage: nil)
4942
+ @setup_future_usage = setup_future_usage
4943
+ end
4944
+ end
4945
+
4946
+ class Rechnung < ::Stripe::RequestParams; end
4947
+
1979
4948
  class RevolutPay < ::Stripe::RequestParams
1980
4949
  # Controls when the funds are captured from the customer's account.
1981
4950
  #
@@ -2055,6 +5024,23 @@ module Stripe
2055
5024
  end
2056
5025
  end
2057
5026
 
5027
+ class Shopeepay < ::Stripe::RequestParams
5028
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5029
+ #
5030
+ # 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.
5031
+ #
5032
+ # 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.
5033
+ #
5034
+ # 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).
5035
+ #
5036
+ # 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`.
5037
+ attr_accessor :setup_future_usage
5038
+
5039
+ def initialize(setup_future_usage: nil)
5040
+ @setup_future_usage = setup_future_usage
5041
+ end
5042
+ end
5043
+
2058
5044
  class Sofort < ::Stripe::RequestParams
2059
5045
  # Language shown to the payer on redirect.
2060
5046
  attr_accessor :preferred_language
@@ -2075,6 +5061,23 @@ module Stripe
2075
5061
  end
2076
5062
  end
2077
5063
 
5064
+ class StripeBalance < ::Stripe::RequestParams
5065
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5066
+ #
5067
+ # 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.
5068
+ #
5069
+ # 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.
5070
+ #
5071
+ # 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).
5072
+ #
5073
+ # 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`.
5074
+ attr_accessor :setup_future_usage
5075
+
5076
+ def initialize(setup_future_usage: nil)
5077
+ @setup_future_usage = setup_future_usage
5078
+ end
5079
+ end
5080
+
2078
5081
  class Swish < ::Stripe::RequestParams
2079
5082
  # A reference for this payment to be displayed in the Swish app.
2080
5083
  attr_accessor :reference
@@ -2117,13 +5120,27 @@ module Stripe
2117
5120
  class Filters < ::Stripe::RequestParams
2118
5121
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2119
5122
  attr_accessor :account_subcategories
5123
+ # ID of the institution to use to filter for selectable accounts.
5124
+ attr_accessor :institution
2120
5125
 
2121
- def initialize(account_subcategories: nil)
5126
+ def initialize(account_subcategories: nil, institution: nil)
2122
5127
  @account_subcategories = account_subcategories
5128
+ @institution = institution
5129
+ end
5130
+ end
5131
+
5132
+ class ManualEntry < ::Stripe::RequestParams
5133
+ # Settings for configuring manual entry of account details.
5134
+ attr_accessor :mode
5135
+
5136
+ def initialize(mode: nil)
5137
+ @mode = mode
2123
5138
  end
2124
5139
  end
2125
5140
  # Provide filters for the linked accounts that the customer can select for the payment method.
2126
5141
  attr_accessor :filters
5142
+ # Customize manual entry behavior
5143
+ attr_accessor :manual_entry
2127
5144
  # 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`.
2128
5145
  attr_accessor :permissions
2129
5146
  # List of data features that you would like to retrieve upon account creation.
@@ -2131,8 +5148,15 @@ module Stripe
2131
5148
  # 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.
2132
5149
  attr_accessor :return_url
2133
5150
 
2134
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5151
+ def initialize(
5152
+ filters: nil,
5153
+ manual_entry: nil,
5154
+ permissions: nil,
5155
+ prefetch: nil,
5156
+ return_url: nil
5157
+ )
2135
5158
  @filters = filters
5159
+ @manual_entry = manual_entry
2136
5160
  @permissions = permissions
2137
5161
  @prefetch = prefetch
2138
5162
  @return_url = return_url
@@ -2277,8 +5301,12 @@ module Stripe
2277
5301
  attr_accessor :fpx
2278
5302
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2279
5303
  attr_accessor :giropay
5304
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5305
+ attr_accessor :gopay
2280
5306
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2281
5307
  attr_accessor :grabpay
5308
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5309
+ attr_accessor :id_bank_transfer
2282
5310
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2283
5311
  attr_accessor :ideal
2284
5312
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2315,10 +5343,18 @@ module Stripe
2315
5343
  attr_accessor :paynow
2316
5344
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2317
5345
  attr_accessor :paypal
5346
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5347
+ attr_accessor :paypay
5348
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5349
+ attr_accessor :payto
2318
5350
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2319
5351
  attr_accessor :pix
2320
5352
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2321
5353
  attr_accessor :promptpay
5354
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5355
+ attr_accessor :qris
5356
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5357
+ attr_accessor :rechnung
2322
5358
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2323
5359
  attr_accessor :revolut_pay
2324
5360
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2327,8 +5363,12 @@ module Stripe
2327
5363
  attr_accessor :satispay
2328
5364
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2329
5365
  attr_accessor :sepa_debit
5366
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5367
+ attr_accessor :shopeepay
2330
5368
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2331
5369
  attr_accessor :sofort
5370
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5371
+ attr_accessor :stripe_balance
2332
5372
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2333
5373
  attr_accessor :swish
2334
5374
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2361,7 +5401,9 @@ module Stripe
2361
5401
  eps: nil,
2362
5402
  fpx: nil,
2363
5403
  giropay: nil,
5404
+ gopay: nil,
2364
5405
  grabpay: nil,
5406
+ id_bank_transfer: nil,
2365
5407
  ideal: nil,
2366
5408
  interac_present: nil,
2367
5409
  kakao_pay: nil,
@@ -2380,13 +5422,19 @@ module Stripe
2380
5422
  payco: nil,
2381
5423
  paynow: nil,
2382
5424
  paypal: nil,
5425
+ paypay: nil,
5426
+ payto: nil,
2383
5427
  pix: nil,
2384
5428
  promptpay: nil,
5429
+ qris: nil,
5430
+ rechnung: nil,
2385
5431
  revolut_pay: nil,
2386
5432
  samsung_pay: nil,
2387
5433
  satispay: nil,
2388
5434
  sepa_debit: nil,
5435
+ shopeepay: nil,
2389
5436
  sofort: nil,
5437
+ stripe_balance: nil,
2390
5438
  swish: nil,
2391
5439
  twint: nil,
2392
5440
  us_bank_account: nil,
@@ -2413,7 +5461,9 @@ module Stripe
2413
5461
  @eps = eps
2414
5462
  @fpx = fpx
2415
5463
  @giropay = giropay
5464
+ @gopay = gopay
2416
5465
  @grabpay = grabpay
5466
+ @id_bank_transfer = id_bank_transfer
2417
5467
  @ideal = ideal
2418
5468
  @interac_present = interac_present
2419
5469
  @kakao_pay = kakao_pay
@@ -2432,13 +5482,19 @@ module Stripe
2432
5482
  @payco = payco
2433
5483
  @paynow = paynow
2434
5484
  @paypal = paypal
5485
+ @paypay = paypay
5486
+ @payto = payto
2435
5487
  @pix = pix
2436
5488
  @promptpay = promptpay
5489
+ @qris = qris
5490
+ @rechnung = rechnung
2437
5491
  @revolut_pay = revolut_pay
2438
5492
  @samsung_pay = samsung_pay
2439
5493
  @satispay = satispay
2440
5494
  @sepa_debit = sepa_debit
5495
+ @shopeepay = shopeepay
2441
5496
  @sofort = sofort
5497
+ @stripe_balance = stripe_balance
2442
5498
  @swish = swish
2443
5499
  @twint = twint
2444
5500
  @us_bank_account = us_bank_account
@@ -2506,8 +5562,12 @@ module Stripe
2506
5562
  @tracking_number = tracking_number
2507
5563
  end
2508
5564
  end
5565
+ # Allocated Funds configuration for this PaymentIntent.
5566
+ attr_accessor :allocated_funds
2509
5567
  # Provides industry-specific information about the amount.
2510
5568
  attr_accessor :amount_details
5569
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
5570
+ attr_accessor :application_fee_amount
2511
5571
  # Controls when the funds will be captured from the customer's account.
2512
5572
  attr_accessor :capture_method
2513
5573
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -2520,6 +5580,8 @@ module Stripe
2520
5580
  attr_accessor :excluded_payment_method_types
2521
5581
  # Specifies which fields in the response should be expanded.
2522
5582
  attr_accessor :expand
5583
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5584
+ attr_accessor :fx_quote
2523
5585
  # Automations to be run during the PaymentIntent lifecycle
2524
5586
  attr_accessor :hooks
2525
5587
  # ID of the mandate that's used for this payment.
@@ -2565,12 +5627,15 @@ module Stripe
2565
5627
  attr_accessor :use_stripe_sdk
2566
5628
 
2567
5629
  def initialize(
5630
+ allocated_funds: nil,
2568
5631
  amount_details: nil,
5632
+ application_fee_amount: nil,
2569
5633
  capture_method: nil,
2570
5634
  confirmation_token: nil,
2571
5635
  error_on_requires_action: nil,
2572
5636
  excluded_payment_method_types: nil,
2573
5637
  expand: nil,
5638
+ fx_quote: nil,
2574
5639
  hooks: nil,
2575
5640
  mandate: nil,
2576
5641
  mandate_data: nil,
@@ -2587,12 +5652,15 @@ module Stripe
2587
5652
  shipping: nil,
2588
5653
  use_stripe_sdk: nil
2589
5654
  )
5655
+ @allocated_funds = allocated_funds
2590
5656
  @amount_details = amount_details
5657
+ @application_fee_amount = application_fee_amount
2591
5658
  @capture_method = capture_method
2592
5659
  @confirmation_token = confirmation_token
2593
5660
  @error_on_requires_action = error_on_requires_action
2594
5661
  @excluded_payment_method_types = excluded_payment_method_types
2595
5662
  @expand = expand
5663
+ @fx_quote = fx_quote
2596
5664
  @hooks = hooks
2597
5665
  @mandate = mandate
2598
5666
  @mandate_data = mandate_data