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 PaymentIntentConfirmParams < ::Stripe::RequestParams
6
- class AllocatedFunds < ::Stripe::RequestParams
7
- # Whether Allocated Funds creation is enabled for this PaymentIntent.
8
- attr_accessor :enabled
9
-
10
- def initialize(enabled: nil)
11
- @enabled = enabled
12
- end
13
- end
14
-
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
@@ -238,23 +239,6 @@ module Stripe
238
239
  end
239
240
 
240
241
  class PaymentDetails < ::Stripe::RequestParams
241
- class Benefit < ::Stripe::RequestParams
242
- class FrMealVoucher < ::Stripe::RequestParams
243
- # The 14-digit SIRET of the meal voucher acceptor.
244
- attr_accessor :siret
245
-
246
- def initialize(siret: nil)
247
- @siret = siret
248
- end
249
- end
250
- # French meal voucher benefit details for this PaymentIntent.
251
- attr_accessor :fr_meal_voucher
252
-
253
- def initialize(fr_meal_voucher: nil)
254
- @fr_meal_voucher = fr_meal_voucher
255
- end
256
- end
257
-
258
242
  class CarRental < ::Stripe::RequestParams
259
243
  class Affiliate < ::Stripe::RequestParams
260
244
  # The name of the affiliate that originated the purchase.
@@ -481,6 +465,364 @@ module Stripe
481
465
  end
482
466
  end
483
467
 
468
+ class CarRentalDatum < ::Stripe::RequestParams
469
+ class Affiliate < ::Stripe::RequestParams
470
+ # Affiliate partner code.
471
+ attr_accessor :code
472
+ # Name of affiliate partner.
473
+ attr_accessor :name
474
+
475
+ def initialize(code: nil, name: nil)
476
+ @code = code
477
+ @name = name
478
+ end
479
+ end
480
+
481
+ class Distance < ::Stripe::RequestParams
482
+ # Distance traveled.
483
+ attr_accessor :amount
484
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
485
+ attr_accessor :unit
486
+
487
+ def initialize(amount: nil, unit: nil)
488
+ @amount = amount
489
+ @unit = unit
490
+ end
491
+ end
492
+
493
+ class Driver < ::Stripe::RequestParams
494
+ class DateOfBirth < ::Stripe::RequestParams
495
+ # Day of birth (1-31).
496
+ attr_accessor :day
497
+ # Month of birth (1-12).
498
+ attr_accessor :month
499
+ # Year of birth (must be greater than 1900).
500
+ attr_accessor :year
501
+
502
+ def initialize(day: nil, month: nil, year: nil)
503
+ @day = day
504
+ @month = month
505
+ @year = year
506
+ end
507
+ end
508
+ # Driver's date of birth.
509
+ attr_accessor :date_of_birth
510
+ # Driver's identification number.
511
+ attr_accessor :driver_identification_number
512
+ # Driver's tax number.
513
+ attr_accessor :driver_tax_number
514
+ # Driver's full name.
515
+ attr_accessor :name
516
+
517
+ def initialize(
518
+ date_of_birth: nil,
519
+ driver_identification_number: nil,
520
+ driver_tax_number: nil,
521
+ name: nil
522
+ )
523
+ @date_of_birth = date_of_birth
524
+ @driver_identification_number = driver_identification_number
525
+ @driver_tax_number = driver_tax_number
526
+ @name = name
527
+ end
528
+ end
529
+
530
+ class DropOff < ::Stripe::RequestParams
531
+ class Address < ::Stripe::RequestParams
532
+ # City, district, suburb, town, or village.
533
+ attr_accessor :city
534
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
535
+ attr_accessor :country
536
+ # Address line 1, such as the street, PO Box, or company name.
537
+ attr_accessor :line1
538
+ # Address line 2, such as the apartment, suite, unit, or building.
539
+ attr_accessor :line2
540
+ # ZIP or postal code.
541
+ attr_accessor :postal_code
542
+ # State, county, province, or region.
543
+ attr_accessor :state
544
+
545
+ def initialize(
546
+ city: nil,
547
+ country: nil,
548
+ line1: nil,
549
+ line2: nil,
550
+ postal_code: nil,
551
+ state: nil
552
+ )
553
+ @city = city
554
+ @country = country
555
+ @line1 = line1
556
+ @line2 = line2
557
+ @postal_code = postal_code
558
+ @state = state
559
+ end
560
+ end
561
+ # Address of the rental location.
562
+ attr_accessor :address
563
+ # Location name.
564
+ attr_accessor :location_name
565
+ # Timestamp for the location.
566
+ attr_accessor :time
567
+
568
+ def initialize(address: nil, location_name: nil, time: nil)
569
+ @address = address
570
+ @location_name = location_name
571
+ @time = time
572
+ end
573
+ end
574
+
575
+ class Insurance < ::Stripe::RequestParams
576
+ # Amount of the insurance coverage in cents.
577
+ attr_accessor :amount
578
+ # Currency of the insurance amount.
579
+ attr_accessor :currency
580
+ # Name of the insurance company.
581
+ attr_accessor :insurance_company_name
582
+ # Type of insurance coverage.
583
+ attr_accessor :insurance_type
584
+
585
+ def initialize(
586
+ amount: nil,
587
+ currency: nil,
588
+ insurance_company_name: nil,
589
+ insurance_type: nil
590
+ )
591
+ @amount = amount
592
+ @currency = currency
593
+ @insurance_company_name = insurance_company_name
594
+ @insurance_type = insurance_type
595
+ end
596
+ end
597
+
598
+ class Pickup < ::Stripe::RequestParams
599
+ class Address < ::Stripe::RequestParams
600
+ # City, district, suburb, town, or village.
601
+ attr_accessor :city
602
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
603
+ attr_accessor :country
604
+ # Address line 1, such as the street, PO Box, or company name.
605
+ attr_accessor :line1
606
+ # Address line 2, such as the apartment, suite, unit, or building.
607
+ attr_accessor :line2
608
+ # ZIP or postal code.
609
+ attr_accessor :postal_code
610
+ # State, county, province, or region.
611
+ attr_accessor :state
612
+
613
+ def initialize(
614
+ city: nil,
615
+ country: nil,
616
+ line1: nil,
617
+ line2: nil,
618
+ postal_code: nil,
619
+ state: nil
620
+ )
621
+ @city = city
622
+ @country = country
623
+ @line1 = line1
624
+ @line2 = line2
625
+ @postal_code = postal_code
626
+ @state = state
627
+ end
628
+ end
629
+ # Address of the rental location.
630
+ attr_accessor :address
631
+ # Location name.
632
+ attr_accessor :location_name
633
+ # Timestamp for the location.
634
+ attr_accessor :time
635
+
636
+ def initialize(address: nil, location_name: nil, time: nil)
637
+ @address = address
638
+ @location_name = location_name
639
+ @time = time
640
+ end
641
+ end
642
+
643
+ class Total < ::Stripe::RequestParams
644
+ class Discounts < ::Stripe::RequestParams
645
+ # Corporate client discount code.
646
+ attr_accessor :corporate_client_code
647
+ # Coupon code applied to the rental.
648
+ attr_accessor :coupon
649
+ # Maximum number of free miles or kilometers included.
650
+ attr_accessor :maximum_free_miles_or_kilometers
651
+
652
+ def initialize(
653
+ corporate_client_code: nil,
654
+ coupon: nil,
655
+ maximum_free_miles_or_kilometers: nil
656
+ )
657
+ @corporate_client_code = corporate_client_code
658
+ @coupon = coupon
659
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
660
+ end
661
+ end
662
+
663
+ class ExtraCharge < ::Stripe::RequestParams
664
+ # Amount of the extra charge in cents.
665
+ attr_accessor :amount
666
+ # Type of extra charge.
667
+ attr_accessor :type
668
+
669
+ def initialize(amount: nil, type: nil)
670
+ @amount = amount
671
+ @type = type
672
+ end
673
+ end
674
+
675
+ class Tax < ::Stripe::RequestParams
676
+ class Tax < ::Stripe::RequestParams
677
+ # Tax amount.
678
+ attr_accessor :amount
679
+ # Tax rate applied.
680
+ attr_accessor :rate
681
+ # Type of tax applied.
682
+ attr_accessor :type
683
+
684
+ def initialize(amount: nil, rate: nil, type: nil)
685
+ @amount = amount
686
+ @rate = rate
687
+ @type = type
688
+ end
689
+ end
690
+ # Indicates if the transaction is tax exempt.
691
+ attr_accessor :tax_exempt_indicator
692
+ # Array of tax details.
693
+ attr_accessor :taxes
694
+
695
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
696
+ @tax_exempt_indicator = tax_exempt_indicator
697
+ @taxes = taxes
698
+ end
699
+ end
700
+ # Total amount in cents.
701
+ attr_accessor :amount
702
+ # Currency of the amount.
703
+ attr_accessor :currency
704
+ # Discount details for the rental.
705
+ attr_accessor :discounts
706
+ # Additional charges for the rental.
707
+ attr_accessor :extra_charges
708
+ # Rate per unit for the rental.
709
+ attr_accessor :rate_per_unit
710
+ # Unit of measurement for the rate.
711
+ attr_accessor :rate_unit
712
+ # Tax breakdown for the rental.
713
+ attr_accessor :tax
714
+
715
+ def initialize(
716
+ amount: nil,
717
+ currency: nil,
718
+ discounts: nil,
719
+ extra_charges: nil,
720
+ rate_per_unit: nil,
721
+ rate_unit: nil,
722
+ tax: nil
723
+ )
724
+ @amount = amount
725
+ @currency = currency
726
+ @discounts = discounts
727
+ @extra_charges = extra_charges
728
+ @rate_per_unit = rate_per_unit
729
+ @rate_unit = rate_unit
730
+ @tax = tax
731
+ end
732
+ end
733
+
734
+ class Vehicle < ::Stripe::RequestParams
735
+ # Make of the rental vehicle.
736
+ attr_accessor :make
737
+ # Model of the rental vehicle.
738
+ attr_accessor :model
739
+ # Odometer reading at the time of rental.
740
+ attr_accessor :odometer
741
+ # Type of the rental vehicle.
742
+ attr_accessor :type
743
+ # Class of the rental vehicle.
744
+ attr_accessor :vehicle_class
745
+ # Vehicle identification number (VIN).
746
+ attr_accessor :vehicle_identification_number
747
+
748
+ def initialize(
749
+ make: nil,
750
+ model: nil,
751
+ odometer: nil,
752
+ type: nil,
753
+ vehicle_class: nil,
754
+ vehicle_identification_number: nil
755
+ )
756
+ @make = make
757
+ @model = model
758
+ @odometer = odometer
759
+ @type = type
760
+ @vehicle_class = vehicle_class
761
+ @vehicle_identification_number = vehicle_identification_number
762
+ end
763
+ end
764
+ # Affiliate (such as travel agency) details for the rental.
765
+ attr_accessor :affiliate
766
+ # Booking confirmation number for the car rental.
767
+ attr_accessor :booking_number
768
+ # Name of the car rental company.
769
+ attr_accessor :carrier_name
770
+ # Customer service phone number for the car rental company.
771
+ attr_accessor :customer_service_phone_number
772
+ # Number of days the car is being rented.
773
+ attr_accessor :days_rented
774
+ # Distance details for the rental.
775
+ attr_accessor :distance
776
+ # List of drivers for the rental.
777
+ attr_accessor :drivers
778
+ # Drop-off location details.
779
+ attr_accessor :drop_off
780
+ # Insurance details for the rental.
781
+ attr_accessor :insurances
782
+ # Indicates if the customer was a no-show.
783
+ attr_accessor :no_show_indicator
784
+ # Pickup location details.
785
+ attr_accessor :pickup
786
+ # Name of the person renting the vehicle.
787
+ attr_accessor :renter_name
788
+ # Total cost breakdown for the rental.
789
+ attr_accessor :total
790
+ # Vehicle details for the rental.
791
+ attr_accessor :vehicle
792
+
793
+ def initialize(
794
+ affiliate: nil,
795
+ booking_number: nil,
796
+ carrier_name: nil,
797
+ customer_service_phone_number: nil,
798
+ days_rented: nil,
799
+ distance: nil,
800
+ drivers: nil,
801
+ drop_off: nil,
802
+ insurances: nil,
803
+ no_show_indicator: nil,
804
+ pickup: nil,
805
+ renter_name: nil,
806
+ total: nil,
807
+ vehicle: nil
808
+ )
809
+ @affiliate = affiliate
810
+ @booking_number = booking_number
811
+ @carrier_name = carrier_name
812
+ @customer_service_phone_number = customer_service_phone_number
813
+ @days_rented = days_rented
814
+ @distance = distance
815
+ @drivers = drivers
816
+ @drop_off = drop_off
817
+ @insurances = insurances
818
+ @no_show_indicator = no_show_indicator
819
+ @pickup = pickup
820
+ @renter_name = renter_name
821
+ @total = total
822
+ @vehicle = vehicle
823
+ end
824
+ end
825
+
484
826
  class EventDetails < ::Stripe::RequestParams
