stripe 21.1.0 → 21.2.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (505) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +4 -0
  3. data/lib/stripe/api_version.rb +2 -2
  4. data/lib/stripe/errors.rb +6 -0
  5. data/lib/stripe/event_types.rb +193 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  22. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  25. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +80 -0
  27. data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
  28. data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
  30. data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
  31. data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
  32. data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
  33. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
  34. data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  36. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  37. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  38. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  39. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  40. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  41. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  54. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  55. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  56. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  57. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  58. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  59. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
  60. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +52 -0
  62. data/lib/stripe/params/account_create_params.rb +299 -1
  63. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  64. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  65. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  66. data/lib/stripe/params/account_session_create_params.rb +191 -0
  67. data/lib/stripe/params/account_update_params.rb +261 -0
  68. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  69. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  70. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  71. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  72. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  74. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  75. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  77. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  78. data/lib/stripe/params/charge_capture_params.rb +1646 -0
  79. data/lib/stripe/params/charge_update_params.rb +1646 -0
  80. data/lib/stripe/params/checkout/session_create_params.rb +87 -3
  81. data/lib/stripe/params/checkout/session_update_params.rb +161 -1
  82. data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
  83. data/lib/stripe/params/coupon_create_params.rb +48 -1
  84. data/lib/stripe/params/customer_balance_transaction_create_params.rb +23 -1
  85. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  86. data/lib/stripe/params/external_account_create_params.rb +134 -0
  87. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  88. data/lib/stripe/params/external_account_list_params.rb +25 -0
  89. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  90. data/lib/stripe/params/external_account_update_params.rb +91 -0
  91. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  92. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  93. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  94. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  95. data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
  96. data/lib/stripe/params/fx_quote_create_params.rb +71 -0
  97. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  98. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  99. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  100. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  101. data/lib/stripe/params/invoice_create_params.rb +64 -2
  102. data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
  103. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  104. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  105. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  106. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  107. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  108. data/lib/stripe/params/invoice_update_params.rb +64 -2
  109. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  110. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  111. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  112. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  113. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  114. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  115. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  116. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  117. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  118. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  119. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  120. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  121. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  122. data/lib/stripe/params/mandate_list_params.rb +39 -0
  123. data/lib/stripe/params/margin_create_params.rb +25 -0
  124. data/lib/stripe/params/margin_list_params.rb +25 -0
  125. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  126. data/lib/stripe/params/margin_update_params.rb +22 -0
  127. data/lib/stripe/params/order_create_params.rb +2083 -0
  128. data/lib/stripe/params/order_list_params.rb +25 -0
  129. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  130. data/lib/stripe/params/order_submit_params.rb +16 -0
  131. data/lib/stripe/params/order_update_params.rb +2087 -0
  132. data/lib/stripe/params/payment_intent_capture_params.rb +981 -1
  133. data/lib/stripe/params/payment_intent_confirm_params.rb +2391 -100
  134. data/lib/stripe/params/payment_intent_create_params.rb +2391 -100
  135. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
  136. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
  137. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  138. data/lib/stripe/params/payment_intent_update_params.rb +2423 -101
  139. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  140. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  141. data/lib/stripe/params/payment_method_create_params.rb +88 -0
  142. data/lib/stripe/params/payment_plan_create_params.rb +128 -0
  143. data/lib/stripe/params/payment_plan_list_params.rb +25 -0
  144. data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
  145. data/lib/stripe/params/payment_plan_update_params.rb +105 -0
  146. data/lib/stripe/params/price_update_params.rb +19 -0
  147. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  149. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  150. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  151. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  152. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  153. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  154. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  155. data/lib/stripe/params/quote_create_params.rb +809 -3
  156. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  157. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  158. data/lib/stripe/params/quote_list_params.rb +4 -0
  159. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  160. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  161. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  162. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  163. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  164. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  165. data/lib/stripe/params/quote_update_params.rb +817 -4
  166. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  167. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  168. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  169. data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
  170. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  171. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  172. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  173. data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
  174. data/lib/stripe/params/setup_intent_create_params.rb +122 -3
  175. data/lib/stripe/params/setup_intent_update_params.rb +122 -3
  176. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  177. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  178. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  179. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
  180. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  181. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  182. data/lib/stripe/params/subscription_create_params.rb +133 -6
  183. data/lib/stripe/params/subscription_item_create_params.rb +50 -3
  184. data/lib/stripe/params/subscription_item_update_params.rb +33 -2
  185. data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
  186. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  187. data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
  188. data/lib/stripe/params/subscription_update_params.rb +116 -5
  189. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  190. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  191. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  192. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  193. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  194. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  195. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
  196. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  197. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  198. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  199. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  200. data/lib/stripe/params/transfer_create_params.rb +4 -0
  201. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  202. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  203. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  204. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  205. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
  206. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  207. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  208. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  209. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  210. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  211. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  212. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  213. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  214. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  215. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  216. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  217. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  218. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  219. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  220. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  221. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  222. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  223. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  225. data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
  226. data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
  227. data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
  228. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  229. data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
  230. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  231. data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
  232. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  233. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  234. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  235. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
  236. data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
  237. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
  238. data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
  239. data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
  240. data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
  241. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
  242. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  243. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
  244. data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
  245. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
  246. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  247. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  248. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  249. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  250. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  251. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +26 -0
  252. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  253. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
  254. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
  255. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
  256. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
  257. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  258. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +61 -1
  259. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
  260. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  261. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
  262. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  263. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  264. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +37 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  267. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
  268. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  269. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  270. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  271. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  272. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  273. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  274. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  275. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
  276. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  277. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  278. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
  279. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  280. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  281. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  282. data/lib/stripe/params.rb +365 -0
  283. data/lib/stripe/resources/account.rb +176 -1
  284. data/lib/stripe/resources/account_notice.rb +94 -0
  285. data/lib/stripe/resources/account_session.rb +162 -0
  286. data/lib/stripe/resources/balance.rb +83 -0
  287. data/lib/stripe/resources/balance_settings.rb +4 -0
  288. data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
  289. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  290. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  291. data/lib/stripe/resources/capital/financing_offer.rb +185 -0
  292. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  293. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  294. data/lib/stripe/resources/card.rb +18 -1
  295. data/lib/stripe/resources/charge.rb +227 -1
  296. data/lib/stripe/resources/checkout/session.rb +91 -3
  297. data/lib/stripe/resources/confirmation_token.rb +131 -0
  298. data/lib/stripe/resources/coupon.rb +58 -1
  299. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  300. data/lib/stripe/resources/customer.rb +16 -0
  301. data/lib/stripe/resources/customer_session.rb +36 -0
  302. data/lib/stripe/resources/dispute.rb +18 -0
  303. data/lib/stripe/resources/event.rb +64 -1
  304. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  305. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  306. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  307. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  308. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  309. data/lib/stripe/resources/fx_quote.rb +147 -0
  310. data/lib/stripe/resources/invoice.rb +126 -1
  311. data/lib/stripe/resources/invoice_item.rb +2 -0
  312. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  313. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  314. data/lib/stripe/resources/issuing/card.rb +16 -0
  315. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  316. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  317. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  318. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  319. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  320. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  321. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  322. data/lib/stripe/resources/line_item.rb +42 -0
  323. data/lib/stripe/resources/mandate.rb +12 -0
  324. data/lib/stripe/resources/margin.rb +64 -0
  325. data/lib/stripe/resources/order.rb +927 -0
  326. data/lib/stripe/resources/payment_attempt_record.rb +177 -1
  327. data/lib/stripe/resources/payment_intent.rb +1018 -13
  328. data/lib/stripe/resources/payment_method.rb +151 -0
  329. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  330. data/lib/stripe/resources/payment_plan.rb +213 -0
  331. data/lib/stripe/resources/payment_record.rb +177 -1
  332. data/lib/stripe/resources/price.rb +20 -0
  333. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  334. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  335. data/lib/stripe/resources/quote.rb +569 -2
  336. data/lib/stripe/resources/quote_line.rb +525 -0
  337. data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
  338. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
  339. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  340. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  341. data/lib/stripe/resources/refund.rb +18 -0
  342. data/lib/stripe/resources/reserve/hold.rb +7 -0
  343. data/lib/stripe/resources/reserve/plan.rb +7 -0
  344. data/lib/stripe/resources/reserve/release.rb +12 -0
  345. data/lib/stripe/resources/setup_attempt.rb +35 -0
  346. data/lib/stripe/resources/setup_intent.rb +38 -1
  347. data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
  348. data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
  349. data/lib/stripe/resources/source.rb +54 -0
  350. data/lib/stripe/resources/subscription.rb +73 -0
  351. data/lib/stripe/resources/subscription_item.rb +22 -1
  352. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  353. data/lib/stripe/resources/tax/form.rb +264 -0
  354. data/lib/stripe/resources/terminal/reader.rb +8 -0
  355. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  356. data/lib/stripe/resources/token.rb +15 -1
  357. data/lib/stripe/resources/transfer.rb +2 -0
  358. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  359. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  360. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  361. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  362. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  363. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  364. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  365. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  366. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  367. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  368. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  369. data/lib/stripe/resources/v2/core/account.rb +802 -2
  370. data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
  371. data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
  372. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  373. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
  374. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
  375. data/lib/stripe/resources/v2/data/query_run.rb +255 -0
  376. data/lib/stripe/resources/v2/data/report.rb +104 -0
  377. data/lib/stripe/resources/v2/data/report_run.rb +246 -0
  378. data/lib/stripe/resources/v2/data/reporting/query_run.rb +143 -0
  379. data/lib/stripe/resources/v2/data/schema.rb +121 -0
  380. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  381. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  382. data/lib/stripe/resources/v2/iam/activity_log.rb +926 -0
  383. data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
  384. data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
  385. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
  386. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  387. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
  388. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
  389. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
  390. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
  391. data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -1
  392. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  393. data/lib/stripe/resources/v2/money_management/received_debit.rb +177 -0
  394. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
  395. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  396. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  397. data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
  398. data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
  399. data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
  400. data/lib/stripe/resources.rb +339 -0
  401. data/lib/stripe/services/account_notice_service.rb +39 -0
  402. data/lib/stripe/services/account_service.rb +15 -0
  403. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  404. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  405. data/lib/stripe/services/billing_service.rb +2 -1
  406. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  407. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  408. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  409. data/lib/stripe/services/capital_service.rb +15 -0
  410. data/lib/stripe/services/coupon_service.rb +14 -0
  411. data/lib/stripe/services/customer_service.rb +15 -0
  412. data/lib/stripe/services/external_account_service.rb +68 -0
  413. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  414. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  415. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  416. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  417. data/lib/stripe/services/financial_connections_service.rb +3 -1
  418. data/lib/stripe/services/fx_quote_service.rb +27 -0
  419. data/lib/stripe/services/invoice_service.rb +11 -0
  420. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  421. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  422. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  423. data/lib/stripe/services/issuing_service.rb +5 -1
  424. data/lib/stripe/services/mandate_service.rb +5 -0
  425. data/lib/stripe/services/margin_service.rb +50 -0
  426. data/lib/stripe/services/order_service.rb +53 -0
  427. data/lib/stripe/services/payment_intent_service.rb +37 -0
  428. data/lib/stripe/services/payment_plan_service.rb +50 -0
  429. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  430. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  431. data/lib/stripe/services/privacy_service.rb +13 -0
  432. data/lib/stripe/services/promotion_code_service.rb +29 -0
  433. data/lib/stripe/services/quote_line_service.rb +17 -0
  434. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  435. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  436. data/lib/stripe/services/quote_service.rb +49 -1
  437. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  438. data/lib/stripe/services/radar_service.rb +2 -1
  439. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  440. data/lib/stripe/services/reserve/plan_service.rb +30 -0
  441. data/lib/stripe/services/reserve/release_service.rb +30 -0
  442. data/lib/stripe/services/reserve_service.rb +15 -0
  443. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  444. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  445. data/lib/stripe/services/shared_payment_service.rb +14 -0
  446. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  447. data/lib/stripe/services/subscription_service.rb +45 -0
  448. data/lib/stripe/services/tax/form_service.rb +37 -0
  449. data/lib/stripe/services/tax_service.rb +2 -1
  450. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  451. data/lib/stripe/services/terminal_service.rb +2 -1
  452. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  453. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  454. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  455. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  456. data/lib/stripe/services/test_helpers_service.rb +3 -1
  457. data/lib/stripe/services/v1_services.rb +11 -1
  458. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  459. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  460. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  461. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  462. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  463. data/lib/stripe/services/v2/billing_service.rb +4 -1
  464. data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
  465. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  466. data/lib/stripe/services/v2/core_service.rb +3 -1
  467. data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
  468. data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
  469. data/lib/stripe/services/v2/data/report_service.rb +34 -0
  470. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  471. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  472. data/lib/stripe/services/v2/data/schema_service.rb +32 -0
  473. data/lib/stripe/services/v2/data_service.rb +19 -0
  474. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  475. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  476. data/lib/stripe/services/v2/extend_service.rb +16 -0
  477. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  478. data/lib/stripe/services/v2/iam_service.rb +15 -0
  479. data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
  480. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
  481. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
  482. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  483. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  484. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
  485. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  486. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  487. data/lib/stripe/services/v2/network_service.rb +15 -0
  488. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  489. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  490. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  491. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  492. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  493. data/lib/stripe/services/v2/signals_service.rb +17 -0
  494. data/lib/stripe/services/v2_services.rb +7 -1
  495. data/lib/stripe/services.rb +186 -0
  496. data/lib/stripe/stripe_client.rb +4 -1
  497. data/lib/stripe/stripe_configuration.rb +3 -1
  498. data/lib/stripe/stripe_event_notification_handler.rb +216 -0
  499. data/lib/stripe/stripe_object.rb +1 -1
  500. data/lib/stripe/util.rb +7 -1
  501. data/lib/stripe/version.rb +1 -1
  502. data/lib/stripe.rb +53 -0
  503. data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
  504. data/rbi/stripe.rbi +100059 -38254
  505. metadata +330 -3
@@ -145,6 +145,18 @@ module Stripe
145
145
  end
146
146
  end
147
147
 
148
+ class Surcharge < ::Stripe::RequestParams
149
+ # Portion of the amount that corresponds to a surcharge.
150
+ attr_accessor :amount
151
+ # Indicate whether to enforce validations on the surcharge amount.
152
+ attr_accessor :enforce_validation
153
+
154
+ def initialize(amount: nil, enforce_validation: nil)
155
+ @amount = amount
156
+ @enforce_validation = enforce_validation
157
+ end
158
+ end
159
+
148
160
  class Tax < ::Stripe::RequestParams
149
161
  # 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
162
  #
@@ -169,6 +181,8 @@ module Stripe
169
181
  attr_accessor :line_items
170
182
  # Contains information about the shipping portion of the amount.
171
183
  attr_accessor :shipping
184
+ # Contains information about the surcharge portion of the amount.
185
+ attr_accessor :surcharge
172
186
  # Contains information about the tax portion of the amount.
173
187
  attr_accessor :tax
174
188
 
@@ -177,12 +191,14 @@ module Stripe
177
191
  enforce_arithmetic_validation: nil,
178
192
  line_items: nil,
179
193
  shipping: nil,
194
+ surcharge: nil,
180
195
  tax: nil
181
196
  )
182
197
  @discount_amount = discount_amount
183
198
  @enforce_arithmetic_validation = enforce_arithmetic_validation
184
199
  @line_items = line_items
185
200
  @shipping = shipping
201
+ @surcharge = surcharge
186
202
  @tax = tax
