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
@@ -266,6 +282,232 @@ module Stripe
266
282
  end
267
283
 
268
284
  class PaymentDetails < ::Stripe::RequestParams
285
+ class CarRental < ::Stripe::RequestParams
286
+ class Affiliate < ::Stripe::RequestParams
287
+ # The name of the affiliate that originated the purchase.
288
+ attr_accessor :name
289
+
290
+ def initialize(name: nil)
291
+ @name = name
292
+ end
293
+ end
294
+
295
+ class Delivery < ::Stripe::RequestParams
296
+ class Recipient < ::Stripe::RequestParams
297
+ # The email of the recipient the ticket is delivered to.
298
+ attr_accessor :email
299
+ # The name of the recipient the ticket is delivered to.
300
+ attr_accessor :name
301
+ # The phone number of the recipient the ticket is delivered to.
302
+ attr_accessor :phone
303
+
304
+ def initialize(email: nil, name: nil, phone: nil)
305
+ @email = email
306
+ @name = name
307
+ @phone = phone
308
+ end
309
+ end
310
+ # The delivery method for the payment
311
+ attr_accessor :mode
312
+ # Details of the recipient.
313
+ attr_accessor :recipient
314
+
315
+ def initialize(mode: nil, recipient: nil)
316
+ @mode = mode
317
+ @recipient = recipient
318
+ end
319
+ end
320
+
321
+ class Distance < ::Stripe::RequestParams
322
+ # Distance traveled.
323
+ attr_accessor :amount
324
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
325
+ attr_accessor :unit
326
+
327
+ def initialize(amount: nil, unit: nil)
328
+ @amount = amount
329
+ @unit = unit
330
+ end
331
+ end
332
+
333
+ class Driver < ::Stripe::RequestParams
334
+ # Driver's identification number.
335
+ attr_accessor :driver_identification_number
336
+ # Driver's tax number.
337
+ attr_accessor :driver_tax_number
338
+ # Full name of the person or entity on the car reservation.
339
+ attr_accessor :name
340
+
341
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
342
+ @driver_identification_number = driver_identification_number
343
+ @driver_tax_number = driver_tax_number
344
+ @name = name
345
+ end
346
+ end
347
+
348
+ class PickupAddress < ::Stripe::RequestParams
349
+ # City, district, suburb, town, or village.
350
+ attr_accessor :city
351
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
352
+ attr_accessor :country
353
+ # Address line 1, such as the street, PO Box, or company name.
354
+ attr_accessor :line1
355
+ # Address line 2, such as the apartment, suite, unit, or building.
356
+ attr_accessor :line2
357
+ # ZIP or postal code.
358
+ attr_accessor :postal_code
359
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
360
+ attr_accessor :state
361
+
362
+ def initialize(
363
+ city: nil,
364
+ country: nil,
365
+ line1: nil,
366
+ line2: nil,
367
+ postal_code: nil,
368
+ state: nil
369
+ )
370
+ @city = city
371
+ @country = country
372
+ @line1 = line1
373
+ @line2 = line2
374
+ @postal_code = postal_code
375
+ @state = state
376
+ end
377
+ end
378
+
379
+ class ReturnAddress < ::Stripe::RequestParams
380
+ # City, district, suburb, town, or village.
381
+ attr_accessor :city
382
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
383
+ attr_accessor :country
384
+ # Address line 1, such as the street, PO Box, or company name.
385
+ attr_accessor :line1
386
+ # Address line 2, such as the apartment, suite, unit, or building.
387
+ attr_accessor :line2
388
+ # ZIP or postal code.
389
+ attr_accessor :postal_code
390
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
391
+ attr_accessor :state
392
+
393
+ def initialize(
394
+ city: nil,
395
+ country: nil,
396
+ line1: nil,
397
+ line2: nil,
398
+ postal_code: nil,
399
+ state: nil
400
+ )
401
+ @city = city
402
+ @country = country
403
+ @line1 = line1
404
+ @line2 = line2
405
+ @postal_code = postal_code
406
+ @state = state
407
+ end
408
+ end
409
+ # Affiliate details for this purchase.
410
+ attr_accessor :affiliate
411
+ # The booking number associated with the car rental.
412
+ attr_accessor :booking_number
413
+ # Class code of the car.
414
+ attr_accessor :car_class_code
415
+ # Make of the car.
416
+ attr_accessor :car_make
417
+ # Model of the car.
418
+ attr_accessor :car_model
419
+ # The name of the rental car company.
420
+ attr_accessor :company
421
+ # The customer service phone number of the car rental company.
422
+ attr_accessor :customer_service_phone_number
423
+ # Number of days the car is being rented.
424
+ attr_accessor :days_rented
425
+ # Delivery details for this purchase.
426
+ attr_accessor :delivery
427
+ # The details of the distance traveled during the rental period.
428
+ attr_accessor :distance
429
+ # The details of the passengers in the travel reservation
430
+ attr_accessor :drivers
431
+ # List of additional charges being billed.
432
+ attr_accessor :extra_charges
433
+ # Indicates if the customer did not keep nor cancel their booking.
434
+ attr_accessor :no_show
435
+ # Car pick-up address.
436
+ attr_accessor :pickup_address
437
+ # Car pick-up time. Measured in seconds since the Unix epoch.
438
+ attr_accessor :pickup_at
439
+ # Name of the pickup location.
440
+ attr_accessor :pickup_location_name
441
+ # Rental rate.
442
+ attr_accessor :rate_amount
443
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
444
+ attr_accessor :rate_interval
445
+ # The name of the person or entity renting the car.
446
+ attr_accessor :renter_name
447
+ # Car return address.
448
+ attr_accessor :return_address
449
+ # Car return time. Measured in seconds since the Unix epoch.
450
+ attr_accessor :return_at
451
+ # Name of the return location.
452
+ attr_accessor :return_location_name
453
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
454
+ attr_accessor :tax_exempt
455
+ # The vehicle identification number.
456
+ attr_accessor :vehicle_identification_number
457
+
458
+ def initialize(
459
+ affiliate: nil,
460
+ booking_number: nil,
461
+ car_class_code: nil,
462
+ car_make: nil,
463
+ car_model: nil,
464
+ company: nil,
465
+ customer_service_phone_number: nil,
466
+ days_rented: nil,
467
+ delivery: nil,
468
+ distance: nil,
469
+ drivers: nil,
470
+ extra_charges: nil,
471
+ no_show: nil,
472
+ pickup_address: nil,
473
+ pickup_at: nil,
474
+ pickup_location_name: nil,
475
+ rate_amount: nil,
476
+ rate_interval: nil,
477
+ renter_name: nil,
478
+ return_address: nil,
479
+ return_at: nil,
480
+ return_location_name: nil,
481
+ tax_exempt: nil,
482
+ vehicle_identification_number: nil
483
+ )
484
+ @affiliate = affiliate
485
+ @booking_number = booking_number
486
+ @car_class_code = car_class_code
487
+ @car_make = car_make
488
+ @car_model = car_model
489
+ @company = company
490
+ @customer_service_phone_number = customer_service_phone_number
491
+ @days_rented = days_rented
492
+ @delivery = delivery
493
+ @distance = distance
494
+ @drivers = drivers
495
+ @extra_charges = extra_charges
496
+ @no_show = no_show
497
+ @pickup_address = pickup_address
498
+ @pickup_at = pickup_at
499
+ @pickup_location_name = pickup_location_name
500
+ @rate_amount = rate_amount
501
+ @rate_interval = rate_interval
502
+ @renter_name = renter_name
503
+ @return_address = return_address
504
+ @return_at = return_at
505
+ @return_location_name = return_location_name
506
+ @tax_exempt = tax_exempt
507
+ @vehicle_identification_number = vehicle_identification_number
508
+ end
509
+ end
510
+
269
511
  class CarRentalDatum < ::Stripe::RequestParams
270
512
  class Affiliate < ::Stripe::RequestParams
271
513
  # Affiliate partner code.
@@ -456,15 +698,567 @@ module Stripe
456
698
  maximum_free_miles_or_kilometers: nil
457
699
  )
458
700
  @corporate_client_code = corporate_client_code