485
827
  class Address < ::Stripe::RequestParams
486
828
  # City, district, suburb, town, or village.
@@ -706,7 +1048,276 @@ module Stripe
706
1048
  @passenger_name = passenger_name
707
1049
  @passengers = passengers
708
1050
  @segments = segments
709
- @ticket_number = ticket_number
1051
+ @ticket_number = ticket_number
1052
+ end
1053
+ end
1054
+
1055
+ class FlightDatum < ::Stripe::RequestParams
1056
+ class Affiliate < ::Stripe::RequestParams
1057
+ # Affiliate partner code.
1058
+ attr_accessor :code
1059
+ # Name of affiliate partner.
1060
+ attr_accessor :name
1061
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1062
+ attr_accessor :travel_authorization_code
1063
+
1064
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1065
+ @code = code
1066
+ @name = name
1067
+ @travel_authorization_code = travel_authorization_code
1068
+ end
1069
+ end
1070
+
1071
+ class Insurance < ::Stripe::RequestParams
1072
+ # Insurance cost.
1073
+ attr_accessor :amount
1074
+ # Insurance currency.
1075
+ attr_accessor :currency
1076
+ # Insurance company name.
1077
+ attr_accessor :insurance_company_name
1078
+ # Type of insurance.
1079
+ attr_accessor :insurance_type
1080
+
1081
+ def initialize(
1082
+ amount: nil,
1083
+ currency: nil,
1084
+ insurance_company_name: nil,
1085
+ insurance_type: nil
1086
+ )
1087
+ @amount = amount
1088
+ @currency = currency
1089
+ @insurance_company_name = insurance_company_name
1090
+ @insurance_type = insurance_type
1091
+ end
1092
+ end
1093
+
1094
+ class Passenger < ::Stripe::RequestParams
1095
+ # Passenger's full name.
1096
+ attr_accessor :name
1097
+
1098
+ def initialize(name: nil)
1099
+ @name = name
1100
+ end
1101
+ end
1102
+
1103
+ class Segment < ::Stripe::RequestParams
1104
+ class Arrival < ::Stripe::RequestParams
1105
+ # Arrival airport IATA code.
1106
+ attr_accessor :airport
1107
+ # Arrival date/time.
1108
+ attr_accessor :arrives_at
1109
+ # Arrival city.
1110
+ attr_accessor :city
1111
+ # Arrival country.
1112
+ attr_accessor :country
1113
+
1114
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1115
+ @airport = airport
1116
+ @arrives_at = arrives_at
1117
+ @city = city
1118
+ @country = country
1119
+ end
1120
+ end
1121
+
1122
+ class Departure < ::Stripe::RequestParams
1123
+ # Departure airport IATA code.
1124
+ attr_accessor :airport
1125
+ # Departure city.
1126
+ attr_accessor :city
1127
+ # Departure country.
1128
+ attr_accessor :country
1129
+ # Departure date/time.
1130
+ attr_accessor :departs_at
1131
+
1132
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1133
+ @airport = airport
1134
+ @city = city
1135
+ @country = country
1136
+ @departs_at = departs_at
1137
+ end
1138
+ end
1139
+ # Segment fare amount.
1140
+ attr_accessor :amount
1141
+ # Arrival details.
1142
+ attr_accessor :arrival
1143
+ # Airline carrier code.
1144
+ attr_accessor :carrier_code
1145
+ # Carrier name.
1146
+ attr_accessor :carrier_name
1147
+ # Segment currency.
1148
+ attr_accessor :currency
1149
+ # Departure details.
1150
+ attr_accessor :departure
1151
+ # Exchange ticket number.
1152
+ attr_accessor :exchange_ticket_number
1153
+ # Fare basis code.
1154
+ attr_accessor :fare_basis_code
1155
+ # Additional fees.
1156
+ attr_accessor :fees
1157
+ # Flight number.
1158
+ attr_accessor :flight_number
1159
+ # Stopover indicator.
1160
+ attr_accessor :is_stop_over_indicator
1161
+ # Refundable ticket indicator.
1162
+ attr_accessor :refundable
1163
+ # Class of service.
1164
+ attr_accessor :service_class
1165
+ # Tax amount for segment.
1166
+ attr_accessor :tax_amount
1167
+ # Ticket number.
1168
+ attr_accessor :ticket_number
1169
+
1170
+ def initialize(
1171
+ amount: nil,
1172
+ arrival: nil,
1173
+ carrier_code: nil,
1174
+ carrier_name: nil,
1175
+ currency: nil,
1176
+ departure: nil,
1177
+ exchange_ticket_number: nil,
1178
+ fare_basis_code: nil,
1179
+ fees: nil,
1180
+ flight_number: nil,
1181
+ is_stop_over_indicator: nil,
1182
+ refundable: nil,
1183
+ service_class: nil,
1184
+ tax_amount: nil,
1185
+ ticket_number: nil
1186
+ )
1187
+ @amount = amount
1188
+ @arrival = arrival
1189
+ @carrier_code = carrier_code
1190
+ @carrier_name = carrier_name
1191
+ @currency = currency
1192
+ @departure = departure
1193
+ @exchange_ticket_number = exchange_ticket_number
1194
+ @fare_basis_code = fare_basis_code
1195
+ @fees = fees
1196
+ @flight_number = flight_number
1197
+ @is_stop_over_indicator = is_stop_over_indicator
1198
+ @refundable = refundable
1199
+ @service_class = service_class
1200
+ @tax_amount = tax_amount
1201
+ @ticket_number = ticket_number
1202
+ end
1203
+ end
1204
+
1205
+ class Total < ::Stripe::RequestParams
1206
+ class Discounts < ::Stripe::RequestParams
1207
+ # Corporate client discount code.
1208
+ attr_accessor :corporate_client_code
1209
+
1210
+ def initialize(corporate_client_code: nil)
1211
+ @corporate_client_code = corporate_client_code
1212
+ end
1213
+ end
1214
+
1215
+ class ExtraCharge < ::Stripe::RequestParams
1216
+ # Amount of additional charges.
1217
+ attr_accessor :amount
1218
+ # Type of additional charges.
1219
+ attr_accessor :type
1220
+
1221
+ def initialize(amount: nil, type: nil)
1222
+ @amount = amount
1223
+ @type = type
1224
+ end
1225
+ end
1226
+
1227
+ class Tax < ::Stripe::RequestParams
1228
+ class Tax < ::Stripe::RequestParams
1229
+ # Tax amount.
1230
+ attr_accessor :amount
1231
+ # Tax rate.
1232
+ attr_accessor :rate
1233
+ # Type of tax.
1234
+ attr_accessor :type
1235
+
1236
+ def initialize(amount: nil, rate: nil, type: nil)
1237
+ @amount = amount
1238
+ @rate = rate
1239
+ @type = type
1240
+ end
1241
+ end
1242
+ # Array of tax details.
1243
+ attr_accessor :taxes
1244
+
1245
+ def initialize(taxes: nil)
1246
+ @taxes = taxes
1247
+ end
1248
+ end
1249
+ # Total flight amount.
1250
+ attr_accessor :amount
1251
+ # Reason for credit.
1252
+ attr_accessor :credit_reason
1253
+ # Total currency.
1254
+ attr_accessor :currency
1255
+ # Discount details.
1256
+ attr_accessor :discounts
1257
+ # Additional charges.
1258
+ attr_accessor :extra_charges
1259
+ # Tax breakdown.
1260
+ attr_accessor :tax
1261
+
1262
+ def initialize(
1263
+ amount: nil,
1264
+ credit_reason: nil,
1265
+ currency: nil,
1266
+ discounts: nil,
1267
+ extra_charges: nil,
1268
+ tax: nil
1269
+ )
1270
+ @amount = amount
1271
+ @credit_reason = credit_reason
1272
+ @currency = currency
1273
+ @discounts = discounts
1274
+ @extra_charges = extra_charges
1275
+ @tax = tax
1276
+ end
1277
+ end
1278
+ # Affiliate details if applicable.
1279
+ attr_accessor :affiliate
1280
+ # Reservation reference.
1281
+ attr_accessor :booking_number
1282
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1283
+ attr_accessor :computerized_reservation_system
1284
+ # Ticket restrictions.
1285
+ attr_accessor :endorsements_and_restrictions
1286
+ # List of insurances.
1287
+ attr_accessor :insurances
1288
+ # List of passengers.
1289
+ attr_accessor :passengers
1290
+ # List of flight segments.
1291
+ attr_accessor :segments
1292
+ # Electronic ticket indicator.
1293
+ attr_accessor :ticket_electronically_issued_indicator
1294
+ # Total cost breakdown.
1295
+ attr_accessor :total
1296
+ # Type of flight transaction.
1297
+ attr_accessor :transaction_type
1298
+
1299
+ def initialize(
1300
+ affiliate: nil,
1301
+ booking_number: nil,
1302
+ computerized_reservation_system: nil,
1303
+ endorsements_and_restrictions: nil,
1304
+ insurances: nil,
1305
+ passengers: nil,
1306
+ segments: nil,
1307
+ ticket_electronically_issued_indicator: nil,
1308
+ total: nil,
1309
+ transaction_type: nil
1310
+ )
1311
+ @affiliate = affiliate
1312
+ @booking_number = booking_number
1313
+ @computerized_reservation_system = computerized_reservation_system
1314
+ @endorsements_and_restrictions = endorsements_and_restrictions
1315
+ @insurances = insurances
1316
+ @passengers = passengers
1317
+ @segments = segments
1318
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1319
+ @total = total
1320
+ @transaction_type = transaction_type
710
1321
  end
