stripe 18.3.0 → 18.4.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (791) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +37 -1
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +66 -0
  5. data/lib/stripe/event_types.rb +512 -0
  6. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  7. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  8. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  9. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  11. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  12. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  13. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  29. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  30. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  43. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  44. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  46. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  48. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  50. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  51. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  52. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
  53. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
  54. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
  55. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
  56. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  57. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  58. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  59. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  60. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  61. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  62. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  63. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  64. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
  65. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
  66. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
  67. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
  68. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  69. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  70. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  71. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  72. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  73. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  74. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  75. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  76. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  77. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  78. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  79. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  80. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  81. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  82. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  83. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  84. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  85. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  86. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  87. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  88. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  89. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  90. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  91. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  92. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  93. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  94. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  95. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  96. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  97. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  98. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  99. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  100. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  101. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  102. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  103. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  104. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  105. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  106. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  107. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  108. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  109. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  110. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  111. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  112. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  113. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  114. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  115. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  116. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  117. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  118. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  119. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  120. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  121. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  122. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  123. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  124. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  125. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  126. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  127. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  128. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  129. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  130. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  131. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  132. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  133. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  134. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  135. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  136. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  137. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  138. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  139. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  140. data/lib/stripe/object_types.rb +95 -0
  141. data/lib/stripe/params/account_create_params.rb +381 -1
  142. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  143. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  144. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  145. data/lib/stripe/params/account_person_create_params.rb +32 -0
  146. data/lib/stripe/params/account_person_update_params.rb +32 -0
  147. data/lib/stripe/params/account_session_create_params.rb +243 -1
  148. data/lib/stripe/params/account_update_params.rb +343 -0
  149. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  150. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  151. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  152. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  153. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  154. data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
  155. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  156. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  157. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  158. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  159. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  160. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  161. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  164. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  166. data/lib/stripe/params/charge_update_params.rb +1648 -0
  167. data/lib/stripe/params/checkout/session_create_params.rb +224 -4
  168. data/lib/stripe/params/checkout/session_update_params.rb +156 -1
  169. data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
  170. data/lib/stripe/params/coupon_create_params.rb +47 -1
  171. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  172. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
  173. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  174. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  175. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  176. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  177. data/lib/stripe/params/dispute_update_params.rb +10 -1
  178. data/lib/stripe/params/external_account_create_params.rb +134 -0
  179. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  180. data/lib/stripe/params/external_account_list_params.rb +25 -0
  181. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  182. data/lib/stripe/params/external_account_update_params.rb +91 -0
  183. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  184. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  185. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  186. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  187. data/lib/stripe/params/financial_connections/session_create_params.rb +46 -1
  188. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
  189. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
  190. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
  191. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
  192. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  193. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  194. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  195. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  196. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  197. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  198. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  199. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  200. data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
  201. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  202. data/lib/stripe/params/invoice_create_params.rb +107 -2
  203. data/lib/stripe/params/invoice_create_preview_params.rb +1357 -9
  204. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  205. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  206. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  207. data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
  208. data/lib/stripe/params/invoice_list_params.rb +4 -0
  209. data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
  210. data/lib/stripe/params/invoice_update_params.rb +107 -2
  211. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  212. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  213. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  214. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  215. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  216. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  217. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  218. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  219. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  220. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  221. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  222. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  223. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  224. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  225. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  226. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  227. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  228. data/lib/stripe/params/mandate_list_params.rb +39 -0
  229. data/lib/stripe/params/margin_create_params.rb +25 -0
  230. data/lib/stripe/params/margin_list_params.rb +25 -0
  231. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  232. data/lib/stripe/params/margin_update_params.rb +22 -0
  233. data/lib/stripe/params/order_create_params.rb +2061 -0
  234. data/lib/stripe/params/order_list_params.rb +25 -0
  235. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  236. data/lib/stripe/params/order_submit_params.rb +16 -0
  237. data/lib/stripe/params/order_update_params.rb +2065 -0
  238. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  239. data/lib/stripe/params/payment_intent_confirm_params.rb +3124 -126
  240. data/lib/stripe/params/payment_intent_create_params.rb +3141 -130
  241. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  242. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  243. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  244. data/lib/stripe/params/payment_intent_update_params.rb +3187 -162
  245. data/lib/stripe/params/payment_link_create_params.rb +15 -0
  246. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  247. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  248. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  249. data/lib/stripe/params/payment_method_create_params.rb +77 -0
  250. data/lib/stripe/params/plan_create_params.rb +15 -0
  251. data/lib/stripe/params/price_create_params.rb +15 -0
  252. data/lib/stripe/params/price_update_params.rb +19 -0
  253. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  254. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  255. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  256. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  257. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  258. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  259. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  260. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  261. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  262. data/lib/stripe/params/product_create_params.rb +16 -0
  263. data/lib/stripe/params/product_update_params.rb +16 -0
  264. data/lib/stripe/params/quote_create_params.rb +1217 -3
  265. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  266. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  267. data/lib/stripe/params/quote_list_params.rb +4 -0
  268. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  269. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  270. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  271. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  272. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  273. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  274. data/lib/stripe/params/quote_update_params.rb +1225 -4
  275. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  276. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  277. data/lib/stripe/params/radar/account_evaluation_update_params.rb +41 -0
  278. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  279. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  281. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  282. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  283. data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
  284. data/lib/stripe/params/setup_intent_create_params.rb +187 -3
  285. data/lib/stripe/params/setup_intent_update_params.rb +188 -4
  286. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  287. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  288. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  289. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  290. data/lib/stripe/params/subscription_create_params.rb +374 -5
  291. data/lib/stripe/params/subscription_item_create_params.rb +114 -2
  292. data/lib/stripe/params/subscription_item_update_params.rb +97 -1
  293. data/lib/stripe/params/subscription_list_params.rb +4 -0
  294. data/lib/stripe/params/subscription_pause_params.rb +33 -0
  295. data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
  296. data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
  297. data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
  298. data/lib/stripe/params/subscription_update_params.rb +357 -4
  299. data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
  300. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  301. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  302. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  303. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  304. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  305. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  306. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  307. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  308. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  309. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  310. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  311. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
  312. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  313. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  314. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  315. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  316. data/lib/stripe/params/token_create_params.rb +64 -0
  317. data/lib/stripe/params/transfer_create_params.rb +8 -0
  318. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  319. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  320. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  321. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  322. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  323. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  324. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  325. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  326. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  327. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  328. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  329. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  330. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  331. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  332. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  333. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  334. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  335. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  336. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  337. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  338. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  339. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  340. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  341. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  342. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  343. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  344. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  345. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  346. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  347. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  348. data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
  349. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  350. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  351. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  352. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  353. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  354. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  355. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  356. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  357. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  358. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  359. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  360. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  361. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  362. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  363. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  364. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  365. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  366. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  367. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  368. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  369. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  370. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  371. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  372. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  373. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  374. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  375. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  376. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  377. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  378. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  379. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  380. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  381. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  382. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  383. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  384. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  385. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  386. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  387. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  388. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  389. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  390. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  391. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  392. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  393. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  394. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  395. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  396. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  397. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  398. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  399. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  400. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  401. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  402. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  403. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  404. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  405. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  406. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  407. data/lib/stripe/params/v2/core/account_create_params.rb +959 -28
  408. data/lib/stripe/params/v2/core/account_token_create_params.rb +251 -25
  409. data/lib/stripe/params/v2/core/account_update_params.rb +938 -28
  410. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  411. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  412. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  413. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  414. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  415. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  416. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  417. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  418. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  419. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  420. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  421. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  422. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  423. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  424. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  425. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  426. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  427. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  428. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  429. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  430. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  431. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  432. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  433. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  434. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  435. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  436. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  437. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  438. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  439. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  440. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
  441. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  442. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  443. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  444. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  445. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  446. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  447. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  448. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  449. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  450. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +134 -0
  451. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  452. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
  453. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  454. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  455. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  456. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  457. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  458. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  459. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  460. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  461. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
  462. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  463. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  464. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  465. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  466. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  467. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  468. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  469. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  470. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  471. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  472. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  473. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  474. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  475. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  476. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  477. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  478. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  479. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  480. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  481. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  482. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  483. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  484. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  485. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  486. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
  487. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  488. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  489. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
  490. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  491. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
  492. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  493. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  494. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  495. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  496. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
  497. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  498. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  499. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  500. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
  501. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  502. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  503. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  504. data/lib/stripe/params.rb +282 -0
  505. data/lib/stripe/resources/account.rb +227 -1
  506. data/lib/stripe/resources/account_notice.rb +94 -0
  507. data/lib/stripe/resources/account_session.rb +135 -0
  508. data/lib/stripe/resources/application_fee.rb +2 -0
  509. data/lib/stripe/resources/balance.rb +83 -0
  510. data/lib/stripe/resources/balance_transfer.rb +139 -0
  511. data/lib/stripe/resources/billing/alert.rb +105 -1
  512. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  513. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  514. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  515. data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
  516. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  517. data/lib/stripe/resources/billing/credit_grant.rb +58 -2
  518. data/lib/stripe/resources/billing/meter.rb +2 -0
  519. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  520. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  521. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  522. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  523. data/lib/stripe/resources/card.rb +20 -1
  524. data/lib/stripe/resources/charge.rb +233 -1
  525. data/lib/stripe/resources/checkout/session.rb +196 -4
  526. data/lib/stripe/resources/confirmation_token.rb +151 -0
  527. data/lib/stripe/resources/coupon.rb +60 -1
  528. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  529. data/lib/stripe/resources/customer_session.rb +36 -0
  530. data/lib/stripe/resources/delegated_checkout/requested_session.rb +509 -0
  531. data/lib/stripe/resources/discount.rb +20 -1
  532. data/lib/stripe/resources/dispute.rb +22 -0
  533. data/lib/stripe/resources/event.rb +64 -1
  534. data/lib/stripe/resources/financial_connections/account.rb +57 -0
  535. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  536. data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
  537. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  538. data/lib/stripe/resources/financial_connections/session.rb +103 -1
  539. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +143 -0
  540. data/lib/stripe/resources/fx_quote.rb +147 -0
  541. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  542. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  543. data/lib/stripe/resources/invoice.rb +188 -1
  544. data/lib/stripe/resources/invoice_item.rb +108 -2
  545. data/lib/stripe/resources/invoice_line_item.rb +147 -1
  546. data/lib/stripe/resources/issuing/card.rb +4 -0
  547. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  548. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  549. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  550. data/lib/stripe/resources/issuing/program.rb +69 -0
  551. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  552. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  553. data/lib/stripe/resources/line_item.rb +42 -0
  554. data/lib/stripe/resources/mandate.rb +43 -0
  555. data/lib/stripe/resources/margin.rb +64 -0
  556. data/lib/stripe/resources/order.rb +927 -0
  557. data/lib/stripe/resources/payment_attempt_record.rb +181 -1
  558. data/lib/stripe/resources/payment_intent.rb +1625 -9
  559. data/lib/stripe/resources/payment_method.rb +173 -0
  560. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  561. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  562. data/lib/stripe/resources/payment_record.rb +181 -1
  563. data/lib/stripe/resources/person.rb +36 -0
  564. data/lib/stripe/resources/plan.rb +2 -0
  565. data/lib/stripe/resources/price.rb +22 -0
  566. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  567. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  568. data/lib/stripe/resources/product_catalog/trial_offer.rb +103 -0
  569. data/lib/stripe/resources/quote.rb +806 -2
  570. data/lib/stripe/resources/quote_line.rb +527 -0
  571. data/lib/stripe/resources/quote_preview_invoice.rb +1200 -0
  572. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
  573. data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
  574. data/lib/stripe/resources/refund.rb +18 -0
  575. data/lib/stripe/resources/reserve/hold.rb +74 -0
  576. data/lib/stripe/resources/reserve/plan.rb +78 -0
  577. data/lib/stripe/resources/reserve/release.rb +77 -0
  578. data/lib/stripe/resources/setup_attempt.rb +48 -0
  579. data/lib/stripe/resources/setup_intent.rb +128 -1
  580. data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
  581. data/lib/stripe/resources/source.rb +38 -0
  582. data/lib/stripe/resources/subscription.rb +269 -0
  583. data/lib/stripe/resources/subscription_item.rb +43 -1
  584. data/lib/stripe/resources/subscription_schedule.rb +290 -3
  585. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  586. data/lib/stripe/resources/tax/form.rb +264 -0
  587. data/lib/stripe/resources/tax/location.rb +72 -0
  588. data/lib/stripe/resources/tax/registration.rb +128 -0
  589. data/lib/stripe/resources/tax_code.rb +15 -1
  590. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  591. data/lib/stripe/resources/terminal/reader.rb +8 -0
  592. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  593. data/lib/stripe/resources/transfer.rb +6 -0
  594. data/lib/stripe/resources/transit_balance.rb +45 -0
  595. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  596. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  597. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  598. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  599. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  600. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  601. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  602. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  603. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  604. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  605. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  606. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  607. data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
  608. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  609. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  610. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  611. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  612. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  613. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  614. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  615. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  616. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  617. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  618. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  619. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  620. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  621. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  622. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  623. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  624. data/lib/stripe/resources/v2/core/account.rb +1688 -80
  625. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  626. data/lib/stripe/resources/v2/core/event.rb +50 -1
  627. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
  628. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
  629. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  630. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  631. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  632. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  633. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  634. data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
  635. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  636. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  637. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +347 -0
  638. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
  639. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  640. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
  641. data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
  642. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  643. data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
  644. data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
  645. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  646. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  647. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  648. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  649. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
  650. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
  651. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  652. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  653. data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
  654. data/lib/stripe/resources.rb +223 -0
  655. data/lib/stripe/services/account_notice_service.rb +39 -0
  656. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  657. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  658. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  659. data/lib/stripe/services/billing_service.rb +2 -1
  660. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  661. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  662. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  663. data/lib/stripe/services/capital_service.rb +15 -0
  664. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  665. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  666. data/lib/stripe/services/external_account_service.rb +68 -0
  667. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  668. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  669. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  670. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  671. data/lib/stripe/services/financial_connections_service.rb +3 -1
  672. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +50 -0
  673. data/lib/stripe/services/fx_quote_service.rb +27 -0
  674. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  675. data/lib/stripe/services/identity_service.rb +2 -1
  676. data/lib/stripe/services/invoice_service.rb +11 -0
  677. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  678. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  679. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  680. data/lib/stripe/services/issuing/program_service.rb +52 -0
  681. data/lib/stripe/services/issuing_service.rb +6 -1
  682. data/lib/stripe/services/mandate_service.rb +5 -0
  683. data/lib/stripe/services/margin_service.rb +50 -0
  684. data/lib/stripe/services/order_service.rb +49 -0
  685. data/lib/stripe/services/payment_intent_service.rb +37 -0
  686. data/lib/stripe/services/payment_method_service.rb +11 -0
  687. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  688. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  689. data/lib/stripe/services/privacy_service.rb +13 -0
  690. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  691. data/lib/stripe/services/product_catalog_service.rb +13 -0
  692. data/lib/stripe/services/quote_line_service.rb +17 -0
  693. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  694. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  695. data/lib/stripe/services/quote_service.rb +49 -1
  696. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  697. data/lib/stripe/services/radar_service.rb +2 -1
  698. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  699. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  700. data/lib/stripe/services/reserve/release_service.rb +30 -0
  701. data/lib/stripe/services/reserve_service.rb +15 -0
  702. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  703. data/lib/stripe/services/shared_payment_service.rb +13 -0
  704. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  705. data/lib/stripe/services/subscription_service.rb +22 -0
  706. data/lib/stripe/services/tax/form_service.rb +37 -0
  707. data/lib/stripe/services/tax/location_service.rb +45 -0
  708. data/lib/stripe/services/tax_service.rb +3 -1
  709. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  710. data/lib/stripe/services/terminal_service.rb +2 -1
  711. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  712. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  713. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  714. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  715. data/lib/stripe/services/test_helpers_service.rb +3 -1
  716. data/lib/stripe/services/v1_services.rb +14 -1
  717. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  718. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  719. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  720. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  721. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  722. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  723. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  724. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  725. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  726. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  727. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  728. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  729. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  730. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  731. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  732. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  733. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  734. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  735. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  736. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  737. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  738. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  739. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  740. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  741. data/lib/stripe/services/v2/billing_service.rb +18 -1
  742. data/lib/stripe/services/v2/core/account_link_service.rb +2 -0
  743. data/lib/stripe/services/v2/core/account_service.rb +10 -0
  744. data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
  745. data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
  746. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
  747. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  748. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  749. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  750. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  751. data/lib/stripe/services/v2/core_service.rb +3 -1
  752. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  753. data/lib/stripe/services/v2/iam_service.rb +15 -0
  754. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  755. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  756. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  757. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  758. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  759. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  760. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  761. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  762. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  763. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  764. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  765. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  766. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  767. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  768. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  769. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  770. data/lib/stripe/services/v2/money_management_service.rb +35 -0
  771. data/lib/stripe/services/v2/payment_service.rb +17 -0
  772. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  773. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
  774. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
  775. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  776. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  777. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  778. data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
  779. data/lib/stripe/services/v2/tax_service.rb +15 -0
  780. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  781. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  782. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  783. data/lib/stripe/services/v2_services.rb +7 -1
  784. data/lib/stripe/services.rb +104 -0
  785. data/lib/stripe/stripe_configuration.rb +3 -1
  786. data/lib/stripe/stripe_object.rb +1 -1
  787. data/lib/stripe/util.rb +16 -4
  788. data/lib/stripe/version.rb +1 -1
  789. data/lib/stripe.rb +53 -0
  790. data/rbi/stripe.rbi +147289 -62508
  791. metadata +612 -3
@@ -3,6 +3,15 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentUpdateParams < ::Stripe::RequestParams
6
+ class AllocatedFunds < ::Stripe::RequestParams
7
+ # Whether Allocated Funds creation is enabled for this PaymentIntent.
8
+ attr_accessor :enabled
9
+
10
+ def initialize(enabled: nil)
11
+ @enabled = enabled
12
+ end
13
+ end
14
+
6
15
  class AmountDetails < ::Stripe::RequestParams
7
16
  class LineItem < ::Stripe::RequestParams
8
17
  class PaymentMethodOptions < ::Stripe::RequestParams
@@ -35,198 +44,1876 @@ module Stripe
35
44
  attr_accessor :subscription_reference
36
45
 