459
- @coupon = coupon
460
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
701
+ @coupon = coupon
702
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
703
+ end
704
+ end
705
+
706
+ class ExtraCharge < ::Stripe::RequestParams
707
+ # Amount of the extra charge in cents.
708
+ attr_accessor :amount
709
+ # Type of extra charge.
710
+ attr_accessor :type
711
+
712
+ def initialize(amount: nil, type: nil)
713
+ @amount = amount
714
+ @type = type
715
+ end
716
+ end
717
+
718
+ class Tax < ::Stripe::RequestParams
719
+ class TaxItem < ::Stripe::RequestParams
720
+ # Tax amount.
721
+ attr_accessor :amount
722
+ # Tax rate applied.
723
+ attr_accessor :rate
724
+ # Type of tax applied.
725
+ attr_accessor :type
726
+
727
+ def initialize(amount: nil, rate: nil, type: nil)
728
+ @amount = amount
729
+ @rate = rate
730
+ @type = type
731
+ end
732
+ end
733
+ # Indicates if the transaction is tax exempt.
734
+ attr_accessor :tax_exempt_indicator
735
+ # Array of tax details.
736
+ attr_accessor :tax_items
737
+
738
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
739
+ @tax_exempt_indicator = tax_exempt_indicator
740
+ @tax_items = tax_items
741
+ end
742
+ end
743
+ # Total amount in cents.
744
+ attr_accessor :amount
745
+ # Currency of the amount.
746
+ attr_accessor :currency
747
+ # Discount details for the rental.
748
+ attr_accessor :discounts
749
+ # Additional charges for the rental.
750
+ attr_accessor :extra_charges
751
+ # Rate per unit for the rental.
752
+ attr_accessor :rate_per_unit
753
+ # Unit of measurement for the rate.
754
+ attr_accessor :rate_unit
755
+ # Tax breakdown for the rental.
756
+ attr_accessor :tax
757
+
758
+ def initialize(
759
+ amount: nil,
760
+ currency: nil,
761
+ discounts: nil,
762
+ extra_charges: nil,
763
+ rate_per_unit: nil,
764
+ rate_unit: nil,
765
+ tax: nil
766
+ )
767
+ @amount = amount
768
+ @currency = currency
769
+ @discounts = discounts
770
+ @extra_charges = extra_charges
771
+ @rate_per_unit = rate_per_unit
772
+ @rate_unit = rate_unit
773
+ @tax = tax
774
+ end
775
+ end
776
+
777
+ class Vehicle < ::Stripe::RequestParams
778
+ # Make of the rental vehicle.
779
+ attr_accessor :make
780
+ # Model of the rental vehicle.
781
+ attr_accessor :model
782
+ # Odometer reading at the time of rental.
783
+ attr_accessor :odometer
784
+ # Type of the rental vehicle.
785
+ attr_accessor :type
786
+ # Class of the rental vehicle.
787
+ attr_accessor :vehicle_class
788
+ # Vehicle identification number (VIN).
789
+ attr_accessor :vehicle_identification_number
790
+
791
+ def initialize(
792
+ make: nil,
793
+ model: nil,
794
+ odometer: nil,
795
+ type: nil,
796
+ vehicle_class: nil,
797
+ vehicle_identification_number: nil
798
+ )
799
+ @make = make
800
+ @model = model
801
+ @odometer = odometer
802
+ @type = type
803
+ @vehicle_class = vehicle_class
804
+ @vehicle_identification_number = vehicle_identification_number
805
+ end
806
+ end
807
+ # Affiliate (such as travel agency) details for the rental.
808
+ attr_accessor :affiliate
809
+ # Booking confirmation number for the car rental.
810
+ attr_accessor :booking_number
811
+ # Name of the car rental company.
812
+ attr_accessor :carrier_name
813
+ # Customer service phone number for the car rental company.
814
+ attr_accessor :customer_service_phone_number
815
+ # Number of days the car is being rented.
816
+ attr_accessor :days_rented
817
+ # Distance details for the rental.
818
+ attr_accessor :distance
819
+ # List of drivers for the rental.
820
+ attr_accessor :drivers
821
+ # Drop-off location details.
822
+ attr_accessor :drop_off
823
+ # Insurance details for the rental.
824
+ attr_accessor :insurances
825
+ # Indicates if the customer was a no-show.
826
+ attr_accessor :no_show_indicator
827
+ # Pickup location details.
828
+ attr_accessor :pickup
829
+ # Name of the person renting the vehicle.
830
+ attr_accessor :renter_name
831
+ # Total cost breakdown for the rental.
832
+ attr_accessor :total
833
+ # Vehicle details for the rental.
834
+ attr_accessor :vehicle
835
+
836
+ def initialize(
837
+ affiliate: nil,
838
+ booking_number: nil,
839
+ carrier_name: nil,
840
+ customer_service_phone_number: nil,
841
+ days_rented: nil,
842
+ distance: nil,
843
+ drivers: nil,
844
+ drop_off: nil,
845
+ insurances: nil,
846
+ no_show_indicator: nil,
847
+ pickup: nil,
848
+ renter_name: nil,
849
+ total: nil,
850
+ vehicle: nil
851
+ )
852
+ @affiliate = affiliate
853
+ @booking_number = booking_number
854
+ @carrier_name = carrier_name
855
+ @customer_service_phone_number = customer_service_phone_number
856
+ @days_rented = days_rented
857
+ @distance = distance
858
+ @drivers = drivers
859
+ @drop_off = drop_off
860
+ @insurances = insurances
861
+ @no_show_indicator = no_show_indicator
862
+ @pickup = pickup
863
+ @renter_name = renter_name
864
+ @total = total
865
+ @vehicle = vehicle
866
+ end
867
+ end
868
+
869
+ class EventDetails < ::Stripe::RequestParams
870
+ class Address < ::Stripe::RequestParams
871
+ # City, district, suburb, town, or village.
872
+ attr_accessor :city
873
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
874
+ attr_accessor :country
875
+ # Address line 1, such as the street, PO Box, or company name.
876
+ attr_accessor :line1
877
+ # Address line 2, such as the apartment, suite, unit, or building.
878
+ attr_accessor :line2
879
+ # ZIP or postal code.
880
+ attr_accessor :postal_code
881
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
882
+ attr_accessor :state
883
+
884
+ def initialize(
885
+ city: nil,
886
+ country: nil,
887
+ line1: nil,
888
+ line2: nil,
889
+ postal_code: nil,
890
+ state: nil
891
+ )
892
+ @city = city
893
+ @country = country
894
+ @line1 = line1
895
+ @line2 = line2
896
+ @postal_code = postal_code
897
+ @state = state
898
+ end
899
+ end
900
+
901
+ class Affiliate < ::Stripe::RequestParams
902
+ # The name of the affiliate that originated the purchase.
903
+ attr_accessor :name
904
+
905
+ def initialize(name: nil)
906
+ @name = name
907
+ end
908
+ end
909
+
910
+ class Delivery < ::Stripe::RequestParams
911
+ class Recipient < ::Stripe::RequestParams
912
+ # The email of the recipient the ticket is delivered to.
913
+ attr_accessor :email
914
+ # The name of the recipient the ticket is delivered to.
915
+ attr_accessor :name
916
+ # The phone number of the recipient the ticket is delivered to.
917
+ attr_accessor :phone
918
+
919
+ def initialize(email: nil, name: nil, phone: nil)
920
+ @email = email
921
+ @name = name
922
+ @phone = phone
923
+ end
924
+ end
925
+ # The delivery method for the payment
926
+ attr_accessor :mode
927
+ # Details of the recipient.
928
+ attr_accessor :recipient
929
+
930
+ def initialize(mode: nil, recipient: nil)
931
+ @mode = mode
932
+ @recipient = recipient
933
+ end
934
+ end
935
+ # Indicates if the tickets are digitally checked when entering the venue.
936
+ attr_accessor :access_controlled_venue
937
+ # The event location's address.
938
+ attr_accessor :address
939
+ # Affiliate details for this purchase.
940
+ attr_accessor :affiliate
941
+ # The name of the company
942
+ attr_accessor :company
943
+ # Delivery details for this purchase.
944
+ attr_accessor :delivery
945
+ # Event end time. Measured in seconds since the Unix epoch.
946
+ attr_accessor :ends_at
947
+ # Type of the event entertainment (concert, sports event etc)
948
+ attr_accessor :genre
949
+ # The name of the event.
950
+ attr_accessor :name
951
+ # Event start time. Measured in seconds since the Unix epoch.
952
+ attr_accessor :starts_at
953
+
954
+ def initialize(
955
+ access_controlled_venue: nil,
956
+ address: nil,
957
+ affiliate: nil,
958
+ company: nil,
959
+ delivery: nil,
960
+ ends_at: nil,
961
+ genre: nil,
962
+ name: nil,
963
+ starts_at: nil
964
+ )
965
+ @access_controlled_venue = access_controlled_venue
966
+ @address = address
967
+ @affiliate = affiliate
968
+ @company = company
969
+ @delivery = delivery
970
+ @ends_at = ends_at
971
+ @genre = genre
972
+ @name = name
973
+ @starts_at = starts_at
974
+ end
975
+ end
976
+
977
+ class Flight < ::Stripe::RequestParams
978
+ class Affiliate < ::Stripe::RequestParams
979
+ # The name of the affiliate that originated the purchase.
980
+ attr_accessor :name
981
+
982
+ def initialize(name: nil)
983
+ @name = name
984
+ end
985
+ end
986
+
987
+ class Delivery < ::Stripe::RequestParams
988
+ class Recipient < ::Stripe::RequestParams
989
+ # The email of the recipient the ticket is delivered to.
990
+ attr_accessor :email
991
+ # The name of the recipient the ticket is delivered to.
992
+ attr_accessor :name
993
+ # The phone number of the recipient the ticket is delivered to.
994
+ attr_accessor :phone
995
+
996
+ def initialize(email: nil, name: nil, phone: nil)
997
+ @email = email
998
+ @name = name
999
+ @phone = phone
1000
+ end
1001
+ end
1002
+ # The delivery method for the payment
1003
+ attr_accessor :mode
1004
+ # Details of the recipient.
1005
+ attr_accessor :recipient
1006
+
1007
+ def initialize(mode: nil, recipient: nil)
1008
+ @mode = mode
1009
+ @recipient = recipient
1010
+ end
1011
+ end
1012
+
1013
+ class Passenger < ::Stripe::RequestParams
1014
+ # Full name of the person or entity on the flight reservation.
1015
+ attr_accessor :name
1016
+
1017
+ def initialize(name: nil)
1018
+ @name = name
1019
+ end
1020
+ end
1021
+
1022
+ class Segment < ::Stripe::RequestParams
1023
+ # The flight segment amount.
1024
+ attr_accessor :amount
1025
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1026
+ attr_accessor :arrival_airport
1027
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1028
+ attr_accessor :arrives_at
1029
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1030
+ attr_accessor :carrier
1031
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1032
+ attr_accessor :departs_at
1033
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1034
+ attr_accessor :departure_airport
1035
+ # The flight number associated with the segment
1036
+ attr_accessor :flight_number
1037
+ # The fare class for the segment.
1038
+ attr_accessor :service_class
1039
+
1040
+ def initialize(
1041
+ amount: nil,
1042
+ arrival_airport: nil,
1043
+ arrives_at: nil,
1044
+ carrier: nil,
1045
+ departs_at: nil,
1046
+ departure_airport: nil,
1047
+ flight_number: nil,
1048
+ service_class: nil
1049
+ )
1050
+ @amount = amount
1051
+ @arrival_airport = arrival_airport
1052
+ @arrives_at = arrives_at
1053
+ @carrier = carrier
1054
+ @departs_at = departs_at
1055
+ @departure_airport = departure_airport
1056
+ @flight_number = flight_number
1057
+ @service_class = service_class
1058
+ end
1059
+ end
1060
+ # Affiliate details for this purchase.
1061
+ attr_accessor :affiliate
1062
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1063
+ attr_accessor :agency_number
1064
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1065
+ attr_accessor :carrier
1066
+ # Delivery details for this purchase.
1067
+ attr_accessor :delivery
1068
+ # The name of the person or entity on the reservation.
1069
+ attr_accessor :passenger_name
1070
+ # The details of the passengers in the travel reservation.
1071
+ attr_accessor :passengers
1072
+ # The individual flight segments associated with the trip.
1073
+ attr_accessor :segments
1074
+ # The ticket number associated with the travel reservation.
1075
+ attr_accessor :ticket_number
1076
+
1077
+ def initialize(
1078
+ affiliate: nil,
1079
+ agency_number: nil,
1080
+ carrier: nil,
1081
+ delivery: nil,
1082
+ passenger_name: nil,
1083
+ passengers: nil,
1084
+ segments: nil,
1085
+ ticket_number: nil
1086
+ )
1087
+ @affiliate = affiliate
1088
+ @agency_number = agency_number
1089
+ @carrier = carrier
1090
+ @delivery = delivery
1091
+ @passenger_name = passenger_name
1092
+ @passengers = passengers
1093
+ @segments = segments
1094
+ @ticket_number = ticket_number
1095
+ end
1096
+ end
1097
+
1098
+ class FlightDatum < ::Stripe::RequestParams
1099
+ class Affiliate < ::Stripe::RequestParams
1100
+ # Affiliate partner code.
1101
+ attr_accessor :code
1102
+ # Name of affiliate partner.
1103
+ attr_accessor :name
1104
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1105
+ attr_accessor :travel_authorization_code
1106
+
1107
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1108
+ @code = code
1109
+ @name = name
1110
+ @travel_authorization_code = travel_authorization_code
1111
+ end
1112
+ end
1113
+
1114
+ class Insurance < ::Stripe::RequestParams
1115
+ # Insurance cost.
1116
+ attr_accessor :amount
1117
+ # Insurance currency.
1118
+ attr_accessor :currency
1119
+ # Insurance company name.
1120
+ attr_accessor :insurance_company_name
1121
+ # Type of insurance.
1122
+ attr_accessor :insurance_type
1123
+
1124
+ def initialize(
1125
+ amount: nil,
1126
+ currency: nil,
1127
+ insurance_company_name: nil,
1128
+ insurance_type: nil
1129
+ )
1130
+ @amount = amount
1131
+ @currency = currency
1132
+ @insurance_company_name = insurance_company_name
1133
+ @insurance_type = insurance_type
1134
+ end
1135
+ end
1136
+
1137
+ class Passenger < ::Stripe::RequestParams
1138
+ # Passenger's full name.
1139
+ attr_accessor :name
1140
+
1141
+ def initialize(name: nil)
1142
+ @name = name
1143
+ end
1144
+ end
1145
+
1146
+ class Segment < ::Stripe::RequestParams
1147
+ class Arrival < ::Stripe::RequestParams
1148
+ # Arrival airport IATA code.
1149
+ attr_accessor :airport
1150
+ # Arrival date/time.
1151
+ attr_accessor :arrives_at
1152
+ # Arrival city.
1153
+ attr_accessor :city
1154
+ # Arrival country.
1155
+ attr_accessor :country
1156
+
1157
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1158
+ @airport = airport
1159
+ @arrives_at = arrives_at
1160
+ @city = city
1161
+ @country = country
1162
+ end
1163
+ end
1164
+
1165
+ class Departure < ::Stripe::RequestParams
1166
+ # Departure airport IATA code.
1167
+ attr_accessor :airport
1168
+ # Departure city.
1169
+ attr_accessor :city
1170
+ # Departure country.
1171
+ attr_accessor :country
1172
+ # Departure date/time.
1173
+ attr_accessor :departs_at
1174
+
1175
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1176
+ @airport = airport
1177
+ @city = city
1178
+ @country = country
1179
+ @departs_at = departs_at
1180
+ end
1181
+ end
1182
+ # Segment fare amount.
1183
+ attr_accessor :amount
1184
+ # Arrival details.
1185
+ attr_accessor :arrival
1186
+ # Airline carrier code.
1187
+ attr_accessor :carrier_code
1188
+ # Carrier name.
1189
+ attr_accessor :carrier_name
1190
+ # Segment currency.
1191
+ attr_accessor :currency
1192
+ # Departure details.
1193
+ attr_accessor :departure
1194
+ # Exchange ticket number.
1195
+ attr_accessor :exchange_ticket_number
1196
+ # Fare basis code.
1197
+ attr_accessor :fare_basis_code
1198
+ # Additional fees.
1199
+ attr_accessor :fees
1200
+ # Flight number.
1201
+ attr_accessor :flight_number
1202
+ # Stopover indicator.
1203
+ attr_accessor :is_stop_over_indicator
1204
+ # Refundable ticket indicator.
1205
+ attr_accessor :refundable
1206
+ # Class of service.
1207
+ attr_accessor :service_class
1208
+ # Tax amount for segment.
1209
+ attr_accessor :tax_amount
1210
+ # Ticket number.
1211
+ attr_accessor :ticket_number
1212
+
1213
+ def initialize(
1214
+ amount: nil,
1215
+ arrival: nil,
1216
+ carrier_code: nil,
1217
+ carrier_name: nil,
1218
+ currency: nil,
1219
+ departure: nil,
1220
+ exchange_ticket_number: nil,
1221
+ fare_basis_code: nil,
1222
+ fees: nil,
1223
+ flight_number: nil,
1224
+ is_stop_over_indicator: nil,
1225
+ refundable: nil,
1226
+ service_class: nil,
1227
+ tax_amount: nil,
1228
+ ticket_number: nil
1229
+ )
1230
+ @amount = amount
1231
+ @arrival = arrival
1232
+ @carrier_code = carrier_code
1233
+ @carrier_name = carrier_name
1234
+ @currency = currency
1235
+ @departure = departure
1236
+ @exchange_ticket_number = exchange_ticket_number
1237
+ @fare_basis_code = fare_basis_code
1238
+ @fees = fees
1239
+ @flight_number = flight_number
1240
+ @is_stop_over_indicator = is_stop_over_indicator
1241
+ @refundable = refundable
1242
+ @service_class = service_class
1243
+ @tax_amount = tax_amount
1244
+ @ticket_number = ticket_number
1245
+ end
1246
+ end
1247
+
1248
+ class Total < ::Stripe::RequestParams
1249
+ class Discounts < ::Stripe::RequestParams
1250
+ # Corporate client discount code.
1251
+ attr_accessor :corporate_client_code
1252
+
1253
+ def initialize(corporate_client_code: nil)
1254
+ @corporate_client_code = corporate_client_code
461
1255
  end
462
1256
  end
463
1257
 
464
1258
  class ExtraCharge < ::Stripe::RequestParams
465
- # Amount of the extra charge in cents.
1259
+ # Amount of additional charges.
466
1260
  attr_accessor :amount
467
- # Type of extra charge.
1261
+ # Type of additional charges.
468
1262
  attr_accessor :type
469
1263
 
470
1264
  def initialize(amount: nil, type: nil)
@@ -477,9 +1271,9 @@ module Stripe
477
1271
  class TaxItem < ::Stripe::RequestParams
478
1272
  # Tax amount.
479
1273
  attr_accessor :amount