711
1322
  end
712
1323
 
@@ -875,6 +1486,300 @@ module Stripe
875
1486
  end
876
1487
  end
877
1488
 
1489
+ class LodgingDatum < ::Stripe::RequestParams
1490
+ class Accommodation < ::Stripe::RequestParams
1491
+ # Type of accommodation.
1492
+ attr_accessor :accommodation_type
1493
+ # Bed type.
1494
+ attr_accessor :bed_type
1495
+ # Daily accommodation rate in cents.
1496
+ attr_accessor :daily_rate_amount
1497
+ # Number of nights.
1498
+ attr_accessor :nights
1499
+ # Number of rooms, cabanas, apartments, and so on.
1500
+ attr_accessor :number_of_rooms
1501
+ # Rate type.
1502
+ attr_accessor :rate_type
1503
+ # Whether smoking is allowed.
1504
+ attr_accessor :smoking_indicator
1505
+
1506
+ def initialize(
1507
+ accommodation_type: nil,
1508
+ bed_type: nil,
1509
+ daily_rate_amount: nil,
1510
+ nights: nil,
1511
+ number_of_rooms: nil,
1512
+ rate_type: nil,
1513
+ smoking_indicator: nil
1514
+ )
1515
+ @accommodation_type = accommodation_type
1516
+ @bed_type = bed_type
1517
+ @daily_rate_amount = daily_rate_amount
1518
+ @nights = nights
1519
+ @number_of_rooms = number_of_rooms
1520
+ @rate_type = rate_type
1521
+ @smoking_indicator = smoking_indicator
1522
+ end
1523
+ end
1524
+
1525
+ class Affiliate < ::Stripe::RequestParams
1526
+ # Affiliate partner code.
1527
+ attr_accessor :code
1528
+ # Affiliate partner name.
1529
+ attr_accessor :name
1530
+
1531
+ def initialize(code: nil, name: nil)
1532
+ @code = code
1533
+ @name = name
1534
+ end
1535
+ end
1536
+
1537
+ class Guest < ::Stripe::RequestParams
1538
+ # Guest's full name.
1539
+ attr_accessor :name
1540
+
1541
+ def initialize(name: nil)
1542
+ @name = name
1543
+ end
1544
+ end
1545
+
1546
+ class Host < ::Stripe::RequestParams
1547
+ class Address < ::Stripe::RequestParams
1548
+ # City, district, suburb, town, or village.
1549
+ attr_accessor :city
1550
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1551
+ attr_accessor :country
1552
+ # Address line 1, such as the street, PO Box, or company name.
1553
+ attr_accessor :line1
1554
+ # Address line 2, such as the apartment, suite, unit, or building.
1555
+ attr_accessor :line2
1556
+ # ZIP or postal code.
1557
+ attr_accessor :postal_code
1558
+ # State, county, province, or region.
1559
+ attr_accessor :state
1560
+
1561
+ def initialize(
1562
+ city: nil,
1563
+ country: nil,
1564
+ line1: nil,
1565
+ line2: nil,
1566
+ postal_code: nil,
1567
+ state: nil
1568
+ )
1569
+ @city = city
1570
+ @country = country
1571
+ @line1 = line1
1572
+ @line2 = line2
1573
+ @postal_code = postal_code
1574
+ @state = state
1575
+ end
1576
+ end
1577
+ # Address of the host.
1578
+ attr_accessor :address
1579
+ # Host's country of domicile.
1580
+ attr_accessor :country_of_domicile
1581
+ # Reference number for the host.
1582
+ attr_accessor :host_reference
1583
+ # Type of host.
1584
+ attr_accessor :host_type
1585
+ # Name of the lodging property or host.
1586
+ attr_accessor :name
1587
+ # Total number of reservations for the host.
1588
+ attr_accessor :number_of_reservations
1589
+ # Property phone number.
1590
+ attr_accessor :property_phone_number
1591
+ # Host's registration date.
1592
+ attr_accessor :registered_at
1593
+
1594
+ def initialize(
1595
+ address: nil,
1596
+ country_of_domicile: nil,
1597
+ host_reference: nil,
1598
+ host_type: nil,
1599
+ name: nil,
1600
+ number_of_reservations: nil,
1601
+ property_phone_number: nil,
1602
+ registered_at: nil
1603
+ )
1604
+ @address = address
1605
+ @country_of_domicile = country_of_domicile
1606
+ @host_reference = host_reference
1607
+ @host_type = host_type
1608
+ @name = name
1609
+ @number_of_reservations = number_of_reservations
1610
+ @property_phone_number = property_phone_number
1611
+ @registered_at = registered_at
1612
+ end
1613
+ end
1614
+
1615
+ class Insurance < ::Stripe::RequestParams
1616
+ # Price of the insurance coverage in cents.
1617
+ attr_accessor :amount
1618
+ # Currency of the insurance amount.
1619
+ attr_accessor :currency
1620
+ # Name of the insurance company.
1621
+ attr_accessor :insurance_company_name
1622
+ # Type of insurance coverage.
1623
+ attr_accessor :insurance_type
1624
+
1625
+ def initialize(
1626
+ amount: nil,
1627
+ currency: nil,
1628
+ insurance_company_name: nil,
1629
+ insurance_type: nil
1630
+ )
1631
+ @amount = amount
1632
+ @currency = currency
1633
+ @insurance_company_name = insurance_company_name
1634
+ @insurance_type = insurance_type
1635
+ end
1636
+ end
1637
+
1638
+ class Total < ::Stripe::RequestParams
1639
+ class Discounts < ::Stripe::RequestParams
1640
+ # Corporate client discount code.
1641
+ attr_accessor :corporate_client_code
1642
+ # Coupon code.
1643
+ attr_accessor :coupon
1644
+
1645
+ def initialize(corporate_client_code: nil, coupon: nil)
1646
+ @corporate_client_code = corporate_client_code
1647
+ @coupon = coupon
1648
+ end
1649
+ end
1650
+
1651
+ class ExtraCharge < ::Stripe::RequestParams
1652
+ # Amount of the extra charge in cents.
1653
+ attr_accessor :amount
1654
+ # Type of extra charge.
1655
+ attr_accessor :type
1656
+
1657
+ def initialize(amount: nil, type: nil)
1658
+ @amount = amount
1659
+ @type = type
1660
+ end
1661
+ end
1662
+
1663
+ class Tax < ::Stripe::RequestParams
1664
+ class Tax < ::Stripe::RequestParams
1665
+ # Tax amount in cents.
1666
+ attr_accessor :amount
1667
+ # Tax rate.
1668
+ attr_accessor :rate
1669
+ # Type of tax applied.
1670
+ attr_accessor :type
1671
+
1672
+ def initialize(amount: nil, rate: nil, type: nil)
1673
+ @amount = amount
1674
+ @rate = rate
1675
+ @type = type
1676
+ end
1677
+ end
1678
+ # Indicates whether the transaction is tax exempt.
1679
+ attr_accessor :tax_exempt_indicator
1680
+ # Tax details.
1681
+ attr_accessor :taxes
1682
+
1683
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1684
+ @tax_exempt_indicator = tax_exempt_indicator
1685
+ @taxes = taxes
1686
+ end
1687
+ end
1688
+ # Total price of the lodging reservation in cents.
1689
+ attr_accessor :amount
1690
+ # Cash advances in cents.
1691
+ attr_accessor :cash_advances
1692
+ # Currency of the total amount.
1693
+ attr_accessor :currency
1694
+ # Discount details for the lodging.
1695
+ attr_accessor :discounts
1696
+ # Additional charges for the lodging.
1697
+ attr_accessor :extra_charges
1698
+ # Prepaid amount in cents.
1699
+ attr_accessor :prepaid_amount
1700
+ # Tax breakdown for the lodging reservation.
1701
+ attr_accessor :tax
1702
+
1703
+ def initialize(
1704
+ amount: nil,
1705
+ cash_advances: nil,
1706
+ currency: nil,
1707
+ discounts: nil,
1708
+ extra_charges: nil,
1709
+ prepaid_amount: nil,
1710
+ tax: nil
1711
+ )
1712
+ @amount = amount
1713
+ @cash_advances = cash_advances
1714
+ @currency = currency
1715
+ @discounts = discounts
1716
+ @extra_charges = extra_charges
1717
+ @prepaid_amount = prepaid_amount
1718
+ @tax = tax
1719
+ end
1720
+ end
1721
+ # Accommodation details for the lodging.
1722
+ attr_accessor :accommodation
1723
+ # Affiliate details if applicable.
1724
+ attr_accessor :affiliate
1725
+ # Booking confirmation number for the lodging.
1726
+ attr_accessor :booking_number
1727
+ # Check-in date.
1728
+ attr_accessor :checkin_at
1729
+ # Check-out date.
1730
+ attr_accessor :checkout_at
1731
+ # Customer service phone number for the lodging company.
1732
+ attr_accessor :customer_service_phone_number
1733
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1734
+ attr_accessor :fire_safety_act_compliance_indicator
1735
+ # List of guests for the lodging.
1736
+ attr_accessor :guests
1737
+ # Host details for the lodging.
1738
+ attr_accessor :host
1739
+ # List of insurances for the lodging.
1740
+ attr_accessor :insurances
1741
+ # Whether the renter is a no-show.
1742
+ attr_accessor :no_show_indicator
1743
+ # Renter ID number for the lodging.
1744
+ attr_accessor :renter_id_number
1745
+ # Renter name for the lodging.
1746
+ attr_accessor :renter_name
1747
+ # Total details for the lodging.
1748
+ attr_accessor :total
1749
+
1750
+ def initialize(
1751
+ accommodation: nil,
1752
+ affiliate: nil,
1753
+ booking_number: nil,
1754
+ checkin_at: nil,
1755
+ checkout_at: nil,
1756
+ customer_service_phone_number: nil,
1757
+ fire_safety_act_compliance_indicator: nil,
1758
+ guests: nil,
1759
+ host: nil,
1760
+ insurances: nil,
1761
+ no_show_indicator: nil,
1762
+ renter_id_number: nil,
1763
+ renter_name: nil,
1764
+ total: nil
1765
+ )
1766
+ @accommodation = accommodation
1767
+ @affiliate = affiliate
1768
+ @booking_number = booking_number
1769
+ @checkin_at = checkin_at
1770
+ @checkout_at = checkout_at
1771
+ @customer_service_phone_number = customer_service_phone_number
1772
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1773
+ @guests = guests
1774
+ @host = host
1775
+ @insurances = insurances
1776
+ @no_show_indicator = no_show_indicator
1777
+ @renter_id_number = renter_id_number
1778
+ @renter_name = renter_name
1779
+ @total = total
1780
+ end
1781
+ end
1782
+
878
1783
  class Subscription < ::Stripe::RequestParams
