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