37
46
  def initialize(
38
- image_url: nil,
39
- product_url: nil,
40
- reference: nil,
41
- subscription_reference: nil
47
+ image_url: nil,
48
+ product_url: nil,
49
+ reference: nil,
50
+ subscription_reference: nil
51
+ )
52
+ @image_url = image_url
53
+ @product_url = product_url
54
+ @reference = reference
55
+ @subscription_reference = subscription_reference
56
+ end
57
+ end
58
+
59
+ class Paypal < ::Stripe::RequestParams
60
+ # Type of the line item.
61
+ attr_accessor :category
62
+ # Description of the line item.
63
+ attr_accessor :description
64
+ # The Stripe account ID of the connected account that sells the item.
65
+ attr_accessor :sold_by
66
+
67
+ def initialize(category: nil, description: nil, sold_by: nil)
68
+ @category = category
69
+ @description = description
70
+ @sold_by = sold_by
71
+ end
72
+ end
73
+ # This sub-hash contains line item details that are specific to `card` payment method."
74
+ attr_accessor :card
75
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
76
+ attr_accessor :card_present
77
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
78
+ attr_accessor :klarna
79
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
80
+ attr_accessor :paypal
81
+
82
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
83
+ @card = card
84
+ @card_present = card_present
85
+ @klarna = klarna
86
+ @paypal = paypal
87
+ end
88
+ end
89
+
90
+ class Tax < ::Stripe::RequestParams
91
+ # The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
92
+ #
93
+ # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
94
+ attr_accessor :total_tax_amount
95
+
96
+ def initialize(total_tax_amount: nil)
97
+ @total_tax_amount = total_tax_amount
98
+ end
99
+ end
100
+ # The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
101
+ #
102
+ # This field is mutually exclusive with the `amount_details[discount_amount]` field.
103
+ attr_accessor :discount_amount
104
+ # Payment method-specific information for line items.
105
+ attr_accessor :payment_method_options
106
+ # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
107
+ attr_accessor :product_code
108
+ # The product name of the line item. Required for L3 rates. At most 1024 characters long.
109
+ #
110
+ # 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.
111
+ attr_accessor :product_name
112
+ # The quantity of items. Required for L3 rates. An integer greater than 0.
113
+ attr_accessor :quantity
114
+ # Contains information about the tax on the item.
115
+ attr_accessor :tax
116
+ # The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
117
+ attr_accessor :unit_cost
118
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
119
+ attr_accessor :unit_of_measure
120
+
121
+ def initialize(
122
+ discount_amount: nil,
123
+ payment_method_options: nil,
124
+ product_code: nil,
125
+ product_name: nil,
126
+ quantity: nil,
127
+ tax: nil,
128
+ unit_cost: nil,
129
+ unit_of_measure: nil
130
+ )
131
+ @discount_amount = discount_amount
132
+ @payment_method_options = payment_method_options
133
+ @product_code = product_code
134
+ @product_name = product_name
135
+ @quantity = quantity
136
+ @tax = tax
137
+ @unit_cost = unit_cost
138
+ @unit_of_measure = unit_of_measure
139
+ end
140
+ end
141
+
142
+ class Shipping < ::Stripe::RequestParams
143
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
144
+ attr_accessor :amount
145
+ # 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.
146
+ attr_accessor :from_postal_code
147
+ # 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.
148
+ attr_accessor :to_postal_code
149
+
150
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
151
+ @amount = amount
152
+ @from_postal_code = from_postal_code
153
+ @to_postal_code = to_postal_code
154
+ end
155
+ end
156
+
157
+ class Tax < ::Stripe::RequestParams
158
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
159
+ #
160
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
161
+ attr_accessor :total_tax_amount
162
+
163
+ def initialize(total_tax_amount: nil)
164
+ @total_tax_amount = total_tax_amount
165
+ end
166
+ end
167
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
168
+ #
169
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
170
+ attr_accessor :discount_amount
171
+ # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
172
+ #
173
+ # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
174
+ #
175
+ # For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks.
176
+ attr_accessor :enforce_arithmetic_validation
177
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
178
+ attr_accessor :line_items
179
+ # Contains information about the shipping portion of the amount.
180
+ attr_accessor :shipping
181
+ # Contains information about the tax portion of the amount.
182
+ attr_accessor :tax
183
+
184
+ def initialize(
185
+ discount_amount: nil,
186
+ enforce_arithmetic_validation: nil,
187
+ line_items: nil,
188
+ shipping: nil,
189
+ tax: nil
190
+ )
191
+ @discount_amount = discount_amount
192
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
193
+ @line_items = line_items
194
+ @shipping = shipping
195
+ @tax = tax
196
+ end
197
+ end
198
+
199
+ class Hooks < ::Stripe::RequestParams
200
+ class Inputs < ::Stripe::RequestParams
201
+ class Tax < ::Stripe::RequestParams
202
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
203
+ attr_accessor :calculation
204
+
205
+ def initialize(calculation: nil)
206
+ @calculation = calculation
207
+ end
208
+ end
209
+ # Tax arguments for automations
210
+ attr_accessor :tax
211
+
212
+ def initialize(tax: nil)
213
+ @tax = tax
214
+ end
215
+ end
216
+ # Arguments passed in automations
217
+ attr_accessor :inputs
218
+
219
+ def initialize(inputs: nil)
220
+ @inputs = inputs
221
+ end
222
+ end
223
+
224
+ class MandateData < ::Stripe::RequestParams
225
+ class CustomerAcceptance < ::Stripe::RequestParams
226
+ class Online < ::Stripe::RequestParams
227
+ # The IP address from which the Mandate was accepted by the customer.
228
+ attr_accessor :ip_address
229
+ # The user agent of the browser from which the Mandate was accepted by the customer.
230
+ attr_accessor :user_agent
231
+
232
+ def initialize(ip_address: nil, user_agent: nil)
233
+ @ip_address = ip_address
234
+ @user_agent = user_agent
235
+ end
236
+ end
237
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
238
+ attr_accessor :online
239
+ # The type of customer acceptance information included with the Mandate.
240
+ attr_accessor :type
241
+
242
+ def initialize(online: nil, type: nil)
243
+ @online = online
244
+ @type = type
245
+ end
246
+ end
247
+ # This hash contains details about the customer acceptance of the Mandate.
248
+ attr_accessor :customer_acceptance
249
+
250
+ def initialize(customer_acceptance: nil)
251
+ @customer_acceptance = customer_acceptance
252
+ end
253
+ end
254
+
255
+ class PaymentDetails < ::Stripe::RequestParams
256
+ class Benefit < ::Stripe::RequestParams
257
+ class FrMealVoucher < ::Stripe::RequestParams
258
+ # The 14-digit SIRET of the meal voucher acceptor.
259
+ attr_accessor :siret
260
+
261
+ def initialize(siret: nil)
262
+ @siret = siret
263
+ end
264
+ end
265
+ # French meal voucher benefit details for this PaymentIntent.
266
+ attr_accessor :fr_meal_voucher
267
+
268
+ def initialize(fr_meal_voucher: nil)
269
+ @fr_meal_voucher = fr_meal_voucher
270
+ end
271
+ end
272
+
273
+ class CarRental < ::Stripe::RequestParams
274
+ class Affiliate < ::Stripe::RequestParams
275
+ # The name of the affiliate that originated the purchase.
276
+ attr_accessor :name
277
+
278
+ def initialize(name: nil)
279
+ @name = name
280
+ end
281
+ end
282
+
283
+ class Delivery < ::Stripe::RequestParams
284
+ class Recipient < ::Stripe::RequestParams
285
+ # The email of the recipient the ticket is delivered to.
286
+ attr_accessor :email
287
+ # The name of the recipient the ticket is delivered to.
288
+ attr_accessor :name
289
+ # The phone number of the recipient the ticket is delivered to.
290
+ attr_accessor :phone
291
+
292
+ def initialize(email: nil, name: nil, phone: nil)
293
+ @email = email
294
+ @name = name
295
+ @phone = phone
296
+ end
297
+ end
298
+ # The delivery method for the payment
299
+ attr_accessor :mode
300
+ # Details of the recipient.
301
+ attr_accessor :recipient
302
+
303
+ def initialize(mode: nil, recipient: nil)
304
+ @mode = mode
305
+ @recipient = recipient
306
+ end
307
+ end
308
+
309
+ class Distance < ::Stripe::RequestParams
310
+ # Distance traveled.
311
+ attr_accessor :amount
312
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
313
+ attr_accessor :unit
314
+
315
+ def initialize(amount: nil, unit: nil)
316
+ @amount = amount
317
+ @unit = unit
318
+ end
319
+ end
320
+
321
+ class Driver < ::Stripe::RequestParams
322
+ # Driver's identification number.
323
+ attr_accessor :driver_identification_number
324
+ # Driver's tax number.
325
+ attr_accessor :driver_tax_number
326
+ # Full name of the person or entity on the car reservation.
327
+ attr_accessor :name
328
+
329
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
330
+ @driver_identification_number = driver_identification_number
331
+ @driver_tax_number = driver_tax_number
332
+ @name = name
333
+ end
334
+ end
335
+
336
+ class PickupAddress < ::Stripe::RequestParams
337
+ # City, district, suburb, town, or village.
338
+ attr_accessor :city
339
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
340
+ attr_accessor :country
341
+ # Address line 1, such as the street, PO Box, or company name.
342
+ attr_accessor :line1
343
+ # Address line 2, such as the apartment, suite, unit, or building.
344
+ attr_accessor :line2
345
+ # ZIP or postal code.
346
+ attr_accessor :postal_code
347
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
348
+ attr_accessor :state
349
+
350
+ def initialize(
351
+ city: nil,
352
+ country: nil,
353
+ line1: nil,
354
+ line2: nil,
355
+ postal_code: nil,
356
+ state: nil
357
+ )
358
+ @city = city
359
+ @country = country
360
+ @line1 = line1
361
+ @line2 = line2
362
+ @postal_code = postal_code
363
+ @state = state
364
+ end
365
+ end
366
+
367
+ class ReturnAddress < ::Stripe::RequestParams
368
+ # City, district, suburb, town, or village.
369
+ attr_accessor :city
370
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
371
+ attr_accessor :country
372
+ # Address line 1, such as the street, PO Box, or company name.
373
+ attr_accessor :line1
374
+ # Address line 2, such as the apartment, suite, unit, or building.
375
+ attr_accessor :line2
376
+ # ZIP or postal code.
377
+ attr_accessor :postal_code
378
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
379
+ attr_accessor :state
380
+
381
+ def initialize(
382
+ city: nil,
383
+ country: nil,
384
+ line1: nil,
385
+ line2: nil,
386
+ postal_code: nil,
387
+ state: nil
388
+ )
389
+ @city = city
390
+ @country = country
391
+ @line1 = line1
392
+ @line2 = line2
393
+ @postal_code = postal_code
394
+ @state = state
395
+ end
396
+ end
397
+ # Affiliate details for this purchase.
398
+ attr_accessor :affiliate
399
+ # The booking number associated with the car rental.
400
+ attr_accessor :booking_number
401
+ # Class code of the car.
402
+ attr_accessor :car_class_code
403
+ # Make of the car.
404
+ attr_accessor :car_make
405
+ # Model of the car.
406
+ attr_accessor :car_model
407
+ # The name of the rental car company.
408
+ attr_accessor :company
409
+ # The customer service phone number of the car rental company.
410
+ attr_accessor :customer_service_phone_number
411
+ # Number of days the car is being rented.
412
+ attr_accessor :days_rented
413
+ # Delivery details for this purchase.
414
+ attr_accessor :delivery
415
+ # The details of the distance traveled during the rental period.
416
+ attr_accessor :distance
417
+ # The details of the passengers in the travel reservation
418
+ attr_accessor :drivers
419
+ # List of additional charges being billed.
420
+ attr_accessor :extra_charges
421
+ # Indicates if the customer did not keep nor cancel their booking.
422
+ attr_accessor :no_show
423
+ # Car pick-up address.
424
+ attr_accessor :pickup_address
425
+ # Car pick-up time. Measured in seconds since the Unix epoch.
426
+ attr_accessor :pickup_at
427
+ # Name of the pickup location.
428
+ attr_accessor :pickup_location_name
429
+ # Rental rate.
430
+ attr_accessor :rate_amount
431
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
432
+ attr_accessor :rate_interval
433
+ # The name of the person or entity renting the car.
434
+ attr_accessor :renter_name
435
+ # Car return address.
436
+ attr_accessor :return_address
437
+ # Car return time. Measured in seconds since the Unix epoch.
438
+ attr_accessor :return_at
439
+ # Name of the return location.
440
+ attr_accessor :return_location_name
441
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
442
+ attr_accessor :tax_exempt
443
+ # The vehicle identification number.
444
+ attr_accessor :vehicle_identification_number
445
+
446
+ def initialize(
447
+ affiliate: nil,
448
+ booking_number: nil,
449
+ car_class_code: nil,
450
+ car_make: nil,
451
+ car_model: nil,
452
+ company: nil,
453
+ customer_service_phone_number: nil,
454
+ days_rented: nil,
455
+ delivery: nil,
456
+ distance: nil,
457
+ drivers: nil,
458
+ extra_charges: nil,
459
+ no_show: nil,
460
+ pickup_address: nil,
461
+ pickup_at: nil,
462
+ pickup_location_name: nil,
463
+ rate_amount: nil,
464
+ rate_interval: nil,
465
+ renter_name: nil,
466
+ return_address: nil,
467
+ return_at: nil,
468
+ return_location_name: nil,
469
+ tax_exempt: nil,
470
+ vehicle_identification_number: nil
471
+ )
472
+ @affiliate = affiliate
473
+ @booking_number = booking_number
474
+ @car_class_code = car_class_code
475
+ @car_make = car_make
476
+ @car_model = car_model
477
+ @company = company
478
+ @customer_service_phone_number = customer_service_phone_number
479
+ @days_rented = days_rented
480
+ @delivery = delivery
481
+ @distance = distance
482
+ @drivers = drivers
483
+ @extra_charges = extra_charges
484
+ @no_show = no_show
485
+ @pickup_address = pickup_address
486
+ @pickup_at = pickup_at
487
+ @pickup_location_name = pickup_location_name
488
+ @rate_amount = rate_amount
489
+ @rate_interval = rate_interval
490
+ @renter_name = renter_name
491
+ @return_address = return_address
492
+ @return_at = return_at
493
+ @return_location_name = return_location_name
494
+ @tax_exempt = tax_exempt
495
+ @vehicle_identification_number = vehicle_identification_number
496
+ end
497
+ end
498
+
499
+ class CarRentalDatum < ::Stripe::RequestParams
500
+ class Affiliate < ::Stripe::RequestParams
501
+ # Affiliate partner code.
502
+ attr_accessor :code
503
+ # Name of affiliate partner.
504
+ attr_accessor :name
505
+
506
+ def initialize(code: nil, name: nil)
507
+ @code = code
508
+ @name = name
509
+ end
510
+ end
511
+
512
+ class Distance < ::Stripe::RequestParams
513
+ # Distance traveled.
514
+ attr_accessor :amount
515
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
516
+ attr_accessor :unit
517
+
518
+ def initialize(amount: nil, unit: nil)
519
+ @amount = amount
520
+ @unit = unit
521
+ end
522
+ end
523
+
524
+ class Driver < ::Stripe::RequestParams
525
+ class DateOfBirth < ::Stripe::RequestParams
526
+ # Day of birth (1-31).
527
+ attr_accessor :day
528
+ # Month of birth (1-12).
529
+ attr_accessor :month
530
+ # Year of birth (must be greater than 1900).
531
+ attr_accessor :year
532
+
533
+ def initialize(day: nil, month: nil, year: nil)
534
+ @day = day
535
+ @month = month
536
+ @year = year
537
+ end
538
+ end
539
+ # Driver's date of birth.
540
+ attr_accessor :date_of_birth
541
+ # Driver's identification number.
542
+ attr_accessor :driver_identification_number
543
+ # Driver's tax number.
544
+ attr_accessor :driver_tax_number
545
+ # Driver's full name.
546
+ attr_accessor :name
547
+
548
+ def initialize(
549
+ date_of_birth: nil,
550
+ driver_identification_number: nil,
551
+ driver_tax_number: nil,
552
+ name: nil
553
+ )
554
+ @date_of_birth = date_of_birth
555
+ @driver_identification_number = driver_identification_number
556
+ @driver_tax_number = driver_tax_number
557
+ @name = name
558
+ end
559
+ end
560
+
561
+ class DropOff < ::Stripe::RequestParams
562
+ class Address < ::Stripe::RequestParams
563
+ # City, district, suburb, town, or village.
564
+ attr_accessor :city
565
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
566
+ attr_accessor :country
567
+ # Address line 1, such as the street, PO Box, or company name.
568
+ attr_accessor :line1
569
+ # Address line 2, such as the apartment, suite, unit, or building.
570
+ attr_accessor :line2
571
+ # ZIP or postal code.
572
+ attr_accessor :postal_code
573
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
574
+ attr_accessor :state
575
+
576
+ def initialize(
577
+ city: nil,
578
+ country: nil,
579
+ line1: nil,
580
+ line2: nil,
581
+ postal_code: nil,
582
+ state: nil
583
+ )
584
+ @city = city
585
+ @country = country
586
+ @line1 = line1
587
+ @line2 = line2
588
+ @postal_code = postal_code
589
+ @state = state
590
+ end
591
+ end
592
+ # Address of the rental location.
593
+ attr_accessor :address
594
+ # Location name.
595
+ attr_accessor :location_name
596
+ # Timestamp for the location.
597
+ attr_accessor :time
598
+
599
+ def initialize(address: nil, location_name: nil, time: nil)
600
+ @address = address
601
+ @location_name = location_name
602
+ @time = time
603
+ end
604
+ end
605
+
606
+ class Insurance < ::Stripe::RequestParams
607
+ # Amount of the insurance coverage in cents.
608
+ attr_accessor :amount
609
+ # Currency of the insurance amount.
610
+ attr_accessor :currency
611
+ # Name of the insurance company.
612
+ attr_accessor :insurance_company_name
613
+ # Type of insurance coverage.
614
+ attr_accessor :insurance_type
615
+
616
+ def initialize(
617
+ amount: nil,
618
+ currency: nil,
619
+ insurance_company_name: nil,
620
+ insurance_type: nil
621
+ )
622
+ @amount = amount
623
+ @currency = currency
624
+ @insurance_company_name = insurance_company_name
625
+ @insurance_type = insurance_type
626
+ end
627
+ end
628
+
629
+ class Pickup < ::Stripe::RequestParams
630
+ class Address < ::Stripe::RequestParams
631
+ # City, district, suburb, town, or village.
632
+ attr_accessor :city
633
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
634
+ attr_accessor :country
635
+ # Address line 1, such as the street, PO Box, or company name.
636
+ attr_accessor :line1
637
+ # Address line 2, such as the apartment, suite, unit, or building.
638
+ attr_accessor :line2
639
+ # ZIP or postal code.
640
+ attr_accessor :postal_code
641
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
642
+ attr_accessor :state
643
+
644
+ def initialize(
645
+ city: nil,
646
+ country: nil,
647
+ line1: nil,
648
+ line2: nil,
649
+ postal_code: nil,
650
+ state: nil
651
+ )
652
+ @city = city
653
+ @country = country
654
+ @line1 = line1
655
+ @line2 = line2
656
+ @postal_code = postal_code
657
+ @state = state
658
+ end
659
+ end
660
+ # Address of the rental location.
661
+ attr_accessor :address
662
+ # Location name.
663
+ attr_accessor :location_name
664
+ # Timestamp for the location.
665
+ attr_accessor :time
666
+
667
+ def initialize(address: nil, location_name: nil, time: nil)
668
+ @address = address
669
+ @location_name = location_name
670
+ @time = time
671
+ end
672
+ end
673
+
674
+ class Total < ::Stripe::RequestParams
675
+ class Discounts < ::Stripe::RequestParams
676
+ # Corporate client discount code.
677
+ attr_accessor :corporate_client_code
678
+ # Coupon code applied to the rental.
679
+ attr_accessor :coupon
680
+ # Maximum number of free miles or kilometers included.
681
+ attr_accessor :maximum_free_miles_or_kilometers
682
+
683
+ def initialize(
684
+ corporate_client_code: nil,
685
+ coupon: nil,
686
+ maximum_free_miles_or_kilometers: nil
687
+ )
688
+ @corporate_client_code = corporate_client_code
689
+ @coupon = coupon
690
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
691
+ end
692
+ end
693
+
694
+ class ExtraCharge < ::Stripe::RequestParams
695
+ # Amount of the extra charge in cents.
696
+ attr_accessor :amount
697
+ # Type of extra charge.
698
+ attr_accessor :type
699
+
700
+ def initialize(amount: nil, type: nil)
701
+ @amount = amount
702
+ @type = type
703
+ end
704
+ end
705
+
706
+ class Tax < ::Stripe::RequestParams
707
+ class Tax < ::Stripe::RequestParams
708
+ # Tax amount.
709
+ attr_accessor :amount
710
+ # Tax rate applied.
711
+ attr_accessor :rate
712
+ # Type of tax applied.
713
+ attr_accessor :type
714
+
715
+ def initialize(amount: nil, rate: nil, type: nil)
716
+ @amount = amount
717
+ @rate = rate
718
+ @type = type
719
+ end
720
+ end
721
+ # Indicates if the transaction is tax exempt.
722
+ attr_accessor :tax_exempt_indicator
723
+ # Array of tax details.
724
+ attr_accessor :taxes
725
+
726
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
727
+ @tax_exempt_indicator = tax_exempt_indicator
728
+ @taxes = taxes
729
+ end
730
+ end
731
+ # Total amount in cents.
732
+ attr_accessor :amount
733
+ # Currency of the amount.
734
+ attr_accessor :currency
735
+ # Discount details for the rental.
736
+ attr_accessor :discounts
737
+ # Additional charges for the rental.
738
+ attr_accessor :extra_charges
739
+ # Rate per unit for the rental.
740
+ attr_accessor :rate_per_unit
741
+ # Unit of measurement for the rate.
742
+ attr_accessor :rate_unit
743
+ # Tax breakdown for the rental.
744
+ attr_accessor :tax
745
+
746
+ def initialize(
747
+ amount: nil,
748
+ currency: nil,
749
+ discounts: nil,
750
+ extra_charges: nil,
751
+ rate_per_unit: nil,
752
+ rate_unit: nil,
753
+ tax: nil
754
+ )
755
+ @amount = amount
756
+ @currency = currency
757
+ @discounts = discounts
758
+ @extra_charges = extra_charges
759
+ @rate_per_unit = rate_per_unit
760
+ @rate_unit = rate_unit
761
+ @tax = tax
762
+ end
763
+ end
764
+
765
+ class Vehicle < ::Stripe::RequestParams
766
+ # Make of the rental vehicle.
767
+ attr_accessor :make
768
+ # Model of the rental vehicle.
769
+ attr_accessor :model
770
+ # Odometer reading at the time of rental.
771
+ attr_accessor :odometer
772
+ # Type of the rental vehicle.
773
+ attr_accessor :type
774
+ # Class of the rental vehicle.
775
+ attr_accessor :vehicle_class
776
+ # Vehicle identification number (VIN).
777
+ attr_accessor :vehicle_identification_number
778
+
779
+ def initialize(
780
+ make: nil,
781
+ model: nil,
782
+ odometer: nil,
783
+ type: nil,
784
+ vehicle_class: nil,
785
+ vehicle_identification_number: nil
786
+ )
787
+ @make = make
788
+ @model = model
789
+ @odometer = odometer
790
+ @type = type
791
+ @vehicle_class = vehicle_class
792
+ @vehicle_identification_number = vehicle_identification_number
793
+ end
794
+ end
795
+ # Affiliate (such as travel agency) details for the rental.
796
+ attr_accessor :affiliate
797
+ # Booking confirmation number for the car rental.
798
+ attr_accessor :booking_number
799
+ # Name of the car rental company.
800
+ attr_accessor :carrier_name
801
+ # Customer service phone number for the car rental company.
802
+ attr_accessor :customer_service_phone_number
803
+ # Number of days the car is being rented.
804
+ attr_accessor :days_rented
805
+ # Distance details for the rental.
806
+ attr_accessor :distance
807
+ # List of drivers for the rental.
808
+ attr_accessor :drivers
809
+ # Drop-off location details.
810
+ attr_accessor :drop_off
811
+ # Insurance details for the rental.
812
+ attr_accessor :insurances
813
+ # Indicates if the customer was a no-show.
814
+ attr_accessor :no_show_indicator
815
+ # Pickup location details.
816
+ attr_accessor :pickup
817
+ # Name of the person renting the vehicle.
818
+ attr_accessor :renter_name
819
+ # Total cost breakdown for the rental.
820
+ attr_accessor :total
821
+ # Vehicle details for the rental.
822
+ attr_accessor :vehicle
823
+
824
+ def initialize(
825
+ affiliate: nil,
826
+ booking_number: nil,
827
+ carrier_name: nil,
828
+ customer_service_phone_number: nil,
829
+ days_rented: nil,
830
+ distance: nil,
831
+ drivers: nil,
832
+ drop_off: nil,
833
+ insurances: nil,
834
+ no_show_indicator: nil,
835
+ pickup: nil,
836
+ renter_name: nil,
837
+ total: nil,
838
+ vehicle: nil
839
+ )
840
+ @affiliate = affiliate
841
+ @booking_number = booking_number
842
+ @carrier_name = carrier_name
843
+ @customer_service_phone_number = customer_service_phone_number
844
+ @days_rented = days_rented
845
+ @distance = distance
846
+ @drivers = drivers
847
+ @drop_off = drop_off
848
+ @insurances = insurances
849
+ @no_show_indicator = no_show_indicator
850
+ @pickup = pickup
851
+ @renter_name = renter_name
852
+ @total = total
853
+ @vehicle = vehicle
854
+ end
855
+ end
856
+
857
+ class EventDetails < ::Stripe::RequestParams
858
+ class Address < ::Stripe::RequestParams
859
+ # City, district, suburb, town, or village.
860
+ attr_accessor :city
861
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
862
+ attr_accessor :country
863
+ # Address line 1, such as the street, PO Box, or company name.
864
+ attr_accessor :line1
865
+ # Address line 2, such as the apartment, suite, unit, or building.
866
+ attr_accessor :line2
867
+ # ZIP or postal code.
868
+ attr_accessor :postal_code
869
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
870
+ attr_accessor :state
871
+
872
+ def initialize(
873
+ city: nil,
874
+ country: nil,
875
+ line1: nil,
876
+ line2: nil,
877
+ postal_code: nil,
878
+ state: nil
879
+ )
880
+ @city = city
881
+ @country = country
882
+ @line1 = line1
883
+ @line2 = line2
884
+ @postal_code = postal_code
885
+ @state = state
886
+ end
887
+ end
888
+
889
+ class Affiliate < ::Stripe::RequestParams
890
+ # The name of the affiliate that originated the purchase.
891
+ attr_accessor :name
892
+
893
+ def initialize(name: nil)
894
+ @name = name
895
+ end
896
+ end
897
+
898
+ class Delivery < ::Stripe::RequestParams
899
+ class Recipient < ::Stripe::RequestParams
900
+ # The email of the recipient the ticket is delivered to.
901
+ attr_accessor :email
902
+ # The name of the recipient the ticket is delivered to.
903
+ attr_accessor :name
904
+ # The phone number of the recipient the ticket is delivered to.
905
+ attr_accessor :phone
906
+
907
+ def initialize(email: nil, name: nil, phone: nil)
908
+ @email = email
909
+ @name = name
910
+ @phone = phone
911
+ end
912
+ end
913
+ # The delivery method for the payment
914
+ attr_accessor :mode
915
+ # Details of the recipient.
916
+ attr_accessor :recipient
917
+
918
+ def initialize(mode: nil, recipient: nil)
919
+ @mode = mode
920
+ @recipient = recipient
921
+ end
922
+ end
923
+ # Indicates if the tickets are digitally checked when entering the venue.
924
+ attr_accessor :access_controlled_venue
925
+ # The event location's address.
926
+ attr_accessor :address
927
+ # Affiliate details for this purchase.
928
+ attr_accessor :affiliate
929
+ # The name of the company
930
+ attr_accessor :company
931
+ # Delivery details for this purchase.
932
+ attr_accessor :delivery
933
+ # Event end time. Measured in seconds since the Unix epoch.
934
+ attr_accessor :ends_at
935
+ # Type of the event entertainment (concert, sports event etc)
936
+ attr_accessor :genre
937
+ # The name of the event.
938
+ attr_accessor :name
939
+ # Event start time. Measured in seconds since the Unix epoch.
940
+ attr_accessor :starts_at
941
+
942
+ def initialize(
943
+ access_controlled_venue: nil,
944
+ address: nil,
945
+ affiliate: nil,
946
+ company: nil,
947
+ delivery: nil,
948
+ ends_at: nil,
949
+ genre: nil,
950
+ name: nil,
951
+ starts_at: nil
952
+ )
953
+ @access_controlled_venue = access_controlled_venue
954
+ @address = address
955
+ @affiliate = affiliate
956
+ @company = company
957
+ @delivery = delivery
958
+ @ends_at = ends_at
959
+ @genre = genre
960
+ @name = name
961
+ @starts_at = starts_at
962
+ end
963
+ end
964
+
965
+ class Flight < ::Stripe::RequestParams
966
+ class Affiliate < ::Stripe::RequestParams
967
+ # The name of the affiliate that originated the purchase.
968
+ attr_accessor :name
969
+
970
+ def initialize(name: nil)
971
+ @name = name
972
+ end
973
+ end
974
+
975
+ class Delivery < ::Stripe::RequestParams
976
+ class Recipient < ::Stripe::RequestParams
977
+ # The email of the recipient the ticket is delivered to.
978
+ attr_accessor :email
979
+ # The name of the recipient the ticket is delivered to.
980
+ attr_accessor :name
981
+ # The phone number of the recipient the ticket is delivered to.
982
+ attr_accessor :phone
983
+
984
+ def initialize(email: nil, name: nil, phone: nil)
985
+ @email = email
986
+ @name = name
987
+ @phone = phone
988
+ end
989
+ end
990
+ # The delivery method for the payment
991
+ attr_accessor :mode
992
+ # Details of the recipient.
993
+ attr_accessor :recipient
994
+
995
+ def initialize(mode: nil, recipient: nil)
996
+ @mode = mode
997
+ @recipient = recipient
998
+ end
999
+ end
1000
+
1001
+ class Passenger < ::Stripe::RequestParams
1002
+ # Full name of the person or entity on the flight reservation.
1003
+ attr_accessor :name
1004
+
1005
+ def initialize(name: nil)
1006
+ @name = name
1007
+ end
1008
+ end
1009
+
1010
+ class Segment < ::Stripe::RequestParams
1011
+ # The flight segment amount.
1012
+ attr_accessor :amount
1013
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1014
+ attr_accessor :arrival_airport
1015
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1016
+ attr_accessor :arrives_at
1017
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1018
+ attr_accessor :carrier
1019
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1020
+ attr_accessor :departs_at
1021
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1022
+ attr_accessor :departure_airport
1023
+ # The flight number associated with the segment
1024
+ attr_accessor :flight_number
1025
+ # The fare class for the segment.
1026
+ attr_accessor :service_class
1027
+
1028
+ def initialize(
1029
+ amount: nil,
1030
+ arrival_airport: nil,
1031
+ arrives_at: nil,
1032
+ carrier: nil,
1033
+ departs_at: nil,
1034
+ departure_airport: nil,
1035
+ flight_number: nil,
1036
+ service_class: nil
1037
+ )
1038
+ @amount = amount
1039
+ @arrival_airport = arrival_airport
1040
+ @arrives_at = arrives_at
1041
+ @carrier = carrier
1042
+ @departs_at = departs_at
1043
+ @departure_airport = departure_airport
1044
+ @flight_number = flight_number
1045
+ @service_class = service_class
1046
+ end
1047
+ end
1048
+ # Affiliate details for this purchase.
1049
+ attr_accessor :affiliate
1050
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1051
+ attr_accessor :agency_number
1052
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1053
+ attr_accessor :carrier
1054
+ # Delivery details for this purchase.
1055
+ attr_accessor :delivery
1056
+ # The name of the person or entity on the reservation.
1057
+ attr_accessor :passenger_name
1058
+ # The details of the passengers in the travel reservation.
1059
+ attr_accessor :passengers
1060
+ # The individual flight segments associated with the trip.
1061
+ attr_accessor :segments
1062
+ # The ticket number associated with the travel reservation.
1063
+ attr_accessor :ticket_number
1064
+
1065
+ def initialize(
1066
+ affiliate: nil,
1067
+ agency_number: nil,
1068
+ carrier: nil,
1069
+ delivery: nil,
1070
+ passenger_name: nil,
1071
+ passengers: nil,
1072
+ segments: nil,
1073
+ ticket_number: nil
1074
+ )
1075
+ @affiliate = affiliate
1076
+ @agency_number = agency_number
1077
+ @carrier = carrier
1078
+ @delivery = delivery
1079
+ @passenger_name = passenger_name
1080
+ @passengers = passengers
1081
+ @segments = segments
1082
+ @ticket_number = ticket_number
1083
+ end
1084
+ end
1085
+
1086
+ class FlightDatum < ::Stripe::RequestParams
1087
+ class Affiliate < ::Stripe::RequestParams
1088
+ # Affiliate partner code.
1089
+ attr_accessor :code
1090
+ # Name of affiliate partner.
1091
+ attr_accessor :name
1092
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1093
+ attr_accessor :travel_authorization_code
1094
+
1095
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1096
+ @code = code
1097
+ @name = name
1098
+ @travel_authorization_code = travel_authorization_code
1099
+ end
1100
+ end
1101
+
1102
+ class Insurance < ::Stripe::RequestParams
1103
+ # Insurance cost.
1104
+ attr_accessor :amount
1105
+ # Insurance currency.
1106
+ attr_accessor :currency
1107
+ # Insurance company name.
1108
+ attr_accessor :insurance_company_name
1109
+ # Type of insurance.
1110
+ attr_accessor :insurance_type
1111
+
1112
+ def initialize(
1113
+ amount: nil,
1114
+ currency: nil,
1115
+ insurance_company_name: nil,
1116
+ insurance_type: nil
1117
+ )
1118
+ @amount = amount
1119
+ @currency = currency
1120
+ @insurance_company_name = insurance_company_name
1121
+ @insurance_type = insurance_type
1122
+ end
1123
+ end
1124
+
1125
+ class Passenger < ::Stripe::RequestParams
1126
+ # Passenger's full name.
1127
+ attr_accessor :name
1128
+
1129
+ def initialize(name: nil)
1130
+ @name = name
1131
+ end
1132
+ end
1133
+
1134
+ class Segment < ::Stripe::RequestParams
1135
+ class Arrival < ::Stripe::RequestParams
1136
+ # Arrival airport IATA code.
1137
+ attr_accessor :airport
1138
+ # Arrival date/time.
1139
+ attr_accessor :arrives_at
1140
+ # Arrival city.
1141
+ attr_accessor :city
1142
+ # Arrival country.
1143
+ attr_accessor :country
1144
+
1145
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1146
+ @airport = airport
1147
+ @arrives_at = arrives_at
1148
+ @city = city
1149
+ @country = country
1150
+ end
1151
+ end
1152
+
1153
+ class Departure < ::Stripe::RequestParams
1154
+ # Departure airport IATA code.
1155
+ attr_accessor :airport
1156
+ # Departure city.
1157
+ attr_accessor :city
1158
+ # Departure country.
1159
+ attr_accessor :country
1160
+ # Departure date/time.
1161
+ attr_accessor :departs_at
1162
+
1163
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1164
+ @airport = airport
1165
+ @city = city
1166
+ @country = country
1167
+ @departs_at = departs_at
1168
+ end
1169
+ end
1170
+ # Segment fare amount.
1171
+ attr_accessor :amount
1172
+ # Arrival details.
1173
+ attr_accessor :arrival
1174
+ # Airline carrier code.
1175
+ attr_accessor :carrier_code
1176
+ # Carrier name.
1177
+ attr_accessor :carrier_name
1178
+ # Segment currency.
1179
+ attr_accessor :currency
1180
+ # Departure details.
1181
+ attr_accessor :departure
1182
+ # Exchange ticket number.
1183
+ attr_accessor :exchange_ticket_number
1184
+ # Fare basis code.
1185
+ attr_accessor :fare_basis_code
1186
+ # Additional fees.
1187
+ attr_accessor :fees
1188
+ # Flight number.
1189
+ attr_accessor :flight_number
1190
+ # Stopover indicator.
1191
+ attr_accessor :is_stop_over_indicator
1192
+ # Refundable ticket indicator.
1193
+ attr_accessor :refundable
1194
+ # Class of service.
1195
+ attr_accessor :service_class
1196
+ # Tax amount for segment.
1197
+ attr_accessor :tax_amount
1198
+ # Ticket number.
1199
+ attr_accessor :ticket_number
1200
+
1201
+ def initialize(
1202
+ amount: nil,
1203
+ arrival: nil,
1204
+ carrier_code: nil,
1205
+ carrier_name: nil,
1206
+ currency: nil,
1207
+ departure: nil,
1208
+ exchange_ticket_number: nil,
1209
+ fare_basis_code: nil,
1210
+ fees: nil,
1211
+ flight_number: nil,
1212
+ is_stop_over_indicator: nil,
1213
+ refundable: nil,
1214
+ service_class: nil,
1215
+ tax_amount: nil,
1216
+ ticket_number: nil
1217
+ )
1218
+ @amount = amount
1219
+ @arrival = arrival
1220
+ @carrier_code = carrier_code
1221
+ @carrier_name = carrier_name
1222
+ @currency = currency
1223
+ @departure = departure
1224
+ @exchange_ticket_number = exchange_ticket_number
1225
+ @fare_basis_code = fare_basis_code
1226
+ @fees = fees
1227
+ @flight_number = flight_number
1228
+ @is_stop_over_indicator = is_stop_over_indicator
1229
+ @refundable = refundable
1230
+ @service_class = service_class
1231
+ @tax_amount = tax_amount
1232
+ @ticket_number = ticket_number
1233
+ end
1234
+ end
1235
+
1236
+ class Total < ::Stripe::RequestParams
1237
+ class Discounts < ::Stripe::RequestParams
1238
+ # Corporate client discount code.
1239
+ attr_accessor :corporate_client_code
1240
+
1241
+ def initialize(corporate_client_code: nil)
1242
+ @corporate_client_code = corporate_client_code
1243
+ end
1244
+ end
1245
+
1246
+ class ExtraCharge < ::Stripe::RequestParams
1247
+ # Amount of additional charges.
1248
+ attr_accessor :amount
1249
+ # Type of additional charges.
1250
+ attr_accessor :type
1251
+
1252
+ def initialize(amount: nil, type: nil)
1253
+ @amount = amount
1254
+ @type = type
1255
+ end
1256
+ end
1257
+
1258
+ class Tax < ::Stripe::RequestParams
1259
+ class Tax < ::Stripe::RequestParams
1260
+ # Tax amount.
1261
+ attr_accessor :amount
1262
+ # Tax rate.
1263
+ attr_accessor :rate
1264
+ # Type of tax.
1265
+ attr_accessor :type
1266
+
1267
+ def initialize(amount: nil, rate: nil, type: nil)
1268
+ @amount = amount
1269
+ @rate = rate
1270
+ @type = type
1271
+ end
1272
+ end
1273
+ # Array of tax details.
1274
+ attr_accessor :taxes
1275
+
1276
+ def initialize(taxes: nil)
1277
+ @taxes = taxes
1278
+ end
1279
+ end
1280
+ # Total flight amount.
1281
+ attr_accessor :amount
1282
+ # Reason for credit.
1283
+ attr_accessor :credit_reason
1284
+ # Total currency.
1285
+ attr_accessor :currency
1286
+ # Discount details.
1287
+ attr_accessor :discounts
1288
+ # Additional charges.
1289
+ attr_accessor :extra_charges
1290
+ # Tax breakdown.
1291
+ attr_accessor :tax
1292
+
1293
+ def initialize(
1294
+ amount: nil,
1295
+ credit_reason: nil,
1296
+ currency: nil,
1297
+ discounts: nil,
1298
+ extra_charges: nil,
1299
+ tax: nil
1300
+ )
1301
+ @amount = amount
1302
+ @credit_reason = credit_reason
1303
+ @currency = currency
1304
+ @discounts = discounts
1305
+ @extra_charges = extra_charges
1306
+ @tax = tax
1307
+ end
1308
+ end
1309
+ # Affiliate details if applicable.
1310
+ attr_accessor :affiliate
1311
+ # Reservation reference.
1312
+ attr_accessor :booking_number
1313
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1314
+ attr_accessor :computerized_reservation_system
1315
+ # Ticket restrictions.
1316
+ attr_accessor :endorsements_and_restrictions
1317
+ # List of insurances.
1318
+ attr_accessor :insurances
1319
+ # List of passengers.
1320
+ attr_accessor :passengers
1321
+ # List of flight segments.
1322
+ attr_accessor :segments
1323
+ # Electronic ticket indicator.
1324
+ attr_accessor :ticket_electronically_issued_indicator
1325
+ # Total cost breakdown.
1326
+ attr_accessor :total
1327
+ # Type of flight transaction.
1328
+ attr_accessor :transaction_type
1329
+
1330
+ def initialize(
1331
+ affiliate: nil,
1332
+ booking_number: nil,
1333
+ computerized_reservation_system: nil,
1334
+ endorsements_and_restrictions: nil,
1335
+ insurances: nil,
1336
+ passengers: nil,
1337
+ segments: nil,
1338
+ ticket_electronically_issued_indicator: nil,
1339
+ total: nil,
1340
+ transaction_type: nil
1341
+ )
1342
+ @affiliate = affiliate
1343
+ @booking_number = booking_number
1344
+ @computerized_reservation_system = computerized_reservation_system
1345
+ @endorsements_and_restrictions = endorsements_and_restrictions
1346
+ @insurances = insurances
1347
+ @passengers = passengers
1348
+ @segments = segments
1349
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1350
+ @total = total
1351
+ @transaction_type = transaction_type
1352
+ end
1353
+ end
1354
+
1355
+ class Lodging < ::Stripe::RequestParams
1356
+ class Address < ::Stripe::RequestParams
1357
+ # City, district, suburb, town, or village.
1358
+ attr_accessor :city
1359
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1360
+ attr_accessor :country
1361
+ # Address line 1, such as the street, PO Box, or company name.
1362
+ attr_accessor :line1
1363
+ # Address line 2, such as the apartment, suite, unit, or building.
1364
+ attr_accessor :line2
1365
+ # ZIP or postal code.
1366
+ attr_accessor :postal_code
1367
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1368
+ attr_accessor :state
1369
+
1370
+ def initialize(
1371
+ city: nil,
1372
+ country: nil,
1373
+ line1: nil,
1374
+ line2: nil,
1375
+ postal_code: nil,
1376
+ state: nil
1377
+ )
1378
+ @city = city
1379
+ @country = country
1380
+ @line1 = line1
1381
+ @line2 = line2
1382
+ @postal_code = postal_code
1383
+ @state = state
1384
+ end
1385
+ end
1386
+
1387
+ class Affiliate < ::Stripe::RequestParams
1388
+ # The name of the affiliate that originated the purchase.
1389
+ attr_accessor :name
1390
+
1391
+ def initialize(name: nil)
1392
+ @name = name
1393
+ end
1394
+ end
1395
+
1396
+ class Delivery < ::Stripe::RequestParams
1397
+ class Recipient < ::Stripe::RequestParams
1398
+ # The email of the recipient the ticket is delivered to.
1399
+ attr_accessor :email
1400
+ # The name of the recipient the ticket is delivered to.
1401
+ attr_accessor :name
1402
+ # The phone number of the recipient the ticket is delivered to.
1403
+ attr_accessor :phone
1404
+
1405
+ def initialize(email: nil, name: nil, phone: nil)
1406
+ @email = email
1407
+ @name = name
1408
+ @phone = phone
1409
+ end
1410
+ end
1411
+ # The delivery method for the payment
1412
+ attr_accessor :mode
1413
+ # Details of the recipient.
1414
+ attr_accessor :recipient
1415
+
1416
+ def initialize(mode: nil, recipient: nil)
1417
+ @mode = mode
1418
+ @recipient = recipient
1419
+ end
1420
+ end
1421
+
1422
+ class Passenger < ::Stripe::RequestParams
1423
+ # Full name of the person or entity on the lodging reservation.
1424
+ attr_accessor :name
1425
+
1426
+ def initialize(name: nil)
1427
+ @name = name
1428
+ end
1429
+ end
1430
+ # The lodging location's address.
1431
+ attr_accessor :address
1432
+ # The number of adults on the booking
1433
+ attr_accessor :adults
1434
+ # Affiliate details for this purchase.
1435
+ attr_accessor :affiliate
1436
+ # The booking number associated with the lodging reservation.
1437
+ attr_accessor :booking_number
1438
+ # The lodging category
1439
+ attr_accessor :category
1440
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1441
+ attr_accessor :checkin_at
1442
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1443
+ attr_accessor :checkout_at
1444
+ # The customer service phone number of the lodging company.
1445
+ attr_accessor :customer_service_phone_number
1446
+ # The daily lodging room rate.
1447
+ attr_accessor :daily_room_rate_amount
1448
+ # Delivery details for this purchase.
1449
+ attr_accessor :delivery
1450
+ # List of additional charges being billed.
1451
+ attr_accessor :extra_charges
1452
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1453
+ attr_accessor :fire_safety_act_compliance
1454
+ # The name of the lodging location.
1455
+ attr_accessor :name
1456
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1457
+ attr_accessor :no_show
1458
+ # The number of rooms on the booking
1459
+ attr_accessor :number_of_rooms
1460
+ # The details of the passengers in the travel reservation
1461
+ attr_accessor :passengers
1462
+ # The phone number of the lodging location.
1463
+ attr_accessor :property_phone_number
1464
+ # The room class for this purchase.
1465
+ attr_accessor :room_class
1466
+ # The number of room nights
1467
+ attr_accessor :room_nights
1468
+ # The total tax amount associating with the room reservation.
1469
+ attr_accessor :total_room_tax_amount
1470
+ # The total tax amount
1471
+ attr_accessor :total_tax_amount
1472
+
1473
+ def initialize(
1474
+ address: nil,
1475
+ adults: nil,
1476
+ affiliate: nil,
1477
+ booking_number: nil,
1478
+ category: nil,
1479
+ checkin_at: nil,
1480
+ checkout_at: nil,
1481
+ customer_service_phone_number: nil,
1482
+ daily_room_rate_amount: nil,
1483
+ delivery: nil,
1484
+ extra_charges: nil,
1485
+ fire_safety_act_compliance: nil,
1486
+ name: nil,
1487
+ no_show: nil,
1488
+ number_of_rooms: nil,
1489
+ passengers: nil,
1490
+ property_phone_number: nil,
1491
+ room_class: nil,
1492
+ room_nights: nil,
1493
+ total_room_tax_amount: nil,
1494
+ total_tax_amount: nil
1495
+ )
1496
+ @address = address
1497
+ @adults = adults
1498
+ @affiliate = affiliate
1499
+ @booking_number = booking_number
1500
+ @category = category
1501
+ @checkin_at = checkin_at
1502
+ @checkout_at = checkout_at
1503
+ @customer_service_phone_number = customer_service_phone_number
1504
+ @daily_room_rate_amount = daily_room_rate_amount
1505
+ @delivery = delivery
1506
+ @extra_charges = extra_charges
1507
+ @fire_safety_act_compliance = fire_safety_act_compliance
1508
+ @name = name
1509
+ @no_show = no_show
1510
+ @number_of_rooms = number_of_rooms
1511
+ @passengers = passengers
1512
+ @property_phone_number = property_phone_number
1513
+ @room_class = room_class
1514
+ @room_nights = room_nights
1515
+ @total_room_tax_amount = total_room_tax_amount
1516
+ @total_tax_amount = total_tax_amount
1517
+ end
1518
+ end
1519
+
1520
+ class LodgingDatum < ::Stripe::RequestParams
1521
+ class Accommodation < ::Stripe::RequestParams
1522
+ # Type of accommodation.
1523
+ attr_accessor :accommodation_type
1524
+ # Bed type.
1525
+ attr_accessor :bed_type
1526
+ # Daily accommodation rate in cents.
1527
+ attr_accessor :daily_rate_amount
1528
+ # Number of nights.
1529
+ attr_accessor :nights
1530
+ # Number of rooms, cabanas, apartments, and so on.
1531
+ attr_accessor :number_of_rooms
1532
+ # Rate type.
1533
+ attr_accessor :rate_type
1534
+ # Whether smoking is allowed.
1535
+ attr_accessor :smoking_indicator
1536
+
1537
+ def initialize(
1538
+ accommodation_type: nil,
1539
+ bed_type: nil,
1540
+ daily_rate_amount: nil,
1541
+ nights: nil,
1542
+ number_of_rooms: nil,
1543
+ rate_type: nil,
1544
+ smoking_indicator: nil
1545
+ )
1546
+ @accommodation_type = accommodation_type
1547
+ @bed_type = bed_type
1548
+ @daily_rate_amount = daily_rate_amount
1549
+ @nights = nights
1550
+ @number_of_rooms = number_of_rooms
1551
+ @rate_type = rate_type
1552
+ @smoking_indicator = smoking_indicator
1553
+ end
1554
+ end
1555
+
1556
+ class Affiliate < ::Stripe::RequestParams
1557
+ # Affiliate partner code.
1558
+ attr_accessor :code
1559
+ # Affiliate partner name.
1560
+ attr_accessor :name
1561
+
1562
+ def initialize(code: nil, name: nil)
1563
+ @code = code
1564
+ @name = name
1565
+ end
1566
+ end
1567
+
1568
+ class Guest < ::Stripe::RequestParams
1569
+ # Guest's full name.
1570
+ attr_accessor :name
1571
+
1572
+ def initialize(name: nil)
1573
+ @name = name
1574
+ end
1575
+ end
1576
+
1577
+ class Host < ::Stripe::RequestParams
1578
+ class Address < ::Stripe::RequestParams
1579
+ # City, district, suburb, town, or village.
1580
+ attr_accessor :city
1581
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1582
+ attr_accessor :country
1583
+ # Address line 1, such as the street, PO Box, or company name.
1584
+ attr_accessor :line1
1585
+ # Address line 2, such as the apartment, suite, unit, or building.
1586
+ attr_accessor :line2
1587
+ # ZIP or postal code.
1588
+ attr_accessor :postal_code
1589
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1590
+ attr_accessor :state
1591
+
1592
+ def initialize(
1593
+ city: nil,
1594
+ country: nil,
1595
+ line1: nil,
1596
+ line2: nil,
1597
+ postal_code: nil,
1598
+ state: nil
42
1599
  )