480
- # Tax rate applied.
1274
+ # Tax rate.
481
1275
  attr_accessor :rate
482
- # Type of tax applied.
1276
+ # Type of tax.
483
1277
  attr_accessor :type
484
1278
 
485
1279
  def initialize(amount: nil, rate: nil, type: nil)
@@ -488,139 +1282,250 @@ module Stripe
488
1282
  @type = type
489
1283
  end
490
1284
  end
491
- # Indicates if the transaction is tax exempt.
492
- attr_accessor :tax_exempt_indicator
493
1285
  # Array of tax details.
494
1286
  attr_accessor :tax_items
495
1287
 
496
- def initialize(tax_exempt_indicator: nil, tax_items: nil)
497
- @tax_exempt_indicator = tax_exempt_indicator
1288
+ def initialize(tax_items: nil)
498
1289
  @tax_items = tax_items
499
1290
  end
500
1291
  end
501
- # Total amount in cents.
1292
+ # Total flight amount.
502
1293
  attr_accessor :amount
503
- # Currency of the amount.
1294
+ # Reason for credit.
1295
+ attr_accessor :credit_reason
1296
+ # Total currency.
504
1297
  attr_accessor :currency
505
- # Discount details for the rental.
1298
+ # Discount details.
506
1299
  attr_accessor :discounts
507
- # Additional charges for the rental.
1300
+ # Additional charges.
508
1301
  attr_accessor :extra_charges
509
- # Rate per unit for the rental.
510
- attr_accessor :rate_per_unit
511
- # Unit of measurement for the rate.
512
- attr_accessor :rate_unit
513
- # Tax breakdown for the rental.
1302
+ # Tax breakdown.
514
1303
  attr_accessor :tax
515
1304
 
516
1305
  def initialize(
517
1306
  amount: nil,
1307
+ credit_reason: nil,
518
1308
  currency: nil,
519
1309
  discounts: nil,
520
1310
  extra_charges: nil,
521
- rate_per_unit: nil,
522
- rate_unit: nil,
523
1311
  tax: nil
524
1312
  )
525
1313
  @amount = amount
1314
+ @credit_reason = credit_reason
526
1315
  @currency = currency
527
1316
  @discounts = discounts
528
1317
  @extra_charges = extra_charges
529
- @rate_per_unit = rate_per_unit
530
- @rate_unit = rate_unit
531
1318
  @tax = tax
532
1319
  end
533
1320
  end
1321
+ # Affiliate details if applicable.
1322
+ attr_accessor :affiliate
1323
+ # Reservation reference.
1324
+ attr_accessor :booking_number
1325
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1326
+ attr_accessor :computerized_reservation_system
1327
+ # Ticket restrictions.
1328
+ attr_accessor :endorsements_and_restrictions
1329
+ # List of insurances.
1330
+ attr_accessor :insurances
1331
+ # List of passengers.
1332
+ attr_accessor :passengers
1333
+ # List of flight segments.
1334
+ attr_accessor :segments
1335
+ # Electronic ticket indicator.
1336
+ attr_accessor :ticket_electronically_issued_indicator
1337
+ # Total cost breakdown.
1338
+ attr_accessor :total
1339
+ # Type of flight transaction.
1340
+ attr_accessor :transaction_type
534
1341
 
535
- class Vehicle < ::Stripe::RequestParams
536
- # Make of the rental vehicle.
537
- attr_accessor :make
538
- # Model of the rental vehicle.
539
- attr_accessor :model
540
- # Odometer reading at the time of rental.
541
- attr_accessor :odometer
542
- # Type of the rental vehicle.
543
- attr_accessor :type
544
- # Class of the rental vehicle.
545
- attr_accessor :vehicle_class
546
- # Vehicle identification number (VIN).
547
- attr_accessor :vehicle_identification_number
1342
+ def initialize(
1343
+ affiliate: nil,
1344
+ booking_number: nil,
1345
+ computerized_reservation_system: nil,
1346
+ endorsements_and_restrictions: nil,
1347
+ insurances: nil,
1348
+ passengers: nil,
1349
+ segments: nil,
1350
+ ticket_electronically_issued_indicator: nil,
1351
+ total: nil,
1352
+ transaction_type: nil
1353
+ )
1354
+ @affiliate = affiliate
1355
+ @booking_number = booking_number
1356
+ @computerized_reservation_system = computerized_reservation_system
1357
+ @endorsements_and_restrictions = endorsements_and_restrictions
1358
+ @insurances = insurances
1359
+ @passengers = passengers
1360
+ @segments = segments
1361
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1362
+ @total = total
1363
+ @transaction_type = transaction_type
1364
+ end
1365
+ end
1366
+
1367
+ class Lodging < ::Stripe::RequestParams
1368
+ class Address < ::Stripe::RequestParams
1369
+ # City, district, suburb, town, or village.
1370
+ attr_accessor :city
1371
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1372
+ attr_accessor :country
1373
+ # Address line 1, such as the street, PO Box, or company name.
1374
+ attr_accessor :line1
1375
+ # Address line 2, such as the apartment, suite, unit, or building.
1376
+ attr_accessor :line2
1377
+ # ZIP or postal code.
1378
+ attr_accessor :postal_code
1379
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1380
+ attr_accessor :state
548
1381
 
549
1382
  def initialize(
550
- make: nil,
551
- model: nil,
552
- odometer: nil,
553
- type: nil,
554
- vehicle_class: nil,
555
- vehicle_identification_number: nil
1383
+ city: nil,
1384
+ country: nil,
1385
+ line1: nil,
1386
+ line2: nil,
1387
+ postal_code: nil,
1388
+ state: nil
556
1389
  )
557
- @make = make
558
- @model = model
559
- @odometer = odometer
560
- @type = type
561
- @vehicle_class = vehicle_class
562
- @vehicle_identification_number = vehicle_identification_number
1390
+ @city = city
1391
+ @country = country
1392
+ @line1 = line1
1393
+ @line2 = line2
1394
+ @postal_code = postal_code
1395
+ @state = state
563
1396
  end
564
1397
  end
565
- # Affiliate (such as travel agency) details for the rental.
1398
+
1399
+ class Affiliate < ::Stripe::RequestParams
1400
+ # The name of the affiliate that originated the purchase.
1401
+ attr_accessor :name
1402
+
1403
+ def initialize(name: nil)
1404
+ @name = name
1405
+ end
1406
+ end
1407
+
1408
+ class Delivery < ::Stripe::RequestParams
1409
+ class Recipient < ::Stripe::RequestParams
1410
+ # The email of the recipient the ticket is delivered to.
1411
+ attr_accessor :email
1412
+ # The name of the recipient the ticket is delivered to.
1413
+ attr_accessor :name
1414
+ # The phone number of the recipient the ticket is delivered to.
1415
+ attr_accessor :phone
1416
+
1417
+ def initialize(email: nil, name: nil, phone: nil)
1418
+ @email = email
1419
+ @name = name
1420
+ @phone = phone
1421
+ end
1422
+ end
1423
+ # The delivery method for the payment
1424
+ attr_accessor :mode
1425
+ # Details of the recipient.
1426
+ attr_accessor :recipient
1427
+
1428
+ def initialize(mode: nil, recipient: nil)
1429
+ @mode = mode
1430
+ @recipient = recipient
1431
+ end
1432
+ end
1433
+
1434
+ class Passenger < ::Stripe::RequestParams
1435
+ # Full name of the person or entity on the lodging reservation.
1436
+ attr_accessor :name
1437
+
1438
+ def initialize(name: nil)
1439
+ @name = name
1440
+ end
1441
+ end
1442
+ # The lodging location's address.
1443
+ attr_accessor :address
1444
+ # The number of adults on the booking
1445
+ attr_accessor :adults
1446
+ # Affiliate details for this purchase.
566
1447
  attr_accessor :affiliate
567
- # Booking confirmation number for the car rental.
1448
+ # The booking number associated with the lodging reservation.
568
1449
  attr_accessor :booking_number
569
- # Name of the car rental company.
570
- attr_accessor :carrier_name
571
- # Customer service phone number for the car rental company.
1450
+ # The lodging category
1451
+ attr_accessor :category
1452
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1453
+ attr_accessor :checkin_at
1454
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1455
+ attr_accessor :checkout_at
1456
+ # The customer service phone number of the lodging company.
572
1457
  attr_accessor :customer_service_phone_number
573
- # Number of days the car is being rented.
574
- attr_accessor :days_rented
575
- # Distance details for the rental.
576
- attr_accessor :distance
577
- # List of drivers for the rental.
578
- attr_accessor :drivers
579
- # Drop-off location details.
580
- attr_accessor :drop_off
581
- # Insurance details for the rental.
582
- attr_accessor :insurances
583
- # Indicates if the customer was a no-show.
584
- attr_accessor :no_show_indicator
585
- # Pickup location details.
586
- attr_accessor :pickup
587
- # Name of the person renting the vehicle.
588
- attr_accessor :renter_name
589
- # Total cost breakdown for the rental.
590
- attr_accessor :total
591
- # Vehicle details for the rental.
592
- attr_accessor :vehicle
1458
+ # The daily lodging room rate.
1459
+ attr_accessor :daily_room_rate_amount
1460
+ # Delivery details for this purchase.
1461
+ attr_accessor :delivery
1462
+ # List of additional charges being billed.
1463
+ attr_accessor :extra_charges
1464
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1465
+ attr_accessor :fire_safety_act_compliance
1466
+ # The name of the lodging location.
1467
+ attr_accessor :name
1468
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1469
+ attr_accessor :no_show
1470
+ # The number of rooms on the booking
1471
+ attr_accessor :number_of_rooms
1472
+ # The details of the passengers in the travel reservation
1473
+ attr_accessor :passengers
1474
+ # The phone number of the lodging location.
1475
+ attr_accessor :property_phone_number
1476
+ # The room class for this purchase.
1477
+ attr_accessor :room_class
1478
+ # The number of room nights
1479
+ attr_accessor :room_nights
1480
+ # The total tax amount associating with the room reservation.
1481
+ attr_accessor :total_room_tax_amount
1482
+ # The total tax amount
1483
+ attr_accessor :total_tax_amount
593
1484
 
594
1485
  def initialize(
1486
+ address: nil,
1487
+ adults: nil,
595
1488
  affiliate: nil,
596
1489
  booking_number: nil,
597
- carrier_name: nil,
1490
+ category: nil,
1491
+ checkin_at: nil,
1492
+ checkout_at: nil,
598
1493
  customer_service_phone_number: nil,
599
- days_rented: nil,
600
- distance: nil,
601
- drivers: nil,
602
- drop_off: nil,
603
- insurances: nil,
604
- no_show_indicator: nil,
605
- pickup: nil,
606
- renter_name: nil,
607
- total: nil,
608
- vehicle: nil
1494
+ daily_room_rate_amount: nil,
1495
+ delivery: nil,
1496
+ extra_charges: nil,
1497
+ fire_safety_act_compliance: nil,
1498
+ name: nil,
1499
+ no_show: nil,
1500
+ number_of_rooms: nil,
1501
+ passengers: nil,
1502
+ property_phone_number: nil,
1503
+ room_class: nil,
1504
+ room_nights: nil,
1505
+ total_room_tax_amount: nil,
1506
+ total_tax_amount: nil
609
1507
  )
1508
+ @address = address
1509
+ @adults = adults
610
1510
  @affiliate = affiliate
611
1511
  @booking_number = booking_number
612
- @carrier_name = carrier_name
1512
+ @category = category
1513
+ @checkin_at = checkin_at
1514
+ @checkout_at = checkout_at
613
1515
  @customer_service_phone_number = customer_service_phone_number
614
- @days_rented = days_rented
615
- @distance = distance
616
- @drivers = drivers
617
- @drop_off = drop_off
618
- @insurances = insurances
619
- @no_show_indicator = no_show_indicator
620
- @pickup = pickup
621
- @renter_name = renter_name
622
- @total = total
623
- @vehicle = vehicle
1516
+ @daily_room_rate_amount = daily_room_rate_amount
1517
+ @delivery = delivery
1518
+ @extra_charges = extra_charges
1519
+ @fire_safety_act_compliance = fire_safety_act_compliance
1520
+ @name = name
1521
+ @no_show = no_show
1522
+ @number_of_rooms = number_of_rooms
1523
+ @passengers = passengers
1524
+ @property_phone_number = property_phone_number
1525
+ @room_class = room_class
1526
+ @room_nights = room_nights
1527
+ @total_room_tax_amount = total_room_tax_amount
1528
+ @total_tax_amount = total_tax_amount
624
1529
  end
625
1530
  end
626
1531
 
@@ -917,29 +1822,104 @@ module Stripe
917
1822
  @total = total
918
1823
  end
919
1824
  end