879
1784
  class Affiliate < ::Stripe::RequestParams
880
1785
  # The name of the affiliate that originated the purchase.
@@ -925,39 +1830,53 @@ module Stripe
925
1830
  @starts_at = starts_at
926
1831
  end
927
1832
  end
928
- # Benefit details for this PaymentIntent
929
- attr_accessor :benefit
930
1833
  # Car rental details for this PaymentIntent.
931
1834
  attr_accessor :car_rental
932
- # 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.
1835
+ # Car rental data for this PaymentIntent.
1836
+ attr_accessor :car_rental_data
1837
+ # A unique value to identify the customer. This field is available only for card payments.
1838
+ #
1839
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
933
1840
  attr_accessor :customer_reference
934
1841
  # Event details for this PaymentIntent
935
1842
  attr_accessor :event_details
936
1843
  # Flight reservation details for this PaymentIntent
937
1844
  attr_accessor :flight
1845
+ # Flight data for this PaymentIntent.
1846
+ attr_accessor :flight_data
938
1847
  # Lodging reservation details for this PaymentIntent
939
1848
  attr_accessor :lodging
940
- # A unique value assigned by the business to identify the transaction.
1849
+ # Lodging data for this PaymentIntent.
1850
+ attr_accessor :lodging_data
1851
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1852
+ #
1853
+ # 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`.
1854
+ #
1855
+ # 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.
941
1856
  attr_accessor :order_reference
942
1857
  # Subscription details for this PaymentIntent
943
1858
  attr_accessor :subscription
944
1859
 
945
1860
  def initialize(
946
- benefit: nil,
947
1861
  car_rental: nil,
1862
+ car_rental_data: nil,
948
1863
  customer_reference: nil,
949
1864
  event_details: nil,
950
1865
  flight: nil,
1866
+ flight_data: nil,
951
1867
  lodging: nil,
1868
+ lodging_data: nil,
952
1869
  order_reference: nil,
953
1870
  subscription: nil
954
1871
  )
955
- @benefit = benefit
956
1872
  @car_rental = car_rental
1873
+ @car_rental_data = car_rental_data
957
1874
  @customer_reference = customer_reference
958
1875
  @event_details = event_details
959
1876
  @flight = flight
1877
+ @flight_data = flight_data
960
1878
  @lodging = lodging
1879
+ @lodging_data = lodging_data
961
1880
  @order_reference = order_reference
962
1881
  @subscription = subscription
963
1882
  end
@@ -2169,6 +3088,12 @@ module Stripe
2169
3088
  @requested_priority = requested_priority
2170
3089
  end
2171
3090
  end
3091
+ # Controls when the funds are captured from the customer's account.
3092
+ #
3093
+ # 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.
3094
+ #
3095
+ # 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.
3096
+ attr_accessor :capture_method
2172
3097
  # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
2173
3098
  attr_accessor :request_extended_authorization
2174
3099
  # 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.
@@ -2177,10 +3102,12 @@ module Stripe
2177
3102
  attr_accessor :routing
2178
3103
 
2179
3104
  def initialize(
3105
+ capture_method: nil,
2180
3106
  request_extended_authorization: nil,
2181
3107
  request_incremental_authorization_support: nil,
2182
3108
  routing: nil
2183
3109
  )