43
- @image_url = image_url
44
- @product_url = product_url
45
- @reference = reference
46
- @subscription_reference = subscription_reference
1600
+ @city = city
1601
+ @country = country
1602
+ @line1 = line1
1603
+ @line2 = line2
1604
+ @postal_code = postal_code
1605
+ @state = state
47
1606
  end
48
1607
  end
1608
+ # Address of the host.
1609
+ attr_accessor :address
1610
+ # Host's country of domicile.
1611
+ attr_accessor :country_of_domicile
1612
+ # Reference number for the host.
1613
+ attr_accessor :host_reference
1614
+ # Type of host.
1615
+ attr_accessor :host_type
1616
+ # Name of the lodging property or host.
1617
+ attr_accessor :name
1618
+ # Total number of reservations for the host.
1619
+ attr_accessor :number_of_reservations
1620
+ # Property phone number.
1621
+ attr_accessor :property_phone_number
1622
+ # Host's registration date.
1623
+ attr_accessor :registered_at
49
1624
 
50
- class Paypal < ::Stripe::RequestParams
51
- # Type of the line item.
52
- attr_accessor :category
53
- # Description of the line item.
54
- attr_accessor :description
55
- # The Stripe account ID of the connected account that sells the item.
56
- attr_accessor :sold_by
1625
+ def initialize(
1626
+ address: nil,
1627
+ country_of_domicile: nil,
1628
+ host_reference: nil,
1629
+ host_type: nil,
1630
+ name: nil,
1631
+ number_of_reservations: nil,
1632
+ property_phone_number: nil,
1633
+ registered_at: nil
1634
+ )
1635
+ @address = address
1636
+ @country_of_domicile = country_of_domicile
1637
+ @host_reference = host_reference
1638
+ @host_type = host_type
1639
+ @name = name
1640
+ @number_of_reservations = number_of_reservations
1641
+ @property_phone_number = property_phone_number
1642
+ @registered_at = registered_at
1643
+ end
1644
+ end
57
1645
 