1825
+
1826
+ class Subscription < ::Stripe::RequestParams
1827
+ class Affiliate < ::Stripe::RequestParams
1828
+ # The name of the affiliate that originated the purchase.
1829
+ attr_accessor :name
1830
+
1831
+ def initialize(name: nil)
1832
+ @name = name
1833
+ end
1834
+ end
1835
+
1836
+ class BillingInterval < ::Stripe::RequestParams
1837
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1838
+ attr_accessor :count
1839
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1840
+ attr_accessor :interval
1841
+
1842
+ def initialize(count: nil, interval: nil)
1843
+ @count = count
1844
+ @interval = interval
1845
+ end
1846
+ end
1847
+ # Affiliate details for this purchase.
1848
+ attr_accessor :affiliate
1849
+ # Info whether the subscription will be auto renewed upon expiry.
1850
+ attr_accessor :auto_renewal
1851
+ # Subscription billing details for this purchase.
1852
+ attr_accessor :billing_interval
1853
+ # Subscription end time. Measured in seconds since the Unix epoch.
1854
+ attr_accessor :ends_at
1855
+ # Name of the product on subscription. e.g. Apple Music Subscription
1856
+ attr_accessor :name
1857
+ # Subscription start time. Measured in seconds since the Unix epoch.
1858
+ attr_accessor :starts_at
1859
+
1860
+ def initialize(
1861
+ affiliate: nil,
1862
+ auto_renewal: nil,
1863
+ billing_interval: nil,
1864
+ ends_at: nil,
1865
+ name: nil,
1866
+ starts_at: nil
1867
+ )
1868
+ @affiliate = affiliate
1869
+ @auto_renewal = auto_renewal
1870
+ @billing_interval = billing_interval
1871
+ @ends_at = ends_at
1872
+ @name = name
1873
+ @starts_at = starts_at
1874
+ end
1875
+ end
1876
+ # Car rental details for this PaymentIntent.
1877
+ attr_accessor :car_rental
920
1878
  # Car rental data for this PaymentIntent.
921
1879
  attr_accessor :car_rental_data
922
1880
  # A unique value to identify the customer. This field is available only for card payments.
923
1881
  #
924
1882
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
925
1883
  attr_accessor :customer_reference
1884
+ # Event details for this PaymentIntent
1885
+ attr_accessor :event_details
1886
+ # Flight reservation details for this PaymentIntent
1887
+ attr_accessor :flight
1888
+ # Flight data for this PaymentIntent.
1889
+ attr_accessor :flight_data
1890
+ # Lodging reservation details for this PaymentIntent
1891
+ attr_accessor :lodging
926
1892
  # Lodging data for this PaymentIntent.
927
1893
  attr_accessor :lodging_data
928
1894
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
929
1895
  #
930
1896
  # 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.
931
1897
  attr_accessor :order_reference
1898
+ # Subscription details for this PaymentIntent
1899
+ attr_accessor :subscription
932
1900
 
933
1901
  def initialize(
1902
+ car_rental: nil,
934
1903
  car_rental_data: nil,
935
1904
  customer_reference: nil,
1905
+ event_details: nil,
1906
+ flight: nil,
1907
+ flight_data: nil,
1908
+ lodging: nil,
936
1909
  lodging_data: nil,
937
- order_reference: nil
1910
+ order_reference: nil,
1911
+ subscription: nil
938
1912
  )
1913
+ @car_rental = car_rental
939
1914
  @car_rental_data = car_rental_data
940
1915
  @customer_reference = customer_reference
1916
+ @event_details = event_details
1917
+ @flight = flight
1918
+ @flight_data = flight_data
1919
+ @lodging = lodging
941
1920
  @lodging_data = lodging_data
942
1921
  @order_reference = order_reference
1922
+ @subscription = subscription
943
1923
  end
944
1924
  end
945
1925
 
@@ -1081,8 +2061,18 @@ module Stripe
1081
2061
  end
1082
2062
 
1083
2063
  class Giropay < ::Stripe::RequestParams; end
2064
+ class Gopay < ::Stripe::RequestParams; end
1084
2065
  class Grabpay < ::Stripe::RequestParams; end
1085
2066
 
2067
+ class IdBankTransfer < ::Stripe::RequestParams
2068
+ # Bank where the account is held.
2069
+ attr_accessor :bank
2070
+
2071
+ def initialize(bank: nil)
2072
+ @bank = bank
2073
+ end
2074
+ end
2075
+
1086
2076
  class Ideal < ::Stripe::RequestParams
1087
2077
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1088
2078
  attr_accessor :bank
@@ -1199,6 +2189,7 @@ module Stripe
1199
2189
 
1200
2190
  class Pix < ::Stripe::RequestParams; end
1201
2191
  class Promptpay < ::Stripe::RequestParams; end
2192
+ class Qris < ::Stripe::RequestParams; end
1202
2193
 
1203
2194
  class RadarOptions < ::Stripe::RequestParams
1204
2195
  # 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.
@@ -1209,6 +2200,29 @@ module Stripe
1209
2200
  end
1210
2201
  end
1211
2202
 
2203
+ class Rechnung < ::Stripe::RequestParams
2204
+ class Dob < ::Stripe::RequestParams
2205
+ # The day of birth, between 1 and 31.
2206
+ attr_accessor :day
2207
+ # The month of birth, between 1 and 12.
2208
+ attr_accessor :month
2209
+ # The four-digit year of birth.
2210
+ attr_accessor :year
2211
+
2212
+ def initialize(day: nil, month: nil, year: nil)
2213
+ @day = day
2214
+ @month = month
2215
+ @year = year
2216
+ end
2217
+ end
2218
+ # Customer's date of birth
2219
+ attr_accessor :dob
2220
+
2221
+ def initialize(dob: nil)
2222
+ @dob = dob
2223
+ end
2224
+ end
2225
+
1212
2226
  class RevolutPay < ::Stripe::RequestParams; end
1213
2227
  class SamsungPay < ::Stripe::RequestParams; end
1214
2228
  class Satispay < ::Stripe::RequestParams; end
@@ -1224,6 +2238,7 @@ module Stripe
1224
2238
  end
1225
2239
 
1226
2240
  class Sequra < ::Stripe::RequestParams; end
2241
+ class Shopeepay < ::Stripe::RequestParams; end
1227
2242
 
1228
2243
  class Sofort < ::Stripe::RequestParams
1229
2244
  # Two-letter ISO code representing the country the bank account is located in.
@@ -1234,6 +2249,15 @@ module Stripe
1234
2249
  end
1235
2250
  end
1236
2251
 
2252
+ class StripeBalance < ::Stripe::RequestParams
2253
+ # The connected account ID whose Stripe balance to use as the source of payment
2254
+ attr_accessor :account
2255
+
2256
+ def initialize(account: nil)
2257
+ @account = account
2258
+ end
2259
+ end
2260
+
1237
2261
  class Sunbit < ::Stripe::RequestParams; end
1238
2262
  class Swish < ::Stripe::RequestParams; end
1239
2263
  class Twint < ::Stripe::RequestParams; end
@@ -1265,12 +2289,25 @@ module Stripe
1265
2289
  end
1266
2290
 
1267
2291
  class UsBankAccount < ::Stripe::RequestParams
2292
+ class ExternalToken < ::Stripe::RequestParams
2293
+ # The Plaid processor token to use for this bank account.
2294
+ attr_accessor :plaid_processor_token
2295
+ # The type of external token.
2296
+ attr_accessor :type
2297
+
2298
+ def initialize(plaid_processor_token: nil, type: nil)
2299
+ @plaid_processor_token = plaid_processor_token
2300
+ @type = type
2301
+ end
2302
+ end
1268
2303
  # Account holder type: individual or company.
1269
2304
  attr_accessor :account_holder_type
1270
2305
  # Account number of the bank account.
1271
2306
  attr_accessor :account_number
1272
2307
  # Account type: checkings or savings. Defaults to checking if omitted.
1273
2308
  attr_accessor :account_type
2309
+ # An external token used to create a payment method.
2310
+ attr_accessor :external_token
1274
2311
  # The ID of a Financial Connections Account to use as a payment method.
1275
2312
  attr_accessor :financial_connections_account
1276
2313
  # Routing number of the bank account.
@@ -1280,18 +2317,21 @@ module Stripe
1280
2317
  account_holder_type: nil,
1281
2318
  account_number: nil,
1282
2319
  account_type: nil,
2320
+ external_token: nil,
1283
2321
  financial_connections_account: nil,
1284
2322
  routing_number: nil
1285
2323
  )
1286
2324
  @account_holder_type = account_holder_type
1287
2325
  @account_number = account_number
1288
2326
  @account_type = account_type
2327
+ @external_token = external_token
1289
2328
  @financial_connections_account = financial_connections_account
1290
2329
  @routing_number = routing_number
1291
2330
  end
1292
2331
  end
1293
2332
 
1294
2333
  class WechatPay < ::Stripe::RequestParams; end
2334
+ class Wero < ::Stripe::RequestParams; end
1295
2335
  class Zip < ::Stripe::RequestParams; end
1296
2336
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1297
2337
  attr_accessor :acss_debit
@@ -1335,8 +2375,12 @@ module Stripe
1335
2375
  attr_accessor :fpx
1336
2376
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1337
2377
  attr_accessor :giropay
2378
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2379
+ attr_accessor :gopay
1338
2380
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1339
2381
  attr_accessor :grabpay
2382
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2383
+ attr_accessor :id_bank_transfer
1340
2384
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1341
2385
  attr_accessor :ideal
1342
2386
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1383,8 +2427,12 @@ module Stripe
1383
2427
  attr_accessor :pix
1384
2428
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1385
2429
  attr_accessor :promptpay
2430
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2431
+ attr_accessor :qris
1386
2432
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
1387
2433
  attr_accessor :radar_options
2434
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2435
+ attr_accessor :rechnung
1388
2436
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1389
2437
  attr_accessor :revolut_pay
1390
2438
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1397,8 +2445,14 @@ module Stripe
1397
2445
  attr_accessor :sepa_debit
1398
2446
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
1399
2447
  attr_accessor :sequra
2448
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2449
+ attr_accessor :shared_payment_granted_token
2450
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2451
+ attr_accessor :shopeepay
1400
2452
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1401
2453
  attr_accessor :sofort
2454
+ # This hash contains details about the Stripe balance payment method.
2455
+ attr_accessor :stripe_balance
1402
2456
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
1403
2457
  attr_accessor :sunbit
1404
2458
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -1413,6 +2467,8 @@ module Stripe
1413
2467
  attr_accessor :us_bank_account
1414
2468
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1415
2469
  attr_accessor :wechat_pay
2470
+ # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
2471
+ attr_accessor :wero
1416
2472
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1417
2473
  attr_accessor :zip
1418
2474
 
@@ -1438,7 +2494,9 @@ module Stripe
1438
2494
  eps: nil,
1439
2495
  fpx: nil,
1440
2496
  giropay: nil,
2497
+ gopay: nil,
1441
2498
  grabpay: nil,
2499
+ id_bank_transfer: nil,
1442
2500
  ideal: nil,
1443
2501
  interac_present: nil,
1444
2502
  kakao_pay: nil,
@@ -1462,14 +2520,19 @@ module Stripe
1462
2520
  payto: nil,
1463
2521
  pix: nil,
1464
2522
  promptpay: nil,
2523
+ qris: nil,
1465
2524
  radar_options: nil,
2525
+ rechnung: nil,
1466
2526
  revolut_pay: nil,
1467
2527
  samsung_pay: nil,
1468
2528
  satispay: nil,
1469
2529
  scalapay: nil,
1470
2530
  sepa_debit: nil,
1471
2531
  sequra: nil,
2532
+ shared_payment_granted_token: nil,
2533
+ shopeepay: nil,
1472
2534
  sofort: nil,
2535
+ stripe_balance: nil,
1473
2536
  sunbit: nil,
1474
2537
  swish: nil,
1475
2538
  twint: nil,
@@ -1477,6 +2540,7 @@ module Stripe
1477
2540
  upi: nil,
1478
2541
  us_bank_account: nil,
1479
2542
  wechat_pay: nil,
2543
+ wero: nil,
1480
2544
  zip: nil
1481
2545
  )
1482
2546
  @acss_debit = acss_debit
@@ -1500,7 +2564,9 @@ module Stripe
1500
2564
  @eps = eps
1501
2565
  @fpx = fpx
1502
2566
  @giropay = giropay
2567
+ @gopay = gopay
1503
2568
  @grabpay = grabpay
2569
+ @id_bank_transfer = id_bank_transfer
1504
2570
  @ideal = ideal
1505
2571
  @interac_present = interac_present
1506
2572
  @kakao_pay = kakao_pay
@@ -1524,14 +2590,19 @@ module Stripe
1524
2590
  @payto = payto
1525
2591
  @pix = pix
1526
2592
  @promptpay = promptpay
2593
+ @qris = qris
1527
2594
  @radar_options = radar_options
2595
+ @rechnung = rechnung
1528
2596
  @revolut_pay = revolut_pay
1529
2597
  @samsung_pay = samsung_pay
1530
2598
  @satispay = satispay
1531
2599
  @scalapay = scalapay
1532
2600
  @sepa_debit = sepa_debit
1533
2601
  @sequra = sequra
2602
+ @shared_payment_granted_token = shared_payment_granted_token
2603
+ @shopeepay = shopeepay
1534
2604
  @sofort = sofort
2605
+ @stripe_balance = stripe_balance
1535
2606
  @sunbit = sunbit
1536
2607
  @swish = swish
1537
2608
  @twint = twint
@@ -1539,6 +2610,7 @@ module Stripe
1539
2610
  @upi = upi
1540
2611
  @us_bank_account = us_bank_account
1541
2612
  @wechat_pay = wechat_pay
2613
+ @wero = wero
1542
2614
  @zip = zip
1543
2615
  end
1544
2616
  end
@@ -1979,6 +3051,48 @@ module Stripe
1979
3051
  end
1980
3052
  end
1981
3053
 
