stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.beta.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 (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/event_types.rb +0 -841
  4. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
  5. data/lib/stripe/object_types.rb +2 -30
  6. data/lib/stripe/params/account_create_params.rb +19 -34
  7. data/lib/stripe/params/account_person_create_params.rb +1 -33
  8. data/lib/stripe/params/account_person_update_params.rb +1 -33
  9. data/lib/stripe/params/account_update_params.rb +19 -34
  10. data/lib/stripe/params/billing/alert_create_params.rb +1 -121
  11. data/lib/stripe/params/billing/alert_list_params.rb +0 -4
  12. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +3 -7
  13. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
  14. data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
  15. data/lib/stripe/params/billing/meter_create_params.rb +0 -4
  16. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
  17. data/lib/stripe/params/charge_capture_params.rb +941 -2
  18. data/lib/stripe/params/charge_update_params.rb +941 -2
  19. data/lib/stripe/params/checkout/session_create_params.rb +4 -83
  20. data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
  21. data/lib/stripe/params/customer_session_create_params.rb +1 -1
  22. data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
  23. data/lib/stripe/params/invoice_create_preview_params.rb +1 -57
  24. data/lib/stripe/params/invoice_list_params.rb +0 -4
  25. data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
  26. data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
  27. data/lib/stripe/params/order_create_params.rb +938 -1
  28. data/lib/stripe/params/order_update_params.rb +938 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +1913 -53
  31. data/lib/stripe/params/payment_intent_create_params.rb +1913 -53
  32. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
  33. data/lib/stripe/params/payment_intent_update_params.rb +1913 -53
  34. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  35. data/lib/stripe/params/quote_create_params.rb +2 -210
  36. data/lib/stripe/params/quote_update_params.rb +2 -210
  37. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -32
  38. data/lib/stripe/params/setup_intent_create_params.rb +3 -32
  39. data/lib/stripe/params/setup_intent_update_params.rb +4 -33
  40. data/lib/stripe/params/subscription_schedule_create_params.rb +2 -62
  41. data/lib/stripe/params/subscription_schedule_update_params.rb +2 -62
  42. data/lib/stripe/params/tax/registration_create_params.rb +1 -1
  43. data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
  44. data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
  45. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
  46. data/lib/stripe/params/token_create_params.rb +2 -66
  47. data/lib/stripe/params/transfer_create_params.rb +1 -5
  48. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
  49. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
  50. data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
  51. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
  52. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
  53. data/lib/stripe/params/v2/core/account_create_params.rb +97 -699
  54. data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
  55. data/lib/stripe/params/v2/core/{claimable_sandbox_retrieve_params.rb → account_token_retrieve_params.rb} +1 -1
  56. data/lib/stripe/params/v2/core/account_update_params.rb +98 -686
  57. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
  58. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  59. data/lib/stripe/params/v2/{billing/rate_cards/version_retrieve_params.rb → core/accounts/person_token_retrieve_params.rb} +3 -3
  60. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
  61. data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
  62. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -4
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
  65. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
  66. data/lib/stripe/params.rb +4 -93
  67. data/lib/stripe/resources/account.rb +19 -1
  68. data/lib/stripe/resources/application_fee.rb +0 -2
  69. data/lib/stripe/resources/balance.rb +0 -83
  70. data/lib/stripe/resources/bank_account.rb +2 -2
  71. data/lib/stripe/resources/billing/alert.rb +1 -105
  72. data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
  73. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
  74. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
  75. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
  76. data/lib/stripe/resources/billing/credit_grant.rb +2 -58
  77. data/lib/stripe/resources/billing/meter.rb +0 -2
  78. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
  79. data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
  80. data/lib/stripe/resources/capital/financing_offer.rb +6 -47
  81. data/lib/stripe/resources/capital/financing_summary.rb +7 -7
  82. data/lib/stripe/resources/card.rb +1 -18
  83. data/lib/stripe/resources/charge.rb +3 -19
  84. data/lib/stripe/resources/checkout/session.rb +3 -95
  85. data/lib/stripe/resources/confirmation_token.rb +1 -19
  86. data/lib/stripe/resources/discount.rb +0 -2
  87. data/lib/stripe/resources/financial_connections/account.rb +22 -0
  88. data/lib/stripe/resources/identity/verification_report.rb +0 -4
  89. data/lib/stripe/resources/invoice.rb +1 -17
  90. data/lib/stripe/resources/invoice_item.rb +2 -106
  91. data/lib/stripe/resources/invoice_line_item.rb +1 -107
  92. data/lib/stripe/resources/issuing/card.rb +18 -0
  93. data/lib/stripe/resources/mandate.rb +3 -3
  94. data/lib/stripe/resources/payment_attempt_record.rb +8 -6
  95. data/lib/stripe/resources/payment_intent.rb +22 -54
  96. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
  97. data/lib/stripe/resources/payment_method.rb +1 -39
  98. data/lib/stripe/resources/payment_record.rb +8 -6
  99. data/lib/stripe/resources/person.rb +0 -36
  100. data/lib/stripe/resources/quote.rb +1 -348
  101. data/lib/stripe/resources/quote_preview_invoice.rb +1 -17
  102. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -174
  103. data/lib/stripe/resources/refund.rb +31 -0
  104. data/lib/stripe/resources/setup_attempt.rb +1 -1
  105. data/lib/stripe/resources/setup_intent.rb +3 -43
  106. data/lib/stripe/resources/subscription.rb +3 -106
  107. data/lib/stripe/resources/subscription_schedule.rb +0 -174
  108. data/lib/stripe/resources/transfer.rb +0 -4
  109. data/lib/stripe/resources/v2/billing/cadence.rb +2 -48
  110. data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
  111. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
  112. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
  113. data/lib/stripe/resources/v2/core/account.rb +295 -1053
  114. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  115. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  116. data/lib/stripe/resources/v2/core/event.rb +0 -2
  117. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -2
  118. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
  119. data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -29
  120. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
  121. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -4
  122. data/lib/stripe/resources.rb +2 -288
  123. data/lib/stripe/services/identity_service.rb +1 -2
  124. data/lib/stripe/services/issuing_service.rb +1 -2
  125. data/lib/stripe/services/payment_method_service.rb +0 -11
  126. data/lib/stripe/services/test_helpers_service.rb +1 -2
  127. data/lib/stripe/services/v1_services.rb +1 -2
  128. data/lib/stripe/services/v2/billing_service.rb +1 -14
  129. data/lib/stripe/services/v2/core/account_service.rb +2 -1
  130. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  131. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  132. data/lib/stripe/services/v2/core_service.rb +2 -2
  133. data/lib/stripe/services/v2/money_management_service.rb +1 -3
  134. data/lib/stripe/services/v2/test_helper_service.rb +1 -2
  135. data/lib/stripe/services/v2_services.rb +1 -3
  136. data/lib/stripe/services.rb +2 -32
  137. data/lib/stripe/util.rb +2 -5
  138. data/lib/stripe/version.rb +1 -1
  139. data/rbi/stripe.rbi +20644 -16929
  140. metadata +10 -415
  141. data/lib/stripe/events/v1_account_updated_event.rb +0 -44
  142. data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
  143. data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
  144. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
  145. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
  146. data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
  147. data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
  148. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
  149. data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
  150. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
  151. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
  152. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
  153. data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
  154. data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
  155. data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
  156. data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
  157. data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
  158. data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
  159. data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
  160. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
  161. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
  162. data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
  163. data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
  164. data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
  165. data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
  166. data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
  167. data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
  168. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
  169. data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
  170. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
  171. data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
  172. data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
  173. data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
  174. data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
  175. data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
  176. data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
  177. data/lib/stripe/events/v1_customer_created_event.rb +0 -44
  178. data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
  179. data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
  180. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
  181. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
  182. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
  183. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
  184. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
  185. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
  186. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
  187. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
  188. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
  189. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
  190. data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
  191. data/lib/stripe/events/v1_file_created_event.rb +0 -44
  192. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
  193. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
  194. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
  195. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
  196. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
  197. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
  198. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
  199. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
  200. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
  201. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
  202. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
  203. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
  204. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
  205. data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
  206. data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
  207. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
  208. data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
  209. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
  210. data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
  211. data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
  212. data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
  213. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
  214. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
  215. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
  216. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
  217. data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
  218. data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
  219. data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
  220. data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
  221. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
  222. data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
  223. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
  224. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
  225. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
  226. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
  227. data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
  228. data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
  229. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
  230. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
  231. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
  232. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
  233. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
  234. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
  235. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
  236. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
  237. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
  238. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
  239. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
  240. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
  241. data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
  242. data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
  243. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
  244. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
  245. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
  246. data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
  247. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
  248. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
  249. data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
  250. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
  251. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
  252. data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
  253. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
  254. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
  255. data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
  256. data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
  257. data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
  258. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
  259. data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
  260. data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
  261. data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
  262. data/lib/stripe/events/v1_payout_created_event.rb +0 -44
  263. data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
  264. data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
  265. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
  266. data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
  267. data/lib/stripe/events/v1_person_created_event.rb +0 -44
  268. data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
  269. data/lib/stripe/events/v1_person_updated_event.rb +0 -44
  270. data/lib/stripe/events/v1_plan_created_event.rb +0 -44
  271. data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
  272. data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
  273. data/lib/stripe/events/v1_price_created_event.rb +0 -44
  274. data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
  275. data/lib/stripe/events/v1_price_updated_event.rb +0 -44
  276. data/lib/stripe/events/v1_product_created_event.rb +0 -44
  277. data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
  278. data/lib/stripe/events/v1_product_updated_event.rb +0 -44
  279. data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
  280. data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
  281. data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
  282. data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
  283. data/lib/stripe/events/v1_quote_created_event.rb +0 -44
  284. data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
  285. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +0 -44
  286. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
  287. data/lib/stripe/events/v1_refund_created_event.rb +0 -44
  288. data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
  289. data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
  290. data/lib/stripe/events/v1_review_closed_event.rb +0 -44
  291. data/lib/stripe/events/v1_review_opened_event.rb +0 -44
  292. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
  293. data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
  294. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
  295. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
  296. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
  297. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +0 -44
  298. data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
  299. data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
  300. data/lib/stripe/events/v1_source_failed_event.rb +0 -44
  301. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
  302. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
  303. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
  304. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
  305. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
  306. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
  307. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
  308. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
  309. data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
  310. data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
  311. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
  312. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
  313. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
  314. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
  315. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
  316. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
  317. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
  318. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
  319. data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
  320. data/lib/stripe/events/v1_topup_created_event.rb +0 -44
  321. data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
  322. data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
  323. data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
  324. data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
  325. data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
  326. data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
  327. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
  328. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
  329. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
  330. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
  331. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
  332. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
  333. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
  334. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
  335. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
  336. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
  337. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
  338. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
  339. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
  340. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
  341. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
  342. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
  343. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
  344. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
  345. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
  346. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
  347. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
  348. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
  349. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
  350. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
  351. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
  352. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
  353. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
  354. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
  355. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
  356. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
  357. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
  358. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
  359. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
  360. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
  361. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
  362. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
  363. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
  364. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
  365. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
  366. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
  367. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
  368. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
  369. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
  370. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
  371. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -66
  372. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -66
  373. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -64
  374. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -64
  375. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
  376. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
  377. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -64
  378. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -62
  379. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -64
  380. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -64
  381. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -64
  382. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -62
  383. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -62
  384. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
  385. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
  386. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
  387. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
  388. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
  389. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
  390. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
  391. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
  392. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  393. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  394. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  395. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  396. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  397. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
  398. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
  399. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
  400. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
  401. data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
  402. data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
  403. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -55
  404. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
  405. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
  406. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
  407. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
  408. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
  409. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
  410. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
  411. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
  412. data/lib/stripe/params/issuing/program_create_params.rb +0 -21
  413. data/lib/stripe/params/issuing/program_list_params.rb +0 -24
  414. data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
  415. data/lib/stripe/params/issuing/program_update_params.rb +0 -21
  416. data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
  417. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
  418. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
  419. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
  420. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
  421. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
  422. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
  423. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
  424. data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
  425. data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -355
  426. data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
  427. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
  428. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
  429. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
  430. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
  431. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
  432. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
  433. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
  434. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
  435. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
  436. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
  437. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
  438. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
  439. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
  440. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
  441. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
  442. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
  443. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
  444. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
  445. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
  446. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
  447. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
  448. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
  449. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
  450. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
  451. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
  452. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
  453. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
  454. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
  455. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
  456. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
  457. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
  458. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
  459. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
  460. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
  461. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
  462. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
  463. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
  464. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
  465. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
  466. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
  467. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
  468. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
  469. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
  470. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
  471. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
  472. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
  473. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
  474. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
  475. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
  476. data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -254
  477. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
  478. data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
  479. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
  480. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
  481. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
  482. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
  483. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  484. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
  485. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
  486. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  487. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  488. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
  489. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
  490. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
  491. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
  492. data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -420
  493. data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
  494. data/lib/stripe/resources/issuing/program.rb +0 -69
  495. data/lib/stripe/resources/payment_method_balance.rb +0 -68
  496. data/lib/stripe/resources/transit_balance.rb +0 -45
  497. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
  498. data/lib/stripe/resources/v2/billing/intent.rb +0 -86
  499. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
  500. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
  501. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
  502. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
  503. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
  504. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
  505. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
  506. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
  507. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
  508. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
  509. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
  510. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
  511. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
  512. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
  513. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
  514. data/lib/stripe/resources/v2/billing/service_action.rb +0 -244
  515. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
  516. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
  517. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
  518. data/lib/stripe/resources/v2/reporting/report.rb +0 -116
  519. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
  520. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
  521. data/lib/stripe/services/delegated_checkout_service.rb +0 -13
  522. data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
  523. data/lib/stripe/services/issuing/program_service.rb +0 -52
  524. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
  525. data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
  526. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
  527. data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
  528. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
  529. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
  530. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
  531. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
  532. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
  533. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
  534. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
  535. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
  536. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
  537. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
  538. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
  539. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
  540. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
  541. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
  542. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
  543. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
  544. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
  545. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
  546. data/lib/stripe/services/v2/payment_service.rb +0 -15
  547. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  548. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
  549. data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
  550. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  551. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
@@ -3,15 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentUpdateParams < ::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
-
15
6
  class AmountDetails < ::Stripe::RequestParams
16
7
  class LineItem < ::Stripe::RequestParams
17
8
  class PaymentMethodOptions < ::Stripe::RequestParams
@@ -88,26 +79,32 @@ module Stripe
88
79
  end
89
80
 
90
81
  class Tax < ::Stripe::RequestParams
91
- # The total tax on an item. Non-negative integer.
82
+ # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
83
+ #
84
+ # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
92
85
  attr_accessor :total_tax_amount
93
86
 
94
87
  def initialize(total_tax_amount: nil)
95
88
  @total_tax_amount = total_tax_amount
96
89
  end
97
90
  end
98
- # The amount an item was discounted for. Positive integer.
91
+ # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
92
+ #
93
+ # This field is mutually exclusive with the `amount_details[discount_amount]` field.
99
94
  attr_accessor :discount_amount
100
95
  # Payment method-specific information for line items.
101
96
  attr_accessor :payment_method_options
102
- # Unique identifier of the product. At most 12 characters long.
97
+ # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
103
98
  attr_accessor :product_code
104
- # Name of the product. At most 100 characters long.
99
+ # The product name of the line item. Required for L3 rates. At most 1024 characters long.
100
+ #
101
+ # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
105
102
  attr_accessor :product_name
106
- # Number of items of the product. Positive integer.
103
+ # The quantity of items. Required for L3 rates. An integer greater than 0.
107
104
  attr_accessor :quantity
108
105
  # Contains information about the tax on the item.
109
106
  attr_accessor :tax
110
- # Cost of the product. Non-negative integer.
107
+ # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
111
108
  attr_accessor :unit_cost
112
109
  # A unit of measure for the line item, such as gallons, feet, meters, etc.
113
110
  attr_accessor :unit_of_measure
@@ -134,11 +131,11 @@ module Stripe
134
131
  end
135
132
 
136
133
  class Shipping < ::Stripe::RequestParams
137
- # Portion of the amount that is for shipping.
134
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
138
135
  attr_accessor :amount
139
- # The postal code that represents the shipping source.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
140
137
  attr_accessor :from_postal_code
141
- # The postal code that represents the shipping destination.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
142
139
  attr_accessor :to_postal_code
143
140
 
144
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -149,14 +146,18 @@ module Stripe
149
146
  end
150
147
 
151
148
  class Tax < ::Stripe::RequestParams
152
- # Total portion of the amount that is for tax.
149
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
150
+ #
151
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
153
152
  attr_accessor :total_tax_amount
154
153
 
155
154
  def initialize(total_tax_amount: nil)
156
155
  @total_tax_amount = total_tax_amount
157
156
  end
158
157
  end
159
- # The total discount applied on the transaction.
158
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
159
+ #
160
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
160
161
  attr_accessor :discount_amount
161
162
  # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
162
163
  attr_accessor :line_items
@@ -230,23 +231,6 @@ module Stripe
230
231
  end
231
232
 
232
233
  class PaymentDetails < ::Stripe::RequestParams
233
- class Benefit < ::Stripe::RequestParams
234
- class FrMealVoucher < ::Stripe::RequestParams
235
- # The 14-digit SIRET of the meal voucher acceptor.
236
- attr_accessor :siret
237
-
238
- def initialize(siret: nil)
239
- @siret = siret
240
- end
241
- end
242
- # French meal voucher benefit details for this PaymentIntent.
243
- attr_accessor :fr_meal_voucher
244
-
245
- def initialize(fr_meal_voucher: nil)
246
- @fr_meal_voucher = fr_meal_voucher
247
- end
248
- end
249
-
250
234
  class CarRental < ::Stripe::RequestParams
251
235
  class Affiliate < ::Stripe::RequestParams
252
236
  # The name of the affiliate that originated the purchase.
@@ -473,6 +457,364 @@ module Stripe
473
457
  end
474
458
  end
475
459
 
460
+ class CarRentalDatum < ::Stripe::RequestParams
461
+ class Affiliate < ::Stripe::RequestParams
462
+ # Affiliate partner code.
463
+ attr_accessor :code
464
+ # Name of affiliate partner.
465
+ attr_accessor :name
466
+
467
+ def initialize(code: nil, name: nil)
468
+ @code = code
469
+ @name = name
470
+ end
471
+ end
472
+
473
+ class Distance < ::Stripe::RequestParams
474
+ # Distance traveled.
475
+ attr_accessor :amount
476
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
477
+ attr_accessor :unit
478
+
479
+ def initialize(amount: nil, unit: nil)
480
+ @amount = amount
481
+ @unit = unit
482
+ end
483
+ end
484
+
485
+ class Driver < ::Stripe::RequestParams
486
+ class DateOfBirth < ::Stripe::RequestParams
487
+ # Day of birth (1-31).
488
+ attr_accessor :day
489
+ # Month of birth (1-12).
490
+ attr_accessor :month
491
+ # Year of birth (must be greater than 1900).
492
+ attr_accessor :year
493
+
494
+ def initialize(day: nil, month: nil, year: nil)
495
+ @day = day
496
+ @month = month
497
+ @year = year
498
+ end
499
+ end
500
+ # Driver's date of birth.
501
+ attr_accessor :date_of_birth
502
+ # Driver's identification number.
503
+ attr_accessor :driver_identification_number
504
+ # Driver's tax number.
505
+ attr_accessor :driver_tax_number
506
+ # Driver's full name.
507
+ attr_accessor :name
508
+
509
+ def initialize(
510
+ date_of_birth: nil,
511
+ driver_identification_number: nil,
512
+ driver_tax_number: nil,
513
+ name: nil
514
+ )
515
+ @date_of_birth = date_of_birth
516
+ @driver_identification_number = driver_identification_number
517
+ @driver_tax_number = driver_tax_number
518
+ @name = name
519
+ end
520
+ end
521
+
522
+ class DropOff < ::Stripe::RequestParams
523
+ class Address < ::Stripe::RequestParams
524
+ # City, district, suburb, town, or village.
525
+ attr_accessor :city
526
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
527
+ attr_accessor :country
528
+ # Address line 1, such as the street, PO Box, or company name.
529
+ attr_accessor :line1
530
+ # Address line 2, such as the apartment, suite, unit, or building.
531
+ attr_accessor :line2
532
+ # ZIP or postal code.
533
+ attr_accessor :postal_code
534
+ # State, county, province, or region.
535
+ attr_accessor :state
536
+
537
+ def initialize(
538
+ city: nil,
539
+ country: nil,
540
+ line1: nil,
541
+ line2: nil,
542
+ postal_code: nil,
543
+ state: nil
544
+ )
545
+ @city = city
546
+ @country = country
547
+ @line1 = line1
548
+ @line2 = line2
549
+ @postal_code = postal_code
550
+ @state = state
551
+ end
552
+ end
553
+ # Address of the rental location.
554
+ attr_accessor :address
555
+ # Location name.
556
+ attr_accessor :location_name
557
+ # Timestamp for the location.
558
+ attr_accessor :time
559
+
560
+ def initialize(address: nil, location_name: nil, time: nil)
561
+ @address = address
562
+ @location_name = location_name
563
+ @time = time
564
+ end
565
+ end
566
+
567
+ class Insurance < ::Stripe::RequestParams
568
+ # Amount of the insurance coverage in cents.
569
+ attr_accessor :amount
570
+ # Currency of the insurance amount.
571
+ attr_accessor :currency
572
+ # Name of the insurance company.
573
+ attr_accessor :insurance_company_name
574
+ # Type of insurance coverage.
575
+ attr_accessor :insurance_type
576
+
577
+ def initialize(
578
+ amount: nil,
579
+ currency: nil,
580
+ insurance_company_name: nil,
581
+ insurance_type: nil
582
+ )
583
+ @amount = amount
584
+ @currency = currency
585
+ @insurance_company_name = insurance_company_name
586
+ @insurance_type = insurance_type
587
+ end
588
+ end
589
+
590
+ class Pickup < ::Stripe::RequestParams
591
+ class Address < ::Stripe::RequestParams
592
+ # City, district, suburb, town, or village.
593
+ attr_accessor :city
594
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
595
+ attr_accessor :country
596
+ # Address line 1, such as the street, PO Box, or company name.
597
+ attr_accessor :line1
598
+ # Address line 2, such as the apartment, suite, unit, or building.
599
+ attr_accessor :line2
600
+ # ZIP or postal code.
601
+ attr_accessor :postal_code
602
+ # State, county, province, or region.
603
+ attr_accessor :state
604
+
605
+ def initialize(
606
+ city: nil,
607
+ country: nil,
608
+ line1: nil,
609
+ line2: nil,
610
+ postal_code: nil,
611
+ state: nil
612
+ )
613
+ @city = city
614
+ @country = country
615
+ @line1 = line1
616
+ @line2 = line2
617
+ @postal_code = postal_code
618
+ @state = state
619
+ end
620
+ end
621
+ # Address of the rental location.
622
+ attr_accessor :address
623
+ # Location name.
624
+ attr_accessor :location_name
625
+ # Timestamp for the location.
626
+ attr_accessor :time
627
+
628
+ def initialize(address: nil, location_name: nil, time: nil)
629
+ @address = address
630
+ @location_name = location_name
631
+ @time = time
632
+ end
633
+ end
634
+
635
+ class Total < ::Stripe::RequestParams
636
+ class Discounts < ::Stripe::RequestParams
637
+ # Corporate client discount code.
638
+ attr_accessor :corporate_client_code
639
+ # Coupon code applied to the rental.
640
+ attr_accessor :coupon
641
+ # Maximum number of free miles or kilometers included.
642
+ attr_accessor :maximum_free_miles_or_kilometers
643
+
644
+ def initialize(
645
+ corporate_client_code: nil,
646
+ coupon: nil,
647
+ maximum_free_miles_or_kilometers: nil
648
+ )
649
+ @corporate_client_code = corporate_client_code
650
+ @coupon = coupon
651
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
652
+ end
653
+ end
654
+
655
+ class ExtraCharge < ::Stripe::RequestParams
656
+ # Amount of the extra charge in cents.
657
+ attr_accessor :amount
658
+ # Type of extra charge.
659
+ attr_accessor :type
660
+
661
+ def initialize(amount: nil, type: nil)
662
+ @amount = amount
663
+ @type = type
664
+ end
665
+ end
666
+
667
+ class Tax < ::Stripe::RequestParams
668
+ class Tax < ::Stripe::RequestParams
669
+ # Tax amount.
670
+ attr_accessor :amount
671
+ # Tax rate applied.
672
+ attr_accessor :rate
673
+ # Type of tax applied.
674
+ attr_accessor :type
675
+
676
+ def initialize(amount: nil, rate: nil, type: nil)
677
+ @amount = amount
678
+ @rate = rate
679
+ @type = type
680
+ end
681
+ end
682
+ # Indicates if the transaction is tax exempt.
683
+ attr_accessor :tax_exempt_indicator
684
+ # Array of tax details.
685
+ attr_accessor :taxes
686
+
687
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
688
+ @tax_exempt_indicator = tax_exempt_indicator
689
+ @taxes = taxes
690
+ end
691
+ end
692
+ # Total amount in cents.
693
+ attr_accessor :amount
694
+ # Currency of the amount.
695
+ attr_accessor :currency
696
+ # Discount details for the rental.
697
+ attr_accessor :discounts
698
+ # Additional charges for the rental.
699
+ attr_accessor :extra_charges
700
+ # Rate per unit for the rental.
701
+ attr_accessor :rate_per_unit
702
+ # Unit of measurement for the rate.
703
+ attr_accessor :rate_unit
704
+ # Tax breakdown for the rental.
705
+ attr_accessor :tax
706
+
707
+ def initialize(
708
+ amount: nil,
709
+ currency: nil,
710
+ discounts: nil,
711
+ extra_charges: nil,
712
+ rate_per_unit: nil,
713
+ rate_unit: nil,
714
+ tax: nil
715
+ )
716
+ @amount = amount
717
+ @currency = currency
718
+ @discounts = discounts
719
+ @extra_charges = extra_charges
720
+ @rate_per_unit = rate_per_unit
721
+ @rate_unit = rate_unit
722
+ @tax = tax
723
+ end
724
+ end
725
+
726
+ class Vehicle < ::Stripe::RequestParams
727
+ # Make of the rental vehicle.
728
+ attr_accessor :make
729
+ # Model of the rental vehicle.
730
+ attr_accessor :model
731
+ # Odometer reading at the time of rental.
732
+ attr_accessor :odometer
733
+ # Type of the rental vehicle.
734
+ attr_accessor :type
735
+ # Class of the rental vehicle.
736
+ attr_accessor :vehicle_class
737
+ # Vehicle identification number (VIN).
738
+ attr_accessor :vehicle_identification_number
739
+
740
+ def initialize(
741
+ make: nil,
742
+ model: nil,
743
+ odometer: nil,
744
+ type: nil,
745
+ vehicle_class: nil,
746
+ vehicle_identification_number: nil
747
+ )
748
+ @make = make
749
+ @model = model
750
+ @odometer = odometer
751
+ @type = type
752
+ @vehicle_class = vehicle_class
753
+ @vehicle_identification_number = vehicle_identification_number
754
+ end
755
+ end
756
+ # Affiliate (such as travel agency) details for the rental.
757
+ attr_accessor :affiliate
758
+ # Booking confirmation number for the car rental.
759
+ attr_accessor :booking_number
760
+ # Name of the car rental company.
761
+ attr_accessor :carrier_name
762
+ # Customer service phone number for the car rental company.
763
+ attr_accessor :customer_service_phone_number
764
+ # Number of days the car is being rented.
765
+ attr_accessor :days_rented
766
+ # Distance details for the rental.
767
+ attr_accessor :distance
768
+ # List of drivers for the rental.
769
+ attr_accessor :drivers
770
+ # Drop-off location details.
771
+ attr_accessor :drop_off
772
+ # Insurance details for the rental.
773
+ attr_accessor :insurances
774
+ # Indicates if the customer was a no-show.
775
+ attr_accessor :no_show_indicator
776
+ # Pickup location details.
777
+ attr_accessor :pickup
778
+ # Name of the person renting the vehicle.
779
+ attr_accessor :renter_name
780
+ # Total cost breakdown for the rental.
781
+ attr_accessor :total
782
+ # Vehicle details for the rental.
783
+ attr_accessor :vehicle
784
+
785
+ def initialize(
786
+ affiliate: nil,
787
+ booking_number: nil,
788
+ carrier_name: nil,
789
+ customer_service_phone_number: nil,
790
+ days_rented: nil,
791
+ distance: nil,
792
+ drivers: nil,
793
+ drop_off: nil,
794
+ insurances: nil,
795
+ no_show_indicator: nil,
796
+ pickup: nil,
797
+ renter_name: nil,
798
+ total: nil,
799
+ vehicle: nil
800
+ )
801
+ @affiliate = affiliate
802
+ @booking_number = booking_number
803
+ @carrier_name = carrier_name
804
+ @customer_service_phone_number = customer_service_phone_number
805
+ @days_rented = days_rented
806
+ @distance = distance
807
+ @drivers = drivers
808
+ @drop_off = drop_off
809
+ @insurances = insurances
810
+ @no_show_indicator = no_show_indicator
811
+ @pickup = pickup
812
+ @renter_name = renter_name
813
+ @total = total
814
+ @vehicle = vehicle
815
+ end
816
+ end
817
+
476
818
  class EventDetails < ::Stripe::RequestParams
477
819
  class Address < ::Stripe::RequestParams
478
820
  # City, district, suburb, town, or village.
@@ -698,7 +1040,276 @@ module Stripe
698
1040
  @passenger_name = passenger_name
699
1041
  @passengers = passengers
700
1042
  @segments = segments
701
- @ticket_number = ticket_number
1043
+ @ticket_number = ticket_number
1044
+ end
1045
+ end
1046
+
1047
+ class FlightDatum < ::Stripe::RequestParams
1048
+ class Affiliate < ::Stripe::RequestParams
1049
+ # Affiliate partner code.
1050
+ attr_accessor :code
1051
+ # Name of affiliate partner.
1052
+ attr_accessor :name
1053
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1054
+ attr_accessor :travel_authorization_code
1055
+
1056
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1057
+ @code = code
1058
+ @name = name
1059
+ @travel_authorization_code = travel_authorization_code
1060
+ end
1061
+ end
1062
+
1063
+ class Insurance < ::Stripe::RequestParams
1064
+ # Insurance cost.
1065
+ attr_accessor :amount
1066
+ # Insurance currency.
1067
+ attr_accessor :currency
1068
+ # Insurance company name.
1069
+ attr_accessor :insurance_company_name
1070
+ # Type of insurance.
1071
+ attr_accessor :insurance_type
1072
+
1073
+ def initialize(
1074
+ amount: nil,
1075
+ currency: nil,
1076
+ insurance_company_name: nil,
1077
+ insurance_type: nil
1078
+ )
1079
+ @amount = amount
1080
+ @currency = currency
1081
+ @insurance_company_name = insurance_company_name
1082
+ @insurance_type = insurance_type
1083
+ end
1084
+ end
1085
+
1086
+ class Passenger < ::Stripe::RequestParams
1087
+ # Passenger's full name.
1088
+ attr_accessor :name
1089
+
1090
+ def initialize(name: nil)
1091
+ @name = name
1092
+ end
1093
+ end
1094
+
1095
+ class Segment < ::Stripe::RequestParams
1096
+ class Arrival < ::Stripe::RequestParams
1097
+ # Arrival airport IATA code.
1098
+ attr_accessor :airport
1099
+ # Arrival date/time.
1100
+ attr_accessor :arrives_at
1101
+ # Arrival city.
1102
+ attr_accessor :city
1103
+ # Arrival country.
1104
+ attr_accessor :country
1105
+
1106
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1107
+ @airport = airport
1108
+ @arrives_at = arrives_at
1109
+ @city = city
1110
+ @country = country
1111
+ end
1112
+ end
1113
+
1114
+ class Departure < ::Stripe::RequestParams
1115
+ # Departure airport IATA code.
1116
+ attr_accessor :airport
1117
+ # Departure city.
1118
+ attr_accessor :city
1119
+ # Departure country.
1120
+ attr_accessor :country
1121
+ # Departure date/time.
1122
+ attr_accessor :departs_at
1123
+
1124
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1125
+ @airport = airport
1126
+ @city = city
1127
+ @country = country
1128
+ @departs_at = departs_at
1129
+ end
1130
+ end
1131
+ # Segment fare amount.
1132
+ attr_accessor :amount
1133
+ # Arrival details.
1134
+ attr_accessor :arrival
1135
+ # Airline carrier code.
1136
+ attr_accessor :carrier_code
1137
+ # Carrier name.
1138
+ attr_accessor :carrier_name
1139
+ # Segment currency.
1140
+ attr_accessor :currency
1141
+ # Departure details.
1142
+ attr_accessor :departure
1143
+ # Exchange ticket number.
1144
+ attr_accessor :exchange_ticket_number
1145
+ # Fare basis code.
1146
+ attr_accessor :fare_basis_code
1147
+ # Additional fees.
1148
+ attr_accessor :fees
1149
+ # Flight number.
1150
+ attr_accessor :flight_number
1151
+ # Stopover indicator.
1152
+ attr_accessor :is_stop_over_indicator
1153
+ # Refundable ticket indicator.
1154
+ attr_accessor :refundable
1155
+ # Class of service.
1156
+ attr_accessor :service_class
1157
+ # Tax amount for segment.
1158
+ attr_accessor :tax_amount
1159
+ # Ticket number.
1160
+ attr_accessor :ticket_number
1161
+
1162
+ def initialize(
1163
+ amount: nil,
1164
+ arrival: nil,
1165
+ carrier_code: nil,
1166
+ carrier_name: nil,
1167
+ currency: nil,
1168
+ departure: nil,
1169
+ exchange_ticket_number: nil,
1170
+ fare_basis_code: nil,
1171
+ fees: nil,
1172
+ flight_number: nil,
1173
+ is_stop_over_indicator: nil,
1174
+ refundable: nil,
1175
+ service_class: nil,
1176
+ tax_amount: nil,
1177
+ ticket_number: nil
1178
+ )
1179
+ @amount = amount
1180
+ @arrival = arrival
1181
+ @carrier_code = carrier_code
1182
+ @carrier_name = carrier_name
1183
+ @currency = currency
1184
+ @departure = departure
1185
+ @exchange_ticket_number = exchange_ticket_number
1186
+ @fare_basis_code = fare_basis_code
1187
+ @fees = fees
1188
+ @flight_number = flight_number
1189
+ @is_stop_over_indicator = is_stop_over_indicator
1190
+ @refundable = refundable
1191
+ @service_class = service_class
1192
+ @tax_amount = tax_amount
1193
+ @ticket_number = ticket_number
1194
+ end
1195
+ end
1196
+
1197
+ class Total < ::Stripe::RequestParams
1198
+ class Discounts < ::Stripe::RequestParams
1199
+ # Corporate client discount code.
1200
+ attr_accessor :corporate_client_code
1201
+
1202
+ def initialize(corporate_client_code: nil)
1203
+ @corporate_client_code = corporate_client_code
1204
+ end
1205
+ end
1206
+
1207
+ class ExtraCharge < ::Stripe::RequestParams
1208
+ # Amount of additional charges.
1209
+ attr_accessor :amount
1210
+ # Type of additional charges.
1211
+ attr_accessor :type
1212
+
1213
+ def initialize(amount: nil, type: nil)
1214
+ @amount = amount
1215
+ @type = type
1216
+ end
1217
+ end
1218
+
1219
+ class Tax < ::Stripe::RequestParams
1220
+ class Tax < ::Stripe::RequestParams
1221
+ # Tax amount.
1222
+ attr_accessor :amount
1223
+ # Tax rate.
1224
+ attr_accessor :rate
1225
+ # Type of tax.
1226
+ attr_accessor :type
1227
+
1228
+ def initialize(amount: nil, rate: nil, type: nil)
1229
+ @amount = amount
1230
+ @rate = rate
1231
+ @type = type
1232
+ end
1233
+ end
1234
+ # Array of tax details.
1235
+ attr_accessor :taxes
1236
+
1237
+ def initialize(taxes: nil)
1238
+ @taxes = taxes
1239
+ end
1240
+ end
1241
+ # Total flight amount.
1242
+ attr_accessor :amount
1243
+ # Reason for credit.
1244
+ attr_accessor :credit_reason
1245
+ # Total currency.
1246
+ attr_accessor :currency
1247
+ # Discount details.
1248
+ attr_accessor :discounts
1249
+ # Additional charges.
1250
+ attr_accessor :extra_charges
1251
+ # Tax breakdown.
1252
+ attr_accessor :tax
1253
+
1254
+ def initialize(
1255
+ amount: nil,
1256
+ credit_reason: nil,
1257
+ currency: nil,
1258
+ discounts: nil,
1259
+ extra_charges: nil,
1260
+ tax: nil
1261
+ )
1262
+ @amount = amount
1263
+ @credit_reason = credit_reason
1264
+ @currency = currency
1265
+ @discounts = discounts
1266
+ @extra_charges = extra_charges
1267
+ @tax = tax
1268
+ end
1269
+ end
1270
+ # Affiliate details if applicable.
1271
+ attr_accessor :affiliate
1272
+ # Reservation reference.
1273
+ attr_accessor :booking_number
1274
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1275
+ attr_accessor :computerized_reservation_system
1276
+ # Ticket restrictions.
1277
+ attr_accessor :endorsements_and_restrictions
1278
+ # List of insurances.
1279
+ attr_accessor :insurances
1280
+ # List of passengers.
1281
+ attr_accessor :passengers
1282
+ # List of flight segments.
1283
+ attr_accessor :segments
1284
+ # Electronic ticket indicator.
1285
+ attr_accessor :ticket_electronically_issued_indicator
1286
+ # Total cost breakdown.
1287
+ attr_accessor :total
1288
+ # Type of flight transaction.
1289
+ attr_accessor :transaction_type
1290
+
1291
+ def initialize(
1292
+ affiliate: nil,
1293
+ booking_number: nil,
1294
+ computerized_reservation_system: nil,
1295
+ endorsements_and_restrictions: nil,
1296
+ insurances: nil,
1297
+ passengers: nil,
1298
+ segments: nil,
1299
+ ticket_electronically_issued_indicator: nil,
1300
+ total: nil,
1301
+ transaction_type: nil
1302
+ )
1303
+ @affiliate = affiliate
1304
+ @booking_number = booking_number
1305
+ @computerized_reservation_system = computerized_reservation_system
1306
+ @endorsements_and_restrictions = endorsements_and_restrictions
1307
+ @insurances = insurances
1308
+ @passengers = passengers
1309
+ @segments = segments
1310
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1311
+ @total = total
1312
+ @transaction_type = transaction_type
702
1313
  end
703
1314
  end
704
1315
 
@@ -867,6 +1478,300 @@ module Stripe
867
1478
  end
868
1479
  end
869
1480
 
1481
+ class LodgingDatum < ::Stripe::RequestParams
1482
+ class Accommodation < ::Stripe::RequestParams
1483
+ # Type of accommodation.
1484
+ attr_accessor :accommodation_type
1485
+ # Bed type.
1486
+ attr_accessor :bed_type
1487
+ # Daily accommodation rate in cents.
1488
+ attr_accessor :daily_rate_amount
1489
+ # Number of nights.
1490
+ attr_accessor :nights
1491
+ # Number of rooms, cabanas, apartments, and so on.
1492
+ attr_accessor :number_of_rooms
1493
+ # Rate type.
1494
+ attr_accessor :rate_type
1495
+ # Whether smoking is allowed.
1496
+ attr_accessor :smoking_indicator
1497
+
1498
+ def initialize(
1499
+ accommodation_type: nil,
1500
+ bed_type: nil,
1501
+ daily_rate_amount: nil,
1502
+ nights: nil,
1503
+ number_of_rooms: nil,
1504
+ rate_type: nil,
1505
+ smoking_indicator: nil
1506
+ )
1507
+ @accommodation_type = accommodation_type
1508
+ @bed_type = bed_type
1509
+ @daily_rate_amount = daily_rate_amount
1510
+ @nights = nights
1511
+ @number_of_rooms = number_of_rooms
1512
+ @rate_type = rate_type
1513
+ @smoking_indicator = smoking_indicator
1514
+ end
1515
+ end
1516
+
1517
+ class Affiliate < ::Stripe::RequestParams
1518
+ # Affiliate partner code.
1519
+ attr_accessor :code
1520
+ # Affiliate partner name.
1521
+ attr_accessor :name
1522
+
1523
+ def initialize(code: nil, name: nil)
1524
+ @code = code
1525
+ @name = name
1526
+ end
1527
+ end
1528
+
1529
+ class Guest < ::Stripe::RequestParams
1530
+ # Guest's full name.
1531
+ attr_accessor :name
1532
+
1533
+ def initialize(name: nil)
1534
+ @name = name
1535
+ end
1536
+ end
1537
+
1538
+ class Host < ::Stripe::RequestParams
1539
+ class Address < ::Stripe::RequestParams
1540
+ # City, district, suburb, town, or village.
1541
+ attr_accessor :city
1542
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1543
+ attr_accessor :country
1544
+ # Address line 1, such as the street, PO Box, or company name.
1545
+ attr_accessor :line1
1546
+ # Address line 2, such as the apartment, suite, unit, or building.
1547
+ attr_accessor :line2
1548
+ # ZIP or postal code.
1549
+ attr_accessor :postal_code
1550
+ # State, county, province, or region.
1551
+ attr_accessor :state
1552
+
1553
+ def initialize(
1554
+ city: nil,
1555
+ country: nil,
1556
+ line1: nil,
1557
+ line2: nil,
1558
+ postal_code: nil,
1559
+ state: nil
1560
+ )
1561
+ @city = city
1562
+ @country = country
1563
+ @line1 = line1
1564
+ @line2 = line2
1565
+ @postal_code = postal_code
1566
+ @state = state
1567
+ end
1568
+ end
1569
+ # Address of the host.
1570
+ attr_accessor :address
1571
+ # Host's country of domicile.
1572
+ attr_accessor :country_of_domicile
1573
+ # Reference number for the host.
1574
+ attr_accessor :host_reference
1575
+ # Type of host.
1576
+ attr_accessor :host_type
1577
+ # Name of the lodging property or host.
1578
+ attr_accessor :name
1579
+ # Total number of reservations for the host.
1580
+ attr_accessor :number_of_reservations
1581
+ # Property phone number.
1582
+ attr_accessor :property_phone_number
1583
+ # Host's registration date.
1584
+ attr_accessor :registered_at
1585
+
1586
+ def initialize(
1587
+ address: nil,
1588
+ country_of_domicile: nil,
1589
+ host_reference: nil,
1590
+ host_type: nil,
1591
+ name: nil,
1592
+ number_of_reservations: nil,
1593
+ property_phone_number: nil,
1594
+ registered_at: nil
1595
+ )
1596
+ @address = address
1597
+ @country_of_domicile = country_of_domicile
1598
+ @host_reference = host_reference
1599
+ @host_type = host_type
1600
+ @name = name
1601
+ @number_of_reservations = number_of_reservations
1602
+ @property_phone_number = property_phone_number
1603
+ @registered_at = registered_at
1604
+ end
1605
+ end
1606
+
1607
+ class Insurance < ::Stripe::RequestParams
1608
+ # Price of the insurance coverage in cents.
1609
+ attr_accessor :amount
1610
+ # Currency of the insurance amount.
1611
+ attr_accessor :currency
1612
+ # Name of the insurance company.
1613
+ attr_accessor :insurance_company_name
1614
+ # Type of insurance coverage.
1615
+ attr_accessor :insurance_type
1616
+
1617
+ def initialize(
1618
+ amount: nil,
1619
+ currency: nil,
1620
+ insurance_company_name: nil,
1621
+ insurance_type: nil
1622
+ )
1623
+ @amount = amount
1624
+ @currency = currency
1625
+ @insurance_company_name = insurance_company_name
1626
+ @insurance_type = insurance_type
1627
+ end
1628
+ end
1629
+
1630
+ class Total < ::Stripe::RequestParams
1631
+ class Discounts < ::Stripe::RequestParams
1632
+ # Corporate client discount code.
1633
+ attr_accessor :corporate_client_code
1634
+ # Coupon code.
1635
+ attr_accessor :coupon
1636
+
1637
+ def initialize(corporate_client_code: nil, coupon: nil)
1638
+ @corporate_client_code = corporate_client_code
1639
+ @coupon = coupon
1640
+ end
1641
+ end
1642
+
1643
+ class ExtraCharge < ::Stripe::RequestParams
1644
+ # Amount of the extra charge in cents.
1645
+ attr_accessor :amount
1646
+ # Type of extra charge.
1647
+ attr_accessor :type
1648
+
1649
+ def initialize(amount: nil, type: nil)
1650
+ @amount = amount
1651
+ @type = type
1652
+ end
1653
+ end
1654
+
1655
+ class Tax < ::Stripe::RequestParams
1656
+ class Tax < ::Stripe::RequestParams
1657
+ # Tax amount in cents.
1658
+ attr_accessor :amount
1659
+ # Tax rate.
1660
+ attr_accessor :rate
1661
+ # Type of tax applied.
1662
+ attr_accessor :type
1663
+
1664
+ def initialize(amount: nil, rate: nil, type: nil)
1665
+ @amount = amount
1666
+ @rate = rate
1667
+ @type = type
1668
+ end
1669
+ end
1670
+ # Indicates whether the transaction is tax exempt.
1671
+ attr_accessor :tax_exempt_indicator
1672
+ # Tax details.
1673
+ attr_accessor :taxes
1674
+
1675
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1676
+ @tax_exempt_indicator = tax_exempt_indicator
1677
+ @taxes = taxes
1678
+ end
1679
+ end
1680
+ # Total price of the lodging reservation in cents.
1681
+ attr_accessor :amount
1682
+ # Cash advances in cents.
1683
+ attr_accessor :cash_advances
1684
+ # Currency of the total amount.
1685
+ attr_accessor :currency
1686
+ # Discount details for the lodging.
1687
+ attr_accessor :discounts
1688
+ # Additional charges for the lodging.
1689
+ attr_accessor :extra_charges
1690
+ # Prepaid amount in cents.
1691
+ attr_accessor :prepaid_amount
1692
+ # Tax breakdown for the lodging reservation.
1693
+ attr_accessor :tax
1694
+
1695
+ def initialize(
1696
+ amount: nil,
1697
+ cash_advances: nil,
1698
+ currency: nil,
1699
+ discounts: nil,
1700
+ extra_charges: nil,
1701
+ prepaid_amount: nil,
1702
+ tax: nil
1703
+ )
1704
+ @amount = amount
1705
+ @cash_advances = cash_advances
1706
+ @currency = currency
1707
+ @discounts = discounts
1708
+ @extra_charges = extra_charges
1709
+ @prepaid_amount = prepaid_amount
1710
+ @tax = tax
1711
+ end
1712
+ end
1713
+ # Accommodation details for the lodging.
1714
+ attr_accessor :accommodation
1715
+ # Affiliate details if applicable.
1716
+ attr_accessor :affiliate
1717
+ # Booking confirmation number for the lodging.
1718
+ attr_accessor :booking_number
1719
+ # Check-in date.
1720
+ attr_accessor :checkin_at
1721
+ # Check-out date.
1722
+ attr_accessor :checkout_at
1723
+ # Customer service phone number for the lodging company.
1724
+ attr_accessor :customer_service_phone_number
1725
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1726
+ attr_accessor :fire_safety_act_compliance_indicator
1727
+ # List of guests for the lodging.
1728
+ attr_accessor :guests
1729
+ # Host details for the lodging.
1730
+ attr_accessor :host
1731
+ # List of insurances for the lodging.
1732
+ attr_accessor :insurances
1733
+ # Whether the renter is a no-show.
1734
+ attr_accessor :no_show_indicator
1735
+ # Renter ID number for the lodging.
1736
+ attr_accessor :renter_id_number
1737
+ # Renter name for the lodging.
1738
+ attr_accessor :renter_name
1739
+ # Total details for the lodging.
1740
+ attr_accessor :total
1741
+
1742
+ def initialize(
1743
+ accommodation: nil,
1744
+ affiliate: nil,
1745
+ booking_number: nil,
1746
+ checkin_at: nil,
1747
+ checkout_at: nil,
1748
+ customer_service_phone_number: nil,
1749
+ fire_safety_act_compliance_indicator: nil,
1750
+ guests: nil,
1751
+ host: nil,
1752
+ insurances: nil,
1753
+ no_show_indicator: nil,
1754
+ renter_id_number: nil,
1755
+ renter_name: nil,
1756
+ total: nil
1757
+ )
1758
+ @accommodation = accommodation
1759
+ @affiliate = affiliate
1760
+ @booking_number = booking_number
1761
+ @checkin_at = checkin_at
1762
+ @checkout_at = checkout_at
1763
+ @customer_service_phone_number = customer_service_phone_number
1764
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1765
+ @guests = guests
1766
+ @host = host
1767
+ @insurances = insurances
1768
+ @no_show_indicator = no_show_indicator
1769
+ @renter_id_number = renter_id_number
1770
+ @renter_name = renter_name
1771
+ @total = total
1772
+ end
1773
+ end
1774
+
870
1775
  class Subscription < ::Stripe::RequestParams
871
1776
  class Affiliate < ::Stripe::RequestParams
872
1777
  # The name of the affiliate that originated the purchase.
@@ -917,39 +1822,53 @@ module Stripe
917
1822
  @starts_at = starts_at
918
1823
  end
919
1824
  end
920
- # Benefit details for this PaymentIntent
921
- attr_accessor :benefit
922
1825
  # Car rental details for this PaymentIntent.
923
1826
  attr_accessor :car_rental
924
- # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1827
+ # Car rental data for this PaymentIntent.
1828
+ attr_accessor :car_rental_data
1829
+ # A unique value to identify the customer. This field is available only for card payments.
1830
+ #
1831
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
925
1832
  attr_accessor :customer_reference
926
1833
  # Event details for this PaymentIntent
927
1834
  attr_accessor :event_details
928
1835
  # Flight reservation details for this PaymentIntent
929
1836
  attr_accessor :flight
1837
+ # Flight data for this PaymentIntent.
1838
+ attr_accessor :flight_data
930
1839
  # Lodging reservation details for this PaymentIntent
931
1840
  attr_accessor :lodging
932
- # A unique value assigned by the business to identify the transaction.
1841
+ # Lodging data for this PaymentIntent.
1842
+ attr_accessor :lodging_data
1843
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1844
+ #
1845
+ # 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`.
1846
+ #
1847
+ # 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.
933
1848
  attr_accessor :order_reference
934
1849
  # Subscription details for this PaymentIntent
935
1850
  attr_accessor :subscription
936
1851
 
937
1852
  def initialize(
938
- benefit: nil,
939
1853
  car_rental: nil,
1854
+ car_rental_data: nil,
940
1855
  customer_reference: nil,
941
1856
  event_details: nil,
942
1857
  flight: nil,
1858
+ flight_data: nil,
943
1859
  lodging: nil,
1860
+ lodging_data: nil,
944
1861
  order_reference: nil,
945
1862
  subscription: nil
946
1863
  )
947
- @benefit = benefit
948
1864
  @car_rental = car_rental
1865
+ @car_rental_data = car_rental_data
949
1866
  @customer_reference = customer_reference
950
1867
  @event_details = event_details
951
1868
  @flight = flight
1869
+ @flight_data = flight_data
952
1870
  @lodging = lodging
1871
+ @lodging_data = lodging_data
953
1872
  @order_reference = order_reference
954
1873
  @subscription = subscription
955
1874
  end
@@ -2161,6 +3080,12 @@ module Stripe
2161
3080
  @requested_priority = requested_priority
2162
3081
  end
2163
3082
  end
3083
+ # Controls when the funds are captured from the customer's account.
3084
+ #
3085
+ # 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.
3086
+ #
3087
+ # 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.
3088
+ attr_accessor :capture_method
2164
3089
  # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
2165
3090
  attr_accessor :request_extended_authorization
2166
3091
  # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
@@ -2169,10 +3094,12 @@ module Stripe
2169
3094
  attr_accessor :routing
2170
3095
 
2171
3096
  def initialize(
3097
+ capture_method: nil,
2172
3098
  request_extended_authorization: nil,
2173
3099
  request_incremental_authorization_support: nil,
2174
3100
  routing: nil
2175
3101
  )
3102
+ @capture_method = capture_method
2176
3103
  @request_extended_authorization = request_extended_authorization
2177
3104
  @request_incremental_authorization_support = request_incremental_authorization_support
2178
3105
  @routing = routing
@@ -2481,6 +3408,939 @@ module Stripe
2481
3408
  @reference = reference
2482
3409
  end
2483
3410
  end
3411
+
3412
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3413
+ class BusReservationDetail < ::Stripe::RequestParams
3414
+ class Arrival < ::Stripe::RequestParams
3415
+ class Address < ::Stripe::RequestParams
3416
+ # The city or town.
3417
+ attr_accessor :city
3418
+ # The country in ISO 3166-1 alpha-2 format.
3419
+ attr_accessor :country
3420
+ # The postal code formatted according to country.
3421
+ attr_accessor :postal_code
3422
+ # The state, county, province, or region formatted according to country.
3423
+ attr_accessor :region
3424
+ # Line 1 of the street address.
3425
+ attr_accessor :street_address
3426
+ # Line 2 of the street address.
3427
+ attr_accessor :street_address2
3428
+
3429
+ def initialize(
3430
+ city: nil,
3431
+ country: nil,
3432
+ postal_code: nil,
3433
+ region: nil,
3434
+ street_address: nil,
3435
+ street_address2: nil
3436
+ )
3437
+ @city = city
3438
+ @country = country
3439
+ @postal_code = postal_code
3440
+ @region = region
3441
+ @street_address = street_address
3442
+ @street_address2 = street_address2
3443
+ end
3444
+ end
3445
+ # Address of the arrival location.
3446
+ attr_accessor :address
3447
+ # Identifier name or reference for the arrival location.
3448
+ attr_accessor :arrival_location
3449
+
3450
+ def initialize(address: nil, arrival_location: nil)
3451
+ @address = address
3452
+ @arrival_location = arrival_location
3453
+ end
3454
+ end
3455
+
3456
+ class Departure < ::Stripe::RequestParams
3457
+ class Address < ::Stripe::RequestParams
3458
+ # The city or town.
3459
+ attr_accessor :city
3460
+ # The country in ISO 3166-1 alpha-2 format.
3461
+ attr_accessor :country
3462
+ # The postal code formatted according to country.
3463
+ attr_accessor :postal_code
3464
+ # The state, county, province, or region formatted according to country.
3465
+ attr_accessor :region
3466
+ # Line 1 of the street address.
3467
+ attr_accessor :street_address
3468
+ # Line 2 of the street address.
3469
+ attr_accessor :street_address2
3470
+
3471
+ def initialize(
3472
+ city: nil,
3473
+ country: nil,
3474
+ postal_code: nil,
3475
+ region: nil,
3476
+ street_address: nil,
3477
+ street_address2: nil
3478
+ )
3479
+ @city = city
3480
+ @country = country
3481
+ @postal_code = postal_code
3482
+ @region = region
3483
+ @street_address = street_address
3484
+ @street_address2 = street_address2
3485
+ end
3486
+ end
3487
+ # Address of the departure location.
3488
+ attr_accessor :address
3489
+ # Timestamp of departure.
3490
+ attr_accessor :departs_at
3491
+ # Identifier name or reference for the origin location.
3492
+ attr_accessor :departure_location
3493
+
3494
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3495
+ @address = address
3496
+ @departs_at = departs_at
3497
+ @departure_location = departure_location
3498
+ end
3499
+ end
3500
+
3501
+ class Insurance < ::Stripe::RequestParams
3502
+ # Insurance currency.
3503
+ attr_accessor :currency
3504
+ # Name of the company providing the insurance.
3505
+ attr_accessor :insurance_company_name
3506
+ # Type of insurance.
3507
+ attr_accessor :insurance_type
3508
+ # Price of insurance in cents.
3509
+ attr_accessor :price
3510
+
3511
+ def initialize(
3512
+ currency: nil,
3513
+ insurance_company_name: nil,
3514
+ insurance_type: nil,
3515
+ price: nil
3516
+ )
3517
+ @currency = currency
3518
+ @insurance_company_name = insurance_company_name
3519
+ @insurance_type = insurance_type
3520
+ @price = price
3521
+ end
3522
+ end
3523
+
3524
+ class Passenger < ::Stripe::RequestParams
3525
+ # The family name of the person.
3526
+ attr_accessor :family_name
3527
+ # The given name of the person.
3528
+ attr_accessor :given_name
3529
+
3530
+ def initialize(family_name: nil, given_name: nil)
3531
+ @family_name = family_name
3532
+ @given_name = given_name
3533
+ end
3534
+ end
3535
+ # Name of associated or partner company for the service.
3536
+ attr_accessor :affiliate_name
3537
+ # Arrival details.
3538
+ attr_accessor :arrival
3539
+ # Name of transportation company.
3540
+ attr_accessor :carrier_name
3541
+ # Currency.
3542
+ attr_accessor :currency
3543
+ # Departure details.
3544
+ attr_accessor :departure
3545
+ # List of insurances for this reservation.
3546
+ attr_accessor :insurances
3547
+ # List of passengers that this reservation applies to.
3548
+ attr_accessor :passengers
3549
+ # Price in cents.
3550
+ attr_accessor :price
3551
+ # Ticket class.
3552
+ attr_accessor :ticket_class
3553
+
3554
+ def initialize(
3555
+ affiliate_name: nil,
3556
+ arrival: nil,
3557
+ carrier_name: nil,
3558
+ currency: nil,
3559
+ departure: nil,
3560
+ insurances: nil,
3561
+ passengers: nil,
3562
+ price: nil,
3563
+ ticket_class: nil
3564
+ )
3565
+ @affiliate_name = affiliate_name
3566
+ @arrival = arrival
3567
+ @carrier_name = carrier_name
3568
+ @currency = currency
3569
+ @departure = departure
3570
+ @insurances = insurances
3571
+ @passengers = passengers
3572
+ @price = price
3573
+ @ticket_class = ticket_class
3574
+ end
3575
+ end
3576
+
3577
+ class EventReservationDetail < ::Stripe::RequestParams
3578
+ class Address < ::Stripe::RequestParams
3579
+ # The city or town.
3580
+ attr_accessor :city
3581
+ # The country in ISO 3166-1 alpha-2 format.
3582
+ attr_accessor :country
3583
+ # The postal code formatted according to country.
3584
+ attr_accessor :postal_code
3585
+ # The state, county, province, or region formatted according to country.
3586
+ attr_accessor :region
3587
+ # Line 1 of the street address.
3588
+ attr_accessor :street_address
3589
+ # Line 2 of the street address.
3590
+ attr_accessor :street_address2
3591
+
3592
+ def initialize(
3593
+ city: nil,
3594
+ country: nil,
3595
+ postal_code: nil,
3596
+ region: nil,
3597
+ street_address: nil,
3598
+ street_address2: nil
3599
+ )
3600
+ @city = city
3601
+ @country = country
3602
+ @postal_code = postal_code
3603
+ @region = region
3604
+ @street_address = street_address
3605
+ @street_address2 = street_address2
3606
+ end
3607
+ end
3608
+
3609
+ class Insurance < ::Stripe::RequestParams
3610
+ # Insurance currency.
3611
+ attr_accessor :currency
3612
+ # Name of the company providing the insurance.
3613
+ attr_accessor :insurance_company_name
3614
+ # Type of insurance.
3615
+ attr_accessor :insurance_type
3616
+ # Price of insurance in cents.
3617
+ attr_accessor :price
3618
+
3619
+ def initialize(
3620
+ currency: nil,
3621
+ insurance_company_name: nil,
3622
+ insurance_type: nil,
3623
+ price: nil
3624
+ )
3625
+ @currency = currency
3626
+ @insurance_company_name = insurance_company_name
3627
+ @insurance_type = insurance_type
3628
+ @price = price
3629
+ end
3630
+ end
3631
+ # Indicates if the tickets are digitally checked when entering the venue.
3632
+ attr_accessor :access_controlled_venue
3633
+ # Address of the event.
3634
+ attr_accessor :address
3635
+ # Name of associated or partner company for the service.
3636
+ attr_accessor :affiliate_name
3637
+ # End timestamp of the event.
3638
+ attr_accessor :ends_at
3639
+ # Company selling the ticket.
3640
+ attr_accessor :event_company_name
3641
+ # Name of the event.
3642
+ attr_accessor :event_name
3643
+ # Type of the event.
3644
+ attr_accessor :event_type
3645
+ # List of insurances for this event.
3646
+ attr_accessor :insurances
3647
+ # Start timestamp of the event.
3648
+ attr_accessor :starts_at
3649
+ # Name of the venue where the event takes place.
3650
+ attr_accessor :venue_name
3651
+
3652
+ def initialize(
3653
+ access_controlled_venue: nil,
3654
+ address: nil,
3655
+ affiliate_name: nil,
3656
+ ends_at: nil,
3657
+ event_company_name: nil,
3658
+ event_name: nil,
3659
+ event_type: nil,
3660
+ insurances: nil,
3661
+ starts_at: nil,
3662
+ venue_name: nil
3663
+ )
3664
+ @access_controlled_venue = access_controlled_venue
3665
+ @address = address
3666
+ @affiliate_name = affiliate_name
3667
+ @ends_at = ends_at
3668
+ @event_company_name = event_company_name
3669
+ @event_name = event_name
3670
+ @event_type = event_type
3671
+ @insurances = insurances
3672
+ @starts_at = starts_at
3673
+ @venue_name = venue_name
3674
+ end
3675
+ end
3676
+
3677
+ class FerryReservationDetail < ::Stripe::RequestParams
3678
+ class Arrival < ::Stripe::RequestParams
3679
+ class Address < ::Stripe::RequestParams
3680
+ # The city or town.
3681
+ attr_accessor :city
3682
+ # The country in ISO 3166-1 alpha-2 format.
3683
+ attr_accessor :country
3684
+ # The postal code formatted according to country.
3685
+ attr_accessor :postal_code
3686
+ # The state, county, province, or region formatted according to country.
3687
+ attr_accessor :region
3688
+ # Line 1 of the street address.
3689
+ attr_accessor :street_address
3690
+ # Line 2 of the street address.
3691
+ attr_accessor :street_address2
3692
+
3693
+ def initialize(
3694
+ city: nil,
3695
+ country: nil,
3696
+ postal_code: nil,
3697
+ region: nil,
3698
+ street_address: nil,
3699
+ street_address2: nil
3700
+ )
3701
+ @city = city
3702
+ @country = country
3703
+ @postal_code = postal_code
3704
+ @region = region
3705
+ @street_address = street_address
3706
+ @street_address2 = street_address2
3707
+ end
3708
+ end
3709
+ # Address of the arrival location.
3710
+ attr_accessor :address
3711
+ # Identifier name or reference for the arrival location.
3712
+ attr_accessor :arrival_location
3713
+
3714
+ def initialize(address: nil, arrival_location: nil)
3715
+ @address = address
3716
+ @arrival_location = arrival_location
3717
+ end
3718
+ end
3719
+
3720
+ class Departure < ::Stripe::RequestParams
3721
+ class Address < ::Stripe::RequestParams
3722
+ # The city or town.
3723
+ attr_accessor :city
3724
+ # The country in ISO 3166-1 alpha-2 format.
3725
+ attr_accessor :country
3726
+ # The postal code formatted according to country.
3727
+ attr_accessor :postal_code
3728
+ # The state, county, province, or region formatted according to country.
3729
+ attr_accessor :region
3730
+ # Line 1 of the street address.
3731
+ attr_accessor :street_address
3732
+ # Line 2 of the street address.
3733
+ attr_accessor :street_address2
3734
+
3735
+ def initialize(
3736
+ city: nil,
3737
+ country: nil,
3738
+ postal_code: nil,
3739
+ region: nil,
3740
+ street_address: nil,
3741
+ street_address2: nil
3742
+ )
3743
+ @city = city
3744
+ @country = country
3745
+ @postal_code = postal_code
3746
+ @region = region
3747
+ @street_address = street_address
3748
+ @street_address2 = street_address2
3749
+ end
3750
+ end
3751
+ # Address of the departure location.
3752
+ attr_accessor :address
3753
+ # Timestamp of departure.
3754
+ attr_accessor :departs_at
3755
+ # Identifier name or reference for the origin location.
3756
+ attr_accessor :departure_location
3757
+
3758
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3759
+ @address = address
3760
+ @departs_at = departs_at
3761
+ @departure_location = departure_location
3762
+ end
3763
+ end
3764
+
3765
+ class Insurance < ::Stripe::RequestParams
3766
+ # Insurance currency.
3767
+ attr_accessor :currency
3768
+ # Name of the company providing the insurance.
3769
+ attr_accessor :insurance_company_name
3770
+ # Type of insurance.
3771
+ attr_accessor :insurance_type
3772
+ # Price of insurance in cents.
3773
+ attr_accessor :price
3774
+
3775
+ def initialize(
3776
+ currency: nil,
3777
+ insurance_company_name: nil,
3778
+ insurance_type: nil,
3779
+ price: nil
3780
+ )
3781
+ @currency = currency
3782
+ @insurance_company_name = insurance_company_name
3783
+ @insurance_type = insurance_type
3784
+ @price = price
3785
+ end
3786
+ end
3787
+
3788
+ class Passenger < ::Stripe::RequestParams
3789
+ # The family name of the person.
3790
+ attr_accessor :family_name
3791
+ # The given name of the person.
3792
+ attr_accessor :given_name
3793
+
3794
+ def initialize(family_name: nil, given_name: nil)
3795
+ @family_name = family_name
3796
+ @given_name = given_name
3797
+ end
3798
+ end
3799
+ # Name of associated or partner company for the service.
3800
+ attr_accessor :affiliate_name
3801
+ # Arrival details.
3802
+ attr_accessor :arrival
3803
+ # Name of transportation company.
3804
+ attr_accessor :carrier_name
3805
+ # Currency.
3806
+ attr_accessor :currency
3807
+ # Departure details.
3808
+ attr_accessor :departure
3809
+ # List of insurances for this reservation.
3810
+ attr_accessor :insurances
3811
+ # List of passengers that this reservation applies to.
3812
+ attr_accessor :passengers
3813
+ # Price in cents.
3814
+ attr_accessor :price
3815
+ # Ticket class.
3816
+ attr_accessor :ticket_class
3817
+
3818
+ def initialize(
3819
+ affiliate_name: nil,
3820
+ arrival: nil,
3821
+ carrier_name: nil,
3822
+ currency: nil,
3823
+ departure: nil,
3824
+ insurances: nil,
3825
+ passengers: nil,
3826
+ price: nil,
3827
+ ticket_class: nil
3828
+ )
3829
+ @affiliate_name = affiliate_name
3830
+ @arrival = arrival
3831
+ @carrier_name = carrier_name
3832
+ @currency = currency
3833
+ @departure = departure
3834
+ @insurances = insurances
3835
+ @passengers = passengers
3836
+ @price = price
3837
+ @ticket_class = ticket_class
3838
+ end
3839
+ end
3840
+
3841
+ class Insurance < ::Stripe::RequestParams
3842
+ # Insurance currency.
3843
+ attr_accessor :currency
3844
+ # Name of the company providing the insurance.
3845
+ attr_accessor :insurance_company_name
3846
+ # Type of insurance
3847
+ attr_accessor :insurance_type
3848
+ # Price of insurance in cents.
3849
+ attr_accessor :price
3850
+
3851
+ def initialize(
3852
+ currency: nil,
3853
+ insurance_company_name: nil,
3854
+ insurance_type: nil,
3855
+ price: nil
3856
+ )
3857
+ @currency = currency
3858
+ @insurance_company_name = insurance_company_name
3859
+ @insurance_type = insurance_type
3860
+ @price = price
3861
+ end
3862
+ end
3863
+
3864
+ class MarketplaceSeller < ::Stripe::RequestParams
3865
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3866
+ # The city or town.
3867
+ attr_accessor :city
3868
+ # The country in ISO 3166-1 alpha-2 format.
3869
+ attr_accessor :country
3870
+ # The postal code formatted according to country.
3871
+ attr_accessor :postal_code
3872
+ # The state, county, province, or region formatted according to country.
3873
+ attr_accessor :region
3874
+ # Line 1 of the street address.
3875
+ attr_accessor :street_address
3876
+ # Line 2 of the street address.
3877
+ attr_accessor :street_address2
3878
+
3879
+ def initialize(
3880
+ city: nil,
3881
+ country: nil,
3882
+ postal_code: nil,
3883
+ region: nil,
3884
+ street_address: nil,
3885
+ street_address2: nil
3886
+ )
3887
+ @city = city
3888
+ @country = country
3889
+ @postal_code = postal_code
3890
+ @region = region
3891
+ @street_address = street_address
3892
+ @street_address2 = street_address2
3893
+ end
3894
+ end
3895
+ # The references to line items for purchases with multiple associated sub-sellers.
3896
+ attr_accessor :line_item_references
3897
+ # The address of the selling or delivering merchant.
3898
+ attr_accessor :marketplace_seller_address
3899
+ # The name of the marketplace seller.
3900
+ attr_accessor :marketplace_seller_name
3901
+ # The unique identifier for the marketplace seller.
3902
+ attr_accessor :marketplace_seller_reference
3903
+ # The number of transactions the sub-seller completed in the last 12 months.
3904
+ attr_accessor :number_of_transactions
3905
+ # The category of the product.
3906
+ attr_accessor :product_category
3907
+ # The date when the seller's account with the marketplace was last logged in.
3908
+ attr_accessor :seller_last_login_at
3909
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3910
+ attr_accessor :seller_rating
3911
+ # The date when the seller's account with the marketplace was created.
3912
+ attr_accessor :seller_registered_at
3913
+ # The date when the seller's account with the marketplace was last updated.
3914
+ attr_accessor :seller_updated_at
3915
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3916
+ attr_accessor :shipping_references
3917
+ # 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.
3918
+ attr_accessor :volume_of_transactions
3919
+
3920
+ def initialize(
3921
+ line_item_references: nil,
3922
+ marketplace_seller_address: nil,
3923
+ marketplace_seller_name: nil,
3924
+ marketplace_seller_reference: nil,
3925
+ number_of_transactions: nil,
3926
+ product_category: nil,
3927
+ seller_last_login_at: nil,
3928
+ seller_rating: nil,
3929
+ seller_registered_at: nil,
3930
+ seller_updated_at: nil,
3931
+ shipping_references: nil,
3932
+ volume_of_transactions: nil
3933
+ )
3934
+ @line_item_references = line_item_references
3935
+ @marketplace_seller_address = marketplace_seller_address
3936
+ @marketplace_seller_name = marketplace_seller_name
3937
+ @marketplace_seller_reference = marketplace_seller_reference
3938
+ @number_of_transactions = number_of_transactions
3939
+ @product_category = product_category
3940
+ @seller_last_login_at = seller_last_login_at
3941
+ @seller_rating = seller_rating
3942
+ @seller_registered_at = seller_registered_at
3943
+ @seller_updated_at = seller_updated_at
3944
+ @shipping_references = shipping_references
3945
+ @volume_of_transactions = volume_of_transactions
3946
+ end
3947
+ end
3948
+
3949
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3950
+ class Arrival < ::Stripe::RequestParams
3951
+ class Address < ::Stripe::RequestParams
3952
+ # The city or town.
3953
+ attr_accessor :city
3954
+ # The country in ISO 3166-1 alpha-2 format.
3955
+ attr_accessor :country
3956
+ # The postal code formatted according to country.
3957
+ attr_accessor :postal_code
3958
+ # The state, county, province, or region formatted according to country.
3959
+ attr_accessor :region
3960
+ # Line 1 of the street address.
3961
+ attr_accessor :street_address
3962
+ # Line 2 of the street address.
3963
+ attr_accessor :street_address2
3964
+
3965
+ def initialize(
3966
+ city: nil,
3967
+ country: nil,
3968
+ postal_code: nil,
3969
+ region: nil,
3970
+ street_address: nil,
3971
+ street_address2: nil
3972
+ )
3973
+ @city = city
3974
+ @country = country
3975
+ @postal_code = postal_code
3976
+ @region = region
3977
+ @street_address = street_address
3978
+ @street_address2 = street_address2
3979
+ end
3980
+ end
3981
+ # Address of the arrival location.
3982
+ attr_accessor :address
3983
+ # Identifier name or reference for the arrival location.
3984
+ attr_accessor :arrival_location
3985
+
3986
+ def initialize(address: nil, arrival_location: nil)
3987
+ @address = address
3988
+ @arrival_location = arrival_location
3989
+ end
3990
+ end
3991
+
3992
+ class Departure < ::Stripe::RequestParams
3993
+ class Address < ::Stripe::RequestParams
3994
+ # The city or town.
3995
+ attr_accessor :city
3996
+ # The country in ISO 3166-1 alpha-2 format.
3997
+ attr_accessor :country
3998
+ # The postal code formatted according to country.
3999
+ attr_accessor :postal_code
4000
+ # The state, county, province, or region formatted according to country.
4001
+ attr_accessor :region
4002
+ # Line 1 of the street address.
4003
+ attr_accessor :street_address
4004
+ # Line 2 of the street address.
4005
+ attr_accessor :street_address2
4006
+
4007
+ def initialize(
4008
+ city: nil,
4009
+ country: nil,
4010
+ postal_code: nil,
4011
+ region: nil,
4012
+ street_address: nil,
4013
+ street_address2: nil
4014
+ )
4015
+ @city = city
4016
+ @country = country
4017
+ @postal_code = postal_code
4018
+ @region = region
4019
+ @street_address = street_address
4020
+ @street_address2 = street_address2
4021
+ end
4022
+ end
4023
+ # Address of the departure location.
4024
+ attr_accessor :address
4025
+ # Timestamp of departure.
4026
+ attr_accessor :departs_at
4027
+ # Identifier name or reference for the origin location.
4028
+ attr_accessor :departure_location
4029
+
4030
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4031
+ @address = address
4032
+ @departs_at = departs_at
4033
+ @departure_location = departure_location
4034
+ end
4035
+ end
4036
+
4037
+ class Insurance < ::Stripe::RequestParams
4038
+ # Insurance currency.
4039
+ attr_accessor :currency
4040
+ # Name of the company providing the insurance.
4041
+ attr_accessor :insurance_company_name
4042
+ # Type of insurance.
4043
+ attr_accessor :insurance_type
4044
+ # Price of insurance in cents.
4045
+ attr_accessor :price
4046
+
4047
+ def initialize(
4048
+ currency: nil,
4049
+ insurance_company_name: nil,
4050
+ insurance_type: nil,
4051
+ price: nil
4052
+ )
4053
+ @currency = currency
4054
+ @insurance_company_name = insurance_company_name
4055
+ @insurance_type = insurance_type
4056
+ @price = price
4057
+ end
4058
+ end
4059
+
4060
+ class Passenger < ::Stripe::RequestParams
4061
+ # The family name of the person.
4062
+ attr_accessor :family_name
4063
+ # The given name of the person.
4064
+ attr_accessor :given_name
4065
+
4066
+ def initialize(family_name: nil, given_name: nil)
4067
+ @family_name = family_name
4068
+ @given_name = given_name
4069
+ end
4070
+ end
4071
+ # Name of associated or partner company for the service.
4072
+ attr_accessor :affiliate_name
4073
+ # Arrival details.
4074
+ attr_accessor :arrival
4075
+ # Name of transportation company.
4076
+ attr_accessor :carrier_name
4077
+ # Currency.
4078
+ attr_accessor :currency
4079
+ # Departure details.
4080
+ attr_accessor :departure
4081
+ # List of insurances for this reservation.
4082
+ attr_accessor :insurances
4083
+ # List of passengers that this reservation applies to.
4084
+ attr_accessor :passengers
4085
+ # Price in cents.
4086
+ attr_accessor :price
4087
+ # Ticket class.
4088
+ attr_accessor :ticket_class
4089
+
4090
+ def initialize(
4091
+ affiliate_name: nil,
4092
+ arrival: nil,
4093
+ carrier_name: nil,
4094
+ currency: nil,
4095
+ departure: nil,
4096
+ insurances: nil,
4097
+ passengers: nil,
4098
+ price: nil,
4099
+ ticket_class: nil
4100
+ )
4101
+ @affiliate_name = affiliate_name
4102
+ @arrival = arrival
4103
+ @carrier_name = carrier_name
4104
+ @currency = currency
4105
+ @departure = departure
4106
+ @insurances = insurances
4107
+ @passengers = passengers
4108
+ @price = price
4109
+ @ticket_class = ticket_class
4110
+ end
4111
+ end
4112
+
4113
+ class TrainReservationDetail < ::Stripe::RequestParams
4114
+ class Arrival < ::Stripe::RequestParams
4115
+ class Address < ::Stripe::RequestParams
4116
+ # The city or town.
4117
+ attr_accessor :city
4118
+ # The country in ISO 3166-1 alpha-2 format.
4119
+ attr_accessor :country
4120
+ # The postal code formatted according to country.
4121
+ attr_accessor :postal_code
4122
+ # The state, county, province, or region formatted according to country.
4123
+ attr_accessor :region
4124
+ # Line 1 of the street address.
4125
+ attr_accessor :street_address
4126
+ # Line 2 of the street address.
4127
+ attr_accessor :street_address2
4128
+
4129
+ def initialize(
4130
+ city: nil,
4131
+ country: nil,
4132
+ postal_code: nil,
4133
+ region: nil,
4134
+ street_address: nil,
4135
+ street_address2: nil
4136
+ )
4137
+ @city = city
4138
+ @country = country
4139
+ @postal_code = postal_code
4140
+ @region = region
4141
+ @street_address = street_address
4142
+ @street_address2 = street_address2
4143
+ end
4144
+ end
4145
+ # Address of the arrival location.
4146
+ attr_accessor :address
4147
+ # Identifier name or reference for the arrival location.
4148
+ attr_accessor :arrival_location
4149
+
4150
+ def initialize(address: nil, arrival_location: nil)
4151
+ @address = address
4152
+ @arrival_location = arrival_location
4153
+ end
4154
+ end
4155
+
4156
+ class Departure < ::Stripe::RequestParams
4157
+ class Address < ::Stripe::RequestParams
4158
+ # The city or town.
4159
+ attr_accessor :city
4160
+ # The country in ISO 3166-1 alpha-2 format.
4161
+ attr_accessor :country
4162
+ # The postal code formatted according to country.
4163
+ attr_accessor :postal_code
4164
+ # The state, county, province, or region formatted according to country.
4165
+ attr_accessor :region
4166
+ # Line 1 of the street address.
4167
+ attr_accessor :street_address
4168
+ # Line 2 of the street address.
4169
+ attr_accessor :street_address2
4170
+
4171
+ def initialize(
4172
+ city: nil,
4173
+ country: nil,
4174
+ postal_code: nil,
4175
+ region: nil,
4176
+ street_address: nil,
4177
+ street_address2: nil
4178
+ )
4179
+ @city = city
4180
+ @country = country
4181
+ @postal_code = postal_code
4182
+ @region = region
4183
+ @street_address = street_address
4184
+ @street_address2 = street_address2
4185
+ end
4186
+ end
4187
+ # Address of the departure location.
4188
+ attr_accessor :address
4189
+ # Timestamp of departure.
4190
+ attr_accessor :departs_at
4191
+ # Identifier name or reference for the origin location.
4192
+ attr_accessor :departure_location
4193
+
4194
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4195
+ @address = address
4196
+ @departs_at = departs_at
4197
+ @departure_location = departure_location
4198
+ end
4199
+ end
4200
+
4201
+ class Insurance < ::Stripe::RequestParams
4202
+ # Insurance currency.
4203
+ attr_accessor :currency
4204
+ # Name of the company providing the insurance.
4205
+ attr_accessor :insurance_company_name
4206
+ # Type of insurance.
4207
+ attr_accessor :insurance_type
4208
+ # Price of insurance in cents.
4209
+ attr_accessor :price
4210
+
4211
+ def initialize(
4212
+ currency: nil,
4213
+ insurance_company_name: nil,
4214
+ insurance_type: nil,
4215
+ price: nil
4216
+ )
4217
+ @currency = currency
4218
+ @insurance_company_name = insurance_company_name
4219
+ @insurance_type = insurance_type
4220
+ @price = price
4221
+ end
4222
+ end
4223
+
4224
+ class Passenger < ::Stripe::RequestParams
4225
+ # The family name of the person.
4226
+ attr_accessor :family_name
4227
+ # The given name of the person.
4228
+ attr_accessor :given_name
4229
+
4230
+ def initialize(family_name: nil, given_name: nil)
4231
+ @family_name = family_name
4232
+ @given_name = given_name
4233
+ end
4234
+ end
4235
+ # Name of associated or partner company for the service.
4236
+ attr_accessor :affiliate_name
4237
+ # Arrival details.
4238
+ attr_accessor :arrival
4239
+ # Name of transportation company.
4240
+ attr_accessor :carrier_name
4241
+ # Currency.
4242
+ attr_accessor :currency
4243
+ # Departure details.
4244
+ attr_accessor :departure
4245
+ # List of insurances for this reservation.
4246
+ attr_accessor :insurances
4247
+ # List of passengers that this reservation applies to.
4248
+ attr_accessor :passengers
4249
+ # Price in cents.
4250
+ attr_accessor :price
4251
+ # Ticket class.
4252
+ attr_accessor :ticket_class
4253
+
4254
+ def initialize(
4255
+ affiliate_name: nil,
4256
+ arrival: nil,
4257
+ carrier_name: nil,
4258
+ currency: nil,
4259
+ departure: nil,
4260
+ insurances: nil,
4261
+ passengers: nil,
4262
+ price: nil,
4263
+ ticket_class: nil
4264
+ )
4265
+ @affiliate_name = affiliate_name
4266
+ @arrival = arrival
4267
+ @carrier_name = carrier_name
4268
+ @currency = currency
4269
+ @departure = departure
4270
+ @insurances = insurances
4271
+ @passengers = passengers
4272
+ @price = price
4273
+ @ticket_class = ticket_class
4274
+ end
4275
+ end
4276
+
4277
+ class Voucher < ::Stripe::RequestParams
4278
+ # Name of associated or partner company for this voucher.
4279
+ attr_accessor :affiliate_name
4280
+ # The voucher validity end time.
4281
+ attr_accessor :ends_at
4282
+ # The voucher validity start time.
4283
+ attr_accessor :starts_at
4284
+ # The issuer or provider of this voucher.
4285
+ attr_accessor :voucher_company
4286
+ # The name or reference to identify the voucher.
4287
+ attr_accessor :voucher_name
4288
+ # The type of this voucher.
4289
+ attr_accessor :voucher_type
4290
+
4291
+ def initialize(
4292
+ affiliate_name: nil,
4293
+ ends_at: nil,
4294
+ starts_at: nil,
4295
+ voucher_company: nil,
4296
+ voucher_name: nil,
4297
+ voucher_type: nil
4298
+ )
4299
+ @affiliate_name = affiliate_name
4300
+ @ends_at = ends_at
4301
+ @starts_at = starts_at
4302
+ @voucher_company = voucher_company
4303
+ @voucher_name = voucher_name
4304
+ @voucher_type = voucher_type
4305
+ end
4306
+ end
4307
+ # Supplementary bus reservation details.
4308
+ attr_accessor :bus_reservation_details
4309
+ # Supplementary event reservation details.
4310
+ attr_accessor :event_reservation_details
4311
+ # Supplementary ferry reservation details.
4312
+ attr_accessor :ferry_reservation_details
4313
+ # Supplementary insurance details.
4314
+ attr_accessor :insurances
4315
+ # Supplementary marketplace seller details.
4316
+ attr_accessor :marketplace_sellers
4317
+ # Supplementary round trip reservation details.
4318
+ attr_accessor :round_trip_reservation_details
4319
+ # Supplementary train reservation details.
4320
+ attr_accessor :train_reservation_details
4321
+ # Voucher details, such as a gift card or discount code.
4322
+ attr_accessor :vouchers
4323
+
4324
+ def initialize(
4325
+ bus_reservation_details: nil,
4326
+ event_reservation_details: nil,
4327
+ ferry_reservation_details: nil,
4328
+ insurances: nil,
4329
+ marketplace_sellers: nil,
4330
+ round_trip_reservation_details: nil,
4331
+ train_reservation_details: nil,
4332
+ vouchers: nil
4333
+ )
4334
+ @bus_reservation_details = bus_reservation_details
4335
+ @event_reservation_details = event_reservation_details
4336
+ @ferry_reservation_details = ferry_reservation_details
4337
+ @insurances = insurances
4338
+ @marketplace_sellers = marketplace_sellers
4339
+ @round_trip_reservation_details = round_trip_reservation_details
4340
+ @train_reservation_details = train_reservation_details
4341
+ @vouchers = vouchers
4342
+ end
4343
+ end
2484
4344
  # Controls when the funds are captured from the customer's account.
2485
4345
  #
2486
4346
  # 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.
@@ -2503,19 +4363,23 @@ module Stripe
2503
4363
  attr_accessor :setup_future_usage
2504
4364
  # Subscription details if setting up or charging a subscription.
2505
4365
  attr_accessor :subscriptions
4366
+ # Supplementary Purchase Data for the corresponding Klarna payment
4367
+ attr_accessor :supplementary_purchase_data
2506
4368
 
2507
4369
  def initialize(
2508
4370
  capture_method: nil,
2509
4371
  on_demand: nil,
2510
4372
  preferred_locale: nil,
2511
4373
  setup_future_usage: nil,
2512
- subscriptions: nil
4374
+ subscriptions: nil,
4375
+ supplementary_purchase_data: nil
2513
4376
  )
2514
4377
  @capture_method = capture_method
2515
4378
  @on_demand = on_demand
2516
4379
  @preferred_locale = preferred_locale
2517
4380
  @setup_future_usage = setup_future_usage
2518
4381
  @subscriptions = subscriptions
4382
+ @supplementary_purchase_data = supplementary_purchase_data
2519
4383
  end
2520
4384
  end
2521
4385
 
@@ -2888,15 +4752,15 @@ module Stripe
2888
4752
  class MandateOptions < ::Stripe::RequestParams
2889
4753
  # Amount that will be collected. It is required when `amount_type` is `fixed`.
2890
4754
  attr_accessor :amount
2891
- # 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.
4755
+ # 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`.
2892
4756
  attr_accessor :amount_type
2893
4757
  # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2894
4758
  attr_accessor :end_date
2895
- # The periodicity at which payments will be collected.
4759
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2896
4760
  attr_accessor :payment_schedule
2897
4761
  # 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.
2898
4762
  attr_accessor :payments_per_period
2899
- # The purpose for which payments are made. Defaults to retail.
4763
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2900
4764
  attr_accessor :purpose
2901
4765
 
2902
4766
  def initialize(
@@ -3734,8 +5598,6 @@ module Stripe
3734
5598
  attr_accessor :transfer_data
3735
5599
  # A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3736
5600
  attr_accessor :transfer_group
3737
- # Allocated Funds configuration for this PaymentIntent.
3738
- attr_accessor :allocated_funds
3739
5601
 
3740
5602
  def initialize(
3741
5603
  amount: nil,
@@ -3764,8 +5626,7 @@ module Stripe
3764
5626
  statement_descriptor: nil,
3765
5627
  statement_descriptor_suffix: nil,
3766
5628
  transfer_data: nil,
3767
- transfer_group: nil,
3768
- allocated_funds: nil
5629
+ transfer_group: nil
3769
5630
  )
3770
5631
  @amount = amount
3771
5632
  @amount_details = amount_details
@@ -3794,7 +5655,6 @@ module Stripe
3794
5655
  @statement_descriptor_suffix = statement_descriptor_suffix
3795
5656
  @transfer_data = transfer_data
3796
5657
  @transfer_group = transfer_group
3797
- @allocated_funds = allocated_funds
3798
5658
  end
3799
5659
  end
3800
5660
  end