3110
+ @capture_method = capture_method
2184
3111
  @request_extended_authorization = request_extended_authorization
2185
3112
  @request_incremental_authorization_support = request_incremental_authorization_support
2186
3113
  @routing = routing
@@ -2489,6 +3416,939 @@ module Stripe
2489
3416
  @reference = reference
2490
3417
  end
2491
3418
  end
3419
+
3420
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3421
+ class BusReservationDetail < ::Stripe::RequestParams
3422
+ class Arrival < ::Stripe::RequestParams
3423
+ class Address < ::Stripe::RequestParams
3424
+ # The city or town.
3425
+ attr_accessor :city
3426
+ # The country in ISO 3166-1 alpha-2 format.
3427
+ attr_accessor :country
3428
+ # The postal code formatted according to country.
3429
+ attr_accessor :postal_code
3430
+ # The state, county, province, or region formatted according to country.
3431
+ attr_accessor :region
3432
+ # Line 1 of the street address.
3433
+ attr_accessor :street_address
3434
+ # Line 2 of the street address.
3435
+ attr_accessor :street_address2
3436
+
3437
+ def initialize(
3438
+ city: nil,
3439
+ country: nil,
3440
+ postal_code: nil,
3441
+ region: nil,
3442
+ street_address: nil,
3443
+ street_address2: nil
3444
+ )
3445
+ @city = city
3446
+ @country = country
3447
+ @postal_code = postal_code
3448
+ @region = region
3449
+ @street_address = street_address
3450
+ @street_address2 = street_address2
3451
+ end
3452
+ end
3453
+ # Address of the arrival location.
3454
+ attr_accessor :address
3455
+ # Identifier name or reference for the arrival location.
3456
+ attr_accessor :arrival_location
3457
+
3458
+ def initialize(address: nil, arrival_location: nil)
3459
+ @address = address
3460
+ @arrival_location = arrival_location
3461
+ end
3462
+ end
3463
+
3464
+ class Departure < ::Stripe::RequestParams
3465
+ class Address < ::Stripe::RequestParams
3466
+ # The city or town.
3467
+ attr_accessor :city
3468
+ # The country in ISO 3166-1 alpha-2 format.
3469
+ attr_accessor :country
3470
+ # The postal code formatted according to country.
3471
+ attr_accessor :postal_code
3472
+ # The state, county, province, or region formatted according to country.
3473
+ attr_accessor :region
3474
+ # Line 1 of the street address.
3475
+ attr_accessor :street_address
3476
+ # Line 2 of the street address.
3477
+ attr_accessor :street_address2
3478
+
3479
+ def initialize(
3480
+ city: nil,
3481
+ country: nil,
3482
+ postal_code: nil,
3483
+ region: nil,
3484
+ street_address: nil,
3485
+ street_address2: nil
3486
+ )
3487
+ @city = city
3488
+ @country = country
3489
+ @postal_code = postal_code
3490
+ @region = region
3491
+ @street_address = street_address
3492
+ @street_address2 = street_address2
3493
+ end
3494
+ end
3495
+ # Address of the departure location.
3496
+ attr_accessor :address
3497
+ # Timestamp of departure.
3498
+ attr_accessor :departs_at
3499
+ # Identifier name or reference for the origin location.
3500
+ attr_accessor :departure_location
3501
+
3502
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3503
+ @address = address
3504
+ @departs_at = departs_at
3505
+ @departure_location = departure_location
3506
+ end
3507
+ end
3508
+
3509
+ class Insurance < ::Stripe::RequestParams
3510
+ # Insurance currency.
3511
+ attr_accessor :currency
3512
+ # Name of the company providing the insurance.
3513
+ attr_accessor :insurance_company_name
3514
+ # Type of insurance.
3515
+ attr_accessor :insurance_type
3516
+ # Price of insurance in cents.
3517
+ attr_accessor :price
3518
+
3519
+ def initialize(
3520
+ currency: nil,
3521
+ insurance_company_name: nil,
3522
+ insurance_type: nil,
3523
+ price: nil
3524
+ )
3525
+ @currency = currency
3526
+ @insurance_company_name = insurance_company_name
3527
+ @insurance_type = insurance_type
3528
+ @price = price
3529
+ end
3530
+ end
3531
+
3532
+ class Passenger < ::Stripe::RequestParams
3533
+ # The family name of the person.
3534
+ attr_accessor :family_name
3535
+ # The given name of the person.
3536
+ attr_accessor :given_name
3537
+
3538
+ def initialize(family_name: nil, given_name: nil)
3539
+ @family_name = family_name
3540
+ @given_name = given_name
3541
+ end
3542
+ end
3543
+ # Name of associated or partner company for the service.
3544
+ attr_accessor :affiliate_name
3545
+ # Arrival details.
3546
+ attr_accessor :arrival
3547
+ # Name of transportation company.
3548
+ attr_accessor :carrier_name
3549
+ # Currency.
3550
+ attr_accessor :currency
3551
+ # Departure details.
3552
+ attr_accessor :departure
3553
+ # List of insurances for this reservation.
3554
+ attr_accessor :insurances
3555
+ # List of passengers that this reservation applies to.
3556
+ attr_accessor :passengers
3557
+ # Price in cents.
3558
+ attr_accessor :price
3559
+ # Ticket class.
3560
+ attr_accessor :ticket_class
3561
+
3562
+ def initialize(
3563
+ affiliate_name: nil,
3564
+ arrival: nil,
3565
+ carrier_name: nil,
3566
+ currency: nil,
3567
+ departure: nil,
3568
+ insurances: nil,
3569
+ passengers: nil,
3570
+ price: nil,
3571
+ ticket_class: nil
3572
+ )
3573
+ @affiliate_name = affiliate_name
3574
+ @arrival = arrival
3575
+ @carrier_name = carrier_name
3576
+ @currency = currency
3577
+ @departure = departure
3578
+ @insurances = insurances
3579
+ @passengers = passengers
3580
+ @price = price
3581
+ @ticket_class = ticket_class
3582
+ end
3583
+ end
3584
+
3585
+ class EventReservationDetail < ::Stripe::RequestParams
3586
+ class Address < ::Stripe::RequestParams
3587
+ # The city or town.
3588
+ attr_accessor :city
3589
+ # The country in ISO 3166-1 alpha-2 format.
3590
+ attr_accessor :country
3591
+ # The postal code formatted according to country.
3592
+ attr_accessor :postal_code
3593
+ # The state, county, province, or region formatted according to country.
3594
+ attr_accessor :region
3595
+ # Line 1 of the street address.
3596
+ attr_accessor :street_address
3597
+ # Line 2 of the street address.
3598
+ attr_accessor :street_address2
3599
+
3600
+ def initialize(
3601
+ city: nil,
3602
+ country: nil,
3603
+ postal_code: nil,
3604
+ region: nil,
3605
+ street_address: nil,
3606
+ street_address2: nil
3607
+ )
3608
+ @city = city
3609
+ @country = country
3610
+ @postal_code = postal_code
3611
+ @region = region
3612
+ @street_address = street_address
3613
+ @street_address2 = street_address2
3614
+ end
3615
+ end
3616
+
3617
+ class Insurance < ::Stripe::RequestParams
3618
+ # Insurance currency.
3619
+ attr_accessor :currency
3620
+ # Name of the company providing the insurance.
3621
+ attr_accessor :insurance_company_name
3622
+ # Type of insurance.
3623
+ attr_accessor :insurance_type
3624
+ # Price of insurance in cents.
3625
+ attr_accessor :price
3626
+
3627
+ def initialize(
3628
+ currency: nil,
3629
+ insurance_company_name: nil,
3630
+ insurance_type: nil,
3631
+ price: nil
3632
+ )
3633
+ @currency = currency
3634
+ @insurance_company_name = insurance_company_name
3635
+ @insurance_type = insurance_type
3636
+ @price = price
3637
+ end
3638
+ end
3639
+ # Indicates if the tickets are digitally checked when entering the venue.
3640
+ attr_accessor :access_controlled_venue
3641
+ # Address of the event.
3642
+ attr_accessor :address
3643
+ # Name of associated or partner company for the service.
3644
+ attr_accessor :affiliate_name
3645
+ # End timestamp of the event.
3646
+ attr_accessor :ends_at
3647
+ # Company selling the ticket.
3648
+ attr_accessor :event_company_name
3649
+ # Name of the event.
3650
+ attr_accessor :event_name
3651
+ # Type of the event.
3652
+ attr_accessor :event_type
3653
+ # List of insurances for this event.
3654
+ attr_accessor :insurances
3655
+ # Start timestamp of the event.
3656
+ attr_accessor :starts_at
3657
+ # Name of the venue where the event takes place.
3658
+ attr_accessor :venue_name
3659
+
3660
+ def initialize(
3661
+ access_controlled_venue: nil,
3662
+ address: nil,
3663
+ affiliate_name: nil,
3664
+ ends_at: nil,
3665
+ event_company_name: nil,
3666
+ event_name: nil,
3667
+ event_type: nil,
3668
+ insurances: nil,
3669
+ starts_at: nil,
3670
+ venue_name: nil
3671
+ )
3672
+ @access_controlled_venue = access_controlled_venue
3673
+ @address = address
3674
+ @affiliate_name = affiliate_name
3675
+ @ends_at = ends_at
3676
+ @event_company_name = event_company_name
3677
+ @event_name = event_name
3678
+ @event_type = event_type
3679
+ @insurances = insurances
3680
+ @starts_at = starts_at
3681
+ @venue_name = venue_name
3682
+ end
3683
+ end
3684
+
3685
+ class FerryReservationDetail < ::Stripe::RequestParams
3686
+ class Arrival < ::Stripe::RequestParams
3687
+ class Address < ::Stripe::RequestParams
3688
+ # The city or town.
3689
+ attr_accessor :city
3690
+ # The country in ISO 3166-1 alpha-2 format.
3691
+ attr_accessor :country
3692
+ # The postal code formatted according to country.
3693
+ attr_accessor :postal_code
3694
+ # The state, county, province, or region formatted according to country.
3695
+ attr_accessor :region
3696
+ # Line 1 of the street address.
3697
+ attr_accessor :street_address
3698
+ # Line 2 of the street address.
3699
+ attr_accessor :street_address2
3700
+
3701
+ def initialize(
3702
+ city: nil,
3703
+ country: nil,
3704
+ postal_code: nil,
3705
+ region: nil,
3706
+ street_address: nil,
3707
+ street_address2: nil
3708
+ )
3709
+ @city = city
3710
+ @country = country
3711
+ @postal_code = postal_code
3712
+ @region = region
3713
+ @street_address = street_address
3714
+ @street_address2 = street_address2
3715
+ end
3716
+ end
3717
+ # Address of the arrival location.
3718
+ attr_accessor :address
3719
+ # Identifier name or reference for the arrival location.
3720
+ attr_accessor :arrival_location
3721
+
3722
+ def initialize(address: nil, arrival_location: nil)
3723
+ @address = address
3724
+ @arrival_location = arrival_location
3725
+ end
3726
+ end
3727
+
3728
+ class Departure < ::Stripe::RequestParams
3729
+ class Address < ::Stripe::RequestParams
3730
+ # The city or town.
3731
+ attr_accessor :city
3732
+ # The country in ISO 3166-1 alpha-2 format.
3733
+ attr_accessor :country
3734
+ # The postal code formatted according to country.
3735
+ attr_accessor :postal_code
3736
+ # The state, county, province, or region formatted according to country.
3737
+ attr_accessor :region
3738
+ # Line 1 of the street address.
3739
+ attr_accessor :street_address
3740
+ # Line 2 of the street address.
3741
+ attr_accessor :street_address2
3742
+
3743
+ def initialize(
3744
+ city: nil,
3745
+ country: nil,
3746
+ postal_code: nil,
3747
+ region: nil,
3748
+ street_address: nil,
3749
+ street_address2: nil
3750
+ )
3751
+ @city = city
3752
+ @country = country
3753
+ @postal_code = postal_code
3754
+ @region = region
3755
+ @street_address = street_address
3756
+ @street_address2 = street_address2
3757
+ end
3758
+ end
3759
+ # Address of the departure location.
3760
+ attr_accessor :address
3761
+ # Timestamp of departure.
3762
+ attr_accessor :departs_at
3763
+ # Identifier name or reference for the origin location.
3764
+ attr_accessor :departure_location
3765
+
3766
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3767
+ @address = address
3768
+ @departs_at = departs_at
3769
+ @departure_location = departure_location
3770
+ end
3771
+ end
3772
+
3773
+ class Insurance < ::Stripe::RequestParams
3774
+ # Insurance currency.
3775
+ attr_accessor :currency
3776
+ # Name of the company providing the insurance.
3777
+ attr_accessor :insurance_company_name
3778
+ # Type of insurance.
3779
+ attr_accessor :insurance_type
3780
+ # Price of insurance in cents.
3781
+ attr_accessor :price
3782
+
3783
+ def initialize(
3784
+ currency: nil,
3785
+ insurance_company_name: nil,
3786
+ insurance_type: nil,
3787
+ price: nil
3788
+ )
3789
+ @currency = currency
3790
+ @insurance_company_name = insurance_company_name
3791
+ @insurance_type = insurance_type
3792
+ @price = price
3793
+ end
3794
+ end
3795
+
3796
+ class Passenger < ::Stripe::RequestParams
3797
+ # The family name of the person.
3798
+ attr_accessor :family_name
3799
+ # The given name of the person.
3800
+ attr_accessor :given_name
3801
+
3802
+ def initialize(family_name: nil, given_name: nil)
3803
+ @family_name = family_name
3804
+ @given_name = given_name
3805
+ end
3806
+ end
3807
+ # Name of associated or partner company for the service.
3808
+ attr_accessor :affiliate_name
3809
+ # Arrival details.
3810
+ attr_accessor :arrival
3811
+ # Name of transportation company.
3812
+ attr_accessor :carrier_name
3813
+ # Currency.
3814
+ attr_accessor :currency
3815
+ # Departure details.
3816
+ attr_accessor :departure
3817
+ # List of insurances for this reservation.
3818
+ attr_accessor :insurances
3819
+ # List of passengers that this reservation applies to.
3820
+ attr_accessor :passengers
3821
+ # Price in cents.
3822
+ attr_accessor :price
3823
+ # Ticket class.
3824
+ attr_accessor :ticket_class
3825
+
3826
+ def initialize(
3827
+ affiliate_name: nil,
3828
+ arrival: nil,
3829
+ carrier_name: nil,
3830
+ currency: nil,
3831
+ departure: nil,
3832
+ insurances: nil,
3833
+ passengers: nil,
3834
+ price: nil,
3835
+ ticket_class: nil
3836
+ )
3837
+ @affiliate_name = affiliate_name
3838
+ @arrival = arrival
3839
+ @carrier_name = carrier_name
3840
+ @currency = currency
3841
+ @departure = departure
3842
+ @insurances = insurances
3843
+ @passengers = passengers
3844
+ @price = price
3845
+ @ticket_class = ticket_class
3846
+ end
3847
+ end
3848
+
3849
+ class Insurance < ::Stripe::RequestParams
3850
+ # Insurance currency.
3851
+ attr_accessor :currency
3852
+ # Name of the company providing the insurance.
3853
+ attr_accessor :insurance_company_name
3854
+ # Type of insurance
3855
+ attr_accessor :insurance_type
3856
+ # Price of insurance in cents.
3857
+ attr_accessor :price
3858
+
3859
+ def initialize(
3860
+ currency: nil,
3861
+ insurance_company_name: nil,
3862
+ insurance_type: nil,
3863
+ price: nil
3864
+ )
3865
+ @currency = currency
3866
+ @insurance_company_name = insurance_company_name
3867
+ @insurance_type = insurance_type
3868
+ @price = price
3869
+ end
3870
+ end
3871
+
3872
+ class MarketplaceSeller < ::Stripe::RequestParams
3873
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3874
+ # The city or town.
3875
+ attr_accessor :city
3876
+ # The country in ISO 3166-1 alpha-2 format.
3877
+ attr_accessor :country
3878
+ # The postal code formatted according to country.
3879
+ attr_accessor :postal_code
3880
+ # The state, county, province, or region formatted according to country.
3881
+ attr_accessor :region
3882
+ # Line 1 of the street address.
3883
+ attr_accessor :street_address
3884
+ # Line 2 of the street address.
3885
+ attr_accessor :street_address2
3886
+
3887
+ def initialize(
3888
+ city: nil,
3889
+ country: nil,
3890
+ postal_code: nil,
3891
+ region: nil,
3892
+ street_address: nil,
3893
+ street_address2: nil
3894
+ )
3895
+ @city = city
3896
+ @country = country
3897
+ @postal_code = postal_code
3898
+ @region = region
3899
+ @street_address = street_address
3900
+ @street_address2 = street_address2
3901
+ end
3902
+ end
3903
+ # The references to line items for purchases with multiple associated sub-sellers.
3904
+ attr_accessor :line_item_references
3905
+ # The address of the selling or delivering merchant.
3906
+ attr_accessor :marketplace_seller_address
3907
+ # The name of the marketplace seller.
3908
+ attr_accessor :marketplace_seller_name
3909
+ # The unique identifier for the marketplace seller.
3910
+ attr_accessor :marketplace_seller_reference
3911
+ # The number of transactions the sub-seller completed in the last 12 months.
3912
+ attr_accessor :number_of_transactions
3913
+ # The category of the product.
3914
+ attr_accessor :product_category
3915
+ # The date when the seller's account with the marketplace was last logged in.
3916
+ attr_accessor :seller_last_login_at
3917
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3918
+ attr_accessor :seller_rating
3919
+ # The date when the seller's account with the marketplace was created.
3920
+ attr_accessor :seller_registered_at
3921
+ # The date when the seller's account with the marketplace was last updated.
3922
+ attr_accessor :seller_updated_at
3923
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3924
+ attr_accessor :shipping_references
3925
+ # 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.
3926
+ attr_accessor :volume_of_transactions
3927
+
3928
+ def initialize(
3929
+ line_item_references: nil,
3930
+ marketplace_seller_address: nil,
3931
+ marketplace_seller_name: nil,
3932
+ marketplace_seller_reference: nil,
3933
+ number_of_transactions: nil,
3934
+ product_category: nil,
3935
+ seller_last_login_at: nil,
3936
+ seller_rating: nil,
3937
+ seller_registered_at: nil,
3938
+ seller_updated_at: nil,
3939
+ shipping_references: nil,
3940
+ volume_of_transactions: nil
3941
+ )
3942
+ @line_item_references = line_item_references
3943
+ @marketplace_seller_address = marketplace_seller_address
3944
+ @marketplace_seller_name = marketplace_seller_name
3945
+ @marketplace_seller_reference = marketplace_seller_reference
3946
+ @number_of_transactions = number_of_transactions
3947
+ @product_category = product_category
3948
+ @seller_last_login_at = seller_last_login_at
3949
+ @seller_rating = seller_rating
3950
+ @seller_registered_at = seller_registered_at
3951
+ @seller_updated_at = seller_updated_at
3952
+ @shipping_references = shipping_references
3953
+ @volume_of_transactions = volume_of_transactions
3954
+ end
3955
+ end
3956
+
3957
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3958
+ class Arrival < ::Stripe::RequestParams
3959
+ class Address < ::Stripe::RequestParams
3960
+ # The city or town.
3961
+ attr_accessor :city
3962
+ # The country in ISO 3166-1 alpha-2 format.
3963
+ attr_accessor :country
3964
+ # The postal code formatted according to country.
3965
+ attr_accessor :postal_code
3966
+ # The state, county, province, or region formatted according to country.
3967
+ attr_accessor :region
3968
+ # Line 1 of the street address.
3969
+ attr_accessor :street_address
3970
+ # Line 2 of the street address.
3971
+ attr_accessor :street_address2
3972
+
3973
+ def initialize(
3974
+ city: nil,
3975
+ country: nil,
3976
+ postal_code: nil,
3977
+ region: nil,
3978
+ street_address: nil,
3979
+ street_address2: nil
3980
+ )
3981
+ @city = city
3982
+ @country = country
3983
+ @postal_code = postal_code
3984
+ @region = region
3985
+ @street_address = street_address
3986
+ @street_address2 = street_address2
3987
+ end
3988
+ end
3989
+ # Address of the arrival location.
3990
+ attr_accessor :address
3991
+ # Identifier name or reference for the arrival location.
3992
+ attr_accessor :arrival_location
3993
+
3994
+ def initialize(address: nil, arrival_location: nil)
3995
+ @address = address
3996
+ @arrival_location = arrival_location
3997
+ end
3998
+ end
3999
+
4000
+ class Departure < ::Stripe::RequestParams
4001
+ class Address < ::Stripe::RequestParams
4002
+ # The city or town.
4003
+ attr_accessor :city
4004
+ # The country in ISO 3166-1 alpha-2 format.
4005
+ attr_accessor :country
4006
+ # The postal code formatted according to country.
4007
+ attr_accessor :postal_code
4008
+ # The state, county, province, or region formatted according to country.
4009
+ attr_accessor :region
4010
+ # Line 1 of the street address.
4011
+ attr_accessor :street_address
4012
+ # Line 2 of the street address.
4013
+ attr_accessor :street_address2
4014
+
4015
+ def initialize(
4016
+ city: nil,
4017
+ country: nil,
4018
+ postal_code: nil,
4019
+ region: nil,
4020
+ street_address: nil,
4021
+ street_address2: nil
4022
+ )
4023
+ @city = city
4024
+ @country = country
4025
+ @postal_code = postal_code
4026
+ @region = region
4027
+ @street_address = street_address
4028
+ @street_address2 = street_address2
4029
+ end
4030
+ end
4031
+ # Address of the departure location.
4032
+ attr_accessor :address
4033
+ # Timestamp of departure.
4034
+ attr_accessor :departs_at
4035
+ # Identifier name or reference for the origin location.
4036
+ attr_accessor :departure_location
4037
+
4038
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4039
+ @address = address
4040
+ @departs_at = departs_at
4041
+ @departure_location = departure_location
4042
+ end
4043
+ end
4044
+
4045
+ class Insurance < ::Stripe::RequestParams
4046
+ # Insurance currency.
4047
+ attr_accessor :currency
4048
+ # Name of the company providing the insurance.
4049
+ attr_accessor :insurance_company_name
4050
+ # Type of insurance.
4051
+ attr_accessor :insurance_type
4052
+ # Price of insurance in cents.
4053
+ attr_accessor :price
4054
+
4055
+ def initialize(
4056
+ currency: nil,
4057
+ insurance_company_name: nil,
4058
+ insurance_type: nil,
4059
+ price: nil
4060
+ )
4061
+ @currency = currency
4062
+ @insurance_company_name = insurance_company_name
4063
+ @insurance_type = insurance_type
4064
+ @price = price
4065
+ end
4066
+ end
4067
+
4068
+ class Passenger < ::Stripe::RequestParams
4069
+ # The family name of the person.
4070
+ attr_accessor :family_name
4071
+ # The given name of the person.
4072
+ attr_accessor :given_name
4073
+
4074
+ def initialize(family_name: nil, given_name: nil)
4075
+ @family_name = family_name
4076
+ @given_name = given_name
4077
+ end
4078
+ end
4079
+ # Name of associated or partner company for the service.
4080
+ attr_accessor :affiliate_name
4081
+ # Arrival details.
4082
+ attr_accessor :arrival
4083
+ # Name of transportation company.
4084
+ attr_accessor :carrier_name
4085
+ # Currency.
4086
+ attr_accessor :currency
4087
+ # Departure details.
4088
+ attr_accessor :departure
4089
+ # List of insurances for this reservation.
4090
+ attr_accessor :insurances
4091
+ # List of passengers that this reservation applies to.
4092
+ attr_accessor :passengers
4093
+ # Price in cents.
4094
+ attr_accessor :price
4095
+ # Ticket class.
4096
+ attr_accessor :ticket_class
4097
+
4098
+ def initialize(
4099
+ affiliate_name: nil,
4100
+ arrival: nil,
4101
+ carrier_name: nil,
4102
+ currency: nil,
4103
+ departure: nil,
4104
+ insurances: nil,
4105
+ passengers: nil,
4106
+ price: nil,
4107
+ ticket_class: nil
4108
+ )
4109
+ @affiliate_name = affiliate_name
4110
+ @arrival = arrival
4111
+ @carrier_name = carrier_name
4112
+ @currency = currency
4113
+ @departure = departure
4114
+ @insurances = insurances
4115
+ @passengers = passengers
4116
+ @price = price
4117
+ @ticket_class = ticket_class
4118
+ end
4119
+ end
4120
+
4121
+ class TrainReservationDetail < ::Stripe::RequestParams
4122
+ class Arrival < ::Stripe::RequestParams
4123
+ class Address < ::Stripe::RequestParams
4124
+ # The city or town.
4125
+ attr_accessor :city
4126
+ # The country in ISO 3166-1 alpha-2 format.
4127
+ attr_accessor :country
4128
+ # The postal code formatted according to country.
4129
+ attr_accessor :postal_code
4130
+ # The state, county, province, or region formatted according to country.
4131
+ attr_accessor :region
4132
+ # Line 1 of the street address.
4133
+ attr_accessor :street_address
4134
+ # Line 2 of the street address.
4135
+ attr_accessor :street_address2
4136
+
4137
+ def initialize(
4138
+ city: nil,
4139
+ country: nil,
4140
+ postal_code: nil,
4141
+ region: nil,
4142
+ street_address: nil,
4143
+ street_address2: nil
4144
+ )
4145
+ @city = city
4146
+ @country = country
4147
+ @postal_code = postal_code
4148
+ @region = region
4149
+ @street_address = street_address
4150
+ @street_address2 = street_address2
4151
+ end
4152
+ end
4153
+ # Address of the arrival location.
4154
+ attr_accessor :address
4155
+ # Identifier name or reference for the arrival location.
4156
+ attr_accessor :arrival_location
4157
+
4158
+ def initialize(address: nil, arrival_location: nil)
4159
+ @address = address
4160
+ @arrival_location = arrival_location
4161
+ end
4162
+ end
4163
+
4164
+ class Departure < ::Stripe::RequestParams
4165
+ class Address < ::Stripe::RequestParams
4166
+ # The city or town.
4167
+ attr_accessor :city
4168
+ # The country in ISO 3166-1 alpha-2 format.
4169
+ attr_accessor :country
4170
+ # The postal code formatted according to country.
4171
+ attr_accessor :postal_code
4172
+ # The state, county, province, or region formatted according to country.
4173
+ attr_accessor :region
4174
+ # Line 1 of the street address.
4175
+ attr_accessor :street_address
4176
+ # Line 2 of the street address.
4177
+ attr_accessor :street_address2
4178
+
4179
+ def initialize(
4180
+ city: nil,
4181
+ country: nil,
4182
+ postal_code: nil,
4183
+ region: nil,
4184
+ street_address: nil,
4185
+ street_address2: nil
4186
+ )
4187
+ @city = city
4188
+ @country = country
4189
+ @postal_code = postal_code
4190
+ @region = region
4191
+ @street_address = street_address
4192
+ @street_address2 = street_address2
4193
+ end
4194
+ end
4195
+ # Address of the departure location.
4196
+ attr_accessor :address
4197
+ # Timestamp of departure.
4198
+ attr_accessor :departs_at
4199
+ # Identifier name or reference for the origin location.
4200
+ attr_accessor :departure_location
4201
+
4202
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4203
+ @address = address
4204
+ @departs_at = departs_at
4205
+ @departure_location = departure_location
4206
+ end
4207
+ end
4208
+
4209
+ class Insurance < ::Stripe::RequestParams
4210
+ # Insurance currency.
4211
+ attr_accessor :currency
4212
+ # Name of the company providing the insurance.
4213
+ attr_accessor :insurance_company_name
4214
+ # Type of insurance.
4215
+ attr_accessor :insurance_type
4216
+ # Price of insurance in cents.
4217
+ attr_accessor :price
4218
+
4219
+ def initialize(
4220
+ currency: nil,
4221
+ insurance_company_name: nil,
4222
+ insurance_type: nil,
4223
+ price: nil
4224
+ )
4225
+ @currency = currency
4226
+ @insurance_company_name = insurance_company_name
4227
+ @insurance_type = insurance_type
4228
+ @price = price
4229
+ end
4230
+ end
4231
+
4232
+ class Passenger < ::Stripe::RequestParams
4233
+ # The family name of the person.
4234
+ attr_accessor :family_name
4235
+ # The given name of the person.
4236
+ attr_accessor :given_name
4237
+
4238
+ def initialize(family_name: nil, given_name: nil)
4239
+ @family_name = family_name
4240
+ @given_name = given_name
4241
+ end
4242
+ end
4243
+ # Name of associated or partner company for the service.
4244
+ attr_accessor :affiliate_name
4245
+ # Arrival details.
4246
+ attr_accessor :arrival
4247
+ # Name of transportation company.
4248
+ attr_accessor :carrier_name
4249
+ # Currency.
4250
+ attr_accessor :currency
4251
+ # Departure details.
4252
+ attr_accessor :departure
4253
+ # List of insurances for this reservation.
4254
+ attr_accessor :insurances
4255
+ # List of passengers that this reservation applies to.
4256
+ attr_accessor :passengers
4257
+ # Price in cents.
4258
+ attr_accessor :price
4259
+ # Ticket class.
4260
+ attr_accessor :ticket_class
4261
+
4262
+ def initialize(
4263
+ affiliate_name: nil,
4264
+ arrival: nil,
4265
+ carrier_name: nil,
4266
+ currency: nil,
4267
+ departure: nil,
4268
+ insurances: nil,
4269
+ passengers: nil,
4270
+ price: nil,
4271
+ ticket_class: nil
4272
+ )
4273
+ @affiliate_name = affiliate_name
4274
+ @arrival = arrival
4275
+ @carrier_name = carrier_name
4276
+ @currency = currency
4277
+ @departure = departure
4278
+ @insurances = insurances
4279
+ @passengers = passengers
4280
+ @price = price
4281
+ @ticket_class = ticket_class
4282
+ end
4283
+ end
4284
+
4285
+ class Voucher < ::Stripe::RequestParams
4286
+ # Name of associated or partner company for this voucher.
4287
+ attr_accessor :affiliate_name
4288
+ # The voucher validity end time.
4289
+ attr_accessor :ends_at
4290
+ # The voucher validity start time.
4291
+ attr_accessor :starts_at
4292
+ # The issuer or provider of this voucher.
4293
+ attr_accessor :voucher_company
4294
+ # The name or reference to identify the voucher.
4295
+ attr_accessor :voucher_name
4296
+ # The type of this voucher.
4297
+ attr_accessor :voucher_type
4298
+
4299
+ def initialize(
4300
+ affiliate_name: nil,
4301
+ ends_at: nil,
4302
+ starts_at: nil,
4303
+ voucher_company: nil,
4304
+ voucher_name: nil,
4305
+ voucher_type: nil
4306
+ )
4307
+ @affiliate_name = affiliate_name
4308
+ @ends_at = ends_at
4309
+ @starts_at = starts_at
4310
+ @voucher_company = voucher_company
4311
+ @voucher_name = voucher_name
4312
+ @voucher_type = voucher_type
4313
+ end
4314
+ end
4315
+ # Supplementary bus reservation details.
4316
+ attr_accessor :bus_reservation_details
4317
+ # Supplementary event reservation details.
4318
+ attr_accessor :event_reservation_details
4319
+ # Supplementary ferry reservation details.
4320
+ attr_accessor :ferry_reservation_details
4321
+ # Supplementary insurance details.
4322
+ attr_accessor :insurances
4323
+ # Supplementary marketplace seller details.
4324
+ attr_accessor :marketplace_sellers
4325
+ # Supplementary round trip reservation details.
4326
+ attr_accessor :round_trip_reservation_details
4327
+ # Supplementary train reservation details.
4328
+ attr_accessor :train_reservation_details
4329
+ # Voucher details, such as a gift card or discount code.
4330
+ attr_accessor :vouchers
4331
+
4332
+ def initialize(
4333
+ bus_reservation_details: nil,
4334
+ event_reservation_details: nil,
4335
+ ferry_reservation_details: nil,
4336
+ insurances: nil,
4337
+ marketplace_sellers: nil,
4338
+ round_trip_reservation_details: nil,
4339
+ train_reservation_details: nil,
4340
+ vouchers: nil
4341
+ )
4342
+ @bus_reservation_details = bus_reservation_details
4343
+ @event_reservation_details = event_reservation_details
4344
+ @ferry_reservation_details = ferry_reservation_details
4345
+ @insurances = insurances
4346
+ @marketplace_sellers = marketplace_sellers
4347
+ @round_trip_reservation_details = round_trip_reservation_details
4348
+ @train_reservation_details = train_reservation_details
4349
+ @vouchers = vouchers
4350
+ end
4351
+ end
2492
4352
  # Controls when the funds are captured from the customer's account.