3054
+ class StatementDetails < ::Stripe::RequestParams
3055
+ class Address < ::Stripe::RequestParams
3056
+ # City, district, suburb, town, or village.
3057
+ attr_accessor :city
3058
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3059
+ attr_accessor :country
3060
+ # Address line 1, such as the street, PO Box, or company name.
3061
+ attr_accessor :line1
3062
+ # Address line 2, such as the apartment, suite, unit, or building.
3063
+ attr_accessor :line2
3064
+ # ZIP or postal code.
3065
+ attr_accessor :postal_code
3066
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3067
+ attr_accessor :state
3068
+
3069
+ def initialize(
3070
+ city: nil,
3071
+ country: nil,
3072
+ line1: nil,
3073
+ line2: nil,
3074
+ postal_code: nil,
3075
+ state: nil
3076
+ )
3077
+ @city = city
3078
+ @country = country
3079
+ @line1 = line1
3080
+ @line2 = line2
3081
+ @postal_code = postal_code
3082
+ @state = state
3083
+ end
3084
+ end
3085
+ # Please pass in an address that is within your Stripe user account country
3086
+ attr_accessor :address
3087
+ # Phone number (e.g., a toll-free number that customers can call)
3088
+ attr_accessor :phone
3089
+
3090
+ def initialize(address: nil, phone: nil)
3091
+ @address = address
3092
+ @phone = phone
3093
+ end
3094
+ end
3095
+
1982
3096
  class ThreeDSecure < ::Stripe::RequestParams
1983
3097
  class NetworkOptions < ::Stripe::RequestParams
1984
3098
  class CartesBancaires < ::Stripe::RequestParams
@@ -2073,6 +3187,8 @@ module Stripe
2073
3187
  attr_accessor :moto
2074
3188
  # 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.
2075
3189
  attr_accessor :network
3190
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3191
+ attr_accessor :request_decremental_authorization
2076
3192
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
2077
3193
  attr_accessor :request_extended_authorization
2078
3194
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -2081,6 +3197,8 @@ module Stripe
2081
3197
  attr_accessor :request_multicapture
2082
3198
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
2083
3199
  attr_accessor :request_overcapture
3200
+ # Request partial authorization on this PaymentIntent.
3201
+ attr_accessor :request_partial_authorization
2084
3202
  # 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.
2085
3203
  attr_accessor :request_three_d_secure
2086
3204
  # 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).
@@ -2101,6 +3219,8 @@ module Stripe
2101
3219
  attr_accessor :statement_descriptor_suffix_kana
2102
3220
  # 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.
2103
3221
  attr_accessor :statement_descriptor_suffix_kanji
3222
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3223
+ attr_accessor :statement_details
2104
3224
  # Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
2105
3225
  #
2106
3226
  # 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.
@@ -2120,16 +3240,19 @@ module Stripe
2120
3240
  mandate_options: nil,
2121
3241
  moto: nil,
2122
3242
  network: nil,
3243
+ request_decremental_authorization: nil,
2123
3244
  request_extended_authorization: nil,
2124
3245
  request_incremental_authorization: nil,
2125
3246
  request_multicapture: nil,
2126
3247
  request_overcapture: nil,
3248
+ request_partial_authorization: nil,
2127
3249
  request_three_d_secure: nil,
2128
3250
  require_cvc_recollection: nil,
2129
3251
  setup_credential_usage: nil,
2130
3252
  setup_future_usage: nil,
2131
3253
  statement_descriptor_suffix_kana: nil,
2132
3254
  statement_descriptor_suffix_kanji: nil,
3255
+ statement_details: nil,
2133
3256
  stored_credential_usage: nil,
2134
3257
  three_d_secure: nil
2135
3258
  )
@@ -2139,16 +3262,19 @@ module Stripe
2139
3262
  @mandate_options = mandate_options
2140
3263
  @moto = moto
2141
3264
  @network = network
3265
+ @request_decremental_authorization = request_decremental_authorization
2142
3266
  @request_extended_authorization = request_extended_authorization
2143
3267
  @request_incremental_authorization = request_incremental_authorization
2144
3268
  @request_multicapture = request_multicapture
2145
3269
  @request_overcapture = request_overcapture
3270
+ @request_partial_authorization = request_partial_authorization
2146
3271
  @request_three_d_secure = request_three_d_secure
2147
3272
  @require_cvc_recollection = require_cvc_recollection
2148
3273
  @setup_credential_usage = setup_credential_usage
2149
3274
  @setup_future_usage = setup_future_usage
2150
3275
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
2151
3276
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3277
+ @statement_details = statement_details
2152
3278
  @stored_credential_usage = stored_credential_usage
2153
3279
  @three_d_secure = three_d_secure
2154
3280
  end
@@ -2328,6 +3454,23 @@ module Stripe
2328
3454
  end
2329
3455
  end
2330
3456
 
3457
+ class Gopay < ::Stripe::RequestParams
3458
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3459
+ #
3460
+ # 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.
3461
+ #
3462
+ # 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.
3463
+ #
3464
+ # 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).
3465
+ #
3466
+ # 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`.
3467
+ attr_accessor :setup_future_usage
3468
+
3469
+ def initialize(setup_future_usage: nil)
3470
+ @setup_future_usage = setup_future_usage
3471
+ end
3472
+ end
3473
+
2331
3474
  class Grabpay < ::Stripe::RequestParams
2332
3475
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2333
3476
  #
@@ -2345,6 +3488,29 @@ module Stripe
2345
3488
  end
2346
3489
  end
2347
3490
 
3491
+ class IdBankTransfer < ::Stripe::RequestParams
3492
+ # 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.
3493
+ attr_accessor :expires_after
3494
+ # 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.
3495
+ attr_accessor :expires_at
3496
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3497
+ #
3498
+ # 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.
3499
+ #
3500
+ # 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.
3501
+ #
3502
+ # 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).
3503
+ #
3504
+ # 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`.
3505
+ attr_accessor :setup_future_usage
3506
+
3507
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3508
+ @expires_after = expires_after
3509
+ @expires_at = expires_at
3510
+ @setup_future_usage = setup_future_usage
3511
+ end
3512
+ end
3513
+
2348
3514
  class Ideal < ::Stripe::RequestParams
2349
3515
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2350
3516
  #
@@ -2451,6 +3617,939 @@ module Stripe
2451
3617
  @reference = reference
2452
3618
  end
2453
3619
  end