187
203
  end
188
204
  end
@@ -252,6 +268,232 @@ module Stripe
252
268
  end
253
269
 
254
270
  class PaymentDetails < ::Stripe::RequestParams
271
+ class CarRental < ::Stripe::RequestParams
272
+ class Affiliate < ::Stripe::RequestParams
273
+ # The name of the affiliate that originated the purchase.
274
+ attr_accessor :name
275
+
276
+ def initialize(name: nil)
277
+ @name = name
278
+ end
279
+ end
280
+
281
+ class Delivery < ::Stripe::RequestParams
282
+ class Recipient < ::Stripe::RequestParams
283
+ # The email of the recipient the ticket is delivered to.
284
+ attr_accessor :email
285
+ # The name of the recipient the ticket is delivered to.
286
+ attr_accessor :name
287
+ # The phone number of the recipient the ticket is delivered to.
288
+ attr_accessor :phone
289
+
290
+ def initialize(email: nil, name: nil, phone: nil)
291
+ @email = email
292
+ @name = name
293
+ @phone = phone
294
+ end
295
+ end
296
+ # The delivery method for the payment
297
+ attr_accessor :mode
298
+ # Details of the recipient.
299
+ attr_accessor :recipient
300
+
301
+ def initialize(mode: nil, recipient: nil)
302
+ @mode = mode
303
+ @recipient = recipient
304
+ end
305
+ end
306
+
307
+ class Distance < ::Stripe::RequestParams
308
+ # Distance traveled.
309
+ attr_accessor :amount
310
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
311
+ attr_accessor :unit
312
+
313
+ def initialize(amount: nil, unit: nil)
314
+ @amount = amount
315
+ @unit = unit
316
+ end
317
+ end
318
+
319
+ class Driver < ::Stripe::RequestParams
320
+ # Driver's identification number.
321
+ attr_accessor :driver_identification_number
322
+ # Driver's tax number.
323
+ attr_accessor :driver_tax_number
324
+ # Full name of the person or entity on the car reservation.
325
+ attr_accessor :name
326
+
327
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
328
+ @driver_identification_number = driver_identification_number
329
+ @driver_tax_number = driver_tax_number
330
+ @name = name
331
+ end
332
+ end
333
+
334
+ class PickupAddress < ::Stripe::RequestParams
335
+ # City, district, suburb, town, or village.
336
+ attr_accessor :city
337
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
338
+ attr_accessor :country
339
+ # Address line 1, such as the street, PO Box, or company name.
340
+ attr_accessor :line1
341
+ # Address line 2, such as the apartment, suite, unit, or building.
342
+ attr_accessor :line2
343
+ # ZIP or postal code.
344
+ attr_accessor :postal_code
345
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
346
+ attr_accessor :state
347
+
348
+ def initialize(
349
+ city: nil,
350
+ country: nil,
351
+ line1: nil,
352
+ line2: nil,
353
+ postal_code: nil,
354
+ state: nil
355
+ )
356
+ @city = city
357
+ @country = country
358
+ @line1 = line1
359
+ @line2 = line2
360
+ @postal_code = postal_code
361
+ @state = state
362
+ end
363
+ end
364
+
365
+ class ReturnAddress < ::Stripe::RequestParams
366
+ # City, district, suburb, town, or village.
367
+ attr_accessor :city
368
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
369
+ attr_accessor :country
370
+ # Address line 1, such as the street, PO Box, or company name.
371
+ attr_accessor :line1
372
+ # Address line 2, such as the apartment, suite, unit, or building.
373
+ attr_accessor :line2
374
+ # ZIP or postal code.
375
+ attr_accessor :postal_code
376
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
377
+ attr_accessor :state
378
+
379
+ def initialize(
380
+ city: nil,
381
+ country: nil,
382
+ line1: nil,
383
+ line2: nil,
384
+ postal_code: nil,
385
+ state: nil
386
+ )
387
+ @city = city
388
+ @country = country
389
+ @line1 = line1
390
+ @line2 = line2
391
+ @postal_code = postal_code
392
+ @state = state
393
+ end
394
+ end
395
+ # Affiliate details for this purchase.
396
+ attr_accessor :affiliate
397
+ # The booking number associated with the car rental.
398
+ attr_accessor :booking_number
399
+ # Class code of the car.
400
+ attr_accessor :car_class_code
401
+ # Make of the car.
402
+ attr_accessor :car_make
403
+ # Model of the car.
404
+ attr_accessor :car_model
405
+ # The name of the rental car company.
406
+ attr_accessor :company
407
+ # The customer service phone number of the car rental company.
408
+ attr_accessor :customer_service_phone_number
409
+ # Number of days the car is being rented.
410
+ attr_accessor :days_rented
411
+ # Delivery details for this purchase.
412
+ attr_accessor :delivery
413
+ # The details of the distance traveled during the rental period.
414
+ attr_accessor :distance
415
+ # The details of the passengers in the travel reservation
416
+ attr_accessor :drivers
417
+ # List of additional charges being billed.
418
+ attr_accessor :extra_charges
419
+ # Indicates if the customer did not keep nor cancel their booking.
420
+ attr_accessor :no_show
421
+ # Car pick-up address.
422
+ attr_accessor :pickup_address
423
+ # Car pick-up time. Measured in seconds since the Unix epoch.
424
+ attr_accessor :pickup_at
425
+ # Name of the pickup location.
426
+ attr_accessor :pickup_location_name
427
+ # Rental rate.
428
+ attr_accessor :rate_amount
429
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
430
+ attr_accessor :rate_interval
431
+ # The name of the person or entity renting the car.
432
+ attr_accessor :renter_name
433
+ # Car return address.
434
+ attr_accessor :return_address
435
+ # Car return time. Measured in seconds since the Unix epoch.
436
+ attr_accessor :return_at
437
+ # Name of the return location.
438
+ attr_accessor :return_location_name
439
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
440
+ attr_accessor :tax_exempt
441
+ # The vehicle identification number.
442
+ attr_accessor :vehicle_identification_number
443
+
444
+ def initialize(
445
+ affiliate: nil,
446
+ booking_number: nil,
447
+ car_class_code: nil,
448
+ car_make: nil,
449
+ car_model: nil,
450
+ company: nil,
451
+ customer_service_phone_number: nil,
452
+ days_rented: nil,
453
+ delivery: nil,
454
+ distance: nil,
455
+ drivers: nil,
456
+ extra_charges: nil,
457
+ no_show: nil,
458
+ pickup_address: nil,
459
+ pickup_at: nil,
460
+ pickup_location_name: nil,
461
+ rate_amount: nil,
462
+ rate_interval: nil,
463
+ renter_name: nil,
464
+ return_address: nil,
465
+ return_at: nil,
466
+ return_location_name: nil,
467
+ tax_exempt: nil,
468
+ vehicle_identification_number: nil
469
+ )
470
+ @affiliate = affiliate
471
+ @booking_number = booking_number
472
+ @car_class_code = car_class_code
473
+ @car_make = car_make
474
+ @car_model = car_model
475
+ @company = company
476
+ @customer_service_phone_number = customer_service_phone_number
477
+ @days_rented = days_rented
478
+ @delivery = delivery
479
+ @distance = distance
480
+ @drivers = drivers
481
+ @extra_charges = extra_charges
482
+ @no_show = no_show
483
+ @pickup_address = pickup_address
484
+ @pickup_at = pickup_at
485
+ @pickup_location_name = pickup_location_name
486
+ @rate_amount = rate_amount
487
+ @rate_interval = rate_interval
488
+ @renter_name = renter_name
489
+ @return_address = return_address
490
+ @return_at = return_at
491
+ @return_location_name = return_location_name
492
+ @tax_exempt = tax_exempt
493
+ @vehicle_identification_number = vehicle_identification_number
494
+ end
495
+ end
496
+
255
497
  class CarRentalDatum < ::Stripe::RequestParams
256
498
  class Affiliate < ::Stripe::RequestParams
257
499
  # Affiliate partner code.
@@ -442,15 +684,567 @@ module Stripe
442
684
  maximum_free_miles_or_kilometers: nil
443
685
  )
444
686
  @corporate_client_code = corporate_client_code