2493
4353
  #
2494
4354
  # 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.
@@ -2511,19 +4371,23 @@ module Stripe
2511
4371
  attr_accessor :setup_future_usage
2512
4372
  # Subscription details if setting up or charging a subscription.
2513
4373
  attr_accessor :subscriptions
4374
+ # Supplementary Purchase Data for the corresponding Klarna payment
4375
+ attr_accessor :supplementary_purchase_data
2514
4376
 
2515
4377
  def initialize(
2516
4378
  capture_method: nil,
2517
4379
  on_demand: nil,
2518
4380
  preferred_locale: nil,
2519
4381
  setup_future_usage: nil,
2520
- subscriptions: nil
4382
+ subscriptions: nil,
4383
+ supplementary_purchase_data: nil
2521
4384
  )
2522
4385
  @capture_method = capture_method
2523
4386
  @on_demand = on_demand
2524
4387
  @preferred_locale = preferred_locale
2525
4388
  @setup_future_usage = setup_future_usage
2526
4389
  @subscriptions = subscriptions
4390
+ @supplementary_purchase_data = supplementary_purchase_data
2527
4391
  end
2528
4392
  end
2529
4393
 
@@ -2896,15 +4760,15 @@ module Stripe
2896
4760
  class MandateOptions < ::Stripe::RequestParams