3620
+
3621
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3622
+ class BusReservationDetail < ::Stripe::RequestParams
3623
+ class Arrival < ::Stripe::RequestParams
3624
+ class Address < ::Stripe::RequestParams
3625
+ # The city or town.
3626
+ attr_accessor :city
3627
+ # The country in ISO 3166-1 alpha-2 format.
3628
+ attr_accessor :country
3629
+ # The postal code formatted according to country.
3630
+ attr_accessor :postal_code
3631
+ # The state, county, province, or region formatted according to country.
3632
+ attr_accessor :region
3633
+ # Line 1 of the street address.
3634
+ attr_accessor :street_address
3635
+ # Line 2 of the street address.
3636
+ attr_accessor :street_address2
3637
+
3638
+ def initialize(
3639
+ city: nil,
3640
+ country: nil,
3641
+ postal_code: nil,
3642
+ region: nil,
3643
+ street_address: nil,
3644
+ street_address2: nil
3645
+ )
3646
+ @city = city
3647
+ @country = country
3648
+ @postal_code = postal_code
3649
+ @region = region
3650
+ @street_address = street_address
3651
+ @street_address2 = street_address2
3652
+ end
3653
+ end
3654
+ # Address of the arrival location.
3655
+ attr_accessor :address
3656
+ # Identifier name or reference for the arrival location.
3657
+ attr_accessor :arrival_location
3658
+
3659
+ def initialize(address: nil, arrival_location: nil)
3660
+ @address = address
3661
+ @arrival_location = arrival_location
3662
+ end
3663
+ end
3664
+
3665
+ class Departure < ::Stripe::RequestParams
3666
+ class Address < ::Stripe::RequestParams
3667
+ # The city or town.
3668
+ attr_accessor :city
3669
+ # The country in ISO 3166-1 alpha-2 format.
3670
+ attr_accessor :country
3671
+ # The postal code formatted according to country.
3672
+ attr_accessor :postal_code
3673
+ # The state, county, province, or region formatted according to country.
3674
+ attr_accessor :region
3675
+ # Line 1 of the street address.
3676
+ attr_accessor :street_address
3677
+ # Line 2 of the street address.
3678
+ attr_accessor :street_address2
3679
+
3680
+ def initialize(
3681
+ city: nil,
3682
+ country: nil,
3683
+ postal_code: nil,
3684
+ region: nil,
3685
+ street_address: nil,
3686
+ street_address2: nil
3687
+ )
3688
+ @city = city
3689
+ @country = country
3690
+ @postal_code = postal_code
3691
+ @region = region
3692
+ @street_address = street_address
3693
+ @street_address2 = street_address2
3694
+ end
3695
+ end
3696
+ # Address of the departure location.
3697
+ attr_accessor :address
3698
+ # Timestamp of departure.
3699
+ attr_accessor :departs_at
3700
+ # Identifier name or reference for the origin location.
3701
+ attr_accessor :departure_location
3702
+
3703
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3704
+ @address = address
3705
+ @departs_at = departs_at
3706
+ @departure_location = departure_location
3707
+ end
3708
+ end
3709
+
3710
+ class Insurance < ::Stripe::RequestParams
3711
+ # Insurance currency.
3712
+ attr_accessor :currency
3713
+ # Name of the company providing the insurance.
3714
+ attr_accessor :insurance_company_name
3715
+ # Type of insurance.
3716
+ attr_accessor :insurance_type
3717
+ # Price of insurance in cents.
3718
+ attr_accessor :price
3719
+
3720
+ def initialize(
3721
+ currency: nil,
3722
+ insurance_company_name: nil,
3723
+ insurance_type: nil,
3724
+ price: nil
3725
+ )
3726
+ @currency = currency
3727
+ @insurance_company_name = insurance_company_name
3728
+ @insurance_type = insurance_type
3729
+ @price = price
3730
+ end
3731
+ end
3732
+
3733
+ class Passenger < ::Stripe::RequestParams
3734
+ # The family name of the person.
3735
+ attr_accessor :family_name
3736
+ # The given name of the person.
3737
+ attr_accessor :given_name
3738
+
3739
+ def initialize(family_name: nil, given_name: nil)
3740
+ @family_name = family_name
3741
+ @given_name = given_name
3742
+ end
3743
+ end
3744
+ # Name of associated or partner company for the service.
3745
+ attr_accessor :affiliate_name
3746
+ # Arrival details.
3747
+ attr_accessor :arrival
3748
+ # Name of transportation company.
3749
+ attr_accessor :carrier_name
3750
+ # Currency.
3751
+ attr_accessor :currency
3752
+ # Departure details.
3753
+ attr_accessor :departure
3754
+ # List of insurances for this reservation.
3755
+ attr_accessor :insurances
3756
+ # List of passengers that this reservation applies to.
3757
+ attr_accessor :passengers
3758
+ # Price in cents.
3759
+ attr_accessor :price
3760
+ # Ticket class.
3761
+ attr_accessor :ticket_class
3762
+
3763
+ def initialize(
3764
+ affiliate_name: nil,
3765
+ arrival: nil,
3766
+ carrier_name: nil,
3767
+ currency: nil,
3768
+ departure: nil,
3769
+ insurances: nil,
3770
+ passengers: nil,
3771
+ price: nil,
3772
+ ticket_class: nil
3773
+ )
3774
+ @affiliate_name = affiliate_name
3775
+ @arrival = arrival
3776
+ @carrier_name = carrier_name
3777
+ @currency = currency
3778
+ @departure = departure
3779
+ @insurances = insurances
3780
+ @passengers = passengers
3781
+ @price = price
3782
+ @ticket_class = ticket_class
3783
+ end
3784
+ end
3785
+
3786
+ class EventReservationDetail < ::Stripe::RequestParams
3787
+ class Address < ::Stripe::RequestParams
3788
+ # The city or town.
3789
+ attr_accessor :city
3790
+ # The country in ISO 3166-1 alpha-2 format.
3791
+ attr_accessor :country
3792
+ # The postal code formatted according to country.
3793
+ attr_accessor :postal_code
3794
+ # The state, county, province, or region formatted according to country.
3795
+ attr_accessor :region
3796
+ # Line 1 of the street address.
3797
+ attr_accessor :street_address
3798
+ # Line 2 of the street address.
3799
+ attr_accessor :street_address2
3800
+
3801
+ def initialize(
3802
+ city: nil,
3803
+ country: nil,
3804
+ postal_code: nil,
3805
+ region: nil,
3806
+ street_address: nil,
3807
+ street_address2: nil
3808
+ )
3809
+ @city = city
3810
+ @country = country
3811
+ @postal_code = postal_code
3812
+ @region = region
3813
+ @street_address = street_address
3814
+ @street_address2 = street_address2
3815
+ end
3816
+ end
3817
+
3818
+ class Insurance < ::Stripe::RequestParams
3819
+ # Insurance currency.
3820
+ attr_accessor :currency
3821
+ # Name of the company providing the insurance.
3822
+ attr_accessor :insurance_company_name
3823
+ # Type of insurance.
3824
+ attr_accessor :insurance_type
3825
+ # Price of insurance in cents.
3826
+ attr_accessor :price
3827
+
3828
+ def initialize(
3829
+ currency: nil,
3830
+ insurance_company_name: nil,
3831
+ insurance_type: nil,
3832
+ price: nil
3833
+ )
3834
+ @currency = currency
3835
+ @insurance_company_name = insurance_company_name
3836
+ @insurance_type = insurance_type
3837
+ @price = price
3838
+ end
3839
+ end
3840
+ # Indicates if the tickets are digitally checked when entering the venue.
3841
+ attr_accessor :access_controlled_venue
3842
+ # Address of the event.
3843
+ attr_accessor :address
3844
+ # Name of associated or partner company for the service.
3845
+ attr_accessor :affiliate_name
3846
+ # End timestamp of the event.
3847
+ attr_accessor :ends_at
3848
+ # Company selling the ticket.
3849
+ attr_accessor :event_company_name
3850
+ # Name of the event.
3851
+ attr_accessor :event_name
3852
+ # Type of the event.
3853
+ attr_accessor :event_type
3854
+ # List of insurances for this event.
3855
+ attr_accessor :insurances
3856
+ # Start timestamp of the event.
3857
+ attr_accessor :starts_at
3858
+ # Name of the venue where the event takes place.
3859
+ attr_accessor :venue_name
3860
+
3861
+ def initialize(
3862
+ access_controlled_venue: nil,
3863
+ address: nil,
3864
+ affiliate_name: nil,
3865
+ ends_at: nil,
3866
+ event_company_name: nil,
3867
+ event_name: nil,
3868
+ event_type: nil,
3869
+ insurances: nil,
3870
+ starts_at: nil,
3871
+ venue_name: nil
3872
+ )
3873
+ @access_controlled_venue = access_controlled_venue
3874
+ @address = address
3875
+ @affiliate_name = affiliate_name
3876
+ @ends_at = ends_at
3877
+ @event_company_name = event_company_name
3878
+ @event_name = event_name
3879
+ @event_type = event_type
3880
+ @insurances = insurances
3881
+ @starts_at = starts_at
3882
+ @venue_name = venue_name
3883
+ end
3884
+ end
3885
+
3886
+ class FerryReservationDetail < ::Stripe::RequestParams
3887
+ class Arrival < ::Stripe::RequestParams
3888
+ class Address < ::Stripe::RequestParams
3889
+ # The city or town.
3890
+ attr_accessor :city
3891
+ # The country in ISO 3166-1 alpha-2 format.
3892
+ attr_accessor :country
3893
+ # The postal code formatted according to country.
3894
+ attr_accessor :postal_code
3895
+ # The state, county, province, or region formatted according to country.
3896
+ attr_accessor :region
3897
+ # Line 1 of the street address.
3898
+ attr_accessor :street_address
3899
+ # Line 2 of the street address.
3900
+ attr_accessor :street_address2
3901
+
3902
+ def initialize(
3903
+ city: nil,
3904
+ country: nil,
3905
+ postal_code: nil,
3906
+ region: nil,
3907
+ street_address: nil,
3908
+ street_address2: nil
3909
+ )
3910
+ @city = city
3911
+ @country = country
3912
+ @postal_code = postal_code
3913
+ @region = region
3914
+ @street_address = street_address
3915
+ @street_address2 = street_address2
3916
+ end
3917
+ end
3918
+ # Address of the arrival location.
3919
+ attr_accessor :address
3920
+ # Identifier name or reference for the arrival location.
3921
+ attr_accessor :arrival_location
3922
+
3923
+ def initialize(address: nil, arrival_location: nil)
3924
+ @address = address
3925
+ @arrival_location = arrival_location
3926
+ end
3927
+ end
3928
+
3929
+ class Departure < ::Stripe::RequestParams
3930
+ class Address < ::Stripe::RequestParams
3931
+ # The city or town.
3932
+ attr_accessor :city
3933
+ # The country in ISO 3166-1 alpha-2 format.
3934
+ attr_accessor :country
3935
+ # The postal code formatted according to country.
3936
+ attr_accessor :postal_code
3937
+ # The state, county, province, or region formatted according to country.
3938
+ attr_accessor :region
3939
+ # Line 1 of the street address.
3940
+ attr_accessor :street_address
3941
+ # Line 2 of the street address.
3942
+ attr_accessor :street_address2
3943
+
3944
+ def initialize(
3945
+ city: nil,
3946
+ country: nil,
3947
+ postal_code: nil,
3948
+ region: nil,
3949
+ street_address: nil,
3950
+ street_address2: nil
3951
+ )
3952
+ @city = city
3953
+ @country = country
3954
+ @postal_code = postal_code
3955
+ @region = region
3956
+ @street_address = street_address
3957
+ @street_address2 = street_address2
3958
+ end
3959
+ end
3960
+ # Address of the departure location.
3961
+ attr_accessor :address
3962
+ # Timestamp of departure.
3963
+ attr_accessor :departs_at
3964
+ # Identifier name or reference for the origin location.
3965
+ attr_accessor :departure_location
3966
+
3967
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3968
+ @address = address
3969
+ @departs_at = departs_at
3970
+ @departure_location = departure_location
3971
+ end
3972
+ end
3973
+
3974
+ class Insurance < ::Stripe::RequestParams
3975
+ # Insurance currency.
3976
+ attr_accessor :currency
3977
+ # Name of the company providing the insurance.
3978
+ attr_accessor :insurance_company_name
3979
+ # Type of insurance.
3980
+ attr_accessor :insurance_type
3981
+ # Price of insurance in cents.
3982
+ attr_accessor :price
3983
+
3984
+ def initialize(
3985
+ currency: nil,
3986
+ insurance_company_name: nil,
3987
+ insurance_type: nil,
3988
+ price: nil
3989
+ )
3990
+ @currency = currency
3991
+ @insurance_company_name = insurance_company_name
3992
+ @insurance_type = insurance_type
3993
+ @price = price
3994
+ end
3995
+ end
3996
+
3997
+ class Passenger < ::Stripe::RequestParams
3998
+ # The family name of the person.
3999
+ attr_accessor :family_name
4000
+ # The given name of the person.
4001
+ attr_accessor :given_name
4002
+
4003
+ def initialize(family_name: nil, given_name: nil)
4004
+ @family_name = family_name
4005
+ @given_name = given_name
4006
+ end
4007
+ end
4008
+ # Name of associated or partner company for the service.
4009
+ attr_accessor :affiliate_name
4010
+ # Arrival details.
4011
+ attr_accessor :arrival
4012
+ # Name of transportation company.
4013
+ attr_accessor :carrier_name
4014
+ # Currency.
4015
+ attr_accessor :currency
4016
+ # Departure details.
4017
+ attr_accessor :departure
4018
+ # List of insurances for this reservation.
4019
+ attr_accessor :insurances
4020
+ # List of passengers that this reservation applies to.
4021
+ attr_accessor :passengers
4022
+ # Price in cents.
4023
+ attr_accessor :price
4024
+ # Ticket class.
4025
+ attr_accessor :ticket_class
4026
+
4027
+ def initialize(
4028
+ affiliate_name: nil,
4029
+ arrival: nil,
4030
+ carrier_name: nil,
4031
+ currency: nil,
4032
+ departure: nil,
4033
+ insurances: nil,
4034
+ passengers: nil,
4035
+ price: nil,
4036
+ ticket_class: nil
4037
+ )
4038
+ @affiliate_name = affiliate_name
4039
+ @arrival = arrival
4040
+ @carrier_name = carrier_name
4041
+ @currency = currency
4042
+ @departure = departure
4043
+ @insurances = insurances
4044
+ @passengers = passengers
4045
+ @price = price
4046
+ @ticket_class = ticket_class
4047
+ end
4048
+ end
4049
+
4050
+ class Insurance < ::Stripe::RequestParams
4051
+ # Insurance currency.
4052
+ attr_accessor :currency
4053
+ # Name of the company providing the insurance.
4054
+ attr_accessor :insurance_company_name
4055
+ # Type of insurance
4056
+ attr_accessor :insurance_type
4057
+ # Price of insurance in cents.
4058
+ attr_accessor :price
4059
+
4060
+ def initialize(
4061
+ currency: nil,
4062
+ insurance_company_name: nil,
4063
+ insurance_type: nil,
4064
+ price: nil
4065
+ )
4066
+ @currency = currency
4067
+ @insurance_company_name = insurance_company_name
4068
+ @insurance_type = insurance_type
4069
+ @price = price
4070
+ end
4071
+ end
4072
+
4073
+ class MarketplaceSeller < ::Stripe::RequestParams
4074
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4075
+ # The city or town.
4076
+ attr_accessor :city
4077
+ # The country in ISO 3166-1 alpha-2 format.
4078
+ attr_accessor :country
4079
+ # The postal code formatted according to country.
4080
+ attr_accessor :postal_code
4081
+ # The state, county, province, or region formatted according to country.
4082
+ attr_accessor :region
4083
+ # Line 1 of the street address.
4084
+ attr_accessor :street_address
4085
+ # Line 2 of the street address.
4086
+ attr_accessor :street_address2
4087
+
4088
+ def initialize(
4089
+ city: nil,
4090
+ country: nil,
4091
+ postal_code: nil,
4092
+ region: nil,
4093
+ street_address: nil,
4094
+ street_address2: nil
4095
+ )
4096
+ @city = city
4097
+ @country = country
4098
+ @postal_code = postal_code
4099
+ @region = region
4100
+ @street_address = street_address
4101
+ @street_address2 = street_address2
4102
+ end
4103
+ end
4104
+ # The references to line items for purchases with multiple associated sub-sellers.
4105
+ attr_accessor :line_item_references
4106
+ # The address of the selling or delivering merchant.
4107
+ attr_accessor :marketplace_seller_address
4108
+ # The name of the marketplace seller.
4109
+ attr_accessor :marketplace_seller_name
4110
+ # The unique identifier for the marketplace seller.
4111
+ attr_accessor :marketplace_seller_reference
4112
+ # The number of transactions the sub-seller completed in the last 12 months.
4113
+ attr_accessor :number_of_transactions
4114
+ # The category of the product.
4115
+ attr_accessor :product_category
4116
+ # The date when the seller's account with the marketplace was last logged in.
4117
+ attr_accessor :seller_last_login_at
4118
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4119
+ attr_accessor :seller_rating
4120
+ # The date when the seller's account with the marketplace was created.
4121
+ attr_accessor :seller_registered_at
4122
+ # The date when the seller's account with the marketplace was last updated.
4123
+ attr_accessor :seller_updated_at
4124
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4125
+ attr_accessor :shipping_references
4126
+ # 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.
4127
+ attr_accessor :volume_of_transactions
4128
+
4129
+ def initialize(
4130
+ line_item_references: nil,
4131
+ marketplace_seller_address: nil,
4132
+ marketplace_seller_name: nil,
4133
+ marketplace_seller_reference: nil,
4134
+ number_of_transactions: nil,
4135
+ product_category: nil,
4136
+ seller_last_login_at: nil,
4137
+ seller_rating: nil,
4138
+ seller_registered_at: nil,
4139
+ seller_updated_at: nil,
4140
+ shipping_references: nil,
4141
+ volume_of_transactions: nil
4142
+ )
4143
+ @line_item_references = line_item_references
4144
+ @marketplace_seller_address = marketplace_seller_address
4145
+ @marketplace_seller_name = marketplace_seller_name
4146
+ @marketplace_seller_reference = marketplace_seller_reference
4147
+ @number_of_transactions = number_of_transactions
4148
+ @product_category = product_category
4149
+ @seller_last_login_at = seller_last_login_at
4150
+ @seller_rating = seller_rating
4151
+ @seller_registered_at = seller_registered_at
4152
+ @seller_updated_at = seller_updated_at
4153
+ @shipping_references = shipping_references
4154
+ @volume_of_transactions = volume_of_transactions
4155
+ end
4156
+ end
4157
+
4158
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4159
+ class Arrival < ::Stripe::RequestParams
4160
+ class Address < ::Stripe::RequestParams
4161
+ # The city or town.
4162
+ attr_accessor :city
4163
+ # The country in ISO 3166-1 alpha-2 format.
4164
+ attr_accessor :country
4165
+ # The postal code formatted according to country.
4166
+ attr_accessor :postal_code
4167
+ # The state, county, province, or region formatted according to country.
4168
+ attr_accessor :region
4169
+ # Line 1 of the street address.
4170
+ attr_accessor :street_address
4171
+ # Line 2 of the street address.
4172
+ attr_accessor :street_address2
4173
+
4174
+ def initialize(
4175
+ city: nil,
4176
+ country: nil,
4177
+ postal_code: nil,
4178
+ region: nil,
4179
+ street_address: nil,
4180
+ street_address2: nil
4181
+ )
4182
+ @city = city
4183
+ @country = country
4184
+ @postal_code = postal_code
4185
+ @region = region
4186
+ @street_address = street_address
4187
+ @street_address2 = street_address2
4188
+ end
4189
+ end
4190
+ # Address of the arrival location.
4191
+ attr_accessor :address
4192
+ # Identifier name or reference for the arrival location.
4193
+ attr_accessor :arrival_location
4194
+
4195
+ def initialize(address: nil, arrival_location: nil)
4196
+ @address = address
4197
+ @arrival_location = arrival_location
4198
+ end
4199
+ end
4200
+
4201
+ class Departure < ::Stripe::RequestParams
4202
+ class Address < ::Stripe::RequestParams
4203
+ # The city or town.
4204
+ attr_accessor :city
4205
+ # The country in ISO 3166-1 alpha-2 format.
4206
+ attr_accessor :country
4207
+ # The postal code formatted according to country.
4208
+ attr_accessor :postal_code
4209
+ # The state, county, province, or region formatted according to country.
4210
+ attr_accessor :region
4211
+ # Line 1 of the street address.
4212
+ attr_accessor :street_address
4213
+ # Line 2 of the street address.
4214
+ attr_accessor :street_address2
4215
+
4216
+ def initialize(
4217
+ city: nil,
4218
+ country: nil,
4219
+ postal_code: nil,
4220
+ region: nil,
4221
+ street_address: nil,
4222
+ street_address2: nil
4223
+ )
4224
+ @city = city
4225
+ @country = country
4226
+ @postal_code = postal_code
4227
+ @region = region
4228
+ @street_address = street_address
4229
+ @street_address2 = street_address2
4230
+ end
4231
+ end
4232
+ # Address of the departure location.
4233
+ attr_accessor :address
4234
+ # Timestamp of departure.
4235
+ attr_accessor :departs_at
4236
+ # Identifier name or reference for the origin location.
4237
+ attr_accessor :departure_location
4238
+
4239
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4240
+ @address = address
4241
+ @departs_at = departs_at
4242
+ @departure_location = departure_location
4243
+ end
4244
+ end
4245
+
4246
+ class Insurance < ::Stripe::RequestParams
4247
+ # Insurance currency.
4248
+ attr_accessor :currency
4249
+ # Name of the company providing the insurance.
4250
+ attr_accessor :insurance_company_name
4251
+ # Type of insurance.
4252
+ attr_accessor :insurance_type
4253
+ # Price of insurance in cents.
4254
+ attr_accessor :price
4255
+
4256
+ def initialize(
4257
+ currency: nil,
4258
+ insurance_company_name: nil,
4259
+ insurance_type: nil,
4260
+ price: nil
4261
+ )
4262
+ @currency = currency
4263
+ @insurance_company_name = insurance_company_name
4264
+ @insurance_type = insurance_type
4265
+ @price = price
4266
+ end
4267
+ end
4268
+
4269
+ class Passenger < ::Stripe::RequestParams
4270
+ # The family name of the person.
4271
+ attr_accessor :family_name
4272
+ # The given name of the person.
4273
+ attr_accessor :given_name
4274
+
4275
+ def initialize(family_name: nil, given_name: nil)
4276
+ @family_name = family_name
4277
+ @given_name = given_name
4278
+ end
4279
+ end
4280
+ # Name of associated or partner company for the service.
4281
+ attr_accessor :affiliate_name
4282
+ # Arrival details.
4283
+ attr_accessor :arrival
4284
+ # Name of transportation company.
4285
+ attr_accessor :carrier_name
4286
+ # Currency.
4287
+ attr_accessor :currency
4288
+ # Departure details.
4289
+ attr_accessor :departure
4290
+ # List of insurances for this reservation.
4291
+ attr_accessor :insurances
4292
+ # List of passengers that this reservation applies to.
4293
+ attr_accessor :passengers
4294
+ # Price in cents.
4295
+ attr_accessor :price
4296
+ # Ticket class.
4297
+ attr_accessor :ticket_class
4298
+
4299
+ def initialize(
4300
+ affiliate_name: nil,
4301
+ arrival: nil,
4302
+ carrier_name: nil,
4303
+ currency: nil,
4304
+ departure: nil,
4305
+ insurances: nil,
4306
+ passengers: nil,
4307
+ price: nil,
4308
+ ticket_class: nil
4309
+ )
4310
+ @affiliate_name = affiliate_name
4311
+ @arrival = arrival
4312
+ @carrier_name = carrier_name
4313
+ @currency = currency
4314
+ @departure = departure
4315
+ @insurances = insurances
4316
+ @passengers = passengers
4317
+ @price = price
4318
+ @ticket_class = ticket_class
4319
+ end
4320
+ end
4321
+
4322
+ class TrainReservationDetail < ::Stripe::RequestParams
4323
+ class Arrival < ::Stripe::RequestParams
4324
+ class Address < ::Stripe::RequestParams
4325
+ # The city or town.
4326
+ attr_accessor :city
4327
+ # The country in ISO 3166-1 alpha-2 format.
4328
+ attr_accessor :country
4329
+ # The postal code formatted according to country.
4330
+ attr_accessor :postal_code
4331
+ # The state, county, province, or region formatted according to country.
4332
+ attr_accessor :region
4333
+ # Line 1 of the street address.
4334
+ attr_accessor :street_address
4335
+ # Line 2 of the street address.
4336
+ attr_accessor :street_address2
4337
+
4338
+ def initialize(
4339
+ city: nil,
4340
+ country: nil,
4341
+ postal_code: nil,
4342
+ region: nil,
4343
+ street_address: nil,
4344
+ street_address2: nil
4345
+ )
4346
+ @city = city
4347
+ @country = country
4348
+ @postal_code = postal_code
4349
+ @region = region
4350
+ @street_address = street_address
4351
+ @street_address2 = street_address2
4352
+ end
4353
+ end
4354
+ # Address of the arrival location.
4355
+ attr_accessor :address
4356
+ # Identifier name or reference for the arrival location.
4357
+ attr_accessor :arrival_location
4358
+
4359
+ def initialize(address: nil, arrival_location: nil)
4360
+ @address = address
4361
+ @arrival_location = arrival_location
4362
+ end
4363
+ end
4364
+
4365
+ class Departure < ::Stripe::RequestParams
4366
+ class Address < ::Stripe::RequestParams
4367
+ # The city or town.
4368
+ attr_accessor :city
4369
+ # The country in ISO 3166-1 alpha-2 format.
4370
+ attr_accessor :country
4371
+ # The postal code formatted according to country.
4372
+ attr_accessor :postal_code
4373
+ # The state, county, province, or region formatted according to country.
4374
+ attr_accessor :region
4375
+ # Line 1 of the street address.
4376
+ attr_accessor :street_address
4377
+ # Line 2 of the street address.
4378
+ attr_accessor :street_address2
4379
+
4380
+ def initialize(
4381
+ city: nil,
4382
+ country: nil,
4383
+ postal_code: nil,
4384
+ region: nil,
4385
+ street_address: nil,
4386
+ street_address2: nil
4387
+ )
4388
+ @city = city
4389
+ @country = country
4390
+ @postal_code = postal_code
4391
+ @region = region
4392
+ @street_address = street_address
4393
+ @street_address2 = street_address2
4394
+ end
4395
+ end
4396
+ # Address of the departure location.
4397
+ attr_accessor :address
4398
+ # Timestamp of departure.
4399
+ attr_accessor :departs_at
4400
+ # Identifier name or reference for the origin location.
4401
+ attr_accessor :departure_location
4402
+
4403
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4404
+ @address = address
4405
+ @departs_at = departs_at
4406
+ @departure_location = departure_location
4407
+ end
4408
+ end
4409
+
4410
+ class Insurance < ::Stripe::RequestParams
4411
+ # Insurance currency.
4412
+ attr_accessor :currency
4413
+ # Name of the company providing the insurance.
4414
+ attr_accessor :insurance_company_name
4415
+ # Type of insurance.
4416
+ attr_accessor :insurance_type
4417
+ # Price of insurance in cents.
4418
+ attr_accessor :price
4419
+
4420
+ def initialize(
4421
+ currency: nil,
4422
+ insurance_company_name: nil,
4423
+ insurance_type: nil,
4424
+ price: nil
4425
+ )
4426
+ @currency = currency
4427
+ @insurance_company_name = insurance_company_name
4428
+ @insurance_type = insurance_type
4429
+ @price = price
4430
+ end
4431
+ end
4432
+
4433
+ class Passenger < ::Stripe::RequestParams
4434
+ # The family name of the person.
4435
+ attr_accessor :family_name
4436
+ # The given name of the person.
4437
+ attr_accessor :given_name
4438
+
4439
+ def initialize(family_name: nil, given_name: nil)
4440
+ @family_name = family_name
4441
+ @given_name = given_name
4442
+ end
4443
+ end
4444
+ # Name of associated or partner company for the service.
4445
+ attr_accessor :affiliate_name
4446
+ # Arrival details.
4447
+ attr_accessor :arrival
4448
+ # Name of transportation company.
4449
+ attr_accessor :carrier_name
4450
+ # Currency.
4451
+ attr_accessor :currency
4452
+ # Departure details.
4453
+ attr_accessor :departure
4454
+ # List of insurances for this reservation.
4455
+ attr_accessor :insurances
4456
+ # List of passengers that this reservation applies to.
4457
+ attr_accessor :passengers
4458
+ # Price in cents.
4459
+ attr_accessor :price
4460
+ # Ticket class.
4461
+ attr_accessor :ticket_class
4462
+
4463
+ def initialize(
4464
+ affiliate_name: nil,
4465
+ arrival: nil,
4466
+ carrier_name: nil,
4467
+ currency: nil,
4468
+ departure: nil,
4469
+ insurances: nil,
4470
+ passengers: nil,
4471
+ price: nil,
4472
+ ticket_class: nil
4473
+ )
4474
+ @affiliate_name = affiliate_name
4475
+ @arrival = arrival
4476
+ @carrier_name = carrier_name
4477
+ @currency = currency
4478
+ @departure = departure
4479
+ @insurances = insurances
4480
+ @passengers = passengers
4481
+ @price = price
4482
+ @ticket_class = ticket_class
4483
+ end
4484
+ end
4485
+
4486
+ class Voucher < ::Stripe::RequestParams
4487
+ # Name of associated or partner company for this voucher.
4488
+ attr_accessor :affiliate_name
4489
+ # The voucher validity end time.
4490
+ attr_accessor :ends_at
4491
+ # The voucher validity start time.
4492
+ attr_accessor :starts_at
4493
+ # The issuer or provider of this voucher.
4494
+ attr_accessor :voucher_company
4495
+ # The name or reference to identify the voucher.
4496
+ attr_accessor :voucher_name
4497
+ # The type of this voucher.
4498
+ attr_accessor :voucher_type
4499
+
4500
+ def initialize(
4501
+ affiliate_name: nil,
4502
+ ends_at: nil,
4503
+ starts_at: nil,
4504
+ voucher_company: nil,
4505
+ voucher_name: nil,
4506
+ voucher_type: nil
4507
+ )
4508
+ @affiliate_name = affiliate_name
4509
+ @ends_at = ends_at
4510
+ @starts_at = starts_at
4511
+ @voucher_company = voucher_company
4512
+ @voucher_name = voucher_name
4513
+ @voucher_type = voucher_type
4514
+ end
4515
+ end
4516
+ # Supplementary bus reservation details.
4517
+ attr_accessor :bus_reservation_details
4518
+ # Supplementary event reservation details.
4519
+ attr_accessor :event_reservation_details
4520
+ # Supplementary ferry reservation details.
4521
+ attr_accessor :ferry_reservation_details
4522
+ # Supplementary insurance details.
4523
+ attr_accessor :insurances
4524
+ # Supplementary marketplace seller details.
4525
+ attr_accessor :marketplace_sellers
4526
+ # Supplementary round trip reservation details.
4527
+ attr_accessor :round_trip_reservation_details
4528
+ # Supplementary train reservation details.
4529
+ attr_accessor :train_reservation_details
4530
+ # Voucher details, such as a gift card or discount code.
4531
+ attr_accessor :vouchers
4532
+
4533
+ def initialize(
4534
+ bus_reservation_details: nil,
4535
+ event_reservation_details: nil,
4536
+ ferry_reservation_details: nil,
4537
+ insurances: nil,
4538
+ marketplace_sellers: nil,
4539
+ round_trip_reservation_details: nil,
4540
+ train_reservation_details: nil,
4541
+ vouchers: nil
4542
+ )
4543
+ @bus_reservation_details = bus_reservation_details
4544
+ @event_reservation_details = event_reservation_details
4545
+ @ferry_reservation_details = ferry_reservation_details
4546
+ @insurances = insurances
4547
+ @marketplace_sellers = marketplace_sellers
4548
+ @round_trip_reservation_details = round_trip_reservation_details
4549
+ @train_reservation_details = train_reservation_details
4550
+ @vouchers = vouchers
4551
+ end
4552
+ end
2454
4553
  # Controls when the funds are captured from the customer's account.