58
- def initialize(category: nil, description: nil, sold_by: nil)
59
- @category = category
60
- @description = description
61
- @sold_by = sold_by
1646
+ class Insurance < ::Stripe::RequestParams
1647
+ # Price of the insurance coverage in cents.
1648
+ attr_accessor :amount
1649
+ # Currency of the insurance amount.
1650
+ attr_accessor :currency
1651
+ # Name of the insurance company.
1652
+ attr_accessor :insurance_company_name
1653
+ # Type of insurance coverage.
1654
+ attr_accessor :insurance_type
1655
+
1656
+ def initialize(
1657
+ amount: nil,
1658
+ currency: nil,
1659
+ insurance_company_name: nil,
1660
+ insurance_type: nil
1661
+ )
1662
+ @amount = amount
1663
+ @currency = currency
1664
+ @insurance_company_name = insurance_company_name
1665
+ @insurance_type = insurance_type
1666
+ end
1667
+ end
1668
+
1669
+ class Total < ::Stripe::RequestParams
1670
+ class Discounts < ::Stripe::RequestParams
1671
+ # Corporate client discount code.
1672
+ attr_accessor :corporate_client_code
1673
+ # Coupon code.
1674
+ attr_accessor :coupon
1675
+
1676
+ def initialize(corporate_client_code: nil, coupon: nil)
1677
+ @corporate_client_code = corporate_client_code
1678
+ @coupon = coupon
62
1679
  end
63
1680
  end
64
- # This sub-hash contains line item details that are specific to `card` payment method."
65
- attr_accessor :card
66
- # This sub-hash contains line item details that are specific to `card_present` payment method."
67
- attr_accessor :card_present
68
- # This sub-hash contains line item details that are specific to `klarna` payment method."
69
- attr_accessor :klarna
70
- # This sub-hash contains line item details that are specific to `paypal` payment method."
71
- attr_accessor :paypal
72
1681
 
73
- def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
74
- @card = card
75
- @card_present = card_present
76
- @klarna = klarna
77
- @paypal = paypal
1682
+ class ExtraCharge < ::Stripe::RequestParams
1683
+ # Amount of the extra charge in cents.
1684
+ attr_accessor :amount
1685
+ # Type of extra charge.
1686
+ attr_accessor :type
1687
+
1688
+ def initialize(amount: nil, type: nil)
1689
+ @amount = amount
1690
+ @type = type
1691
+ end
78
1692
  end
79
- end
80
1693
 
81
- class Tax < ::Stripe::RequestParams
82
- # The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/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.
85
- attr_accessor :total_tax_amount
1694
+ class Tax < ::Stripe::RequestParams
1695
+ class Tax < ::Stripe::RequestParams
1696
+ # Tax amount in cents.
1697
+ attr_accessor :amount
1698
+ # Tax rate.
1699
+ attr_accessor :rate
1700
+ # Type of tax applied.
1701
+ attr_accessor :type
1702
+
1703
+ def initialize(amount: nil, rate: nil, type: nil)
1704
+ @amount = amount
1705
+ @rate = rate
1706
+ @type = type
1707
+ end
1708
+ end
1709
+ # Indicates whether the transaction is tax exempt.
1710
+ attr_accessor :tax_exempt_indicator
1711
+ # Tax details.
1712
+ attr_accessor :taxes
1713
+
1714
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1715
+ @tax_exempt_indicator = tax_exempt_indicator
1716
+ @taxes = taxes
1717
+ end
1718
+ end
1719
+ # Total price of the lodging reservation in cents.
1720
+ attr_accessor :amount
1721
+ # Cash advances in cents.
1722
+ attr_accessor :cash_advances
1723
+ # Currency of the total amount.
1724
+ attr_accessor :currency
1725
+ # Discount details for the lodging.
1726
+ attr_accessor :discounts
1727
+ # Additional charges for the lodging.
1728
+ attr_accessor :extra_charges
1729
+ # Prepaid amount in cents.
1730
+ attr_accessor :prepaid_amount
1731
+ # Tax breakdown for the lodging reservation.
1732
+ attr_accessor :tax
86
1733
 