445
- @coupon = coupon
446
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
687
+ @coupon = coupon
688
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
689
+ end
690
+ end
691
+
692
+ class ExtraCharge < ::Stripe::RequestParams
693
+ # Amount of the extra charge in cents.
694
+ attr_accessor :amount
695
+ # Type of extra charge.
696
+ attr_accessor :type
697
+
698
+ def initialize(amount: nil, type: nil)
699
+ @amount = amount
700
+ @type = type
701
+ end
702
+ end
703
+
704
+ class Tax < ::Stripe::RequestParams
705
+ class TaxItem < ::Stripe::RequestParams
706
+ # Tax amount.
707
+ attr_accessor :amount
708
+ # Tax rate applied.
709
+ attr_accessor :rate
710
+ # Type of tax applied.
711
+ attr_accessor :type
712
+
713
+ def initialize(amount: nil, rate: nil, type: nil)
714
+ @amount = amount
715
+ @rate = rate
716
+ @type = type
717
+ end
718
+ end
719
+ # Indicates if the transaction is tax exempt.
720
+ attr_accessor :tax_exempt_indicator
721
+ # Array of tax details.
722
+ attr_accessor :tax_items
723
+
724
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
725
+ @tax_exempt_indicator = tax_exempt_indicator
726
+ @tax_items = tax_items
727
+ end
728
+ end
729
+ # Total amount in cents.
730
+ attr_accessor :amount
731
+ # Currency of the amount.
732
+ attr_accessor :currency
733
+ # Discount details for the rental.
734
+ attr_accessor :discounts
735
+ # Additional charges for the rental.
736
+ attr_accessor :extra_charges
737
+ # Rate per unit for the rental.
738
+ attr_accessor :rate_per_unit
739
+ # Unit of measurement for the rate.
740
+ attr_accessor :rate_unit
741
+ # Tax breakdown for the rental.
742
+ attr_accessor :tax
743
+
744
+ def initialize(
745
+ amount: nil,
746
+ currency: nil,
747
+ discounts: nil,
748
+ extra_charges: nil,
749
+ rate_per_unit: nil,
750
+ rate_unit: nil,
751
+ tax: nil
752
+ )
753
+ @amount = amount
754
+ @currency = currency
755
+ @discounts = discounts
756
+ @extra_charges = extra_charges
757
+ @rate_per_unit = rate_per_unit
758
+ @rate_unit = rate_unit
759
+ @tax = tax
760
+ end
761
+ end
762
+
763
+ class Vehicle < ::Stripe::RequestParams
764
+ # Make of the rental vehicle.
765
+ attr_accessor :make
766
+ # Model of the rental vehicle.
767
+ attr_accessor :model
768
+ # Odometer reading at the time of rental.
769
+ attr_accessor :odometer
770
+ # Type of the rental vehicle.
771
+ attr_accessor :type
772
+ # Class of the rental vehicle.
773
+ attr_accessor :vehicle_class
774
+ # Vehicle identification number (VIN).
775
+ attr_accessor :vehicle_identification_number
776
+
777
+ def initialize(
778
+ make: nil,
779
+ model: nil,
780
+ odometer: nil,
781
+ type: nil,
782
+ vehicle_class: nil,
783
+ vehicle_identification_number: nil
784
+ )
785
+ @make = make
786
+ @model = model
787
+ @odometer = odometer
788
+ @type = type
789
+ @vehicle_class = vehicle_class
790
+ @vehicle_identification_number = vehicle_identification_number
791
+ end
792
+ end
793
+ # Affiliate (such as travel agency) details for the rental.
794
+ attr_accessor :affiliate
795
+ # Booking confirmation number for the car rental.
796
+ attr_accessor :booking_number
797
+ # Name of the car rental company.
798
+ attr_accessor :carrier_name
799
+ # Customer service phone number for the car rental company.
800
+ attr_accessor :customer_service_phone_number
801
+ # Number of days the car is being rented.
802
+ attr_accessor :days_rented
803
+ # Distance details for the rental.
804
+ attr_accessor :distance
805
+ # List of drivers for the rental.
806
+ attr_accessor :drivers
807
+ # Drop-off location details.
808
+ attr_accessor :drop_off
809
+ # Insurance details for the rental.
810
+ attr_accessor :insurances
811
+ # Indicates if the customer was a no-show.
812
+ attr_accessor :no_show_indicator
813
+ # Pickup location details.
814
+ attr_accessor :pickup
815
+ # Name of the person renting the vehicle.
816
+ attr_accessor :renter_name
817
+ # Total cost breakdown for the rental.
818
+ attr_accessor :total
819
+ # Vehicle details for the rental.
820
+ attr_accessor :vehicle
821
+
822
+ def initialize(
823
+ affiliate: nil,
824
+ booking_number: nil,
825
+ carrier_name: nil,
826
+ customer_service_phone_number: nil,
827
+ days_rented: nil,
828
+ distance: nil,
829
+ drivers: nil,
830
+ drop_off: nil,
831
+ insurances: nil,
832
+ no_show_indicator: nil,
833
+ pickup: nil,
834
+ renter_name: nil,
835
+ total: nil,
836
+ vehicle: nil
837
+ )
838
+ @affiliate = affiliate
839
+ @booking_number = booking_number
840
+ @carrier_name = carrier_name
841
+ @customer_service_phone_number = customer_service_phone_number
842
+ @days_rented = days_rented
843
+ @distance = distance
844
+ @drivers = drivers
845
+ @drop_off = drop_off
846
+ @insurances = insurances
847
+ @no_show_indicator = no_show_indicator
848
+ @pickup = pickup
849
+ @renter_name = renter_name
850
+ @total = total
851
+ @vehicle = vehicle
852
+ end
853
+ end
854
+
855
+ class EventDetails < ::Stripe::RequestParams
856
+ class Address < ::Stripe::RequestParams
857
+ # City, district, suburb, town, or village.
858
+ attr_accessor :city
859
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
860
+ attr_accessor :country
861
+ # Address line 1, such as the street, PO Box, or company name.
862
+ attr_accessor :line1
863
+ # Address line 2, such as the apartment, suite, unit, or building.
864
+ attr_accessor :line2
865
+ # ZIP or postal code.
866
+ attr_accessor :postal_code
867
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
868
+ attr_accessor :state
869
+
870
+ def initialize(
871
+ city: nil,
872
+ country: nil,
873
+ line1: nil,
874
+ line2: nil,
875
+ postal_code: nil,
876
+ state: nil
877
+ )
878
+ @city = city
879
+ @country = country
880
+ @line1 = line1
881
+ @line2 = line2
882
+ @postal_code = postal_code
883
+ @state = state
884
+ end
885
+ end
886
+
887
+ class Affiliate < ::Stripe::RequestParams
888
+ # The name of the affiliate that originated the purchase.
889
+ attr_accessor :name
890
+
891
+ def initialize(name: nil)
892
+ @name = name
893
+ end
894
+ end
895
+
896
+ class Delivery < ::Stripe::RequestParams
897
+ class Recipient < ::Stripe::RequestParams
898
+ # The email of the recipient the ticket is delivered to.
899
+ attr_accessor :email
900
+ # The name of the recipient the ticket is delivered to.
901
+ attr_accessor :name
902
+ # The phone number of the recipient the ticket is delivered to.
903
+ attr_accessor :phone
904
+
905
+ def initialize(email: nil, name: nil, phone: nil)
906
+ @email = email
907
+ @name = name
908
+ @phone = phone
909
+ end
910
+ end
911
+ # The delivery method for the payment
912
+ attr_accessor :mode
913
+ # Details of the recipient.
914
+ attr_accessor :recipient
915
+
916
+ def initialize(mode: nil, recipient: nil)
917
+ @mode = mode
918
+ @recipient = recipient
919
+ end
920
+ end
921
+ # Indicates if the tickets are digitally checked when entering the venue.
922
+ attr_accessor :access_controlled_venue
923
+ # The event location's address.
924
+ attr_accessor :address
925
+ # Affiliate details for this purchase.
926
+ attr_accessor :affiliate
927
+ # The name of the company
928
+ attr_accessor :company
929
+ # Delivery details for this purchase.
930
+ attr_accessor :delivery
931
+ # Event end time. Measured in seconds since the Unix epoch.
932
+ attr_accessor :ends_at
933
+ # Type of the event entertainment (concert, sports event etc)
934
+ attr_accessor :genre
935
+ # The name of the event.
936
+ attr_accessor :name
937
+ # Event start time. Measured in seconds since the Unix epoch.
938
+ attr_accessor :starts_at
939
+
940
+ def initialize(
941
+ access_controlled_venue: nil,
942
+ address: nil,
943
+ affiliate: nil,
944
+ company: nil,
945
+ delivery: nil,
946
+ ends_at: nil,
947
+ genre: nil,
948
+ name: nil,
949
+ starts_at: nil
950
+ )
951
+ @access_controlled_venue = access_controlled_venue
952
+ @address = address
953
+ @affiliate = affiliate
954
+ @company = company
955
+ @delivery = delivery
956
+ @ends_at = ends_at
957
+ @genre = genre
958
+ @name = name
959
+ @starts_at = starts_at
960
+ end
961
+ end
962
+
963
+ class Flight < ::Stripe::RequestParams
964
+ class Affiliate < ::Stripe::RequestParams
965
+ # The name of the affiliate that originated the purchase.
966
+ attr_accessor :name
967
+
968
+ def initialize(name: nil)
969
+ @name = name
970
+ end
971
+ end
972
+
973
+ class Delivery < ::Stripe::RequestParams
974
+ class Recipient < ::Stripe::RequestParams
975
+ # The email of the recipient the ticket is delivered to.
976
+ attr_accessor :email
977
+ # The name of the recipient the ticket is delivered to.
978
+ attr_accessor :name
979
+ # The phone number of the recipient the ticket is delivered to.
980
+ attr_accessor :phone
981
+
982
+ def initialize(email: nil, name: nil, phone: nil)
983
+ @email = email
984
+ @name = name
985
+ @phone = phone
986
+ end
987
+ end
988
+ # The delivery method for the payment
989
+ attr_accessor :mode
990
+ # Details of the recipient.
991
+ attr_accessor :recipient
992
+
993
+ def initialize(mode: nil, recipient: nil)
994
+ @mode = mode
995
+ @recipient = recipient
996
+ end
997
+ end
998
+
999
+ class Passenger < ::Stripe::RequestParams
1000
+ # Full name of the person or entity on the flight reservation.
1001
+ attr_accessor :name
1002
+
1003
+ def initialize(name: nil)
1004
+ @name = name
1005
+ end
1006
+ end
1007
+
1008
+ class Segment < ::Stripe::RequestParams
1009
+ # The flight segment amount.
1010
+ attr_accessor :amount
1011
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1012
+ attr_accessor :arrival_airport
1013
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1014
+ attr_accessor :arrives_at
1015
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1016
+ attr_accessor :carrier
1017
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1018
+ attr_accessor :departs_at
1019
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1020
+ attr_accessor :departure_airport
1021
+ # The flight number associated with the segment
1022
+ attr_accessor :flight_number
1023
+ # The fare class for the segment.
1024
+ attr_accessor :service_class
1025
+
1026
+ def initialize(
1027
+ amount: nil,
1028
+ arrival_airport: nil,
1029
+ arrives_at: nil,
1030
+ carrier: nil,
1031
+ departs_at: nil,
1032
+ departure_airport: nil,
1033
+ flight_number: nil,
1034
+ service_class: nil
1035
+ )
1036
+ @amount = amount
1037
+ @arrival_airport = arrival_airport
1038
+ @arrives_at = arrives_at
1039
+ @carrier = carrier
1040
+ @departs_at = departs_at
1041
+ @departure_airport = departure_airport
1042
+ @flight_number = flight_number
1043
+ @service_class = service_class
1044
+ end
1045
+ end
1046
+ # Affiliate details for this purchase.
1047
+ attr_accessor :affiliate
1048
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1049
+ attr_accessor :agency_number
1050
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1051
+ attr_accessor :carrier
1052
+ # Delivery details for this purchase.
1053
+ attr_accessor :delivery
1054
+ # The name of the person or entity on the reservation.
1055
+ attr_accessor :passenger_name
1056
+ # The details of the passengers in the travel reservation.
1057
+ attr_accessor :passengers
1058
+ # The individual flight segments associated with the trip.
1059
+ attr_accessor :segments
1060
+ # The ticket number associated with the travel reservation.
1061
+ attr_accessor :ticket_number
1062
+
1063
+ def initialize(
1064
+ affiliate: nil,
1065
+ agency_number: nil,
1066
+ carrier: nil,
1067
+ delivery: nil,
1068
+ passenger_name: nil,
1069
+ passengers: nil,
1070
+ segments: nil,
1071
+ ticket_number: nil
1072
+ )
1073
+ @affiliate = affiliate
1074
+ @agency_number = agency_number
1075
+ @carrier = carrier
1076
+ @delivery = delivery
1077
+ @passenger_name = passenger_name
1078
+ @passengers = passengers
1079
+ @segments = segments
1080
+ @ticket_number = ticket_number
1081
+ end
1082
+ end
1083
+
1084
+ class FlightDatum < ::Stripe::RequestParams
1085
+ class Affiliate < ::Stripe::RequestParams
1086
+ # Affiliate partner code.
1087
+ attr_accessor :code
1088
+ # Name of affiliate partner.
1089
+ attr_accessor :name
1090
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1091
+ attr_accessor :travel_authorization_code
1092
+
1093
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1094
+ @code = code
1095
+ @name = name
1096
+ @travel_authorization_code = travel_authorization_code
1097
+ end
1098
+ end
1099
+
1100
+ class Insurance < ::Stripe::RequestParams
1101
+ # Insurance cost.
1102
+ attr_accessor :amount
1103
+ # Insurance currency.
1104
+ attr_accessor :currency
1105
+ # Insurance company name.
1106
+ attr_accessor :insurance_company_name
1107
+ # Type of insurance.
1108
+ attr_accessor :insurance_type
1109
+
1110
+ def initialize(
1111
+ amount: nil,
1112
+ currency: nil,
1113
+ insurance_company_name: nil,
1114
+ insurance_type: nil
1115
+ )
1116
+ @amount = amount
1117
+ @currency = currency
1118
+ @insurance_company_name = insurance_company_name
1119
+ @insurance_type = insurance_type
1120
+ end
1121
+ end
1122
+
1123
+ class Passenger < ::Stripe::RequestParams
1124
+ # Passenger's full name.
1125
+ attr_accessor :name
1126
+
1127
+ def initialize(name: nil)
1128
+ @name = name
1129
+ end
1130
+ end
1131
+
1132
+ class Segment < ::Stripe::RequestParams
1133
+ class Arrival < ::Stripe::RequestParams
1134
+ # Arrival airport IATA code.
1135
+ attr_accessor :airport
1136
+ # Arrival date/time.
1137
+ attr_accessor :arrives_at
1138
+ # Arrival city.
1139
+ attr_accessor :city
1140
+ # Arrival country.
1141
+ attr_accessor :country
1142
+
1143
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1144
+ @airport = airport
1145
+ @arrives_at = arrives_at
1146
+ @city = city
1147
+ @country = country
1148
+ end
1149
+ end
1150
+
1151
+ class Departure < ::Stripe::RequestParams
1152
+ # Departure airport IATA code.
1153
+ attr_accessor :airport
1154
+ # Departure city.
1155
+ attr_accessor :city
1156
+ # Departure country.
1157
+ attr_accessor :country
1158
+ # Departure date/time.
1159
+ attr_accessor :departs_at
1160
+
1161
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1162
+ @airport = airport
1163
+ @city = city
1164
+ @country = country
1165
+ @departs_at = departs_at
1166
+ end
1167
+ end
1168
+ # Segment fare amount.
1169
+ attr_accessor :amount
1170
+ # Arrival details.
1171
+ attr_accessor :arrival
1172
+ # Airline carrier code.
1173
+ attr_accessor :carrier_code
1174
+ # Carrier name.
1175
+ attr_accessor :carrier_name
1176
+ # Segment currency.
1177
+ attr_accessor :currency
1178
+ # Departure details.
1179
+ attr_accessor :departure
1180
+ # Exchange ticket number.
1181
+ attr_accessor :exchange_ticket_number
1182
+ # Fare basis code.
1183
+ attr_accessor :fare_basis_code
1184
+ # Additional fees.
1185
+ attr_accessor :fees
1186
+ # Flight number.
1187
+ attr_accessor :flight_number
1188
+ # Stopover indicator.
1189
+ attr_accessor :is_stop_over_indicator
1190
+ # Refundable ticket indicator.
1191
+ attr_accessor :refundable
1192
+ # Class of service.
1193
+ attr_accessor :service_class
1194
+ # Tax amount for segment.
1195
+ attr_accessor :tax_amount
1196
+ # Ticket number.
1197
+ attr_accessor :ticket_number
1198
+
1199
+ def initialize(
1200
+ amount: nil,
1201
+ arrival: nil,
1202
+ carrier_code: nil,
1203
+ carrier_name: nil,
1204
+ currency: nil,
1205
+ departure: nil,
1206
+ exchange_ticket_number: nil,
1207
+ fare_basis_code: nil,
1208
+ fees: nil,
1209
+ flight_number: nil,
1210
+ is_stop_over_indicator: nil,
1211
+ refundable: nil,
1212
+ service_class: nil,
1213
+ tax_amount: nil,
1214
+ ticket_number: nil
1215
+ )
1216
+ @amount = amount
1217
+ @arrival = arrival
1218
+ @carrier_code = carrier_code
1219
+ @carrier_name = carrier_name
1220
+ @currency = currency
1221
+ @departure = departure
1222
+ @exchange_ticket_number = exchange_ticket_number
1223
+ @fare_basis_code = fare_basis_code
1224
+ @fees = fees
1225
+ @flight_number = flight_number
1226
+ @is_stop_over_indicator = is_stop_over_indicator
1227
+ @refundable = refundable
1228
+ @service_class = service_class
1229
+ @tax_amount = tax_amount
1230
+ @ticket_number = ticket_number
1231
+ end
1232
+ end
1233
+
1234
+ class Total < ::Stripe::RequestParams
1235
+ class Discounts < ::Stripe::RequestParams
1236
+ # Corporate client discount code.
1237
+ attr_accessor :corporate_client_code
1238
+
1239
+ def initialize(corporate_client_code: nil)
1240
+ @corporate_client_code = corporate_client_code
447
1241
  end
448
1242
  end
449
1243
 
450
1244
  class ExtraCharge < ::Stripe::RequestParams
451
- # Amount of the extra charge in cents.
1245
+ # Amount of additional charges.
452
1246
  attr_accessor :amount
453
- # Type of extra charge.
1247
+ # Type of additional charges.
454
1248
  attr_accessor :type
455
1249
 
456
1250
  def initialize(amount: nil, type: nil)
@@ -463,9 +1257,9 @@ module Stripe
463
1257
  class TaxItem < ::Stripe::RequestParams
464
1258
  # Tax amount.
465
1259
  attr_accessor :amount
466
- # Tax rate applied.
1260
+ # Tax rate.
467
1261
  attr_accessor :rate
468
- # Type of tax applied.
1262
+ # Type of tax.
469
1263
  attr_accessor :type
470
1264
 
471
1265
  def initialize(amount: nil, rate: nil, type: nil)
@@ -474,139 +1268,250 @@ module Stripe
474
1268
  @type = type
475
1269
  end
476
1270
  end
477
- # Indicates if the transaction is tax exempt.
478
- attr_accessor :tax_exempt_indicator
479
1271
  # Array of tax details.
480
1272
  attr_accessor :tax_items
481
1273
 
482
- def initialize(tax_exempt_indicator: nil, tax_items: nil)
483
- @tax_exempt_indicator = tax_exempt_indicator
1274
+ def initialize(tax_items: nil)
484
1275
  @tax_items = tax_items
485
1276
  end
486
1277
  end
487
- # Total amount in cents.
1278
+ # Total flight amount.
488
1279
  attr_accessor :amount
489
- # Currency of the amount.
1280
+ # Reason for credit.
1281
+ attr_accessor :credit_reason
1282
+ # Total currency.
490
1283
  attr_accessor :currency
491
- # Discount details for the rental.
1284
+ # Discount details.
492
1285
  attr_accessor :discounts
493
- # Additional charges for the rental.
1286
+ # Additional charges.
494
1287
  attr_accessor :extra_charges
495
- # Rate per unit for the rental.
496
- attr_accessor :rate_per_unit
497
- # Unit of measurement for the rate.
498
- attr_accessor :rate_unit
499
- # Tax breakdown for the rental.
1288
+ # Tax breakdown.
500
1289
  attr_accessor :tax
501
1290
 
502
1291
  def initialize(
503
1292
  amount: nil,
1293
+ credit_reason: nil,
504
1294
  currency: nil,
505
1295
  discounts: nil,
506
1296
  extra_charges: nil,
507
- rate_per_unit: nil,
508
- rate_unit: nil,
509
1297
  tax: nil
510
1298
  )
511
1299
  @amount = amount
1300
+ @credit_reason = credit_reason
512
1301
  @currency = currency
513
1302
  @discounts = discounts
514
1303
  @extra_charges = extra_charges
515
- @rate_per_unit = rate_per_unit
516
- @rate_unit = rate_unit
517
1304
  @tax = tax
518
1305
  end
519
1306
  end
1307
+ # Affiliate details if applicable.
1308
+ attr_accessor :affiliate
1309
+ # Reservation reference.
1310
+ attr_accessor :booking_number
1311
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1312
+ attr_accessor :computerized_reservation_system
1313
+ # Ticket restrictions.
1314
+ attr_accessor :endorsements_and_restrictions
1315
+ # List of insurances.
1316
+ attr_accessor :insurances
1317
+ # List of passengers.
1318
+ attr_accessor :passengers
1319
+ # List of flight segments.
1320
+ attr_accessor :segments
1321
+ # Electronic ticket indicator.
1322
+ attr_accessor :ticket_electronically_issued_indicator
1323
+ # Total cost breakdown.
1324
+ attr_accessor :total
1325
+ # Type of flight transaction.
1326
+ attr_accessor :transaction_type
520
1327
 