2455
4554
  #
2456
4555
  # 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.
@@ -2473,19 +4572,23 @@ module Stripe
2473
4572
  attr_accessor :setup_future_usage
2474
4573
  # Subscription details if setting up or charging a subscription.
2475
4574
  attr_accessor :subscriptions
4575
+ # Supplementary Purchase Data for the corresponding Klarna payment
4576
+ attr_accessor :supplementary_purchase_data
2476
4577
 
2477
4578
  def initialize(
2478
4579
  capture_method: nil,
2479
4580
  on_demand: nil,
2480
4581
  preferred_locale: nil,
2481
4582
  setup_future_usage: nil,
2482
- subscriptions: nil
4583
+ subscriptions: nil,
4584
+ supplementary_purchase_data: nil
2483
4585
  )
2484
4586
  @capture_method = capture_method
2485
4587
  @on_demand = on_demand
2486
4588
  @preferred_locale = preferred_locale
2487
4589
  @setup_future_usage = setup_future_usage
2488
4590
  @subscriptions = subscriptions
4591
+ @supplementary_purchase_data = supplementary_purchase_data
2489
4592
  end
2490
4593
  end
2491
4594
 
@@ -2755,12 +4858,65 @@ module Stripe
2755
4858
  end
2756
4859
 
2757
4860
  class Paypal < ::Stripe::RequestParams
4861
+ class LineItem < ::Stripe::RequestParams
4862
+ class Tax < ::Stripe::RequestParams
4863
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4864
+ attr_accessor :amount
4865
+ # The tax behavior for the line item.
4866
+ attr_accessor :behavior
4867
+
4868
+ def initialize(amount: nil, behavior: nil)
4869
+ @amount = amount
4870
+ @behavior = behavior
4871
+ end
4872
+ end
4873
+ # Type of the line item.
4874
+ attr_accessor :category
4875
+ # Description of the line item.
4876
+ attr_accessor :description
4877
+ # Descriptive name of the line item.
4878
+ attr_accessor :name
4879
+ # Quantity of the line item. Must be a positive number.
4880
+ attr_accessor :quantity
4881
+ # Client facing stock keeping unit, article number or similar.
4882
+ attr_accessor :sku
4883
+ # The Stripe account ID of the connected account that sells the item.
4884
+ attr_accessor :sold_by
4885
+ # The tax information for the line item.
4886
+ attr_accessor :tax
4887
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4888
+ attr_accessor :unit_amount
4889
+
4890
+ def initialize(
4891
+ category: nil,
4892
+ description: nil,
4893
+ name: nil,
4894
+ quantity: nil,
4895
+ sku: nil,
4896
+ sold_by: nil,
4897
+ tax: nil,
4898
+ unit_amount: nil
4899
+ )
4900
+ @category = category
4901
+ @description = description
4902
+ @name = name
4903
+ @quantity = quantity
4904
+ @sku = sku
4905
+ @sold_by = sold_by
4906
+ @tax = tax
4907
+ @unit_amount = unit_amount
4908
+ end
4909
+ end
2758
4910
  # Controls when the funds will be captured from the customer's account.