87
- def initialize(total_tax_amount: nil)
88
- @total_tax_amount = total_tax_amount
1734
+ def initialize(
1735
+ amount: nil,
1736
+ cash_advances: nil,
1737
+ currency: nil,
1738
+ discounts: nil,
1739
+ extra_charges: nil,
1740
+ prepaid_amount: nil,
1741
+ tax: nil
1742
+ )
1743
+ @amount = amount
1744
+ @cash_advances = cash_advances
1745
+ @currency = currency
1746
+ @discounts = discounts
1747
+ @extra_charges = extra_charges
1748
+ @prepaid_amount = prepaid_amount
1749
+ @tax = tax
89
1750
  end
90
1751
  end
91
- # The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
92
- #
93
- # This field is mutually exclusive with the `amount_details[discount_amount]` field.
94
- attr_accessor :discount_amount
95
- # Payment method-specific information for line items.
96
- attr_accessor :payment_method_options
97
- # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
98
- attr_accessor :product_code
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.
102
- attr_accessor :product_name
103
- # The quantity of items. Required for L3 rates. An integer greater than 0.
104
- attr_accessor :quantity
105
- # Contains information about the tax on the item.
106
- attr_accessor :tax
107
- # The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
108
- attr_accessor :unit_cost
109
- # A unit of measure for the line item, such as gallons, feet, meters, etc.
110
- attr_accessor :unit_of_measure
1752
+ # Accommodation details for the lodging.
1753
+ attr_accessor :accommodation
1754
+ # Affiliate details if applicable.
1755
+ attr_accessor :affiliate
1756
+ # Booking confirmation number for the lodging.
1757
+ attr_accessor :booking_number
1758
+ # Check-in date.
1759
+ attr_accessor :checkin_at
1760
+ # Check-out date.
1761
+ attr_accessor :checkout_at
1762
+ # Customer service phone number for the lodging company.
1763
+ attr_accessor :customer_service_phone_number
1764
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1765
+ attr_accessor :fire_safety_act_compliance_indicator
1766
+ # List of guests for the lodging.
1767
+ attr_accessor :guests
1768
+ # Host details for the lodging.
1769
+ attr_accessor :host
1770
+ # List of insurances for the lodging.
1771
+ attr_accessor :insurances
1772
+ # Whether the renter is a no-show.
1773
+ attr_accessor :no_show_indicator
1774
+ # Renter ID number for the lodging.
1775
+ attr_accessor :renter_id_number
1776
+ # Renter name for the lodging.
1777
+ attr_accessor :renter_name
1778
+ # Total details for the lodging.
1779
+ attr_accessor :total
111
1780
 
112
1781
  def initialize(
113
- discount_amount: nil,
114
- payment_method_options: nil,
115
- product_code: nil,
116
- product_name: nil,
117
- quantity: nil,
118
- tax: nil,
119
- unit_cost: nil,
120
- unit_of_measure: nil
1782
+ accommodation: nil,
1783
+ affiliate: nil,
1784
+ booking_number: nil,
1785
+ checkin_at: nil,
1786
+ checkout_at: nil,
1787
+ customer_service_phone_number: nil,
1788
+ fire_safety_act_compliance_indicator: nil,
1789
+ guests: nil,
1790
+ host: nil,
1791
+ insurances: nil,
1792
+ no_show_indicator: nil,
1793
+ renter_id_number: nil,
1794
+ renter_name: nil,
1795
+ total: nil
121
1796
  )
122
- @discount_amount = discount_amount
123
- @payment_method_options = payment_method_options
124
- @product_code = product_code
125
- @product_name = product_name
126
- @quantity = quantity
127
- @tax = tax
128
- @unit_cost = unit_cost
129
- @unit_of_measure = unit_of_measure
130
- end
131
- end
132
-
133
- class Shipping < ::Stripe::RequestParams
134
- # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
- attr_accessor :amount
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.
137
- attr_accessor :from_postal_code
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.
139
- attr_accessor :to_postal_code
140
-
141
- def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
142
- @amount = amount
143
- @from_postal_code = from_postal_code
144
- @to_postal_code = to_postal_code
1797
+ @accommodation = accommodation
1798
+ @affiliate = affiliate
1799
+ @booking_number = booking_number
1800
+ @checkin_at = checkin_at
1801
+ @checkout_at = checkout_at
1802
+ @customer_service_phone_number = customer_service_phone_number
1803
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1804
+ @guests = guests
1805
+ @host = host
1806
+ @insurances = insurances
1807
+ @no_show_indicator = no_show_indicator
1808
+ @renter_id_number = renter_id_number
1809
+ @renter_name = renter_name
1810
+ @total = total
145
1811
  end
146
1812
  end
147
1813
 
148
- class Tax < ::Stripe::RequestParams
149
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/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.
152
- attr_accessor :total_tax_amount
1814
+ class Subscription < ::Stripe::RequestParams
1815
+ class Affiliate < ::Stripe::RequestParams
1816
+ # The name of the affiliate that originated the purchase.
1817
+ attr_accessor :name
153
1818
 
154
- def initialize(total_tax_amount: nil)
155
- @total_tax_amount = total_tax_amount
1819
+ def initialize(name: nil)
1820
+ @name = name
1821
+ end
156
1822
  end
157
- end
158
- # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
159
- #
160
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
- attr_accessor :discount_amount
162
- # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
163
- #
164
- # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
165
- #
166
- # For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks.
167
- attr_accessor :enforce_arithmetic_validation
168
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
169
- attr_accessor :line_items
170
- # Contains information about the shipping portion of the amount.
171
- attr_accessor :shipping
172
- # Contains information about the tax portion of the amount.
173
- attr_accessor :tax
174
-
175
- def initialize(
176
- discount_amount: nil,
177
- enforce_arithmetic_validation: nil,
178
- line_items: nil,
179
- shipping: nil,
180
- tax: nil
181
- )
182
- @discount_amount = discount_amount
183
- @enforce_arithmetic_validation = enforce_arithmetic_validation
184
- @line_items = line_items
185
- @shipping = shipping
186
- @tax = tax
187
- end
188
- end
189
1823
 
190
- class Hooks < ::Stripe::RequestParams
191
- class Inputs < ::Stripe::RequestParams
192
- class Tax < ::Stripe::RequestParams
193
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
194
- attr_accessor :calculation
1824
+ class BillingInterval < ::Stripe::RequestParams
1825
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1826
+ attr_accessor :count
1827
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1828
+ attr_accessor :interval
195
1829
 
196
- def initialize(calculation: nil)
197
- @calculation = calculation
1830
+ def initialize(count: nil, interval: nil)
1831
+ @count = count
1832
+ @interval = interval
198
1833
  end
199
1834
  end
200
- # Tax arguments for automations
201
- attr_accessor :tax
1835
+ # Affiliate details for this purchase.
1836
+ attr_accessor :affiliate
1837
+ # Info whether the subscription will be auto renewed upon expiry.
1838
+ attr_accessor :auto_renewal
1839
+ # Subscription billing details for this purchase.
1840
+ attr_accessor :billing_interval
1841
+ # Subscription end time. Measured in seconds since the Unix epoch.
1842
+ attr_accessor :ends_at
1843
+ # Name of the product on subscription. e.g. Apple Music Subscription
1844
+ attr_accessor :name
1845
+ # Subscription start time. Measured in seconds since the Unix epoch.
1846
+ attr_accessor :starts_at
202
1847
 
203
- def initialize(tax: nil)
204
- @tax = tax
1848
+ def initialize(
1849
+ affiliate: nil,
1850
+ auto_renewal: nil,
1851
+ billing_interval: nil,
1852
+ ends_at: nil,
1853
+ name: nil,
1854
+ starts_at: nil
1855
+ )
1856
+ @affiliate = affiliate
1857
+ @auto_renewal = auto_renewal
1858
+ @billing_interval = billing_interval
1859
+ @ends_at = ends_at
1860
+ @name = name
1861
+ @starts_at = starts_at
205
1862
  end
206
1863
  end
207
- # Arguments passed in automations
208
- attr_accessor :inputs
209
-
210
- def initialize(inputs: nil)
211
- @inputs = inputs
212
- end
213
- end
214
-
215
- class PaymentDetails < ::Stripe::RequestParams
1864
+ # Benefit details for this PaymentIntent
1865
+ attr_accessor :benefit
1866
+ # Car rental details for this PaymentIntent.
1867
+ attr_accessor :car_rental
1868
+ # Car rental data for this PaymentIntent.
1869
+ attr_accessor :car_rental_data
216
1870
  # A unique value to identify the customer. This field is available only for card payments.
217
1871
  #
218
1872
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
219
1873
  attr_accessor :customer_reference
1874
+ # Event details for this PaymentIntent
1875
+ attr_accessor :event_details
1876
+ # Flight reservation details for this PaymentIntent
1877
+ attr_accessor :flight
1878
+ # Flight data for this PaymentIntent.
1879
+ attr_accessor :flight_data
1880
+ # Lodging reservation details for this PaymentIntent
1881
+ attr_accessor :lodging
1882
+ # Lodging data for this PaymentIntent.
1883
+ attr_accessor :lodging_data
220
1884
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
221
1885
  #
222
1886
  # 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`.
223
1887
  #
224
1888
  # 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.
225
1889
  attr_accessor :order_reference
1890
+ # Subscription details for this PaymentIntent
1891
+ attr_accessor :subscription
226
1892
 
227
- def initialize(customer_reference: nil, order_reference: nil)
1893
+ def initialize(
1894
+ benefit: nil,
1895
+ car_rental: nil,
1896
+ car_rental_data: nil,
1897
+ customer_reference: nil,
1898
+ event_details: nil,
1899
+ flight: nil,
1900
+ flight_data: nil,
1901
+ lodging: nil,
1902
+ lodging_data: nil,
1903
+ order_reference: nil,
1904
+ subscription: nil
1905
+ )
1906
+ @benefit = benefit
1907
+ @car_rental = car_rental
1908
+ @car_rental_data = car_rental_data
228
1909
  @customer_reference = customer_reference
1910
+ @event_details = event_details
1911
+ @flight = flight
1912
+ @flight_data = flight_data
1913
+ @lodging = lodging
1914
+ @lodging_data = lodging_data
229
1915
  @order_reference = order_reference
1916
+ @subscription = subscription
230
1917
  end
231
1918
  end
232
1919
 
@@ -367,8 +2054,18 @@ module Stripe
367
2054
  end
368
2055
 
369
2056
  class Giropay < ::Stripe::RequestParams; end
2057
+ class Gopay < ::Stripe::RequestParams; end
370
2058
  class Grabpay < ::Stripe::RequestParams; end
371
2059
 
2060
+ class IdBankTransfer < ::Stripe::RequestParams
2061
+ # Bank where the account is held.
2062
+ attr_accessor :bank
2063
+
2064
+ def initialize(bank: nil)
2065
+ @bank = bank
2066
+ end
2067
+ end
2068
+
372
2069
  class Ideal < ::Stripe::RequestParams
373
2070
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
374
2071
  attr_accessor :bank
@@ -466,6 +2163,7 @@ module Stripe
466
2163
  class Payco < ::Stripe::RequestParams; end
467
2164
  class Paynow < ::Stripe::RequestParams; end
468
2165
  class Paypal < ::Stripe::RequestParams; end
2166
+ class Paypay < ::Stripe::RequestParams; end
469
2167
 
470
2168
  class Payto < ::Stripe::RequestParams
471
2169
  # The account number for the bank account.
@@ -484,6 +2182,7 @@ module Stripe
484
2182
 
485
2183
  class Pix < ::Stripe::RequestParams; end
486
2184
  class Promptpay < ::Stripe::RequestParams; end
2185
+ class Qris < ::Stripe::RequestParams; end
487
2186
 
488
2187
  class RadarOptions < ::Stripe::RequestParams
489
2188
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -494,6 +2193,29 @@ module Stripe
494
2193
  end
495
2194
  end
496
2195
 
2196
+ class Rechnung < ::Stripe::RequestParams
2197
+ class Dob < ::Stripe::RequestParams
2198
+ # The day of birth, between 1 and 31.
2199
+ attr_accessor :day
2200
+ # The month of birth, between 1 and 12.
2201
+ attr_accessor :month
2202
+ # The four-digit year of birth.
2203
+ attr_accessor :year
2204
+
2205
+ def initialize(day: nil, month: nil, year: nil)
2206
+ @day = day
2207
+ @month = month
2208
+ @year = year
2209
+ end
2210
+ end
2211
+ # Customer's date of birth
2212
+ attr_accessor :dob
2213
+
2214
+ def initialize(dob: nil)
2215
+ @dob = dob
2216
+ end
2217
+ end
2218
+
497
2219
  class RevolutPay < ::Stripe::RequestParams; end
498
2220
  class SamsungPay < ::Stripe::RequestParams; end
499
2221
  class Satispay < ::Stripe::RequestParams; end
@@ -507,6 +2229,8 @@ module Stripe
507
2229
  end
508
2230
  end
509
2231
 
2232
+ class Shopeepay < ::Stripe::RequestParams; end
2233
+
510
2234
  class Sofort < ::Stripe::RequestParams
511
2235
  # Two-letter ISO code representing the country the bank account is located in.
512
2236
  attr_accessor :country
@@ -516,6 +2240,18 @@ module Stripe
516
2240
  end
517
2241
  end
518
2242
 
2243
+ class StripeBalance < ::Stripe::RequestParams
2244
+ # The connected account ID whose Stripe balance to use as the source of payment
2245
+ attr_accessor :account
2246
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2247
+ attr_accessor :source_type
2248
+
2249
+ def initialize(account: nil, source_type: nil)
2250
+ @account = account
2251
+ @source_type = source_type
2252
+ end
2253
+ end
2254
+
519
2255
  class Swish < ::Stripe::RequestParams; end
520
2256
  class Twint < ::Stripe::RequestParams; end
521
2257
 
@@ -588,8 +2324,12 @@ module Stripe
588
2324
  attr_accessor :fpx
589
2325
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
590
2326
  attr_accessor :giropay
2327
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2328
+ attr_accessor :gopay
591
2329
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
592
2330
  attr_accessor :grabpay
2331
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2332
+ attr_accessor :id_bank_transfer
593
2333
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
594
2334
  attr_accessor :ideal
595
2335
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -628,14 +2368,20 @@ module Stripe
628
2368
  attr_accessor :paynow
629
2369
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
630
2370
  attr_accessor :paypal
2371
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2372
+ attr_accessor :paypay
631
2373
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
632
2374
  attr_accessor :payto
633
2375
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
634
2376
  attr_accessor :pix
635
2377
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
636
2378
  attr_accessor :promptpay
2379
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2380
+ attr_accessor :qris
637
2381
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
638
2382
  attr_accessor :radar_options
2383
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2384
+ attr_accessor :rechnung
639
2385
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
640
2386
  attr_accessor :revolut_pay
641
2387
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -644,8 +2390,12 @@ module Stripe
644
2390
  attr_accessor :satispay
645
2391
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
646
2392
  attr_accessor :sepa_debit
2393
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2394
+ attr_accessor :shopeepay
647
2395
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
648
2396
  attr_accessor :sofort
2397
+ # This hash contains details about the Stripe balance payment method.
2398
+ attr_accessor :stripe_balance
649
2399
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
650
2400
  attr_accessor :swish
651
2401
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -680,7 +2430,9 @@ module Stripe
680
2430
  eps: nil,
681
2431
  fpx: nil,
682
2432
  giropay: nil,
2433
+ gopay: nil,
683
2434
  grabpay: nil,
2435
+ id_bank_transfer: nil,
684
2436
  ideal: nil,
685
2437
  interac_present: nil,
686
2438
  kakao_pay: nil,
@@ -700,15 +2452,20 @@ module Stripe
700
2452
  payco: nil,
701
2453
  paynow: nil,
702
2454
  paypal: nil,
2455
+ paypay: nil,
703
2456
  payto: nil,
704
2457
  pix: nil,
705
2458
  promptpay: nil,
2459
+ qris: nil,
706
2460
  radar_options: nil,
2461
+ rechnung: nil,
707
2462
  revolut_pay: nil,
708
2463
  samsung_pay: nil,
709
2464
  satispay: nil,
710
2465
  sepa_debit: nil,
2466
+ shopeepay: nil,
711
2467
  sofort: nil,
2468
+ stripe_balance: nil,
712
2469
  swish: nil,
713
2470
  twint: nil,
714
2471
  type: nil,
@@ -736,7 +2493,9 @@ module Stripe
736
2493
  @eps = eps
737
2494
  @fpx = fpx
738
2495
  @giropay = giropay
2496
+ @gopay = gopay
739
2497
  @grabpay = grabpay
2498
+ @id_bank_transfer = id_bank_transfer
740
2499
  @ideal = ideal
741
2500
  @interac_present = interac_present
742
2501
  @kakao_pay = kakao_pay
@@ -756,15 +2515,20 @@ module Stripe
756
2515
  @payco = payco
757
2516
  @paynow = paynow
758
2517
  @paypal = paypal
2518
+ @paypay = paypay
759
2519
  @payto = payto
760
2520
  @pix = pix
761
2521
  @promptpay = promptpay
2522
+ @qris = qris
762
2523
  @radar_options = radar_options
2524
+ @rechnung = rechnung
763
2525
  @revolut_pay = revolut_pay
764
2526
  @samsung_pay = samsung_pay
765
2527
  @satispay = satispay
766
2528
  @sepa_debit = sepa_debit
2529
+ @shopeepay = shopeepay
767
2530
  @sofort = sofort
2531
+ @stripe_balance = stripe_balance
768
2532
  @swish = swish
769
2533
  @twint = twint
770
2534
  @type = type
@@ -1135,6 +2899,48 @@ module Stripe
1135
2899
  end
1136
2900
  end
1137
2901
 