521
- class Vehicle < ::Stripe::RequestParams
522
- # Make of the rental vehicle.
523
- attr_accessor :make
524
- # Model of the rental vehicle.
525
- attr_accessor :model
526
- # Odometer reading at the time of rental.
527
- attr_accessor :odometer
528
- # Type of the rental vehicle.
529
- attr_accessor :type
530
- # Class of the rental vehicle.
531
- attr_accessor :vehicle_class
532
- # Vehicle identification number (VIN).
533
- attr_accessor :vehicle_identification_number
1328
+ def initialize(
1329
+ affiliate: nil,
1330
+ booking_number: nil,
1331
+ computerized_reservation_system: nil,
1332
+ endorsements_and_restrictions: nil,
1333
+ insurances: nil,
1334
+ passengers: nil,
1335
+ segments: nil,
1336
+ ticket_electronically_issued_indicator: nil,
1337
+ total: nil,
1338
+ transaction_type: nil
1339
+ )
1340
+ @affiliate = affiliate
1341
+ @booking_number = booking_number
1342
+ @computerized_reservation_system = computerized_reservation_system
1343
+ @endorsements_and_restrictions = endorsements_and_restrictions
1344
+ @insurances = insurances
1345
+ @passengers = passengers
1346
+ @segments = segments
1347
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1348
+ @total = total
1349
+ @transaction_type = transaction_type
1350
+ end
1351
+ end
1352
+
1353
+ class Lodging < ::Stripe::RequestParams
1354
+ class Address < ::Stripe::RequestParams
1355
+ # City, district, suburb, town, or village.
1356
+ attr_accessor :city
1357
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1358
+ attr_accessor :country
1359
+ # Address line 1, such as the street, PO Box, or company name.
1360
+ attr_accessor :line1
1361
+ # Address line 2, such as the apartment, suite, unit, or building.
1362
+ attr_accessor :line2
1363
+ # ZIP or postal code.
1364
+ attr_accessor :postal_code
1365
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1366
+ attr_accessor :state
534
1367
 
535
1368
  def initialize(
536
- make: nil,
537
- model: nil,
538
- odometer: nil,
539
- type: nil,
540
- vehicle_class: nil,
541
- vehicle_identification_number: nil
1369
+ city: nil,
1370
+ country: nil,
1371
+ line1: nil,
1372
+ line2: nil,
1373
+ postal_code: nil,
1374
+ state: nil
542
1375
  )
543
- @make = make
544
- @model = model
545
- @odometer = odometer
546
- @type = type
547
- @vehicle_class = vehicle_class
548
- @vehicle_identification_number = vehicle_identification_number
1376
+ @city = city
1377
+ @country = country
1378
+ @line1 = line1
1379
+ @line2 = line2
1380
+ @postal_code = postal_code
1381
+ @state = state
549
1382
  end
550
1383
  end
551
- # Affiliate (such as travel agency) details for the rental.
1384
+
1385
+ class Affiliate < ::Stripe::RequestParams
1386
+ # The name of the affiliate that originated the purchase.
1387
+ attr_accessor :name
1388
+
1389
+ def initialize(name: nil)
1390
+ @name = name
1391
+ end
1392
+ end
1393
+
1394
+ class Delivery < ::Stripe::RequestParams
1395
+ class Recipient < ::Stripe::RequestParams
1396
+ # The email of the recipient the ticket is delivered to.
1397
+ attr_accessor :email
1398
+ # The name of the recipient the ticket is delivered to.
1399
+ attr_accessor :name
1400
+ # The phone number of the recipient the ticket is delivered to.
1401
+ attr_accessor :phone
1402
+
1403
+ def initialize(email: nil, name: nil, phone: nil)
1404
+ @email = email
1405
+ @name = name
1406
+ @phone = phone
1407
+ end
1408
+ end
1409
+ # The delivery method for the payment
1410
+ attr_accessor :mode
1411
+ # Details of the recipient.
1412
+ attr_accessor :recipient
1413
+
1414
+ def initialize(mode: nil, recipient: nil)
1415
+ @mode = mode
1416
+ @recipient = recipient
1417
+ end
1418
+ end
1419
+
1420
+ class Passenger < ::Stripe::RequestParams
1421
+ # Full name of the person or entity on the lodging reservation.
1422
+ attr_accessor :name
1423
+
1424
+ def initialize(name: nil)
1425
+ @name = name
1426
+ end
1427
+ end
1428
+ # The lodging location's address.
1429
+ attr_accessor :address
1430
+ # The number of adults on the booking
1431
+ attr_accessor :adults
1432
+ # Affiliate details for this purchase.
552
1433
  attr_accessor :affiliate
553
- # Booking confirmation number for the car rental.
1434
+ # The booking number associated with the lodging reservation.
554
1435
  attr_accessor :booking_number
555
- # Name of the car rental company.
556
- attr_accessor :carrier_name
557
- # Customer service phone number for the car rental company.
1436
+ # The lodging category
1437
+ attr_accessor :category
1438
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1439
+ attr_accessor :checkin_at
1440
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1441
+ attr_accessor :checkout_at
1442
+ # The customer service phone number of the lodging company.
558
1443
  attr_accessor :customer_service_phone_number
559
- # Number of days the car is being rented.
560
- attr_accessor :days_rented
561
- # Distance details for the rental.
562
- attr_accessor :distance
563
- # List of drivers for the rental.
564
- attr_accessor :drivers
565
- # Drop-off location details.
566
- attr_accessor :drop_off
567
- # Insurance details for the rental.
568
- attr_accessor :insurances
569
- # Indicates if the customer was a no-show.
570
- attr_accessor :no_show_indicator
571
- # Pickup location details.
572
- attr_accessor :pickup
573
- # Name of the person renting the vehicle.
574
- attr_accessor :renter_name
575
- # Total cost breakdown for the rental.
576
- attr_accessor :total
577
- # Vehicle details for the rental.
578
- attr_accessor :vehicle
1444
+ # The daily lodging room rate.
1445
+ attr_accessor :daily_room_rate_amount
1446
+ # Delivery details for this purchase.
1447
+ attr_accessor :delivery
1448
+ # List of additional charges being billed.
1449
+ attr_accessor :extra_charges
1450
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1451
+ attr_accessor :fire_safety_act_compliance
1452
+ # The name of the lodging location.
1453
+ attr_accessor :name
1454
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1455
+ attr_accessor :no_show
1456
+ # The number of rooms on the booking
1457
+ attr_accessor :number_of_rooms
1458
+ # The details of the passengers in the travel reservation
1459
+ attr_accessor :passengers
1460
+ # The phone number of the lodging location.
1461
+ attr_accessor :property_phone_number
1462
+ # The room class for this purchase.
1463
+ attr_accessor :room_class
1464
+ # The number of room nights
1465
+ attr_accessor :room_nights
1466
+ # The total tax amount associating with the room reservation.
1467
+ attr_accessor :total_room_tax_amount
1468
+ # The total tax amount
1469
+ attr_accessor :total_tax_amount
579
1470
 
580
1471
  def initialize(
1472
+ address: nil,
1473
+ adults: nil,
581
1474
  affiliate: nil,
582
1475
  booking_number: nil,
583
- carrier_name: nil,
1476
+ category: nil,
1477
+ checkin_at: nil,
1478
+ checkout_at: nil,
584
1479
  customer_service_phone_number: nil,
585
- days_rented: nil,
586
- distance: nil,
587
- drivers: nil,
588
- drop_off: nil,
589
- insurances: nil,
590
- no_show_indicator: nil,
591
- pickup: nil,
592
- renter_name: nil,
593
- total: nil,
594
- vehicle: nil
1480
+ daily_room_rate_amount: nil,
1481
+ delivery: nil,
1482
+ extra_charges: nil,
1483
+ fire_safety_act_compliance: nil,
1484
+ name: nil,
1485
+ no_show: nil,
1486
+ number_of_rooms: nil,
1487
+ passengers: nil,
1488
+ property_phone_number: nil,
1489
+ room_class: nil,
1490
+ room_nights: nil,
1491
+ total_room_tax_amount: nil,
1492
+ total_tax_amount: nil
595
1493
  )
1494
+ @address = address
1495
+ @adults = adults
596
1496
  @affiliate = affiliate
597
1497
  @booking_number = booking_number
598
- @carrier_name = carrier_name
1498
+ @category = category
1499
+ @checkin_at = checkin_at
1500
+ @checkout_at = checkout_at
599
1501
  @customer_service_phone_number = customer_service_phone_number
600
- @days_rented = days_rented
601
- @distance = distance
602
- @drivers = drivers
603
- @drop_off = drop_off
604
- @insurances = insurances
605
- @no_show_indicator = no_show_indicator
606
- @pickup = pickup
607
- @renter_name = renter_name
608
- @total = total
609
- @vehicle = vehicle
1502
+ @daily_room_rate_amount = daily_room_rate_amount
1503
+ @delivery = delivery
1504
+ @extra_charges = extra_charges
1505
+ @fire_safety_act_compliance = fire_safety_act_compliance
1506
+ @name = name
1507
+ @no_show = no_show
1508
+ @number_of_rooms = number_of_rooms
1509
+ @passengers = passengers
1510
+ @property_phone_number = property_phone_number
1511
+ @room_class = room_class
1512
+ @room_nights = room_nights
1513
+ @total_room_tax_amount = total_room_tax_amount
1514
+ @total_tax_amount = total_tax_amount
610
1515
  end
611
1516
  end
612
1517
 
@@ -903,29 +1808,104 @@ module Stripe
903
1808
  @total = total
904
1809
  end
905
1810
  end
1811
+
1812
+ class Subscription < ::Stripe::RequestParams
1813
+ class Affiliate < ::Stripe::RequestParams
1814
+ # The name of the affiliate that originated the purchase.
1815
+ attr_accessor :name
1816
+
1817
+ def initialize(name: nil)
1818
+ @name = name
1819
+ end
1820
+ end
1821
+
1822
+ class BillingInterval < ::Stripe::RequestParams
1823
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1824
+ attr_accessor :count
1825
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1826
+ attr_accessor :interval
1827
+
1828
+ def initialize(count: nil, interval: nil)
1829
+ @count = count
1830
+ @interval = interval
1831
+ end
1832
+ end
1833
+ # Affiliate details for this purchase.
1834
+ attr_accessor :affiliate
1835
+ # Info whether the subscription will be auto renewed upon expiry.
1836
+ attr_accessor :auto_renewal
1837
+ # Subscription billing details for this purchase.
1838
+ attr_accessor :billing_interval
1839
+ # Subscription end time. Measured in seconds since the Unix epoch.
1840
+ attr_accessor :ends_at
1841
+ # Name of the product on subscription. e.g. Apple Music Subscription
1842
+ attr_accessor :name
1843
+ # Subscription start time. Measured in seconds since the Unix epoch.
1844
+ attr_accessor :starts_at
1845
+
1846
+ def initialize(
1847
+ affiliate: nil,
1848
+ auto_renewal: nil,
1849
+ billing_interval: nil,
1850
+ ends_at: nil,
1851
+ name: nil,
1852
+ starts_at: nil
1853
+ )
1854
+ @affiliate = affiliate
1855
+ @auto_renewal = auto_renewal
1856
+ @billing_interval = billing_interval
1857
+ @ends_at = ends_at
1858
+ @name = name
1859
+ @starts_at = starts_at
1860
+ end
1861
+ end
1862
+ # Car rental details for this PaymentIntent.
1863
+ attr_accessor :car_rental
906
1864
  # Car rental data for this PaymentIntent.
907
1865
  attr_accessor :car_rental_data
908
1866
  # A unique value to identify the customer. This field is available only for card payments.
909
1867
  #
910
1868
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
911
1869
  attr_accessor :customer_reference
1870
+ # Event details for this PaymentIntent
1871
+ attr_accessor :event_details
1872
+ # Flight reservation details for this PaymentIntent
1873
+ attr_accessor :flight
1874
+ # Flight data for this PaymentIntent.
1875
+ attr_accessor :flight_data
1876
+ # Lodging reservation details for this PaymentIntent
1877
+ attr_accessor :lodging
912
1878
  # Lodging data for this PaymentIntent.
913
1879
  attr_accessor :lodging_data
914
1880
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
915
1881
  #
916
1882
  # 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.
917
1883
  attr_accessor :order_reference
1884
+ # Subscription details for this PaymentIntent
1885
+ attr_accessor :subscription
918
1886
 
919
1887
  def initialize(
1888
+ car_rental: nil,
920
1889
  car_rental_data: nil,
921
1890
  customer_reference: nil,
1891
+ event_details: nil,
1892
+ flight: nil,
1893
+ flight_data: nil,
1894
+ lodging: nil,
922
1895
  lodging_data: nil,
923
- order_reference: nil
1896
+ order_reference: nil,
1897
+ subscription: nil
924
1898
  )
1899
+ @car_rental = car_rental
925
1900
  @car_rental_data = car_rental_data
926
1901
  @customer_reference = customer_reference
1902
+ @event_details = event_details
1903
+ @flight = flight
1904
+ @flight_data = flight_data
1905
+ @lodging = lodging
927
1906
  @lodging_data = lodging_data
928
1907
  @order_reference = order_reference
1908
+ @subscription = subscription
929
1909
  end
930
1910
  end
931
1911
 
@@ -1067,8 +2047,18 @@ module Stripe
1067
2047
  end
1068
2048
 
1069
2049
  class Giropay < ::Stripe::RequestParams; end
2050
+ class Gopay < ::Stripe::RequestParams; end
1070
2051
  class Grabpay < ::Stripe::RequestParams; end
1071
2052
 
2053
+ class IdBankTransfer < ::Stripe::RequestParams
2054
+ # Bank where the account is held.
2055
+ attr_accessor :bank
2056
+
2057
+ def initialize(bank: nil)
2058
+ @bank = bank
2059
+ end
2060
+ end
2061
+
1072
2062
  class Ideal < ::Stripe::RequestParams
1073
2063
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1074
2064
  attr_accessor :bank
@@ -1185,6 +2175,7 @@ module Stripe
1185
2175
 
1186
2176
  class Pix < ::Stripe::RequestParams; end
1187
2177
  class Promptpay < ::Stripe::RequestParams; end
2178
+ class Qris < ::Stripe::RequestParams; end
1188
2179
 
1189
2180
  class RadarOptions < ::Stripe::RequestParams
1190
2181
  # 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.
@@ -1195,6 +2186,29 @@ module Stripe
1195
2186
  end
1196
2187
  end
1197
2188
 
2189
+ class Rechnung < ::Stripe::RequestParams
2190
+ class Dob < ::Stripe::RequestParams
2191
+ # The day of birth, between 1 and 31.
2192
+ attr_accessor :day
2193
+ # The month of birth, between 1 and 12.
2194
+ attr_accessor :month
2195
+ # The four-digit year of birth.
2196
+ attr_accessor :year
2197
+
2198
+ def initialize(day: nil, month: nil, year: nil)
2199
+ @day = day
2200
+ @month = month
2201
+ @year = year
2202
+ end
2203
+ end
2204
+ # Customer's date of birth
2205
+ attr_accessor :dob
2206
+
2207
+ def initialize(dob: nil)
2208
+ @dob = dob
2209
+ end
2210
+ end
2211
+
1198
2212
  class RevolutPay < ::Stripe::RequestParams; end
1199
2213
  class SamsungPay < ::Stripe::RequestParams; end
1200
2214
  class Satispay < ::Stripe::RequestParams; end
@@ -1210,6 +2224,7 @@ module Stripe
1210
2224
  end
1211
2225
 
1212
2226
  class Sequra < ::Stripe::RequestParams; end
2227
+ class Shopeepay < ::Stripe::RequestParams; end
1213
2228
 
1214
2229
  class Sofort < ::Stripe::RequestParams
1215
2230
  # Two-letter ISO code representing the country the bank account is located in.
@@ -1220,6 +2235,15 @@ module Stripe
1220
2235
  end
1221
2236
  end
1222
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
+
2242
+ def initialize(account: nil)
2243
+ @account = account
2244
+ end
2245
+ end
2246
+
1223
2247
  class Sunbit < ::Stripe::RequestParams; end
1224
2248
  class Swish < ::Stripe::RequestParams; end