2759
4911
  attr_accessor :capture_method
4912
+ # The line items purchased by the customer.
4913
+ attr_accessor :line_items
2760
4914
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2761
4915
  attr_accessor :preferred_locale
2762
4916
  # 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.
2763
4917
  attr_accessor :reference
4918
+ # 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.
4919
+ attr_accessor :reference_id
2764
4920
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2765
4921
  attr_accessor :risk_correlation_id
2766
4922
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2773,19 +4929,27 @@ module Stripe
2773
4929
  #
2774
4930
  # 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`.
2775
4931
  attr_accessor :setup_future_usage
4932
+ # 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.
4933
+ attr_accessor :subsellers
2776
4934
 
2777
4935
  def initialize(
2778
4936
  capture_method: nil,
4937
+ line_items: nil,
2779
4938
  preferred_locale: nil,
2780
4939
  reference: nil,
4940
+ reference_id: nil,
2781
4941
  risk_correlation_id: nil,
2782
- setup_future_usage: nil
4942
+ setup_future_usage: nil,
4943
+ subsellers: nil
2783
4944
  )
2784
4945
  @capture_method = capture_method
4946
+ @line_items = line_items
2785
4947
  @preferred_locale = preferred_locale
2786
4948
  @reference = reference
4949
+ @reference_id = reference_id
2787
4950
  @risk_correlation_id = risk_correlation_id
2788
4951
  @setup_future_usage = setup_future_usage
4952
+ @subsellers = subsellers
2789
4953
  end
2790
4954
  end
2791
4955
 
@@ -2929,6 +5093,25 @@ module Stripe
2929
5093
  end
2930
5094
  end
2931
5095
 
5096
+ class Qris < ::Stripe::RequestParams
5097
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5098
+ #
5099
+ # 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.
5100
+ #
5101
+ # 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.
5102
+ #
5103
+ # 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).
5104
+ #
5105
+ # 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`.
5106
+ attr_accessor :setup_future_usage
5107
+
5108
+ def initialize(setup_future_usage: nil)
5109
+ @setup_future_usage = setup_future_usage
5110
+ end
5111
+ end
5112
+
5113
+ class Rechnung < ::Stripe::RequestParams; end
5114
+
2932
5115
  class RevolutPay < ::Stripe::RequestParams
2933
5116
  # Controls when the funds are captured from the customer's account.
2934
5117
  #
@@ -3063,6 +5246,23 @@ module Stripe
3063
5246
  end
3064
5247
  end
3065
5248
 
5249
+ class Shopeepay < ::Stripe::RequestParams
5250
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5251
+ #
5252
+ # 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.
5253
+ #
5254
+ # 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.
5255
+ #
5256
+ # 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).
5257
+ #
5258
+ # 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`.
5259
+ attr_accessor :setup_future_usage
5260
+
5261
+ def initialize(setup_future_usage: nil)
5262
+ @setup_future_usage = setup_future_usage
5263
+ end
5264
+ end
5265
+
3066
5266
  class Sofort < ::Stripe::RequestParams
3067
5267
  # Language shown to the payer on redirect.
3068
5268
  attr_accessor :preferred_language
@@ -3083,6 +5283,23 @@ module Stripe
3083
5283
  end
3084
5284
  end
3085
5285
 
5286
+ class StripeBalance < ::Stripe::RequestParams
5287
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5288
+ #
5289
+ # 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.
5290
+ #
5291
+ # 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.
5292
+ #
5293
+ # 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).
5294
+ #
5295
+ # 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`.
5296
+ attr_accessor :setup_future_usage
5297
+
5298
+ def initialize(setup_future_usage: nil)
5299
+ @setup_future_usage = setup_future_usage
5300
+ end
5301
+ end
5302
+
3086
5303
  class Sunbit < ::Stripe::RequestParams
3087
5304
  # Controls when the funds are captured from the customer's account.
3088
5305
  #
@@ -3176,13 +5393,27 @@ module Stripe
3176
5393
  class Filters < ::Stripe::RequestParams
3177
5394
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3178
5395
  attr_accessor :account_subcategories
5396
+ # ID of the institution to use to filter for selectable accounts.
5397
+ attr_accessor :institution
3179
5398
 
3180
- def initialize(account_subcategories: nil)
5399
+ def initialize(account_subcategories: nil, institution: nil)
3181
5400
  @account_subcategories = account_subcategories
5401
+ @institution = institution
5402
+ end
5403
+ end
5404
+
5405
+ class ManualEntry < ::Stripe::RequestParams
5406
+ # Settings for configuring manual entry of account details.
5407
+ attr_accessor :mode
5408
+
5409
+ def initialize(mode: nil)
5410
+ @mode = mode
3182
5411
  end
3183
5412
  end
3184
5413
  # Provide filters for the linked accounts that the customer can select for the payment method.
3185
5414
  attr_accessor :filters
5415
+ # Customize manual entry behavior
5416
+ attr_accessor :manual_entry
3186
5417
  # 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`.
3187
5418
  attr_accessor :permissions
3188
5419
  # List of data features that you would like to retrieve upon account creation.
@@ -3190,8 +5421,15 @@ module Stripe
3190
5421
  # 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.
3191
5422
  attr_accessor :return_url
3192
5423
 
3193
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5424
+ def initialize(
5425
+ filters: nil,
5426
+ manual_entry: nil,
5427
+ permissions: nil,
5428
+ prefetch: nil,
5429
+ return_url: nil
5430
+ )
3194
5431
  @filters = filters
5432
+ @manual_entry = manual_entry
3195
5433
  @permissions = permissions
3196
5434
  @prefetch = prefetch
3197
5435
  @return_url = return_url
@@ -3280,6 +5518,23 @@ module Stripe
3280
5518
  end
3281
5519
  end
3282
5520
 
5521
+ class Wero < ::Stripe::RequestParams
5522
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5523
+ #
5524
+ # 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.
5525
+ #
5526
+ # 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.
5527
+ #
5528
+ # 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).
5529
+ #
5530
+ # 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`.
5531
+ attr_accessor :setup_future_usage
5532
+
5533
+ def initialize(setup_future_usage: nil)
5534
+ @setup_future_usage = setup_future_usage
5535
+ end
5536
+ end
5537
+
3283
5538
  class Zip < ::Stripe::RequestParams
3284
5539
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3285
5540
  #
@@ -3338,8 +5593,12 @@ module Stripe
3338
5593
  attr_accessor :fpx
3339
5594
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
3340
5595
  attr_accessor :giropay
5596
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5597
+ attr_accessor :gopay
3341
5598
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
3342
5599
  attr_accessor :grabpay
5600
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5601
+ attr_accessor :id_bank_transfer
3343
5602
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
3344
5603
  attr_accessor :ideal
3345
5604
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -3384,6 +5643,10 @@ module Stripe
3384
5643
  attr_accessor :pix
3385
5644
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
3386
5645
  attr_accessor :promptpay
5646
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5647
+ attr_accessor :qris
5648
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5649
+ attr_accessor :rechnung
3387
5650
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
3388
5651
  attr_accessor :revolut_pay
3389
5652
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -3396,8 +5659,12 @@ module Stripe
3396
5659
  attr_accessor :sepa_debit
3397
5660
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
3398
5661
  attr_accessor :sequra
5662
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5663
+ attr_accessor :shopeepay
3399
5664
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
3400
5665
  attr_accessor :sofort
5666
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5667
+ attr_accessor :stripe_balance
3401
5668
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
3402
5669
  attr_accessor :sunbit
3403
5670
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -3410,6 +5677,8 @@ module Stripe
3410
5677
  attr_accessor :us_bank_account
3411
5678
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
3412
5679
  attr_accessor :wechat_pay
5680
+ # If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
5681
+ attr_accessor :wero
3413
5682
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
3414
5683
  attr_accessor :zip
3415
5684
 
@@ -3435,7 +5704,9 @@ module Stripe
3435
5704
  eps: nil,
3436
5705
  fpx: nil,
3437
5706
  giropay: nil,
5707
+ gopay: nil,
3438
5708
  grabpay: nil,
5709
+ id_bank_transfer: nil,
3439
5710
  ideal: nil,
3440
5711
  interac_present: nil,
3441
5712
  kakao_pay: nil,
@@ -3458,19 +5729,24 @@ module Stripe
3458
5729
  payto: nil,
3459
5730
  pix: nil,
3460
5731
  promptpay: nil,
5732
+ qris: nil,
5733
+ rechnung: nil,
3461
5734
  revolut_pay: nil,
3462
5735
  samsung_pay: nil,
3463
5736
  satispay: nil,
3464
5737
  scalapay: nil,
3465
5738
  sepa_debit: nil,
3466
5739
  sequra: nil,
5740
+ shopeepay: nil,
3467
5741
  sofort: nil,
5742
+ stripe_balance: nil,
3468
5743
  sunbit: nil,
3469
5744
  swish: nil,
3470
5745
  twint: nil,
3471
5746
  upi: nil,
3472
5747
  us_bank_account: nil,
3473
5748
  wechat_pay: nil,
5749
+ wero: nil,
3474
5750
  zip: nil
3475
5751
  )
3476
5752
  @acss_debit = acss_debit
@@ -3494,7 +5770,9 @@ module Stripe
3494
5770
  @eps = eps
3495
5771
  @fpx = fpx
3496
5772
  @giropay = giropay
5773
+ @gopay = gopay
3497
5774
  @grabpay = grabpay
5775
+ @id_bank_transfer = id_bank_transfer
3498
5776
  @ideal = ideal
3499
5777
  @interac_present = interac_present
3500
5778
  @kakao_pay = kakao_pay
@@ -3517,19 +5795,24 @@ module Stripe
3517
5795
  @payto = payto
3518
5796
  @pix = pix
3519
5797
  @promptpay = promptpay
5798
+ @qris = qris
5799
+ @rechnung = rechnung
3520
5800
  @revolut_pay = revolut_pay
3521
5801
  @samsung_pay = samsung_pay
3522
5802
  @satispay = satispay
3523
5803
  @scalapay = scalapay
3524
5804
  @sepa_debit = sepa_debit
3525
5805
  @sequra = sequra
5806
+ @shopeepay = shopeepay
3526
5807
  @sofort = sofort
5808
+ @stripe_balance = stripe_balance
3527
5809
  @sunbit = sunbit
3528
5810
  @swish = swish
3529
5811
  @twint = twint
3530
5812
  @upi = upi
3531
5813
  @us_bank_account = us_bank_account
3532
5814
  @wechat_pay = wechat_pay
5815
+ @wero = wero
3533
5816
  @zip = zip
3534
5817
  end
3535
5818
  end
@@ -3685,6 +5968,8 @@ module Stripe
3685
5968
  attr_accessor :excluded_payment_method_types
3686
5969
  # Specifies which fields in the response should be expanded.
3687
5970
  attr_accessor :expand
5971
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5972
+ attr_accessor :fx_quote
3688
5973
  # Automations to be run during the PaymentIntent lifecycle
3689
5974
  attr_accessor :hooks
3690
5975
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
@@ -3719,6 +6004,8 @@ module Stripe
3719
6004
  attr_accessor :receipt_email
3720
6005
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
3721
6006
  attr_accessor :return_url
6007
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
6008
+ attr_accessor :secret_key_confirmation
3722
6009
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3723
6010
  #
3724
6011
  # 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.
@@ -3760,6 +6047,7 @@ module Stripe
3760
6047
  error_on_requires_action: nil,
3761
6048
  excluded_payment_method_types: nil,
3762
6049
  expand: nil,
6050
+ fx_quote: nil,
3763
6051
  hooks: nil,
3764
6052
  mandate: nil,
3765
6053
  mandate_data: nil,
@@ -3774,6 +6062,7 @@ module Stripe
3774
6062
  radar_options: nil,
3775
6063
  receipt_email: nil,
3776
6064
  return_url: nil,
6065
+ secret_key_confirmation: nil,
3777
6066
  setup_future_usage: nil,
3778
6067
  shipping: nil,
3779
6068
  statement_descriptor: nil,
@@ -3798,6 +6087,7 @@ module Stripe
3798
6087
  @error_on_requires_action = error_on_requires_action
3799
6088
  @excluded_payment_method_types = excluded_payment_method_types
3800
6089
  @expand = expand
6090
+ @fx_quote = fx_quote
3801
6091
  @hooks = hooks
3802
6092
  @mandate = mandate
3803
6093
  @mandate_data = mandate_data
@@ -3812,6 +6102,7 @@ module Stripe
3812
6102
  @radar_options = radar_options
3813
6103
  @receipt_email = receipt_email
3814
6104
  @return_url = return_url
6105
+ @secret_key_confirmation = secret_key_confirmation
3815
6106
  @setup_future_usage = setup_future_usage
3816
6107
  @shipping = shipping
3817
6108
  @statement_descriptor = statement_descriptor