2902
+ class StatementDetails < ::Stripe::RequestParams
2903
+ class Address < ::Stripe::RequestParams
2904
+ # City, district, suburb, town, or village.
2905
+ attr_accessor :city
2906
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2907
+ attr_accessor :country
2908
+ # Address line 1, such as the street, PO Box, or company name.
2909
+ attr_accessor :line1
2910
+ # Address line 2, such as the apartment, suite, unit, or building.
2911
+ attr_accessor :line2
2912
+ # ZIP or postal code.
2913
+ attr_accessor :postal_code
2914
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2915
+ attr_accessor :state
2916
+
2917
+ def initialize(
2918
+ city: nil,
2919
+ country: nil,
2920
+ line1: nil,
2921
+ line2: nil,
2922
+ postal_code: nil,
2923
+ state: nil
2924
+ )
2925
+ @city = city
2926
+ @country = country
2927
+ @line1 = line1
2928
+ @line2 = line2
2929
+ @postal_code = postal_code
2930
+ @state = state
2931
+ end
2932
+ end
2933
+ # Please pass in an address that is within your Stripe user account country
2934
+ attr_accessor :address
2935
+ # Phone number (e.g., a toll-free number that customers can call)
2936
+ attr_accessor :phone
2937
+
2938
+ def initialize(address: nil, phone: nil)
2939
+ @address = address
2940
+ @phone = phone
2941
+ end
2942
+ end
2943
+
1138
2944
  class ThreeDSecure < ::Stripe::RequestParams
1139
2945
  class NetworkOptions < ::Stripe::RequestParams
1140
2946
  class CartesBancaires < ::Stripe::RequestParams
@@ -1229,6 +3035,8 @@ module Stripe
1229
3035
  attr_accessor :moto
1230
3036
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
1231
3037
  attr_accessor :network
3038
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3039
+ attr_accessor :request_decremental_authorization
1232
3040
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1233
3041
  attr_accessor :request_extended_authorization
1234
3042
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1237,6 +3045,8 @@ module Stripe
1237
3045
  attr_accessor :request_multicapture
1238
3046
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1239
3047
  attr_accessor :request_overcapture
3048
+ # Request partial authorization on this PaymentIntent.
3049
+ attr_accessor :request_partial_authorization
1240
3050
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1241
3051
  attr_accessor :request_three_d_secure
1242
3052
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -1255,6 +3065,8 @@ module Stripe
1255
3065
  attr_accessor :statement_descriptor_suffix_kana
1256
3066
  # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1257
3067
  attr_accessor :statement_descriptor_suffix_kanji
3068
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3069
+ attr_accessor :statement_details
1258
3070
  # If 3D Secure authentication was performed with a third-party provider,
1259
3071
  # the authentication details to use for this payment.
1260
3072
  attr_accessor :three_d_secure
@@ -1266,15 +3078,18 @@ module Stripe
1266
3078
  mandate_options: nil,
1267
3079
  moto: nil,
1268
3080
  network: nil,
3081
+ request_decremental_authorization: nil,
1269
3082
  request_extended_authorization: nil,
1270
3083
  request_incremental_authorization: nil,
1271
3084
  request_multicapture: nil,
1272
3085
  request_overcapture: nil,
3086
+ request_partial_authorization: nil,
1273
3087
  request_three_d_secure: nil,
1274
3088
  require_cvc_recollection: nil,
1275
3089
  setup_future_usage: nil,
1276
3090
  statement_descriptor_suffix_kana: nil,
1277
3091
  statement_descriptor_suffix_kanji: nil,
3092
+ statement_details: nil,
1278
3093
  three_d_secure: nil
1279
3094
  )
1280
3095
  @capture_method = capture_method
@@ -1283,15 +3098,18 @@ module Stripe
1283
3098
  @mandate_options = mandate_options
1284
3099
  @moto = moto
1285
3100
  @network = network
3101
+ @request_decremental_authorization = request_decremental_authorization
1286
3102
  @request_extended_authorization = request_extended_authorization
1287
3103
  @request_incremental_authorization = request_incremental_authorization
1288
3104
  @request_multicapture = request_multicapture
1289
3105
  @request_overcapture = request_overcapture
3106
+ @request_partial_authorization = request_partial_authorization
1290
3107
  @request_three_d_secure = request_three_d_secure
1291
3108
  @require_cvc_recollection = require_cvc_recollection
1292
3109
  @setup_future_usage = setup_future_usage
1293
3110
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1294
3111
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3112
+ @statement_details = statement_details
1295
3113
  @three_d_secure = three_d_secure
1296
3114
  end
1297
3115
  end
@@ -1412,14 +3230,31 @@ module Stripe
1412
3230
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1413
3231
  attr_accessor :setup_future_usage
1414
3232
 
1415
- def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
1416
- @bank_transfer = bank_transfer
1417
- @funding_type = funding_type
3233
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
3234
+ @bank_transfer = bank_transfer
3235
+ @funding_type = funding_type
3236
+ @setup_future_usage = setup_future_usage
3237
+ end
3238
+ end
3239
+
3240
+ class Eps < ::Stripe::RequestParams
3241
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3242
+ #
3243
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3244
+ #
3245
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3246
+ #
3247
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3248
+ #
3249
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3250
+ attr_accessor :setup_future_usage
3251
+
3252
+ def initialize(setup_future_usage: nil)
1418
3253
  @setup_future_usage = setup_future_usage
1419
3254
  end
1420
3255
  end
1421
3256
 
1422
- class Eps < ::Stripe::RequestParams
3257
+ class Fpx < ::Stripe::RequestParams
1423
3258
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1424
3259
  #
1425
3260
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1436,7 +3271,7 @@ module Stripe
1436
3271
  end
1437
3272
  end
1438
3273
 
1439
- class Fpx < ::Stripe::RequestParams
3274
+ class Giropay < ::Stripe::RequestParams
1440
3275
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1441
3276
  #
1442
3277
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1453,7 +3288,7 @@ module Stripe
1453
3288
  end
1454
3289
  end
1455
3290
 
1456
- class Giropay < ::Stripe::RequestParams
3291
+ class Gopay < ::Stripe::RequestParams
1457
3292
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1458
3293
  #
1459
3294
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1487,6 +3322,29 @@ module Stripe
1487
3322
  end
1488
3323
  end
1489
3324
 
3325
+ class IdBankTransfer < ::Stripe::RequestParams
3326
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
3327
+ attr_accessor :expires_after
3328
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
3329
+ attr_accessor :expires_at
3330
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3331
+ #
3332
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3333
+ #
3334
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3335
+ #
3336
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3337
+ #
3338
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3339
+ attr_accessor :setup_future_usage
3340
+
3341
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3342
+ @expires_after = expires_after
3343
+ @expires_at = expires_at
3344
+ @setup_future_usage = setup_future_usage
3345
+ end
3346
+ end
3347
+
1490
3348
  class Ideal < ::Stripe::RequestParams
1491
3349
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1492
3350
  #
@@ -1593,6 +3451,939 @@ module Stripe
1593
3451
  @reference = reference
1594
3452
  end
1595
3453
  end