1225
2249
  class Twint < ::Stripe::RequestParams; end
@@ -1251,12 +2275,25 @@ module Stripe
1251
2275
  end
1252
2276
 
1253
2277
  class UsBankAccount < ::Stripe::RequestParams
2278
+ class ExternalToken < ::Stripe::RequestParams
2279
+ # The Plaid processor token to use for this bank account.
2280
+ attr_accessor :plaid_processor_token
2281
+ # The type of external token.
2282
+ attr_accessor :type
2283
+
2284
+ def initialize(plaid_processor_token: nil, type: nil)
2285
+ @plaid_processor_token = plaid_processor_token
2286
+ @type = type
2287
+ end
2288
+ end
1254
2289
  # Account holder type: individual or company.
1255
2290
  attr_accessor :account_holder_type
1256
2291
  # Account number of the bank account.
1257
2292
  attr_accessor :account_number
1258
2293
  # Account type: checkings or savings. Defaults to checking if omitted.
1259
2294
  attr_accessor :account_type
2295
+ # An external token used to create a payment method.
2296
+ attr_accessor :external_token
1260
2297
  # The ID of a Financial Connections Account to use as a payment method.
1261
2298
  attr_accessor :financial_connections_account
1262
2299
  # Routing number of the bank account.
@@ -1266,18 +2303,21 @@ module Stripe
1266
2303
  account_holder_type: nil,
1267
2304
  account_number: nil,
1268
2305
  account_type: nil,
2306
+ external_token: nil,
1269
2307
  financial_connections_account: nil,
1270
2308
  routing_number: nil
1271
2309
  )
1272
2310
  @account_holder_type = account_holder_type
1273
2311
  @account_number = account_number
1274
2312
  @account_type = account_type
2313
+ @external_token = external_token
1275
2314
  @financial_connections_account = financial_connections_account
1276
2315
  @routing_number = routing_number
1277
2316
  end
1278
2317
  end
1279
2318
 
1280
2319
  class WechatPay < ::Stripe::RequestParams; end
2320
+ class Wero < ::Stripe::RequestParams; end
1281
2321
  class Zip < ::Stripe::RequestParams; end
1282
2322
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1283
2323
  attr_accessor :acss_debit
@@ -1321,8 +2361,12 @@ module Stripe
1321
2361
  attr_accessor :fpx
1322
2362
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1323
2363
  attr_accessor :giropay
2364
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2365
+ attr_accessor :gopay
1324
2366
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1325
2367
  attr_accessor :grabpay
2368
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2369
+ attr_accessor :id_bank_transfer
1326
2370
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1327
2371
  attr_accessor :ideal
1328
2372
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1369,8 +2413,12 @@ module Stripe
1369
2413
  attr_accessor :pix
1370
2414
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1371
2415
  attr_accessor :promptpay
2416
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2417
+ attr_accessor :qris
1372
2418
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
1373
2419
  attr_accessor :radar_options
2420
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2421
+ attr_accessor :rechnung
1374
2422
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1375
2423
  attr_accessor :revolut_pay
1376
2424
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1383,8 +2431,14 @@ module Stripe
1383
2431
  attr_accessor :sepa_debit
1384
2432
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
1385
2433
  attr_accessor :sequra
2434
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2435
+ attr_accessor :shared_payment_granted_token
2436
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2437
+ attr_accessor :shopeepay
1386
2438
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1387
2439
  attr_accessor :sofort
2440
+ # This hash contains details about the Stripe balance payment method.
2441
+ attr_accessor :stripe_balance
1388
2442
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
1389
2443
  attr_accessor :sunbit
1390
2444
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -1399,6 +2453,8 @@ module Stripe
1399
2453
  attr_accessor :us_bank_account
1400
2454
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1401
2455
  attr_accessor :wechat_pay
2456
+ # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
2457
+ attr_accessor :wero
1402
2458
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1403
2459
  attr_accessor :zip
1404
2460
 
@@ -1424,7 +2480,9 @@ module Stripe
1424
2480
  eps: nil,
1425
2481
  fpx: nil,
1426
2482
  giropay: nil,
2483
+ gopay: nil,
1427
2484
  grabpay: nil,
2485
+ id_bank_transfer: nil,
1428
2486
  ideal: nil,
1429
2487
  interac_present: nil,
1430
2488
  kakao_pay: nil,
@@ -1448,14 +2506,19 @@ module Stripe
1448
2506
  payto: nil,
1449
2507
  pix: nil,
1450
2508
  promptpay: nil,
2509
+ qris: nil,
1451
2510
  radar_options: nil,
2511
+ rechnung: nil,
1452
2512
  revolut_pay: nil,
1453
2513
  samsung_pay: nil,
1454
2514
  satispay: nil,
1455
2515
  scalapay: nil,
1456
2516
  sepa_debit: nil,
1457
2517
  sequra: nil,
2518
+ shared_payment_granted_token: nil,
2519
+ shopeepay: nil,
1458
2520
  sofort: nil,
2521
+ stripe_balance: nil,
1459
2522
  sunbit: nil,
1460
2523
  swish: nil,
1461
2524
  twint: nil,
@@ -1463,6 +2526,7 @@ module Stripe
1463
2526
  upi: nil,
1464
2527
  us_bank_account: nil,
1465
2528
  wechat_pay: nil,
2529
+ wero: nil,
1466
2530
  zip: nil
1467
2531
  )
1468
2532
  @acss_debit = acss_debit
@@ -1486,7 +2550,9 @@ module Stripe
1486
2550
  @eps = eps
1487
2551
  @fpx = fpx
1488
2552
  @giropay = giropay
2553
+ @gopay = gopay
1489
2554
  @grabpay = grabpay
2555
+ @id_bank_transfer = id_bank_transfer
1490
2556
  @ideal = ideal
1491
2557
  @interac_present = interac_present
1492
2558
  @kakao_pay = kakao_pay
@@ -1510,14 +2576,19 @@ module Stripe
1510
2576
  @payto = payto
1511
2577
  @pix = pix
1512
2578
  @promptpay = promptpay
2579
+ @qris = qris
1513
2580
  @radar_options = radar_options
2581
+ @rechnung = rechnung
1514
2582
  @revolut_pay = revolut_pay
1515
2583
  @samsung_pay = samsung_pay
1516
2584
  @satispay = satispay
1517
2585
  @scalapay = scalapay
1518
2586
  @sepa_debit = sepa_debit
1519
2587
  @sequra = sequra
2588
+ @shared_payment_granted_token = shared_payment_granted_token
2589
+ @shopeepay = shopeepay
1520
2590
  @sofort = sofort
2591
+ @stripe_balance = stripe_balance
1521
2592
  @sunbit = sunbit
1522
2593
  @swish = swish
1523
2594
  @twint = twint
@@ -1525,6 +2596,7 @@ module Stripe
1525
2596
  @upi = upi
1526
2597
  @us_bank_account = us_bank_account
1527
2598
  @wechat_pay = wechat_pay
2599
+ @wero = wero
1528
2600
  @zip = zip
1529
2601
  end
1530
2602
  end
@@ -1965,6 +3037,48 @@ module Stripe
1965
3037
  end
1966
3038
  end
1967
3039
 
3040
+ class StatementDetails < ::Stripe::RequestParams
3041
+ class Address < ::Stripe::RequestParams
3042
+ # City, district, suburb, town, or village.
3043
+ attr_accessor :city
3044
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3045
+ attr_accessor :country
3046
+ # Address line 1, such as the street, PO Box, or company name.
3047
+ attr_accessor :line1
3048
+ # Address line 2, such as the apartment, suite, unit, or building.
3049
+ attr_accessor :line2
3050
+ # ZIP or postal code.
3051
+ attr_accessor :postal_code
3052
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3053
+ attr_accessor :state
3054
+
3055
+ def initialize(
3056
+ city: nil,
3057
+ country: nil,
3058
+ line1: nil,
3059
+ line2: nil,
3060
+ postal_code: nil,
3061
+ state: nil
3062
+ )
3063
+ @city = city
3064
+ @country = country
3065
+ @line1 = line1
3066
+ @line2 = line2
3067
+ @postal_code = postal_code
3068
+ @state = state
3069
+ end
3070
+ end
3071
+ # Please pass in an address that is within your Stripe user account country
3072
+ attr_accessor :address
3073
+ # Phone number (e.g., a toll-free number that customers can call)
3074
+ attr_accessor :phone
3075
+
3076
+ def initialize(address: nil, phone: nil)
3077
+ @address = address
3078
+ @phone = phone
3079
+ end
3080
+ end
3081
+
1968
3082
  class ThreeDSecure < ::Stripe::RequestParams
1969
3083
  class NetworkOptions < ::Stripe::RequestParams
1970
3084
  class CartesBancaires < ::Stripe::RequestParams
@@ -2059,6 +3173,8 @@ module Stripe
2059
3173
  attr_accessor :moto
2060
3174
  # 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.
2061
3175
  attr_accessor :network
3176
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3177
+ attr_accessor :request_decremental_authorization
2062
3178
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
2063
3179
  attr_accessor :request_extended_authorization
2064
3180
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -2067,6 +3183,8 @@ module Stripe
2067
3183
  attr_accessor :request_multicapture
2068
3184
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
2069
3185
  attr_accessor :request_overcapture
3186
+ # Request partial authorization on this PaymentIntent.
3187
+ attr_accessor :request_partial_authorization
2070
3188
  # 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.
2071
3189
  attr_accessor :request_three_d_secure
2072
3190
  # 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).
@@ -2087,6 +3205,8 @@ module Stripe
2087
3205
  attr_accessor :statement_descriptor_suffix_kana
2088
3206
  # 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.
2089
3207
  attr_accessor :statement_descriptor_suffix_kanji
3208
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3209
+ attr_accessor :statement_details
2090
3210
  # Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
2091
3211
  #
2092
3212
  # When making an off session payment with a previously saved card (that was saved with a SetupIntent or with a PaymentIntent with `setup_future_usage`), set this parameter to indicate the type of transaction.
@@ -2106,16 +3226,19 @@ module Stripe
2106
3226
  mandate_options: nil,
2107
3227
  moto: nil,
2108
3228
  network: nil,
3229
+ request_decremental_authorization: nil,
2109
3230
  request_extended_authorization: nil,
2110
3231
  request_incremental_authorization: nil,
2111
3232
  request_multicapture: nil,
2112
3233
  request_overcapture: nil,
3234
+ request_partial_authorization: nil,
2113
3235
  request_three_d_secure: nil,
2114
3236
  require_cvc_recollection: nil,
2115
3237
  setup_credential_usage: nil,
2116
3238
  setup_future_usage: nil,
2117
3239
  statement_descriptor_suffix_kana: nil,
2118
3240
  statement_descriptor_suffix_kanji: nil,
3241
+ statement_details: nil,
2119
3242
  stored_credential_usage: nil,
2120
3243
  three_d_secure: nil
2121
3244
  )
@@ -2125,16 +3248,19 @@ module Stripe
2125
3248
  @mandate_options = mandate_options
2126
3249
  @moto = moto
2127
3250
  @network = network
3251
+ @request_decremental_authorization = request_decremental_authorization
2128
3252
  @request_extended_authorization = request_extended_authorization
2129
3253
  @request_incremental_authorization = request_incremental_authorization
2130
3254
  @request_multicapture = request_multicapture
2131
3255
  @request_overcapture = request_overcapture
3256
+ @request_partial_authorization = request_partial_authorization
2132
3257
  @request_three_d_secure = request_three_d_secure
2133
3258
  @require_cvc_recollection = require_cvc_recollection
2134
3259
  @setup_credential_usage = setup_credential_usage
2135
3260
  @setup_future_usage = setup_future_usage
2136
3261
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
2137
3262
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3263
+ @statement_details = statement_details
2138
3264
  @stored_credential_usage = stored_credential_usage
2139
3265
  @three_d_secure = three_d_secure
2140
3266
  end
@@ -2314,6 +3440,23 @@ module Stripe
2314
3440
  end
2315
3441
  end
2316
3442
 
3443
+ class Gopay < ::Stripe::RequestParams
3444
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3445
+ #
3446
+ # 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.
3447
+ #
3448
+ # 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.
3449
+ #
3450
+ # 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).
3451
+ #
3452
+ # 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`.
3453
+ attr_accessor :setup_future_usage
3454
+
3455
+ def initialize(setup_future_usage: nil)
3456
+ @setup_future_usage = setup_future_usage
3457
+ end
3458
+ end
3459
+
2317
3460
  class Grabpay < ::Stripe::RequestParams
2318
3461
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2319
3462
  #
@@ -2331,6 +3474,29 @@ module Stripe
2331
3474
  end
2332
3475
  end
2333
3476
 
3477
+ class IdBankTransfer < ::Stripe::RequestParams
3478
+ # 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.
3479
+ attr_accessor :expires_after
3480
+ # 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.
3481
+ attr_accessor :expires_at
3482
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3483
+ #
3484
+ # 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.
3485
+ #
3486
+ # 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.
3487
+ #
3488
+ # 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).
3489
+ #
3490
+ # 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`.
3491
+ attr_accessor :setup_future_usage
3492
+
3493
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3494
+ @expires_after = expires_after
3495
+ @expires_at = expires_at
3496
+ @setup_future_usage = setup_future_usage
3497
+ end
3498
+ end
3499
+
2334
3500
  class Ideal < ::Stripe::RequestParams
2335
3501
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2336
3502
  #
@@ -2437,6 +3603,939 @@ module Stripe
2437
3603
  @reference = reference
2438
3604
  end
2439
3605
  end
