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