3454
+
3455
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3456
+ class BusReservationDetail < ::Stripe::RequestParams
3457
+ class Arrival < ::Stripe::RequestParams
3458
+ class Address < ::Stripe::RequestParams
3459
+ # The city or town.
3460
+ attr_accessor :city
3461
+ # The country in ISO 3166-1 alpha-2 format.
3462
+ attr_accessor :country
3463
+ # The postal code formatted according to country.
3464
+ attr_accessor :postal_code
3465
+ # The state, county, province, or region formatted according to country.
3466
+ attr_accessor :region
3467
+ # Line 1 of the street address.
3468
+ attr_accessor :street_address
3469
+ # Line 2 of the street address.
3470
+ attr_accessor :street_address2
3471
+
3472
+ def initialize(
3473
+ city: nil,
3474
+ country: nil,
3475
+ postal_code: nil,
3476
+ region: nil,
3477
+ street_address: nil,
3478
+ street_address2: nil
3479
+ )
3480
+ @city = city
3481
+ @country = country
3482
+ @postal_code = postal_code
3483
+ @region = region
3484
+ @street_address = street_address
3485
+ @street_address2 = street_address2
3486
+ end
3487
+ end
3488
+ # Address of the arrival location.
3489
+ attr_accessor :address
3490
+ # Identifier name or reference for the arrival location.
3491
+ attr_accessor :arrival_location
3492
+
3493
+ def initialize(address: nil, arrival_location: nil)
3494
+ @address = address
3495
+ @arrival_location = arrival_location
3496
+ end
3497
+ end
3498
+
3499
+ class Departure < ::Stripe::RequestParams
3500
+ class Address < ::Stripe::RequestParams
3501
+ # The city or town.
3502
+ attr_accessor :city
3503
+ # The country in ISO 3166-1 alpha-2 format.
3504
+ attr_accessor :country
3505
+ # The postal code formatted according to country.
3506
+ attr_accessor :postal_code
3507
+ # The state, county, province, or region formatted according to country.
3508
+ attr_accessor :region
3509
+ # Line 1 of the street address.
3510
+ attr_accessor :street_address
3511
+ # Line 2 of the street address.
3512
+ attr_accessor :street_address2
3513
+
3514
+ def initialize(
3515
+ city: nil,
3516
+ country: nil,
3517
+ postal_code: nil,
3518
+ region: nil,
3519
+ street_address: nil,
3520
+ street_address2: nil
3521
+ )
3522
+ @city = city
3523
+ @country = country
3524
+ @postal_code = postal_code
3525
+ @region = region
3526
+ @street_address = street_address
3527
+ @street_address2 = street_address2
3528
+ end
3529
+ end
3530
+ # Address of the departure location.
3531
+ attr_accessor :address
3532
+ # Timestamp of departure.
3533
+ attr_accessor :departs_at
3534
+ # Identifier name or reference for the origin location.
3535
+ attr_accessor :departure_location
3536
+
3537
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3538
+ @address = address
3539
+ @departs_at = departs_at
3540
+ @departure_location = departure_location
3541
+ end
3542
+ end
3543
+
3544
+ class Insurance < ::Stripe::RequestParams
3545
+ # Insurance currency.
3546
+ attr_accessor :currency
3547
+ # Name of the company providing the insurance.
3548
+ attr_accessor :insurance_company_name
3549
+ # Type of insurance.
3550
+ attr_accessor :insurance_type
3551
+ # Price of insurance in cents.
3552
+ attr_accessor :price
3553
+
3554
+ def initialize(
3555
+ currency: nil,
3556
+ insurance_company_name: nil,
3557
+ insurance_type: nil,
3558
+ price: nil
3559
+ )
3560
+ @currency = currency
3561
+ @insurance_company_name = insurance_company_name
3562
+ @insurance_type = insurance_type
3563
+ @price = price
3564
+ end
3565
+ end
3566
+
3567
+ class Passenger < ::Stripe::RequestParams
3568
+ # The family name of the person.
3569
+ attr_accessor :family_name
3570
+ # The given name of the person.
3571
+ attr_accessor :given_name
3572
+
3573
+ def initialize(family_name: nil, given_name: nil)
3574
+ @family_name = family_name
3575
+ @given_name = given_name
3576
+ end
3577
+ end
3578
+ # Name of associated or partner company for the service.
3579
+ attr_accessor :affiliate_name
3580
+ # Arrival details.
3581
+ attr_accessor :arrival
3582
+ # Name of transportation company.
3583
+ attr_accessor :carrier_name
3584
+ # Currency.
3585
+ attr_accessor :currency
3586
+ # Departure details.
3587
+ attr_accessor :departure
3588
+ # List of insurances for this reservation.
3589
+ attr_accessor :insurances
3590
+ # List of passengers that this reservation applies to.
3591
+ attr_accessor :passengers
3592
+ # Price in cents.
3593
+ attr_accessor :price
3594
+ # Ticket class.
3595
+ attr_accessor :ticket_class
3596
+
3597
+ def initialize(
3598
+ affiliate_name: nil,
3599
+ arrival: nil,
3600
+ carrier_name: nil,
3601
+ currency: nil,
3602
+ departure: nil,
3603
+ insurances: nil,
3604
+ passengers: nil,
3605
+ price: nil,
3606
+ ticket_class: nil
3607
+ )
3608
+ @affiliate_name = affiliate_name
3609
+ @arrival = arrival
3610
+ @carrier_name = carrier_name
3611
+ @currency = currency
3612
+ @departure = departure
3613
+ @insurances = insurances
3614
+ @passengers = passengers
3615
+ @price = price
3616
+ @ticket_class = ticket_class
3617
+ end
3618
+ end
3619
+
3620
+ class EventReservationDetail < ::Stripe::RequestParams
3621
+ class Address < ::Stripe::RequestParams
3622
+ # The city or town.
3623
+ attr_accessor :city
3624
+ # The country in ISO 3166-1 alpha-2 format.
3625
+ attr_accessor :country
3626
+ # The postal code formatted according to country.
3627
+ attr_accessor :postal_code
3628
+ # The state, county, province, or region formatted according to country.
3629
+ attr_accessor :region
3630
+ # Line 1 of the street address.
3631
+ attr_accessor :street_address
3632
+ # Line 2 of the street address.
3633
+ attr_accessor :street_address2
3634
+
3635
+ def initialize(
3636
+ city: nil,
3637
+ country: nil,
3638
+ postal_code: nil,
3639
+ region: nil,
3640
+ street_address: nil,
3641
+ street_address2: nil
3642
+ )
3643
+ @city = city
3644
+ @country = country
3645
+ @postal_code = postal_code
3646
+ @region = region
3647
+ @street_address = street_address
3648
+ @street_address2 = street_address2
3649
+ end
3650
+ end
3651
+
3652
+ class Insurance < ::Stripe::RequestParams
3653
+ # Insurance currency.
3654
+ attr_accessor :currency
3655
+ # Name of the company providing the insurance.
3656
+ attr_accessor :insurance_company_name
3657
+ # Type of insurance.
3658
+ attr_accessor :insurance_type
3659
+ # Price of insurance in cents.
3660
+ attr_accessor :price
3661
+
3662
+ def initialize(
3663
+ currency: nil,
3664
+ insurance_company_name: nil,
3665
+ insurance_type: nil,
3666
+ price: nil
3667
+ )
3668
+ @currency = currency
3669
+ @insurance_company_name = insurance_company_name
3670
+ @insurance_type = insurance_type
3671
+ @price = price
3672
+ end
3673
+ end
3674
+ # Indicates if the tickets are digitally checked when entering the venue.
3675
+ attr_accessor :access_controlled_venue
3676
+ # Address of the event.
3677
+ attr_accessor :address
3678
+ # Name of associated or partner company for the service.
3679
+ attr_accessor :affiliate_name
3680
+ # End timestamp of the event.
3681
+ attr_accessor :ends_at
3682
+ # Company selling the ticket.
3683
+ attr_accessor :event_company_name
3684
+ # Name of the event.
3685
+ attr_accessor :event_name
3686
+ # Type of the event.
3687
+ attr_accessor :event_type
3688
+ # List of insurances for this event.
3689
+ attr_accessor :insurances
3690
+ # Start timestamp of the event.
3691
+ attr_accessor :starts_at
3692
+ # Name of the venue where the event takes place.
3693
+ attr_accessor :venue_name
3694
+
3695
+ def initialize(
3696
+ access_controlled_venue: nil,
3697
+ address: nil,
3698
+ affiliate_name: nil,
3699
+ ends_at: nil,
3700
+ event_company_name: nil,
3701
+ event_name: nil,
3702
+ event_type: nil,
3703
+ insurances: nil,
3704
+ starts_at: nil,
3705
+ venue_name: nil
3706
+ )
3707
+ @access_controlled_venue = access_controlled_venue
3708
+ @address = address
3709
+ @affiliate_name = affiliate_name
3710
+ @ends_at = ends_at
3711
+ @event_company_name = event_company_name
3712
+ @event_name = event_name
3713
+ @event_type = event_type
3714
+ @insurances = insurances
3715
+ @starts_at = starts_at
3716
+ @venue_name = venue_name
3717
+ end
3718
+ end
3719
+
3720
+ class FerryReservationDetail < ::Stripe::RequestParams
3721
+ class Arrival < ::Stripe::RequestParams
3722
+ class Address < ::Stripe::RequestParams
3723
+ # The city or town.
3724
+ attr_accessor :city
3725
+ # The country in ISO 3166-1 alpha-2 format.
3726
+ attr_accessor :country
3727
+ # The postal code formatted according to country.
3728
+ attr_accessor :postal_code
3729
+ # The state, county, province, or region formatted according to country.
3730
+ attr_accessor :region
3731
+ # Line 1 of the street address.
3732
+ attr_accessor :street_address
3733
+ # Line 2 of the street address.
3734
+ attr_accessor :street_address2
3735
+
3736
+ def initialize(
3737
+ city: nil,
3738
+ country: nil,
3739
+ postal_code: nil,
3740
+ region: nil,
3741
+ street_address: nil,
3742
+ street_address2: nil
3743
+ )
3744
+ @city = city
3745
+ @country = country
3746
+ @postal_code = postal_code
3747
+ @region = region
3748
+ @street_address = street_address
3749
+ @street_address2 = street_address2
3750
+ end
3751
+ end
3752
+ # Address of the arrival location.
3753
+ attr_accessor :address
3754
+ # Identifier name or reference for the arrival location.
3755
+ attr_accessor :arrival_location
3756
+
3757
+ def initialize(address: nil, arrival_location: nil)
3758
+ @address = address
3759
+ @arrival_location = arrival_location
3760
+ end
3761
+ end
3762
+
3763
+ class Departure < ::Stripe::RequestParams
3764
+ class Address < ::Stripe::RequestParams
3765
+ # The city or town.
3766
+ attr_accessor :city
3767
+ # The country in ISO 3166-1 alpha-2 format.
3768
+ attr_accessor :country
3769
+ # The postal code formatted according to country.
3770
+ attr_accessor :postal_code
3771
+ # The state, county, province, or region formatted according to country.
3772
+ attr_accessor :region
3773
+ # Line 1 of the street address.
3774
+ attr_accessor :street_address
3775
+ # Line 2 of the street address.
3776
+ attr_accessor :street_address2
3777
+
3778
+ def initialize(
3779
+ city: nil,
3780
+ country: nil,
3781
+ postal_code: nil,
3782
+ region: nil,
3783
+ street_address: nil,
3784
+ street_address2: nil
3785
+ )
3786
+ @city = city
3787
+ @country = country
3788
+ @postal_code = postal_code
3789
+ @region = region
3790
+ @street_address = street_address
3791
+ @street_address2 = street_address2
3792
+ end
3793
+ end
3794
+ # Address of the departure location.
3795
+ attr_accessor :address
3796
+ # Timestamp of departure.
3797
+ attr_accessor :departs_at
3798
+ # Identifier name or reference for the origin location.
3799
+ attr_accessor :departure_location
3800
+
3801
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3802
+ @address = address
3803
+ @departs_at = departs_at
3804
+ @departure_location = departure_location
3805
+ end
3806
+ end
3807
+
3808
+ class Insurance < ::Stripe::RequestParams
3809
+ # Insurance currency.
3810
+ attr_accessor :currency
3811
+ # Name of the company providing the insurance.
3812
+ attr_accessor :insurance_company_name
3813
+ # Type of insurance.
3814
+ attr_accessor :insurance_type
3815
+ # Price of insurance in cents.
3816
+ attr_accessor :price
3817
+
3818
+ def initialize(
3819
+ currency: nil,
3820
+ insurance_company_name: nil,
3821
+ insurance_type: nil,
3822
+ price: nil
3823
+ )
3824
+ @currency = currency
3825
+ @insurance_company_name = insurance_company_name
3826
+ @insurance_type = insurance_type
3827
+ @price = price
3828
+ end
3829
+ end
3830
+
3831
+ class Passenger < ::Stripe::RequestParams
3832
+ # The family name of the person.
3833
+ attr_accessor :family_name
3834
+ # The given name of the person.
3835
+ attr_accessor :given_name
3836
+
3837
+ def initialize(family_name: nil, given_name: nil)
3838
+ @family_name = family_name
3839
+ @given_name = given_name
3840
+ end
3841
+ end
3842
+ # Name of associated or partner company for the service.
3843
+ attr_accessor :affiliate_name
3844
+ # Arrival details.
3845
+ attr_accessor :arrival
3846
+ # Name of transportation company.
3847
+ attr_accessor :carrier_name
3848
+ # Currency.
3849
+ attr_accessor :currency
3850
+ # Departure details.
3851
+ attr_accessor :departure
3852
+ # List of insurances for this reservation.
3853
+ attr_accessor :insurances
3854
+ # List of passengers that this reservation applies to.
3855
+ attr_accessor :passengers
3856
+ # Price in cents.
3857
+ attr_accessor :price
3858
+ # Ticket class.
3859
+ attr_accessor :ticket_class
3860
+
3861
+ def initialize(
3862
+ affiliate_name: nil,
3863
+ arrival: nil,
3864
+ carrier_name: nil,
3865
+ currency: nil,
3866
+ departure: nil,
3867
+ insurances: nil,
3868
+ passengers: nil,
3869
+ price: nil,
3870
+ ticket_class: nil
3871
+ )
3872
+ @affiliate_name = affiliate_name
3873
+ @arrival = arrival
3874
+ @carrier_name = carrier_name
3875
+ @currency = currency
3876
+ @departure = departure
3877
+ @insurances = insurances
3878
+ @passengers = passengers
3879
+ @price = price
3880
+ @ticket_class = ticket_class
3881
+ end
3882
+ end
3883
+
3884
+ class Insurance < ::Stripe::RequestParams
3885
+ # Insurance currency.
3886
+ attr_accessor :currency
3887
+ # Name of the company providing the insurance.
3888
+ attr_accessor :insurance_company_name
3889
+ # Type of insurance
3890
+ attr_accessor :insurance_type
3891
+ # Price of insurance in cents.
3892
+ attr_accessor :price
3893
+
3894
+ def initialize(
3895
+ currency: nil,
3896
+ insurance_company_name: nil,
3897
+ insurance_type: nil,
3898
+ price: nil
3899
+ )
3900
+ @currency = currency
3901
+ @insurance_company_name = insurance_company_name
3902
+ @insurance_type = insurance_type
3903
+ @price = price
3904
+ end
3905
+ end
3906
+
3907
+ class MarketplaceSeller < ::Stripe::RequestParams
3908
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3909
+ # The city or town.
3910
+ attr_accessor :city
3911
+ # The country in ISO 3166-1 alpha-2 format.
3912
+ attr_accessor :country
3913
+ # The postal code formatted according to country.
3914
+ attr_accessor :postal_code
3915
+ # The state, county, province, or region formatted according to country.
3916
+ attr_accessor :region
3917
+ # Line 1 of the street address.
3918
+ attr_accessor :street_address
3919
+ # Line 2 of the street address.
3920
+ attr_accessor :street_address2
3921
+
3922
+ def initialize(
3923
+ city: nil,
3924
+ country: nil,
3925
+ postal_code: nil,
3926
+ region: nil,
3927
+ street_address: nil,
3928
+ street_address2: nil
3929
+ )
3930
+ @city = city
3931
+ @country = country
3932
+ @postal_code = postal_code
3933
+ @region = region
3934
+ @street_address = street_address
3935
+ @street_address2 = street_address2
3936
+ end
3937
+ end
3938
+ # The references to line items for purchases with multiple associated sub-sellers.
3939
+ attr_accessor :line_item_references
3940
+ # The address of the selling or delivering merchant.
3941
+ attr_accessor :marketplace_seller_address
3942
+ # The name of the marketplace seller.
3943
+ attr_accessor :marketplace_seller_name
3944
+ # The unique identifier for the marketplace seller.
3945
+ attr_accessor :marketplace_seller_reference
3946
+ # The number of transactions the sub-seller completed in the last 12 months.
3947
+ attr_accessor :number_of_transactions
3948
+ # The category of the product.
3949
+ attr_accessor :product_category
3950
+ # The date when the seller's account with the marketplace was last logged in.
3951
+ attr_accessor :seller_last_login_at
3952
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3953
+ attr_accessor :seller_rating
3954
+ # The date when the seller's account with the marketplace was created.
3955
+ attr_accessor :seller_registered_at
3956
+ # The date when the seller's account with the marketplace was last updated.
3957
+ attr_accessor :seller_updated_at
3958
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3959
+ attr_accessor :shipping_references
3960
+ # 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.
3961
+ attr_accessor :volume_of_transactions
3962
+
3963
+ def initialize(
3964
+ line_item_references: nil,
3965
+ marketplace_seller_address: nil,
3966
+ marketplace_seller_name: nil,
3967
+ marketplace_seller_reference: nil,
3968
+ number_of_transactions: nil,
3969
+ product_category: nil,
3970
+ seller_last_login_at: nil,
3971
+ seller_rating: nil,
3972
+ seller_registered_at: nil,
3973
+ seller_updated_at: nil,
3974
+ shipping_references: nil,
3975
+ volume_of_transactions: nil
3976
+ )
3977
+ @line_item_references = line_item_references
3978
+ @marketplace_seller_address = marketplace_seller_address
3979
+ @marketplace_seller_name = marketplace_seller_name
3980
+ @marketplace_seller_reference = marketplace_seller_reference
3981
+ @number_of_transactions = number_of_transactions
3982
+ @product_category = product_category
3983
+ @seller_last_login_at = seller_last_login_at
3984
+ @seller_rating = seller_rating
3985
+ @seller_registered_at = seller_registered_at
3986
+ @seller_updated_at = seller_updated_at
3987
+ @shipping_references = shipping_references
3988
+ @volume_of_transactions = volume_of_transactions
3989
+ end
3990
+ end
3991
+
3992
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3993
+ class Arrival < ::Stripe::RequestParams
3994
+ class Address < ::Stripe::RequestParams
3995
+ # The city or town.
3996
+ attr_accessor :city
3997
+ # The country in ISO 3166-1 alpha-2 format.
3998
+ attr_accessor :country
3999
+ # The postal code formatted according to country.
4000
+ attr_accessor :postal_code
4001
+ # The state, county, province, or region formatted according to country.
4002
+ attr_accessor :region
4003
+ # Line 1 of the street address.
4004
+ attr_accessor :street_address
4005
+ # Line 2 of the street address.
4006
+ attr_accessor :street_address2
4007
+
4008
+ def initialize(
4009
+ city: nil,
4010
+ country: nil,
4011
+ postal_code: nil,
4012
+ region: nil,
4013
+ street_address: nil,
4014
+ street_address2: nil
4015
+ )
4016
+ @city = city
4017
+ @country = country
4018
+ @postal_code = postal_code
4019
+ @region = region
4020
+ @street_address = street_address
4021
+ @street_address2 = street_address2
4022
+ end
4023
+ end
4024
+ # Address of the arrival location.
4025
+ attr_accessor :address
4026
+ # Identifier name or reference for the arrival location.
4027
+ attr_accessor :arrival_location
4028
+
4029
+ def initialize(address: nil, arrival_location: nil)
4030
+ @address = address
4031
+ @arrival_location = arrival_location
4032
+ end
4033
+ end
4034
+
4035
+ class Departure < ::Stripe::RequestParams
4036
+ class Address < ::Stripe::RequestParams
4037
+ # The city or town.
4038
+ attr_accessor :city
4039
+ # The country in ISO 3166-1 alpha-2 format.
4040
+ attr_accessor :country
4041
+ # The postal code formatted according to country.
4042
+ attr_accessor :postal_code
4043
+ # The state, county, province, or region formatted according to country.
4044
+ attr_accessor :region
4045
+ # Line 1 of the street address.
4046
+ attr_accessor :street_address
4047
+ # Line 2 of the street address.
4048
+ attr_accessor :street_address2
4049
+
4050
+ def initialize(
4051
+ city: nil,
4052
+ country: nil,
4053
+ postal_code: nil,
4054
+ region: nil,
4055
+ street_address: nil,
4056
+ street_address2: nil
4057
+ )
4058
+ @city = city
4059
+ @country = country
4060
+ @postal_code = postal_code
4061
+ @region = region
4062
+ @street_address = street_address
4063
+ @street_address2 = street_address2
4064
+ end
4065
+ end
4066
+ # Address of the departure location.
4067
+ attr_accessor :address
4068
+ # Timestamp of departure.
4069
+ attr_accessor :departs_at
4070
+ # Identifier name or reference for the origin location.
4071
+ attr_accessor :departure_location
4072
+
4073
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4074
+ @address = address
4075
+ @departs_at = departs_at
4076
+ @departure_location = departure_location
4077
+ end
4078
+ end
4079
+
4080
+ class Insurance < ::Stripe::RequestParams
4081
+ # Insurance currency.
4082
+ attr_accessor :currency
4083
+ # Name of the company providing the insurance.
4084
+ attr_accessor :insurance_company_name
4085
+ # Type of insurance.
4086
+ attr_accessor :insurance_type
4087
+ # Price of insurance in cents.
4088
+ attr_accessor :price
4089
+
4090
+ def initialize(
4091
+ currency: nil,
4092
+ insurance_company_name: nil,
4093
+ insurance_type: nil,
4094
+ price: nil
4095
+ )
4096
+ @currency = currency
4097
+ @insurance_company_name = insurance_company_name
4098
+ @insurance_type = insurance_type
4099
+ @price = price
4100
+ end
4101
+ end
4102
+
4103
+ class Passenger < ::Stripe::RequestParams
4104
+ # The family name of the person.
4105
+ attr_accessor :family_name
4106
+ # The given name of the person.
4107
+ attr_accessor :given_name
4108
+
4109
+ def initialize(family_name: nil, given_name: nil)
4110
+ @family_name = family_name
4111
+ @given_name = given_name
4112
+ end
4113
+ end
4114
+ # Name of associated or partner company for the service.
4115
+ attr_accessor :affiliate_name
4116
+ # Arrival details.
4117
+ attr_accessor :arrival
4118
+ # Name of transportation company.
4119
+ attr_accessor :carrier_name
4120
+ # Currency.
4121
+ attr_accessor :currency
4122
+ # Departure details.
4123
+ attr_accessor :departure
4124
+ # List of insurances for this reservation.
4125
+ attr_accessor :insurances
4126
+ # List of passengers that this reservation applies to.
4127
+ attr_accessor :passengers
4128
+ # Price in cents.
4129
+ attr_accessor :price
4130
+ # Ticket class.
4131
+ attr_accessor :ticket_class
4132
+
4133
+ def initialize(
4134
+ affiliate_name: nil,
4135
+ arrival: nil,
4136
+ carrier_name: nil,
4137
+ currency: nil,
4138
+ departure: nil,
4139
+ insurances: nil,
4140
+ passengers: nil,
4141
+ price: nil,
4142
+ ticket_class: nil
4143
+ )
4144
+ @affiliate_name = affiliate_name
4145
+ @arrival = arrival
4146
+ @carrier_name = carrier_name
4147
+ @currency = currency
4148
+ @departure = departure
4149
+ @insurances = insurances
4150
+ @passengers = passengers
4151
+ @price = price
4152
+ @ticket_class = ticket_class
4153
+ end
4154
+ end
4155
+
4156
+ class TrainReservationDetail < ::Stripe::RequestParams
4157
+ class Arrival < ::Stripe::RequestParams
4158
+ class Address < ::Stripe::RequestParams
4159
+ # The city or town.
4160
+ attr_accessor :city
4161
+ # The country in ISO 3166-1 alpha-2 format.
4162
+ attr_accessor :country
4163
+ # The postal code formatted according to country.
4164
+ attr_accessor :postal_code
4165
+ # The state, county, province, or region formatted according to country.
4166
+ attr_accessor :region
4167
+ # Line 1 of the street address.
4168
+ attr_accessor :street_address
4169
+ # Line 2 of the street address.
4170
+ attr_accessor :street_address2
4171
+
4172
+ def initialize(
4173
+ city: nil,
4174
+ country: nil,
4175
+ postal_code: nil,
4176
+ region: nil,
4177
+ street_address: nil,
4178
+ street_address2: nil
4179
+ )
4180
+ @city = city
4181
+ @country = country
4182
+ @postal_code = postal_code
4183
+ @region = region
4184
+ @street_address = street_address
4185
+ @street_address2 = street_address2
4186
+ end
4187
+ end
4188
+ # Address of the arrival location.
4189
+ attr_accessor :address
4190
+ # Identifier name or reference for the arrival location.
4191
+ attr_accessor :arrival_location
4192
+
4193
+ def initialize(address: nil, arrival_location: nil)
4194
+ @address = address
4195
+ @arrival_location = arrival_location
4196
+ end
4197
+ end
4198
+
4199
+ class Departure < ::Stripe::RequestParams
4200
+ class Address < ::Stripe::RequestParams
4201
+ # The city or town.
4202
+ attr_accessor :city
4203
+ # The country in ISO 3166-1 alpha-2 format.
4204
+ attr_accessor :country
4205
+ # The postal code formatted according to country.
4206
+ attr_accessor :postal_code
4207
+ # The state, county, province, or region formatted according to country.
4208
+ attr_accessor :region
4209
+ # Line 1 of the street address.
4210
+ attr_accessor :street_address
4211
+ # Line 2 of the street address.
4212
+ attr_accessor :street_address2
4213
+
4214
+ def initialize(
4215
+ city: nil,
4216
+ country: nil,
4217
+ postal_code: nil,
4218
+ region: nil,
4219
+ street_address: nil,
4220
+ street_address2: nil
4221
+ )
4222
+ @city = city
4223
+ @country = country
4224
+ @postal_code = postal_code
4225
+ @region = region
4226
+ @street_address = street_address
4227
+ @street_address2 = street_address2
4228
+ end
4229
+ end
4230
+ # Address of the departure location.
4231
+ attr_accessor :address
4232
+ # Timestamp of departure.
4233
+ attr_accessor :departs_at
4234
+ # Identifier name or reference for the origin location.
4235
+ attr_accessor :departure_location
4236
+
4237
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4238
+ @address = address
4239
+ @departs_at = departs_at
4240
+ @departure_location = departure_location
4241
+ end
4242
+ end
4243
+
4244
+ class Insurance < ::Stripe::RequestParams
4245
+ # Insurance currency.
4246
+ attr_accessor :currency
4247
+ # Name of the company providing the insurance.
4248
+ attr_accessor :insurance_company_name
4249
+ # Type of insurance.
4250
+ attr_accessor :insurance_type
4251
+ # Price of insurance in cents.
4252
+ attr_accessor :price
4253
+
4254
+ def initialize(
4255
+ currency: nil,
4256
+ insurance_company_name: nil,
4257
+ insurance_type: nil,
4258
+ price: nil
4259
+ )
4260
+ @currency = currency
4261
+ @insurance_company_name = insurance_company_name
4262
+ @insurance_type = insurance_type
4263
+ @price = price
4264
+ end
4265
+ end
4266
+
4267
+ class Passenger < ::Stripe::RequestParams
4268
+ # The family name of the person.
4269
+ attr_accessor :family_name
4270
+ # The given name of the person.
4271
+ attr_accessor :given_name
4272
+
4273
+ def initialize(family_name: nil, given_name: nil)
4274
+ @family_name = family_name
4275
+ @given_name = given_name
4276
+ end
4277
+ end
4278
+ # Name of associated or partner company for the service.
4279
+ attr_accessor :affiliate_name
4280
+ # Arrival details.
4281
+ attr_accessor :arrival
4282
+ # Name of transportation company.
4283
+ attr_accessor :carrier_name
4284
+ # Currency.
4285
+ attr_accessor :currency
4286
+ # Departure details.
4287
+ attr_accessor :departure
4288
+ # List of insurances for this reservation.
4289
+ attr_accessor :insurances
4290
+ # List of passengers that this reservation applies to.
4291
+ attr_accessor :passengers
4292
+ # Price in cents.
4293
+ attr_accessor :price
4294
+ # Ticket class.
4295
+ attr_accessor :ticket_class
4296
+
4297
+ def initialize(
4298
+ affiliate_name: nil,
4299
+ arrival: nil,
4300
+ carrier_name: nil,
4301
+ currency: nil,
4302
+ departure: nil,
4303
+ insurances: nil,
4304
+ passengers: nil,
4305
+ price: nil,
4306
+ ticket_class: nil
4307
+ )
4308
+ @affiliate_name = affiliate_name
4309
+ @arrival = arrival
4310
+ @carrier_name = carrier_name
4311
+ @currency = currency
4312
+ @departure = departure
4313
+ @insurances = insurances
4314
+ @passengers = passengers
4315
+ @price = price
4316
+ @ticket_class = ticket_class
4317
+ end
4318
+ end
4319
+
4320
+ class Voucher < ::Stripe::RequestParams
4321
+ # Name of associated or partner company for this voucher.
4322
+ attr_accessor :affiliate_name
4323
+ # The voucher validity end time.
4324
+ attr_accessor :ends_at
4325
+ # The voucher validity start time.
4326
+ attr_accessor :starts_at
4327
+ # The issuer or provider of this voucher.
4328
+ attr_accessor :voucher_company
4329
+ # The name or reference to identify the voucher.
4330
+ attr_accessor :voucher_name
4331
+ # The type of this voucher.
4332
+ attr_accessor :voucher_type
4333
+
4334
+ def initialize(
4335
+ affiliate_name: nil,
4336
+ ends_at: nil,
4337
+ starts_at: nil,
4338
+ voucher_company: nil,
4339
+ voucher_name: nil,
4340
+ voucher_type: nil
4341
+ )
4342
+ @affiliate_name = affiliate_name
4343
+ @ends_at = ends_at
4344
+ @starts_at = starts_at
4345
+ @voucher_company = voucher_company
4346
+ @voucher_name = voucher_name
4347
+ @voucher_type = voucher_type
4348
+ end
4349
+ end
4350
+ # Supplementary bus reservation details.
4351
+ attr_accessor :bus_reservation_details
4352
+ # Supplementary event reservation details.
4353
+ attr_accessor :event_reservation_details
4354
+ # Supplementary ferry reservation details.
4355
+ attr_accessor :ferry_reservation_details
4356
+ # Supplementary insurance details.
4357
+ attr_accessor :insurances
4358
+ # Supplementary marketplace seller details.
4359
+ attr_accessor :marketplace_sellers
4360
+ # Supplementary round trip reservation details.
4361
+ attr_accessor :round_trip_reservation_details
4362
+ # Supplementary train reservation details.
4363
+ attr_accessor :train_reservation_details
4364
+ # Voucher details, such as a gift card or discount code.
4365
+ attr_accessor :vouchers
4366
+
4367
+ def initialize(
4368
+ bus_reservation_details: nil,
4369
+ event_reservation_details: nil,
4370
+ ferry_reservation_details: nil,
4371
+ insurances: nil,
4372
+ marketplace_sellers: nil,
4373
+ round_trip_reservation_details: nil,
4374
+ train_reservation_details: nil,
4375
+ vouchers: nil
4376
+ )
4377
+ @bus_reservation_details = bus_reservation_details
4378
+ @event_reservation_details = event_reservation_details
4379
+ @ferry_reservation_details = ferry_reservation_details
4380
+ @insurances = insurances
4381
+ @marketplace_sellers = marketplace_sellers
4382
+ @round_trip_reservation_details = round_trip_reservation_details
4383
+ @train_reservation_details = train_reservation_details
4384
+ @vouchers = vouchers
4385
+ end
4386
+ end
1596
4387
  # Controls when the funds are captured from the customer's account.