3606
+
3607
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3608
+ class BusReservationDetail < ::Stripe::RequestParams
3609
+ class Arrival < ::Stripe::RequestParams
3610
+ class Address < ::Stripe::RequestParams
3611
+ # The city or town.
3612
+ attr_accessor :city
3613
+ # The country in ISO 3166-1 alpha-2 format.
3614
+ attr_accessor :country
3615
+ # The postal code formatted according to country.
3616
+ attr_accessor :postal_code
3617
+ # The state, county, province, or region formatted according to country.
3618
+ attr_accessor :region
3619
+ # Line 1 of the street address.
3620
+ attr_accessor :street_address
3621
+ # Line 2 of the street address.
3622
+ attr_accessor :street_address2
3623
+
3624
+ def initialize(
3625
+ city: nil,
3626
+ country: nil,
3627
+ postal_code: nil,
3628
+ region: nil,
3629
+ street_address: nil,
3630
+ street_address2: nil
3631
+ )
3632
+ @city = city
3633
+ @country = country
3634
+ @postal_code = postal_code
3635
+ @region = region
3636
+ @street_address = street_address
3637
+ @street_address2 = street_address2
3638
+ end
3639
+ end
3640
+ # Address of the arrival location.
3641
+ attr_accessor :address
3642
+ # Identifier name or reference for the arrival location.
3643
+ attr_accessor :arrival_location
3644
+
3645
+ def initialize(address: nil, arrival_location: nil)
3646
+ @address = address
3647
+ @arrival_location = arrival_location
3648
+ end
3649
+ end
3650
+
3651
+ class Departure < ::Stripe::RequestParams
3652
+ class Address < ::Stripe::RequestParams
3653
+ # The city or town.
3654
+ attr_accessor :city
3655
+ # The country in ISO 3166-1 alpha-2 format.
3656
+ attr_accessor :country
3657
+ # The postal code formatted according to country.
3658
+ attr_accessor :postal_code
3659
+ # The state, county, province, or region formatted according to country.
3660
+ attr_accessor :region
3661
+ # Line 1 of the street address.
3662
+ attr_accessor :street_address
3663
+ # Line 2 of the street address.
3664
+ attr_accessor :street_address2
3665
+
3666
+ def initialize(
3667
+ city: nil,
3668
+ country: nil,
3669
+ postal_code: nil,
3670
+ region: nil,
3671
+ street_address: nil,
3672
+ street_address2: nil
3673
+ )
3674
+ @city = city
3675
+ @country = country
3676
+ @postal_code = postal_code
3677
+ @region = region
3678
+ @street_address = street_address
3679
+ @street_address2 = street_address2
3680
+ end
3681
+ end
3682
+ # Address of the departure location.
3683
+ attr_accessor :address
3684
+ # Timestamp of departure.
3685
+ attr_accessor :departs_at
3686
+ # Identifier name or reference for the origin location.
3687
+ attr_accessor :departure_location
3688
+
3689
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3690
+ @address = address
3691
+ @departs_at = departs_at
3692
+ @departure_location = departure_location
3693
+ end
3694
+ end
3695
+
3696
+ class Insurance < ::Stripe::RequestParams
3697
+ # Insurance currency.
3698
+ attr_accessor :currency
3699
+ # Name of the company providing the insurance.
3700
+ attr_accessor :insurance_company_name
3701
+ # Type of insurance.
3702
+ attr_accessor :insurance_type
3703
+ # Price of insurance in cents.
3704
+ attr_accessor :price
3705
+
3706
+ def initialize(
3707
+ currency: nil,
3708
+ insurance_company_name: nil,
3709
+ insurance_type: nil,
3710
+ price: nil
3711
+ )
3712
+ @currency = currency
3713
+ @insurance_company_name = insurance_company_name
3714
+ @insurance_type = insurance_type
3715
+ @price = price
3716
+ end
3717
+ end
3718
+
3719
+ class Passenger < ::Stripe::RequestParams
3720
+ # The family name of the person.
3721
+ attr_accessor :family_name
3722
+ # The given name of the person.
3723
+ attr_accessor :given_name
3724
+
3725
+ def initialize(family_name: nil, given_name: nil)
3726
+ @family_name = family_name
3727
+ @given_name = given_name
3728
+ end
3729
+ end
3730
+ # Name of associated or partner company for the service.
3731
+ attr_accessor :affiliate_name
3732
+ # Arrival details.
3733
+ attr_accessor :arrival
3734
+ # Name of transportation company.
3735
+ attr_accessor :carrier_name
3736
+ # Currency.
3737
+ attr_accessor :currency
3738
+ # Departure details.
3739
+ attr_accessor :departure
3740
+ # List of insurances for this reservation.
3741
+ attr_accessor :insurances
3742
+ # List of passengers that this reservation applies to.
3743
+ attr_accessor :passengers
3744
+ # Price in cents.
3745
+ attr_accessor :price
3746
+ # Ticket class.
3747
+ attr_accessor :ticket_class
3748
+
3749
+ def initialize(
3750
+ affiliate_name: nil,
3751
+ arrival: nil,
3752
+ carrier_name: nil,
3753
+ currency: nil,
3754
+ departure: nil,
3755
+ insurances: nil,
3756
+ passengers: nil,
3757
+ price: nil,
3758
+ ticket_class: nil
3759
+ )
3760
+ @affiliate_name = affiliate_name
3761
+ @arrival = arrival
3762
+ @carrier_name = carrier_name
3763
+ @currency = currency
3764
+ @departure = departure
3765
+ @insurances = insurances
3766
+ @passengers = passengers
3767
+ @price = price
3768
+ @ticket_class = ticket_class
3769
+ end
3770
+ end
3771
+
3772
+ class EventReservationDetail < ::Stripe::RequestParams
3773
+ class Address < ::Stripe::RequestParams
3774
+ # The city or town.
3775
+ attr_accessor :city
3776
+ # The country in ISO 3166-1 alpha-2 format.
3777
+ attr_accessor :country
3778
+ # The postal code formatted according to country.
3779
+ attr_accessor :postal_code
3780
+ # The state, county, province, or region formatted according to country.
3781
+ attr_accessor :region
3782
+ # Line 1 of the street address.
3783
+ attr_accessor :street_address
3784
+ # Line 2 of the street address.
3785
+ attr_accessor :street_address2
3786
+
3787
+ def initialize(
3788
+ city: nil,
3789
+ country: nil,
3790
+ postal_code: nil,
3791
+ region: nil,
3792
+ street_address: nil,
3793
+ street_address2: nil
3794
+ )
3795
+ @city = city
3796
+ @country = country
3797
+ @postal_code = postal_code
3798
+ @region = region
3799
+ @street_address = street_address
3800
+ @street_address2 = street_address2
3801
+ end
3802
+ end
3803
+
3804
+ class Insurance < ::Stripe::RequestParams
3805
+ # Insurance currency.
3806
+ attr_accessor :currency
3807
+ # Name of the company providing the insurance.
3808
+ attr_accessor :insurance_company_name
3809
+ # Type of insurance.
3810
+ attr_accessor :insurance_type
3811
+ # Price of insurance in cents.
3812
+ attr_accessor :price
3813
+
3814
+ def initialize(
3815
+ currency: nil,
3816
+ insurance_company_name: nil,
3817
+ insurance_type: nil,
3818
+ price: nil
3819
+ )
3820
+ @currency = currency
3821
+ @insurance_company_name = insurance_company_name
3822
+ @insurance_type = insurance_type
3823
+ @price = price
3824
+ end
3825
+ end
3826
+ # Indicates if the tickets are digitally checked when entering the venue.
3827
+ attr_accessor :access_controlled_venue
3828
+ # Address of the event.
3829
+ attr_accessor :address
3830
+ # Name of associated or partner company for the service.
3831
+ attr_accessor :affiliate_name
3832
+ # End timestamp of the event.
3833
+ attr_accessor :ends_at
3834
+ # Company selling the ticket.
3835
+ attr_accessor :event_company_name
3836
+ # Name of the event.
3837
+ attr_accessor :event_name
3838
+ # Type of the event.
3839
+ attr_accessor :event_type
3840
+ # List of insurances for this event.
3841
+ attr_accessor :insurances
3842
+ # Start timestamp of the event.
3843
+ attr_accessor :starts_at
3844
+ # Name of the venue where the event takes place.
3845
+ attr_accessor :venue_name
3846
+
3847
+ def initialize(
3848
+ access_controlled_venue: nil,
3849
+ address: nil,
3850
+ affiliate_name: nil,
3851
+ ends_at: nil,
3852
+ event_company_name: nil,
3853
+ event_name: nil,
3854
+ event_type: nil,
3855
+ insurances: nil,
3856
+ starts_at: nil,
3857
+ venue_name: nil
3858
+ )
3859
+ @access_controlled_venue = access_controlled_venue
3860
+ @address = address
3861
+ @affiliate_name = affiliate_name
3862
+ @ends_at = ends_at
3863
+ @event_company_name = event_company_name
3864
+ @event_name = event_name
3865
+ @event_type = event_type
3866
+ @insurances = insurances
3867
+ @starts_at = starts_at
3868
+ @venue_name = venue_name
3869
+ end
3870
+ end
3871
+
3872
+ class FerryReservationDetail < ::Stripe::RequestParams
3873
+ class Arrival < ::Stripe::RequestParams
3874
+ class Address < ::Stripe::RequestParams
3875
+ # The city or town.
3876
+ attr_accessor :city
3877
+ # The country in ISO 3166-1 alpha-2 format.
3878
+ attr_accessor :country
3879
+ # The postal code formatted according to country.
3880
+ attr_accessor :postal_code
3881
+ # The state, county, province, or region formatted according to country.
3882
+ attr_accessor :region
3883
+ # Line 1 of the street address.
3884
+ attr_accessor :street_address
3885
+ # Line 2 of the street address.
3886
+ attr_accessor :street_address2
3887
+
3888
+ def initialize(
3889
+ city: nil,
3890
+ country: nil,
3891
+ postal_code: nil,
3892
+ region: nil,
3893
+ street_address: nil,
3894
+ street_address2: nil
3895
+ )
3896
+ @city = city
3897
+ @country = country
3898
+ @postal_code = postal_code
3899
+ @region = region
3900
+ @street_address = street_address
3901
+ @street_address2 = street_address2
3902
+ end
3903
+ end
3904
+ # Address of the arrival location.
3905
+ attr_accessor :address
3906
+ # Identifier name or reference for the arrival location.
3907
+ attr_accessor :arrival_location
3908
+
3909
+ def initialize(address: nil, arrival_location: nil)
3910
+ @address = address
3911
+ @arrival_location = arrival_location
3912
+ end
3913
+ end
3914
+
3915
+ class Departure < ::Stripe::RequestParams
3916
+ class Address < ::Stripe::RequestParams
3917
+ # The city or town.
3918
+ attr_accessor :city
3919
+ # The country in ISO 3166-1 alpha-2 format.
3920
+ attr_accessor :country
3921
+ # The postal code formatted according to country.
3922
+ attr_accessor :postal_code
3923
+ # The state, county, province, or region formatted according to country.
3924
+ attr_accessor :region
3925
+ # Line 1 of the street address.
3926
+ attr_accessor :street_address
3927
+ # Line 2 of the street address.
3928
+ attr_accessor :street_address2
3929
+
3930
+ def initialize(
3931
+ city: nil,
3932
+ country: nil,
3933
+ postal_code: nil,
3934
+ region: nil,
3935
+ street_address: nil,
3936
+ street_address2: nil
3937
+ )
3938
+ @city = city
3939
+ @country = country
3940
+ @postal_code = postal_code
3941
+ @region = region
3942
+ @street_address = street_address
3943
+ @street_address2 = street_address2
3944
+ end
3945
+ end
3946
+ # Address of the departure location.
3947
+ attr_accessor :address
3948
+ # Timestamp of departure.
3949
+ attr_accessor :departs_at
3950
+ # Identifier name or reference for the origin location.
3951
+ attr_accessor :departure_location
3952
+
3953
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3954
+ @address = address
3955
+ @departs_at = departs_at
3956
+ @departure_location = departure_location
3957
+ end
3958
+ end
3959
+
3960
+ class Insurance < ::Stripe::RequestParams
3961
+ # Insurance currency.
3962
+ attr_accessor :currency
3963
+ # Name of the company providing the insurance.
3964
+ attr_accessor :insurance_company_name
3965
+ # Type of insurance.
3966
+ attr_accessor :insurance_type
3967
+ # Price of insurance in cents.
3968
+ attr_accessor :price
3969
+
3970
+ def initialize(
3971
+ currency: nil,
3972
+ insurance_company_name: nil,
3973
+ insurance_type: nil,
3974
+ price: nil
3975
+ )
3976
+ @currency = currency
3977
+ @insurance_company_name = insurance_company_name
3978
+ @insurance_type = insurance_type
3979
+ @price = price
3980
+ end
3981
+ end
3982
+
3983
+ class Passenger < ::Stripe::RequestParams
3984
+ # The family name of the person.
3985
+ attr_accessor :family_name
3986
+ # The given name of the person.
3987
+ attr_accessor :given_name
3988
+
3989
+ def initialize(family_name: nil, given_name: nil)
3990
+ @family_name = family_name
3991
+ @given_name = given_name
3992
+ end
3993
+ end
3994
+ # Name of associated or partner company for the service.
3995
+ attr_accessor :affiliate_name
3996
+ # Arrival details.
3997
+ attr_accessor :arrival
3998
+ # Name of transportation company.
3999
+ attr_accessor :carrier_name
4000
+ # Currency.
4001
+ attr_accessor :currency
4002
+ # Departure details.
4003
+ attr_accessor :departure
4004
+ # List of insurances for this reservation.
4005
+ attr_accessor :insurances
4006
+ # List of passengers that this reservation applies to.
4007
+ attr_accessor :passengers
4008
+ # Price in cents.
4009
+ attr_accessor :price
4010
+ # Ticket class.
4011
+ attr_accessor :ticket_class
4012
+
4013
+ def initialize(
4014
+ affiliate_name: nil,
4015
+ arrival: nil,
4016
+ carrier_name: nil,
4017
+ currency: nil,
4018
+ departure: nil,
4019
+ insurances: nil,
4020
+ passengers: nil,
4021
+ price: nil,
4022
+ ticket_class: nil
4023
+ )
4024
+ @affiliate_name = affiliate_name
4025
+ @arrival = arrival
4026
+ @carrier_name = carrier_name
4027
+ @currency = currency
4028
+ @departure = departure
4029
+ @insurances = insurances
4030
+ @passengers = passengers
4031
+ @price = price
4032
+ @ticket_class = ticket_class
4033
+ end
4034
+ end
4035
+
4036
+ class Insurance < ::Stripe::RequestParams
4037
+ # Insurance currency.
4038
+ attr_accessor :currency
4039
+ # Name of the company providing the insurance.
4040
+ attr_accessor :insurance_company_name
4041
+ # Type of insurance
4042
+ attr_accessor :insurance_type
4043
+ # Price of insurance in cents.
4044
+ attr_accessor :price
4045
+
4046
+ def initialize(
4047
+ currency: nil,
4048
+ insurance_company_name: nil,
4049
+ insurance_type: nil,
4050
+ price: nil
4051
+ )
4052
+ @currency = currency
4053
+ @insurance_company_name = insurance_company_name
4054
+ @insurance_type = insurance_type
4055
+ @price = price
4056
+ end
4057
+ end
4058
+
4059
+ class MarketplaceSeller < ::Stripe::RequestParams
4060
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4061
+ # The city or town.
4062
+ attr_accessor :city
4063
+ # The country in ISO 3166-1 alpha-2 format.
4064
+ attr_accessor :country
4065
+ # The postal code formatted according to country.
4066
+ attr_accessor :postal_code
4067
+ # The state, county, province, or region formatted according to country.
4068
+ attr_accessor :region
4069
+ # Line 1 of the street address.
4070
+ attr_accessor :street_address
4071
+ # Line 2 of the street address.
4072
+ attr_accessor :street_address2
4073
+
4074
+ def initialize(
4075
+ city: nil,
4076
+ country: nil,
4077
+ postal_code: nil,
4078
+ region: nil,
4079
+ street_address: nil,
4080
+ street_address2: nil
4081
+ )
4082
+ @city = city
4083
+ @country = country
4084
+ @postal_code = postal_code
4085
+ @region = region
4086
+ @street_address = street_address
4087
+ @street_address2 = street_address2
4088
+ end
4089
+ end
4090
+ # The references to line items for purchases with multiple associated sub-sellers.
4091
+ attr_accessor :line_item_references
4092
+ # The address of the selling or delivering merchant.
4093
+ attr_accessor :marketplace_seller_address
4094
+ # The name of the marketplace seller.
4095
+ attr_accessor :marketplace_seller_name
4096
+ # The unique identifier for the marketplace seller.
4097
+ attr_accessor :marketplace_seller_reference
4098
+ # The number of transactions the sub-seller completed in the last 12 months.
4099
+ attr_accessor :number_of_transactions
4100
+ # The category of the product.
4101
+ attr_accessor :product_category
4102
+ # The date when the seller's account with the marketplace was last logged in.
4103
+ attr_accessor :seller_last_login_at
4104
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4105
+ attr_accessor :seller_rating
4106
+ # The date when the seller's account with the marketplace was created.
4107
+ attr_accessor :seller_registered_at
4108
+ # The date when the seller's account with the marketplace was last updated.
4109
+ attr_accessor :seller_updated_at
4110
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4111
+ attr_accessor :shipping_references
4112
+ # 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.
4113
+ attr_accessor :volume_of_transactions
4114
+
4115
+ def initialize(
4116
+ line_item_references: nil,
4117
+ marketplace_seller_address: nil,
4118
+ marketplace_seller_name: nil,
4119
+ marketplace_seller_reference: nil,
4120
+ number_of_transactions: nil,
4121
+ product_category: nil,
4122
+ seller_last_login_at: nil,
4123
+ seller_rating: nil,
4124
+ seller_registered_at: nil,
4125
+ seller_updated_at: nil,
4126
+ shipping_references: nil,
4127
+ volume_of_transactions: nil
4128
+ )
4129
+ @line_item_references = line_item_references
4130
+ @marketplace_seller_address = marketplace_seller_address
4131
+ @marketplace_seller_name = marketplace_seller_name
4132
+ @marketplace_seller_reference = marketplace_seller_reference
4133
+ @number_of_transactions = number_of_transactions
4134
+ @product_category = product_category
4135
+ @seller_last_login_at = seller_last_login_at
4136
+ @seller_rating = seller_rating
4137
+ @seller_registered_at = seller_registered_at
4138
+ @seller_updated_at = seller_updated_at
4139
+ @shipping_references = shipping_references
4140
+ @volume_of_transactions = volume_of_transactions
4141
+ end
4142
+ end
4143
+
4144
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4145
+ class Arrival < ::Stripe::RequestParams
4146
+ class Address < ::Stripe::RequestParams
4147
+ # The city or town.
4148
+ attr_accessor :city
4149
+ # The country in ISO 3166-1 alpha-2 format.
4150
+ attr_accessor :country
4151
+ # The postal code formatted according to country.
4152
+ attr_accessor :postal_code
4153
+ # The state, county, province, or region formatted according to country.
4154
+ attr_accessor :region
4155
+ # Line 1 of the street address.
4156
+ attr_accessor :street_address
4157
+ # Line 2 of the street address.
4158
+ attr_accessor :street_address2
4159
+
4160
+ def initialize(
4161
+ city: nil,
4162
+ country: nil,
4163
+ postal_code: nil,
4164
+ region: nil,
4165
+ street_address: nil,
4166
+ street_address2: nil
4167
+ )
4168
+ @city = city
4169
+ @country = country
4170
+ @postal_code = postal_code
4171
+ @region = region
4172
+ @street_address = street_address
4173
+ @street_address2 = street_address2
4174
+ end
4175
+ end
4176
+ # Address of the arrival location.
4177
+ attr_accessor :address
4178
+ # Identifier name or reference for the arrival location.
4179
+ attr_accessor :arrival_location
4180
+
4181
+ def initialize(address: nil, arrival_location: nil)
4182
+ @address = address
4183
+ @arrival_location = arrival_location
4184
+ end
4185
+ end
4186
+
4187
+ class Departure < ::Stripe::RequestParams
4188
+ class Address < ::Stripe::RequestParams
4189
+ # The city or town.
4190
+ attr_accessor :city
4191
+ # The country in ISO 3166-1 alpha-2 format.
4192
+ attr_accessor :country
4193
+ # The postal code formatted according to country.
4194
+ attr_accessor :postal_code
4195
+ # The state, county, province, or region formatted according to country.
4196
+ attr_accessor :region
4197
+ # Line 1 of the street address.
4198
+ attr_accessor :street_address
4199
+ # Line 2 of the street address.
4200
+ attr_accessor :street_address2
4201
+
4202
+ def initialize(
4203
+ city: nil,
4204
+ country: nil,
4205
+ postal_code: nil,
4206
+ region: nil,
4207
+ street_address: nil,
4208
+ street_address2: nil
4209
+ )
4210
+ @city = city
4211
+ @country = country
4212
+ @postal_code = postal_code
4213
+ @region = region
4214
+ @street_address = street_address
4215
+ @street_address2 = street_address2
4216
+ end
4217
+ end
4218
+ # Address of the departure location.
4219
+ attr_accessor :address
4220
+ # Timestamp of departure.
4221
+ attr_accessor :departs_at
4222
+ # Identifier name or reference for the origin location.
4223
+ attr_accessor :departure_location
4224
+
4225
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4226
+ @address = address
4227
+ @departs_at = departs_at
4228
+ @departure_location = departure_location
4229
+ end
4230
+ end
4231
+
4232
+ class Insurance < ::Stripe::RequestParams
4233
+ # Insurance currency.
4234
+ attr_accessor :currency
4235
+ # Name of the company providing the insurance.
4236
+ attr_accessor :insurance_company_name
4237
+ # Type of insurance.
4238
+ attr_accessor :insurance_type
4239
+ # Price of insurance in cents.
4240
+ attr_accessor :price
4241
+
4242
+ def initialize(
4243
+ currency: nil,
4244
+ insurance_company_name: nil,
4245
+ insurance_type: nil,
4246
+ price: nil
4247
+ )
4248
+ @currency = currency
4249
+ @insurance_company_name = insurance_company_name
4250
+ @insurance_type = insurance_type
4251
+ @price = price
4252
+ end
4253
+ end
4254
+
4255
+ class Passenger < ::Stripe::RequestParams
4256
+ # The family name of the person.
4257
+ attr_accessor :family_name
4258
+ # The given name of the person.
4259
+ attr_accessor :given_name
4260
+
4261
+ def initialize(family_name: nil, given_name: nil)
4262
+ @family_name = family_name
4263
+ @given_name = given_name
4264
+ end
4265
+ end
4266
+ # Name of associated or partner company for the service.
4267
+ attr_accessor :affiliate_name
4268
+ # Arrival details.
4269
+ attr_accessor :arrival
4270
+ # Name of transportation company.
4271
+ attr_accessor :carrier_name
4272
+ # Currency.
4273
+ attr_accessor :currency
4274
+ # Departure details.
4275
+ attr_accessor :departure
4276
+ # List of insurances for this reservation.
4277
+ attr_accessor :insurances
4278
+ # List of passengers that this reservation applies to.
4279
+ attr_accessor :passengers
4280
+ # Price in cents.
4281
+ attr_accessor :price
4282
+ # Ticket class.
4283
+ attr_accessor :ticket_class
4284
+
4285
+ def initialize(
4286
+ affiliate_name: nil,
4287
+ arrival: nil,
4288
+ carrier_name: nil,
4289
+ currency: nil,
4290
+ departure: nil,
4291
+ insurances: nil,
4292
+ passengers: nil,
4293
+ price: nil,
4294
+ ticket_class: nil
4295
+ )
4296
+ @affiliate_name = affiliate_name
4297
+ @arrival = arrival
4298
+ @carrier_name = carrier_name
4299
+ @currency = currency
4300
+ @departure = departure
4301
+ @insurances = insurances
4302
+ @passengers = passengers
4303
+ @price = price
4304
+ @ticket_class = ticket_class
4305
+ end
4306
+ end
4307
+
4308
+ class TrainReservationDetail < ::Stripe::RequestParams
4309
+ class Arrival < ::Stripe::RequestParams
4310
+ class Address < ::Stripe::RequestParams
4311
+ # The city or town.
4312
+ attr_accessor :city
4313
+ # The country in ISO 3166-1 alpha-2 format.
4314
+ attr_accessor :country
4315
+ # The postal code formatted according to country.
4316
+ attr_accessor :postal_code
4317
+ # The state, county, province, or region formatted according to country.
4318
+ attr_accessor :region
4319
+ # Line 1 of the street address.
4320
+ attr_accessor :street_address
4321
+ # Line 2 of the street address.
4322
+ attr_accessor :street_address2
4323
+
4324
+ def initialize(
4325
+ city: nil,
4326
+ country: nil,
4327
+ postal_code: nil,
4328
+ region: nil,
4329
+ street_address: nil,
4330
+ street_address2: nil
4331
+ )
4332
+ @city = city
4333
+ @country = country
4334
+ @postal_code = postal_code
4335
+ @region = region
4336
+ @street_address = street_address
4337
+ @street_address2 = street_address2
4338
+ end
4339
+ end
4340
+ # Address of the arrival location.
4341
+ attr_accessor :address
4342
+ # Identifier name or reference for the arrival location.
4343
+ attr_accessor :arrival_location
4344
+
4345
+ def initialize(address: nil, arrival_location: nil)
4346
+ @address = address
4347
+ @arrival_location = arrival_location
4348
+ end
4349
+ end
4350
+
4351
+ class Departure < ::Stripe::RequestParams
4352
+ class Address < ::Stripe::RequestParams
4353
+ # The city or town.
4354
+ attr_accessor :city
4355
+ # The country in ISO 3166-1 alpha-2 format.
4356
+ attr_accessor :country
4357
+ # The postal code formatted according to country.
4358
+ attr_accessor :postal_code
4359
+ # The state, county, province, or region formatted according to country.
4360
+ attr_accessor :region
4361
+ # Line 1 of the street address.
4362
+ attr_accessor :street_address
4363
+ # Line 2 of the street address.
4364
+ attr_accessor :street_address2
4365
+
4366
+ def initialize(
4367
+ city: nil,
4368
+ country: nil,
4369
+ postal_code: nil,
4370
+ region: nil,
4371
+ street_address: nil,
4372
+ street_address2: nil
4373
+ )
4374
+ @city = city
4375
+ @country = country
4376
+ @postal_code = postal_code
4377
+ @region = region
4378
+ @street_address = street_address
4379
+ @street_address2 = street_address2
4380
+ end
4381
+ end
4382
+ # Address of the departure location.
4383
+ attr_accessor :address
4384
+ # Timestamp of departure.
4385
+ attr_accessor :departs_at
4386
+ # Identifier name or reference for the origin location.
4387
+ attr_accessor :departure_location
4388
+
4389
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4390
+ @address = address
4391
+ @departs_at = departs_at
4392
+ @departure_location = departure_location
4393
+ end
4394
+ end
4395
+
4396
+ class Insurance < ::Stripe::RequestParams
4397
+ # Insurance currency.
4398
+ attr_accessor :currency
4399
+ # Name of the company providing the insurance.
4400
+ attr_accessor :insurance_company_name
4401
+ # Type of insurance.
4402
+ attr_accessor :insurance_type
4403
+ # Price of insurance in cents.
4404
+ attr_accessor :price
4405
+
4406
+ def initialize(
4407
+ currency: nil,
4408
+ insurance_company_name: nil,
4409
+ insurance_type: nil,
4410
+ price: nil
4411
+ )
4412
+ @currency = currency
4413
+ @insurance_company_name = insurance_company_name
4414
+ @insurance_type = insurance_type
4415
+ @price = price
4416
+ end
4417
+ end
4418
+
4419
+ class Passenger < ::Stripe::RequestParams
4420
+ # The family name of the person.
4421
+ attr_accessor :family_name
4422
+ # The given name of the person.
4423
+ attr_accessor :given_name
4424
+
4425
+ def initialize(family_name: nil, given_name: nil)
4426
+ @family_name = family_name
4427
+ @given_name = given_name
4428
+ end
4429
+ end
4430
+ # Name of associated or partner company for the service.
4431
+ attr_accessor :affiliate_name
4432
+ # Arrival details.
4433
+ attr_accessor :arrival
4434
+ # Name of transportation company.
4435
+ attr_accessor :carrier_name
4436
+ # Currency.
4437
+ attr_accessor :currency
4438
+ # Departure details.
4439
+ attr_accessor :departure
4440
+ # List of insurances for this reservation.
4441
+ attr_accessor :insurances
4442
+ # List of passengers that this reservation applies to.
4443
+ attr_accessor :passengers
4444
+ # Price in cents.
4445
+ attr_accessor :price
4446
+ # Ticket class.
4447
+ attr_accessor :ticket_class
4448
+
4449
+ def initialize(
4450
+ affiliate_name: nil,
4451
+ arrival: nil,
4452
+ carrier_name: nil,
4453
+ currency: nil,
4454
+ departure: nil,
4455
+ insurances: nil,
4456
+ passengers: nil,
4457
+ price: nil,
4458
+ ticket_class: nil
4459
+ )
4460
+ @affiliate_name = affiliate_name
4461
+ @arrival = arrival
4462
+ @carrier_name = carrier_name
4463
+ @currency = currency
4464
+ @departure = departure
4465
+ @insurances = insurances
4466
+ @passengers = passengers
4467
+ @price = price
4468
+ @ticket_class = ticket_class
4469
+ end
4470
+ end
4471
+
4472
+ class Voucher < ::Stripe::RequestParams
4473
+ # Name of associated or partner company for this voucher.
4474
+ attr_accessor :affiliate_name
4475
+ # The voucher validity end time.
4476
+ attr_accessor :ends_at
4477
+ # The voucher validity start time.
4478
+ attr_accessor :starts_at
4479
+ # The issuer or provider of this voucher.
4480
+ attr_accessor :voucher_company
4481
+ # The name or reference to identify the voucher.
4482
+ attr_accessor :voucher_name
4483
+ # The type of this voucher.
4484
+ attr_accessor :voucher_type
4485
+
4486
+ def initialize(
4487
+ affiliate_name: nil,
4488
+ ends_at: nil,
4489
+ starts_at: nil,
4490
+ voucher_company: nil,
4491
+ voucher_name: nil,
4492
+ voucher_type: nil
4493
+ )
4494
+ @affiliate_name = affiliate_name
4495
+ @ends_at = ends_at
4496
+ @starts_at = starts_at
4497
+ @voucher_company = voucher_company
4498
+ @voucher_name = voucher_name
4499
+ @voucher_type = voucher_type
4500
+ end
4501
+ end
4502
+ # Supplementary bus reservation details.
4503
+ attr_accessor :bus_reservation_details
4504
+ # Supplementary event reservation details.
4505
+ attr_accessor :event_reservation_details
4506
+ # Supplementary ferry reservation details.
4507
+ attr_accessor :ferry_reservation_details
4508
+ # Supplementary insurance details.
4509
+ attr_accessor :insurances
4510
+ # Supplementary marketplace seller details.
4511
+ attr_accessor :marketplace_sellers
4512
+ # Supplementary round trip reservation details.
4513
+ attr_accessor :round_trip_reservation_details
4514
+ # Supplementary train reservation details.
4515
+ attr_accessor :train_reservation_details
4516
+ # Voucher details, such as a gift card or discount code.
4517
+ attr_accessor :vouchers
4518
+
4519
+ def initialize(
4520
+ bus_reservation_details: nil,
4521
+ event_reservation_details: nil,
4522
+ ferry_reservation_details: nil,
4523
+ insurances: nil,
4524
+ marketplace_sellers: nil,
4525
+ round_trip_reservation_details: nil,
4526
+ train_reservation_details: nil,
4527
+ vouchers: nil
4528
+ )
4529
+ @bus_reservation_details = bus_reservation_details
4530
+ @event_reservation_details = event_reservation_details
4531
+ @ferry_reservation_details = ferry_reservation_details
4532
+ @insurances = insurances
4533
+ @marketplace_sellers = marketplace_sellers
4534
+ @round_trip_reservation_details = round_trip_reservation_details
4535
+ @train_reservation_details = train_reservation_details
4536
+ @vouchers = vouchers
4537
+ end
4538
+ end
2440
4539
  # Controls when the funds are captured from the customer's account.