2897
4761
  # Amount that will be collected. It is required when `amount_type` is `fixed`.
2898
4762
  attr_accessor :amount
2899
- # 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.
4763
+ # 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`.
2900
4764
  attr_accessor :amount_type
2901
4765
  # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2902
4766
  attr_accessor :end_date
2903
- # The periodicity at which payments will be collected.
4767
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2904
4768
  attr_accessor :payment_schedule
2905
4769
  # 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.
2906
4770
  attr_accessor :payments_per_period
2907
- # The purpose for which payments are made. Defaults to retail.
4771
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2908
4772
  attr_accessor :purpose
2909
4773
 
2910
4774
  def initialize(
@@ -3729,8 +5593,6 @@ module Stripe
3729
5593
  attr_accessor :shipping
3730
5594
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
3731
5595
  attr_accessor :use_stripe_sdk
3732
- # Allocated Funds configuration for this PaymentIntent.
3733
- attr_accessor :allocated_funds
3734
5596
 
3735
5597
  def initialize(
3736
5598
  amount_details: nil,
@@ -3755,8 +5617,7 @@ module Stripe
3755
5617
  return_url: nil,
3756
5618
  setup_future_usage: nil,
3757
5619
  shipping: nil,
3758
- use_stripe_sdk: nil,
3759
- allocated_funds: nil
5620
+ use_stripe_sdk: nil
3760
5621
  )
3761
5622
  @amount_details = amount_details
3762
5623
  @application_fee_amount = application_fee_amount
@@ -3781,7 +5642,6 @@ module Stripe
3781
5642
  @setup_future_usage = setup_future_usage
3782
5643
  @shipping = shipping
3783
5644
  @use_stripe_sdk = use_stripe_sdk
3784
- @allocated_funds = allocated_funds
3785
5645
  end
3786
5646
  end
3787
5647
  end