1597
4388
  #
1598
4389
  # 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.
@@ -1615,19 +4406,23 @@ module Stripe
1615
4406
  attr_accessor :setup_future_usage
1616
4407
  # Subscription details if setting up or charging a subscription.
1617
4408
  attr_accessor :subscriptions
4409
+ # Supplementary Purchase Data for the corresponding Klarna payment
4410
+ attr_accessor :supplementary_purchase_data
1618
4411
 
1619
4412
  def initialize(
1620
4413
  capture_method: nil,
1621
4414
  on_demand: nil,
1622
4415
  preferred_locale: nil,
1623
4416
  setup_future_usage: nil,
1624
- subscriptions: nil
4417
+ subscriptions: nil,
4418
+ supplementary_purchase_data: nil
1625
4419
  )
1626
4420
  @capture_method = capture_method
1627
4421
  @on_demand = on_demand
1628
4422
  @preferred_locale = preferred_locale
1629
4423
  @setup_future_usage = setup_future_usage
1630
4424
  @subscriptions = subscriptions
4425
+ @supplementary_purchase_data = supplementary_purchase_data
1631
4426
  end
1632
4427
  end
1633
4428
 
@@ -1888,12 +4683,65 @@ module Stripe
1888
4683
  end
1889
4684
 
1890
4685
  class Paypal < ::Stripe::RequestParams
4686
+ class LineItem < ::Stripe::RequestParams
4687
+ class Tax < ::Stripe::RequestParams
4688
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4689
+ attr_accessor :amount
4690
+ # The tax behavior for the line item.
4691
+ attr_accessor :behavior
4692
+
4693
+ def initialize(amount: nil, behavior: nil)
4694
+ @amount = amount
4695
+ @behavior = behavior
4696
+ end
4697
+ end
4698
+ # Type of the line item.
4699
+ attr_accessor :category
4700
+ # Description of the line item.
4701
+ attr_accessor :description
4702
+ # Descriptive name of the line item.
4703
+ attr_accessor :name
4704
+ # Quantity of the line item. Must be a positive number.
4705
+ attr_accessor :quantity
4706
+ # Client facing stock keeping unit, article number or similar.
4707
+ attr_accessor :sku
4708
+ # The Stripe account ID of the connected account that sells the item.
4709
+ attr_accessor :sold_by
4710
+ # The tax information for the line item.
4711
+ attr_accessor :tax
4712
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4713
+ attr_accessor :unit_amount
4714
+
4715
+ def initialize(
4716
+ category: nil,
4717
+ description: nil,
4718
+ name: nil,
4719
+ quantity: nil,
4720
+ sku: nil,
4721
+ sold_by: nil,
4722
+ tax: nil,
4723
+ unit_amount: nil
4724
+ )
4725
+ @category = category
4726
+ @description = description
4727
+ @name = name
4728
+ @quantity = quantity
4729
+ @sku = sku
4730
+ @sold_by = sold_by
4731
+ @tax = tax
4732
+ @unit_amount = unit_amount
4733
+ end
4734
+ end
1891
4735
  # Controls when the funds will be captured from the customer's account.
1892
4736
  attr_accessor :capture_method
4737
+ # The line items purchased by the customer.
4738
+ attr_accessor :line_items
1893
4739
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1894
4740
  attr_accessor :preferred_locale
1895
4741
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1896
4742
  attr_accessor :reference
4743
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
4744
+ attr_accessor :reference_id
1897
4745
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1898
4746
  attr_accessor :risk_correlation_id
1899
4747
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1906,19 +4754,40 @@ module Stripe
1906
4754
  #
1907
4755
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1908
4756
  attr_accessor :setup_future_usage
4757
+ # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
4758
+ attr_accessor :subsellers
1909
4759
 
1910
4760
  def initialize(
1911
4761
  capture_method: nil,
4762
+ line_items: nil,
1912
4763
  preferred_locale: nil,
1913
4764
  reference: nil,
4765
+ reference_id: nil,
1914
4766
  risk_correlation_id: nil,
1915
- setup_future_usage: nil
4767
+ setup_future_usage: nil,
4768
+ subsellers: nil
1916
4769
  )
1917
4770
  @capture_method = capture_method
4771
+ @line_items = line_items
1918
4772
  @preferred_locale = preferred_locale
1919
4773
  @reference = reference
4774
+ @reference_id = reference_id
1920
4775
  @risk_correlation_id = risk_correlation_id
1921
4776
  @setup_future_usage = setup_future_usage
4777
+ @subsellers = subsellers
4778
+ end
4779
+ end
4780
+
4781
+ class Paypay < ::Stripe::RequestParams
4782
+ # Controls when the funds are captured from the customer's account.
4783
+ #
4784
+ # 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.
4785
+ #
4786
+ # 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.
4787
+ attr_accessor :capture_method
4788
+
4789
+ def initialize(capture_method: nil)
4790
+ @capture_method = capture_method
1922
4791
  end
1923
4792
  end
1924
4793
 
@@ -1973,12 +4842,52 @@ module Stripe
1973
4842
  end
1974
4843
 
1975
4844
  class Pix < ::Stripe::RequestParams
4845
+ class MandateOptions < ::Stripe::RequestParams
4846
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4847
+ attr_accessor :amount
4848
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
4849
+ attr_accessor :amount_includes_iof
4850
+ # Type of amount. Defaults to `maximum`.
4851
+ attr_accessor :amount_type
4852
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4853
+ attr_accessor :currency
4854
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
4855
+ attr_accessor :end_date
4856
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
4857
+ attr_accessor :payment_schedule
4858
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4859
+ attr_accessor :reference
4860
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
4861
+ attr_accessor :start_date
4862
+
4863
+ def initialize(
4864
+ amount: nil,
4865
+ amount_includes_iof: nil,
4866
+ amount_type: nil,
4867
+ currency: nil,
4868
+ end_date: nil,
4869
+ payment_schedule: nil,
4870
+ reference: nil,
4871
+ start_date: nil
4872
+ )
4873
+ @amount = amount
4874
+ @amount_includes_iof = amount_includes_iof
4875
+ @amount_type = amount_type
4876
+ @currency = currency
4877
+ @end_date = end_date
4878
+ @payment_schedule = payment_schedule
4879
+ @reference = reference
4880
+ @start_date = start_date
4881
+ end
4882
+ end
1976
4883
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1977
4884
  attr_accessor :amount_includes_iof
1978
4885
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1979
4886
  attr_accessor :expires_after_seconds
1980
4887
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1981
4888
  attr_accessor :expires_at
4889
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4890
+ attr_accessor :mandate_options
1982
4891
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1983
4892
  #
1984
4893
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1994,11 +4903,13 @@ module Stripe
1994
4903
  amount_includes_iof: nil,
1995
4904
  expires_after_seconds: nil,
1996
4905
  expires_at: nil,
4906
+ mandate_options: nil,
1997
4907
  setup_future_usage: nil
1998
4908
  )
1999
4909
  @amount_includes_iof = amount_includes_iof
2000
4910
  @expires_after_seconds = expires_after_seconds
2001
4911
  @expires_at = expires_at
4912
+ @mandate_options = mandate_options
2002
4913
  @setup_future_usage = setup_future_usage
2003
4914
  end
2004
4915
  end
@@ -2020,6 +4931,25 @@ module Stripe
2020
4931
  end
2021
4932
  end
2022
4933
 
4934
+ class Qris < ::Stripe::RequestParams
4935
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4936
+ #
4937
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
4938
+ #
4939
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
4940
+ #
4941
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
4942
+ #
4943
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
4944
+ attr_accessor :setup_future_usage
4945
+
4946
+ def initialize(setup_future_usage: nil)
4947
+ @setup_future_usage = setup_future_usage
4948
+ end
4949
+ end
4950
+
4951
+ class Rechnung < ::Stripe::RequestParams; end
4952
+
2023
4953
  class RevolutPay < ::Stripe::RequestParams
2024
4954
  # Controls when the funds are captured from the customer's account.
2025
4955
  #
@@ -2099,6 +5029,23 @@ module Stripe
2099
5029
  end
2100
5030
  end
2101
5031
 
5032
+ class Shopeepay < ::Stripe::RequestParams
5033
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5034
+ #
5035
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
5036
+ #
5037
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5038
+ #
5039
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
5040
+ #
5041
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5042
+ attr_accessor :setup_future_usage
5043
+
5044
+ def initialize(setup_future_usage: nil)
5045
+ @setup_future_usage = setup_future_usage
5046
+ end
5047
+ end
5048
+
2102
5049
  class Sofort < ::Stripe::RequestParams
2103
5050
  # Language shown to the payer on redirect.
2104
5051
  attr_accessor :preferred_language
@@ -2119,6 +5066,23 @@ module Stripe
2119
5066
  end
2120
5067
  end
2121
5068
 
5069
+ class StripeBalance < ::Stripe::RequestParams
5070
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5071
+ #
5072
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
5073
+ #
5074
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5075
+ #
5076
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
5077
+ #
5078
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5079
+ attr_accessor :setup_future_usage
5080
+
5081
+ def initialize(setup_future_usage: nil)
5082
+ @setup_future_usage = setup_future_usage
5083
+ end
5084
+ end
5085
+
2122
5086
  class Swish < ::Stripe::RequestParams
2123
5087
  # A reference for this payment to be displayed in the Swish app.
2124
5088
  attr_accessor :reference
@@ -2161,13 +5125,27 @@ module Stripe
2161
5125
  class Filters < ::Stripe::RequestParams
2162
5126
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2163
5127
  attr_accessor :account_subcategories
5128
+ # ID of the institution to use to filter for selectable accounts.
5129
+ attr_accessor :institution
2164
5130
 
2165
- def initialize(account_subcategories: nil)
5131
+ def initialize(account_subcategories: nil, institution: nil)
2166
5132
  @account_subcategories = account_subcategories
5133
+ @institution = institution
5134
+ end
5135
+ end
5136
+
5137
+ class ManualEntry < ::Stripe::RequestParams
5138
+ # Settings for configuring manual entry of account details.
5139
+ attr_accessor :mode
5140
+
5141
+ def initialize(mode: nil)
5142
+ @mode = mode
2167
5143
  end
2168
5144
  end
2169
5145
  # Provide filters for the linked accounts that the customer can select for the payment method.
2170
5146
  attr_accessor :filters
5147
+ # Customize manual entry behavior
5148
+ attr_accessor :manual_entry
2171
5149
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2172
5150
  attr_accessor :permissions
2173
5151
  # List of data features that you would like to retrieve upon account creation.
@@ -2175,8 +5153,15 @@ module Stripe
2175
5153
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
2176
5154
  attr_accessor :return_url
2177
5155
 
2178
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5156
+ def initialize(
5157
+ filters: nil,
5158
+ manual_entry: nil,
5159
+ permissions: nil,
5160
+ prefetch: nil,
5161
+ return_url: nil
5162
+ )
2179
5163
  @filters = filters
5164
+ @manual_entry = manual_entry
2180
5165
  @permissions = permissions
2181
5166
  @prefetch = prefetch
2182
5167
  @return_url = return_url
@@ -2321,8 +5306,12 @@ module Stripe
2321
5306
  attr_accessor :fpx
2322
5307
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2323
5308
  attr_accessor :giropay
5309
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5310
+ attr_accessor :gopay
2324
5311
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2325
5312
  attr_accessor :grabpay
5313
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5314
+ attr_accessor :id_bank_transfer
2326
5315
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2327
5316
  attr_accessor :ideal
2328
5317
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2359,12 +5348,18 @@ module Stripe
2359
5348
  attr_accessor :paynow
2360
5349
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2361
5350
  attr_accessor :paypal
5351
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5352
+ attr_accessor :paypay
2362
5353
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
2363
5354
  attr_accessor :payto
2364
5355
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2365
5356
  attr_accessor :pix
2366
5357
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2367
5358
  attr_accessor :promptpay
5359
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5360
+ attr_accessor :qris
5361
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5362
+ attr_accessor :rechnung
2368
5363
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2369
5364
  attr_accessor :revolut_pay
2370
5365
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2373,8 +5368,12 @@ module Stripe
2373
5368
  attr_accessor :satispay
2374
5369
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2375
5370
  attr_accessor :sepa_debit
5371
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5372
+ attr_accessor :shopeepay
2376
5373
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2377
5374
  attr_accessor :sofort
5375
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5376
+ attr_accessor :stripe_balance
2378
5377
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2379
5378
  attr_accessor :swish
2380
5379
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2407,7 +5406,9 @@ module Stripe
2407
5406
  eps: nil,
2408
5407
  fpx: nil,
2409
5408
  giropay: nil,
5409
+ gopay: nil,
2410
5410
  grabpay: nil,
5411
+ id_bank_transfer: nil,
2411
5412
  ideal: nil,
2412
5413
  interac_present: nil,
2413
5414
  kakao_pay: nil,
@@ -2426,14 +5427,19 @@ module Stripe
2426
5427
  payco: nil,
2427
5428
  paynow: nil,
2428
5429
  paypal: nil,
5430
+ paypay: nil,
2429
5431
  payto: nil,
2430
5432
  pix: nil,
2431
5433
  promptpay: nil,
5434
+ qris: nil,
5435
+ rechnung: nil,
2432
5436
  revolut_pay: nil,
2433
5437
  samsung_pay: nil,
2434
5438
  satispay: nil,
2435
5439
  sepa_debit: nil,
5440
+ shopeepay: nil,
2436
5441
  sofort: nil,
5442
+ stripe_balance: nil,
2437
5443
  swish: nil,
2438
5444
  twint: nil,
2439
5445
  us_bank_account: nil,
@@ -2460,7 +5466,9 @@ module Stripe
2460
5466
  @eps = eps
2461
5467
  @fpx = fpx
2462
5468
  @giropay = giropay
5469
+ @gopay = gopay
2463
5470
  @grabpay = grabpay
5471
+ @id_bank_transfer = id_bank_transfer
2464
5472
  @ideal = ideal
2465
5473
  @interac_present = interac_present
2466
5474
  @kakao_pay = kakao_pay
@@ -2479,14 +5487,19 @@ module Stripe
2479
5487
  @payco = payco
2480
5488
  @paynow = paynow
2481
5489
  @paypal = paypal
5490
+ @paypay = paypay
2482
5491
  @payto = payto
2483
5492
  @pix = pix
2484
5493
  @promptpay = promptpay
5494
+ @qris = qris
5495
+ @rechnung = rechnung
2485
5496
  @revolut_pay = revolut_pay
2486
5497
  @samsung_pay = samsung_pay
2487
5498
  @satispay = satispay
2488
5499
  @sepa_debit = sepa_debit
5500
+ @shopeepay = shopeepay
2489
5501
  @sofort = sofort
5502
+ @stripe_balance = stripe_balance
2490
5503
  @swish = swish
2491
5504
  @twint = twint
2492
5505
  @us_bank_account = us_bank_account
@@ -2554,6 +5567,8 @@ module Stripe
2554
5567
  @amount = amount
2555
5568
  end
2556
5569
  end
5570
+ # Allocated Funds configuration for this PaymentIntent.
5571
+ attr_accessor :allocated_funds
2557
5572
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2558
5573
  attr_accessor :amount
2559
5574
  # Provides industry-specific information about the amount.
@@ -2582,13 +5597,17 @@ module Stripe
2582
5597
  attr_accessor :excluded_payment_method_types
2583
5598
  # Specifies which fields in the response should be expanded.
2584
5599
  attr_accessor :expand
5600
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5601
+ attr_accessor :fx_quote
2585
5602
  # Automations to be run during the PaymentIntent lifecycle
2586
5603
  attr_accessor :hooks
5604
+ # This hash contains details about the Mandate to create.
5605
+ attr_accessor :mandate_data
2587
5606
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2588
5607
  attr_accessor :metadata
2589
5608
  # Provides industry-specific information about the charge.
2590
5609
  attr_accessor :payment_details
2591
- # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
5610
+ # Attribute for param field payment_method
2592
5611
  attr_accessor :payment_method
2593
5612
  # The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
2594
5613
  attr_accessor :payment_method_configuration
@@ -2626,6 +5645,7 @@ module Stripe
2626
5645
  attr_accessor :transfer_group
2627
5646
 
2628
5647
  def initialize(
5648
+ allocated_funds: nil,
2629
5649
  amount: nil,
2630
5650
  amount_details: nil,
2631
5651
  application_fee_amount: nil,
@@ -2636,7 +5656,9 @@ module Stripe
2636
5656
  description: nil,
2637
5657
  excluded_payment_method_types: nil,
2638
5658
  expand: nil,
5659
+ fx_quote: nil,
2639
5660
  hooks: nil,
5661
+ mandate_data: nil,
2640
5662
  metadata: nil,
2641
5663
  payment_details: nil,
2642
5664
  payment_method: nil,
@@ -2652,6 +5674,7 @@ module Stripe
2652
5674
  transfer_data: nil,
2653
5675
  transfer_group: nil
2654
5676
  )
5677
+ @allocated_funds = allocated_funds
2655
5678
  @amount = amount
2656
5679
  @amount_details = amount_details
2657
5680
  @application_fee_amount = application_fee_amount
@@ -2662,7 +5685,9 @@ module Stripe
2662
5685
  @description = description
2663
5686
  @excluded_payment_method_types = excluded_payment_method_types
2664
5687
  @expand = expand
5688
+ @fx_quote = fx_quote
2665
5689
  @hooks = hooks
5690
+ @mandate_data = mandate_data
2666
5691
  @metadata = metadata
2667
5692
  @payment_details = payment_details
2668
5693
  @payment_method = payment_method