2441
4540
  #
2442
4541
  # 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.
@@ -2459,19 +4558,23 @@ module Stripe
2459
4558
  attr_accessor :setup_future_usage
2460
4559
  # Subscription details if setting up or charging a subscription.
2461
4560
  attr_accessor :subscriptions
4561
+ # Supplementary Purchase Data for the corresponding Klarna payment
4562
+ attr_accessor :supplementary_purchase_data
2462
4563
 
2463
4564
  def initialize(
2464
4565
  capture_method: nil,
2465
4566
  on_demand: nil,
2466
4567
  preferred_locale: nil,
2467
4568
  setup_future_usage: nil,
2468
- subscriptions: nil
4569
+ subscriptions: nil,
4570
+ supplementary_purchase_data: nil
2469
4571
  )
2470
4572
  @capture_method = capture_method
2471
4573
  @on_demand = on_demand
2472
4574
  @preferred_locale = preferred_locale
2473
4575
  @setup_future_usage = setup_future_usage
2474
4576
  @subscriptions = subscriptions
4577
+ @supplementary_purchase_data = supplementary_purchase_data
2475
4578
  end
2476
4579
  end
2477
4580
 
@@ -2741,12 +4844,65 @@ module Stripe
2741
4844
  end
2742
4845
 
2743
4846
  class Paypal < ::Stripe::RequestParams
4847
+ class LineItem < ::Stripe::RequestParams
4848
+ class Tax < ::Stripe::RequestParams
4849
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4850
+ attr_accessor :amount
4851
+ # The tax behavior for the line item.
4852
+ attr_accessor :behavior
4853
+
4854
+ def initialize(amount: nil, behavior: nil)
4855
+ @amount = amount
4856
+ @behavior = behavior
4857
+ end
4858
+ end
4859
+ # Type of the line item.
4860
+ attr_accessor :category
4861
+ # Description of the line item.
4862
+ attr_accessor :description
4863
+ # Descriptive name of the line item.
4864
+ attr_accessor :name
4865
+ # Quantity of the line item. Must be a positive number.
4866
+ attr_accessor :quantity
4867
+ # Client facing stock keeping unit, article number or similar.
4868
+ attr_accessor :sku
4869
+ # The Stripe account ID of the connected account that sells the item.
4870
+ attr_accessor :sold_by
4871
+ # The tax information for the line item.
4872
+ attr_accessor :tax
4873
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4874
+ attr_accessor :unit_amount
4875
+
4876
+ def initialize(
4877
+ category: nil,
4878
+ description: nil,
4879
+ name: nil,
4880
+ quantity: nil,
4881
+ sku: nil,
4882
+ sold_by: nil,
4883
+ tax: nil,
4884
+ unit_amount: nil
4885
+ )
4886
+ @category = category
4887
+ @description = description
4888
+ @name = name
4889
+ @quantity = quantity
4890
+ @sku = sku
4891
+ @sold_by = sold_by
4892
+ @tax = tax
4893
+ @unit_amount = unit_amount
4894
+ end
4895
+ end
2744
4896
  # Controls when the funds will be captured from the customer's account.
2745
4897
  attr_accessor :capture_method
4898
+ # The line items purchased by the customer.
4899
+ attr_accessor :line_items
2746
4900
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2747
4901
  attr_accessor :preferred_locale
2748
4902
  # 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.
2749
4903
  attr_accessor :reference
4904
+ # 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.
4905
+ attr_accessor :reference_id
2750
4906
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2751
4907
  attr_accessor :risk_correlation_id
2752
4908
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2759,19 +4915,27 @@ module Stripe
2759
4915
  #
2760
4916
  # 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`.
2761
4917
  attr_accessor :setup_future_usage
4918
+ # 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.
4919
+ attr_accessor :subsellers
2762
4920
 
2763
4921
  def initialize(
2764
4922
  capture_method: nil,
4923
+ line_items: nil,
2765
4924
  preferred_locale: nil,
2766
4925
  reference: nil,
4926
+ reference_id: nil,
2767
4927
  risk_correlation_id: nil,
2768
- setup_future_usage: nil
4928
+ setup_future_usage: nil,
4929
+ subsellers: nil
2769
4930
  )
2770
4931
  @capture_method = capture_method
4932
+ @line_items = line_items
2771
4933
  @preferred_locale = preferred_locale
2772
4934
  @reference = reference
4935
+ @reference_id = reference_id
2773
4936
  @risk_correlation_id = risk_correlation_id
2774
4937
  @setup_future_usage = setup_future_usage
4938
+ @subsellers = subsellers
2775
4939
  end
2776
4940
  end
2777
4941
 
@@ -2915,6 +5079,25 @@ module Stripe
2915
5079
  end
2916
5080
  end
2917
5081
 
5082
+ class Qris < ::Stripe::RequestParams
5083
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5084
+ #
5085
+ # 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.
5086
+ #
5087
+ # 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.
5088
+ #
5089
+ # 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).
5090
+ #
5091
+ # 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`.
5092
+ attr_accessor :setup_future_usage
5093
+
5094
+ def initialize(setup_future_usage: nil)
5095
+ @setup_future_usage = setup_future_usage
5096
+ end
5097
+ end
5098
+
5099
+ class Rechnung < ::Stripe::RequestParams; end
5100
+
2918
5101
  class RevolutPay < ::Stripe::RequestParams
2919
5102
  # Controls when the funds are captured from the customer's account.
2920
5103
  #
@@ -3049,6 +5232,23 @@ module Stripe
3049
5232
  end
3050
5233
  end
3051
5234
 
5235
+ class Shopeepay < ::Stripe::RequestParams
5236
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5237
+ #
5238
+ # 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.
5239
+ #
5240
+ # 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.
5241
+ #
5242
+ # 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).
5243
+ #
5244
+ # 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`.
5245
+ attr_accessor :setup_future_usage
5246
+
5247
+ def initialize(setup_future_usage: nil)
5248
+ @setup_future_usage = setup_future_usage
5249
+ end
5250
+ end
5251
+
3052
5252
  class Sofort < ::Stripe::RequestParams
3053
5253
  # Language shown to the payer on redirect.
3054
5254
  attr_accessor :preferred_language
@@ -3069,6 +5269,23 @@ module Stripe
3069
5269
  end
3070
5270
  end
3071
5271
 
5272
+ class StripeBalance < ::Stripe::RequestParams
5273
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5274
+ #
5275
+ # 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.
5276
+ #
5277
+ # 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.
5278
+ #
5279
+ # 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).
5280
+ #
5281
+ # 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`.
5282
+ attr_accessor :setup_future_usage
5283
+
5284
+ def initialize(setup_future_usage: nil)
5285
+ @setup_future_usage = setup_future_usage
5286
+ end
5287
+ end
5288
+
3072
5289
  class Sunbit < ::Stripe::RequestParams
3073
5290
  # Controls when the funds are captured from the customer's account.
3074
5291
  #
@@ -3162,13 +5379,27 @@ module Stripe
3162
5379
  class Filters < ::Stripe::RequestParams
3163
5380
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3164
5381
  attr_accessor :account_subcategories
5382
+ # ID of the institution to use to filter for selectable accounts.
5383
+ attr_accessor :institution
3165
5384
 
3166
- def initialize(account_subcategories: nil)
5385
+ def initialize(account_subcategories: nil, institution: nil)
3167
5386
  @account_subcategories = account_subcategories
5387
+ @institution = institution
5388
+ end
5389
+ end
5390
+
5391
+ class ManualEntry < ::Stripe::RequestParams
5392
+ # Settings for configuring manual entry of account details.
5393
+ attr_accessor :mode
5394
+
5395
+ def initialize(mode: nil)
5396
+ @mode = mode
3168
5397
  end
3169
5398
  end
3170
5399
  # Provide filters for the linked accounts that the customer can select for the payment method.
3171
5400
  attr_accessor :filters
5401
+ # Customize manual entry behavior
5402
+ attr_accessor :manual_entry
3172
5403
  # 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`.
3173
5404
  attr_accessor :permissions
3174
5405
  # List of data features that you would like to retrieve upon account creation.
@@ -3176,8 +5407,15 @@ module Stripe
3176
5407
  # 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.
3177
5408
  attr_accessor :return_url
3178
5409
 
3179
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5410
+ def initialize(
5411
+ filters: nil,
5412
+ manual_entry: nil,
5413
+ permissions: nil,
5414
+ prefetch: nil,
5415
+ return_url: nil
5416
+ )
3180
5417
  @filters = filters
5418
+ @manual_entry = manual_entry
3181
5419
  @permissions = permissions
3182
5420
  @prefetch = prefetch
3183
5421
  @return_url = return_url
@@ -3266,6 +5504,23 @@ module Stripe
3266
5504
  end
3267
5505
  end
3268
5506
 
5507
+ class Wero < ::Stripe::RequestParams
5508
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5509
+ #
5510
+ # 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.
5511
+ #
5512
+ # 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.
5513
+ #
5514
+ # 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).
5515
+ #
5516
+ # 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`.
5517
+ attr_accessor :setup_future_usage
5518
+
5519
+ def initialize(setup_future_usage: nil)
5520
+ @setup_future_usage = setup_future_usage
5521
+ end
5522
+ end
5523
+
3269
5524
  class Zip < ::Stripe::RequestParams
3270
5525
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3271
5526
  #
@@ -3324,8 +5579,12 @@ module Stripe
3324
5579
  attr_accessor :fpx
3325
5580
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
3326
5581
  attr_accessor :giropay
5582
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5583
+ attr_accessor :gopay
3327
5584
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
3328
5585
  attr_accessor :grabpay
5586
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5587
+ attr_accessor :id_bank_transfer
3329
5588
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
3330
5589
  attr_accessor :ideal
3331
5590
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -3370,6 +5629,10 @@ module Stripe
3370
5629
  attr_accessor :pix
3371
5630
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
3372
5631
  attr_accessor :promptpay
5632
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5633
+ attr_accessor :qris
5634
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5635
+ attr_accessor :rechnung
3373
5636
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
3374
5637
  attr_accessor :revolut_pay
3375
5638
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -3382,8 +5645,12 @@ module Stripe
3382
5645
  attr_accessor :sepa_debit
3383
5646
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
3384
5647
  attr_accessor :sequra
5648
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5649
+ attr_accessor :shopeepay
3385
5650
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
3386
5651
  attr_accessor :sofort
5652
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5653
+ attr_accessor :stripe_balance
3387
5654
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
3388
5655
  attr_accessor :sunbit
3389
5656
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -3396,6 +5663,8 @@ module Stripe
3396
5663
  attr_accessor :us_bank_account
3397
5664
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
3398
5665
  attr_accessor :wechat_pay
5666
+ # If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
5667
+ attr_accessor :wero
3399
5668
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
3400
5669
  attr_accessor :zip
3401
5670
 
@@ -3421,7 +5690,9 @@ module Stripe
3421
5690
  eps: nil,
3422
5691
  fpx: nil,
3423
5692
  giropay: nil,
5693
+ gopay: nil,
3424
5694
  grabpay: nil,
5695
+ id_bank_transfer: nil,
3425
5696
  ideal: nil,
3426
5697
  interac_present: nil,
3427
5698
  kakao_pay: nil,
@@ -3444,19 +5715,24 @@ module Stripe
3444
5715
  payto: nil,
3445
5716
  pix: nil,
3446
5717
  promptpay: nil,
5718
+ qris: nil,
5719
+ rechnung: nil,
3447
5720
  revolut_pay: nil,
3448
5721
  samsung_pay: nil,
3449
5722
  satispay: nil,
3450
5723
  scalapay: nil,
3451
5724
  sepa_debit: nil,
3452
5725
  sequra: nil,
5726
+ shopeepay: nil,
3453
5727
  sofort: nil,
5728
+ stripe_balance: nil,
3454
5729
  sunbit: nil,
3455
5730
  swish: nil,
3456
5731
  twint: nil,
3457
5732
  upi: nil,
3458
5733
  us_bank_account: nil,
3459
5734
  wechat_pay: nil,
5735
+ wero: nil,
3460
5736
  zip: nil
3461
5737
  )
3462
5738
  @acss_debit = acss_debit
@@ -3480,7 +5756,9 @@ module Stripe
3480
5756
  @eps = eps
3481
5757
  @fpx = fpx
3482
5758
  @giropay = giropay
5759
+ @gopay = gopay
3483
5760
  @grabpay = grabpay
5761
+ @id_bank_transfer = id_bank_transfer
3484
5762
  @ideal = ideal
3485
5763
  @interac_present = interac_present
3486
5764
  @kakao_pay = kakao_pay
@@ -3503,19 +5781,24 @@ module Stripe
3503
5781
  @payto = payto
3504
5782
  @pix = pix
3505
5783
  @promptpay = promptpay
5784
+ @qris = qris
5785
+ @rechnung = rechnung
3506
5786
  @revolut_pay = revolut_pay
3507
5787
  @samsung_pay = samsung_pay
3508
5788
  @satispay = satispay
3509
5789
  @scalapay = scalapay
3510
5790
  @sepa_debit = sepa_debit
3511
5791
  @sequra = sequra
5792
+ @shopeepay = shopeepay
3512
5793
  @sofort = sofort
5794
+ @stripe_balance = stripe_balance
3513
5795
  @sunbit = sunbit
3514
5796
  @swish = swish
3515
5797
  @twint = twint
3516
5798
  @upi = upi
3517
5799
  @us_bank_account = us_bank_account
3518
5800
  @wechat_pay = wechat_pay
5801
+ @wero = wero
3519
5802
  @zip = zip
3520
5803
  end
3521
5804
  end
@@ -3588,6 +5871,8 @@ module Stripe
3588
5871
  attr_accessor :amount_details
3589
5872
  # Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
3590
5873
  attr_accessor :amount_to_confirm
5874
+ # 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).
5875
+ attr_accessor :application_fee_amount
3591
5876
  # Controls when the funds will be captured from the customer's account.
3592
5877
  attr_accessor :capture_method
3593
5878
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -3600,6 +5885,8 @@ module Stripe
3600
5885
  attr_accessor :excluded_payment_method_types
3601
5886
  # Specifies which fields in the response should be expanded.
3602
5887
  attr_accessor :expand
5888
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5889
+ attr_accessor :fx_quote
3603
5890
  # Automations to be run during the PaymentIntent lifecycle
3604
5891
  attr_accessor :hooks
3605
5892
  # ID of the mandate that's used for this payment.
@@ -3646,11 +5933,13 @@ module Stripe
3646
5933
  allowed_payment_method_types: nil,
3647
5934
  amount_details: nil,
3648
5935
  amount_to_confirm: nil,
5936
+ application_fee_amount: nil,
3649
5937
  capture_method: nil,
3650
5938
  confirmation_token: nil,
3651
5939
  error_on_requires_action: nil,
3652
5940
  excluded_payment_method_types: nil,
3653
5941
  expand: nil,
5942
+ fx_quote: nil,
3654
5943
  hooks: nil,
3655
5944
  mandate: nil,
3656
5945
  mandate_data: nil,
@@ -3669,11 +5958,13 @@ module Stripe
3669
5958
  @allowed_payment_method_types = allowed_payment_method_types
3670
5959
  @amount_details = amount_details
3671
5960
  @amount_to_confirm = amount_to_confirm
5961
+ @application_fee_amount = application_fee_amount
3672
5962
  @capture_method = capture_method
3673
5963
  @confirmation_token = confirmation_token
3674
5964
  @error_on_requires_action = error_on_requires_action
3675
5965
  @excluded_payment_method_types = excluded_payment_method_types
3676
5966
  @expand = expand
5967
+ @fx_quote = fx_quote
3677
5968
  @hooks = hooks
3678
5969
  @mandate = mandate
3679
5970
  @mandate_data = mandate_data