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
@@ -60,6 +60,25 @@ module Stripe
60
60
  end
61
61
  end
62
62
 
63
+ class Surcharge < ::Stripe::StripeObject
64
+ # Portion of the amount that corresponds to a surcharge.
65
+ attr_reader :amount
66
+ # Indicate whether to enforce validations on the surcharge amount.
67
+ attr_reader :enforce_validation
68
+ # The maximum amount allowed for the surcharge.
69
+ attr_reader :maximum_amount
70
+ # The status of the surcharge.
71
+ attr_reader :status
72
+
73
+ def self.inner_class_types
74
+ @inner_class_types = {}
75
+ end
76
+
77
+ def self.field_remappings
78
+ @field_remappings = {}
79
+ end
80
+ end
81
+
63
82
  class Tax < ::Stripe::StripeObject
64
83
  # 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.
65
84
  #
@@ -97,13 +116,58 @@ module Stripe
97
116
  attr_reader :line_items
98
117
  # Attribute for field shipping
99
118
  attr_reader :shipping
119
+ # Attribute for field surcharge
120
+ attr_reader :surcharge
100
121
  # Attribute for field tax
101
122
  attr_reader :tax
102
123
  # Attribute for field tip
103
124
  attr_reader :tip
104
125
 
105
126
  def self.inner_class_types
106
- @inner_class_types = { error: Error, shipping: Shipping, tax: Tax, tip: Tip }
127
+ @inner_class_types = {
128
+ error: Error,
129
+ shipping: Shipping,
130
+ surcharge: Surcharge,
131
+ tax: Tax,
132
+ tip: Tip,
133
+ }
134
+ end
135
+
136
+ def self.field_remappings
137
+ @field_remappings = {}
138
+ end
139
+ end
140
+
141
+ class AsyncWorkflows < ::Stripe::StripeObject
142
+ class Inputs < ::Stripe::StripeObject
143
+ class Tax < ::Stripe::StripeObject
144
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
145
+ attr_reader :calculation
146
+
147
+ def self.inner_class_types
148
+ @inner_class_types = {}
149
+ end
150
+
151
+ def self.field_remappings
152
+ @field_remappings = {}
153
+ end
154
+ end
155
+ # Attribute for field tax
156
+ attr_reader :tax
157
+
158
+ def self.inner_class_types
159
+ @inner_class_types = { tax: Tax }
160
+ end
161
+
162
+ def self.field_remappings
163
+ @field_remappings = {}
164
+ end
165
+ end
166
+ # Attribute for field inputs
167
+ attr_reader :inputs
168
+
169
+ def self.inner_class_types
170
+ @inner_class_types = { inputs: Inputs }
107
171
  end
108
172
 
109
173
  def self.field_remappings
@@ -1286,6 +1350,193 @@ module Stripe
1286
1350
  end
1287
1351
 
1288
1352
  class PaymentDetails < ::Stripe::StripeObject
1353
+ class CarRental < ::Stripe::StripeObject
1354
+ class Affiliate < ::Stripe::StripeObject
1355
+ # The name of the affiliate that originated the purchase.
1356
+ attr_reader :name
1357
+
1358
+ def self.inner_class_types
1359
+ @inner_class_types = {}
1360
+ end
1361
+
1362
+ def self.field_remappings
1363
+ @field_remappings = {}
1364
+ end
1365
+ end
1366
+
1367
+ class Delivery < ::Stripe::StripeObject
1368
+ class Recipient < ::Stripe::StripeObject
1369
+ # The email of the recipient the ticket is delivered to.
1370
+ attr_reader :email
1371
+ # The name of the recipient the ticket is delivered to.
1372
+ attr_reader :name
1373
+ # The phone number of the recipient the ticket is delivered to.
1374
+ attr_reader :phone
1375
+
1376
+ def self.inner_class_types
1377
+ @inner_class_types = {}
1378
+ end
1379
+
1380
+ def self.field_remappings
1381
+ @field_remappings = {}
1382
+ end
1383
+ end
1384
+ # The delivery method for the payment
1385
+ attr_reader :mode
1386
+ # Attribute for field recipient
1387
+ attr_reader :recipient
1388
+
1389
+ def self.inner_class_types
1390
+ @inner_class_types = { recipient: Recipient }
1391
+ end
1392
+
1393
+ def self.field_remappings
1394
+ @field_remappings = {}
1395
+ end
1396
+ end
1397
+
1398
+ class Distance < ::Stripe::StripeObject
1399
+ # Distance traveled.
1400
+ attr_reader :amount
1401
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1402
+ attr_reader :unit
1403
+
1404
+ def self.inner_class_types
1405
+ @inner_class_types = {}
1406
+ end
1407
+
1408
+ def self.field_remappings
1409
+ @field_remappings = {}
1410
+ end
1411
+ end
1412
+
1413
+ class Driver < ::Stripe::StripeObject
1414
+ # Driver's identification number.
1415
+ attr_reader :driver_identification_number
1416
+ # Driver's tax number.
1417
+ attr_reader :driver_tax_number
1418
+ # Full name of the driver on the reservation.
1419
+ attr_reader :name
1420
+
1421
+ def self.inner_class_types
1422
+ @inner_class_types = {}
1423
+ end
1424
+
1425
+ def self.field_remappings
1426
+ @field_remappings = {}
1427
+ end
1428
+ end
1429
+
1430
+ class PickupAddress < ::Stripe::StripeObject
1431
+ # City, district, suburb, town, or village.
1432
+ attr_reader :city
1433
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1434
+ attr_reader :country
1435
+ # Address line 1, such as the street, PO Box, or company name.
1436
+ attr_reader :line1
1437
+ # Address line 2, such as the apartment, suite, unit, or building.
1438
+ attr_reader :line2
1439
+ # ZIP or postal code.
1440
+ attr_reader :postal_code
1441
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1442
+ attr_reader :state
1443
+
1444
+ def self.inner_class_types
1445
+ @inner_class_types = {}
1446
+ end
1447
+
1448
+ def self.field_remappings
1449
+ @field_remappings = {}
1450
+ end
1451
+ end
1452
+
1453
+ class ReturnAddress < ::Stripe::StripeObject
1454
+ # City, district, suburb, town, or village.
1455
+ attr_reader :city
1456
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1457
+ attr_reader :country
1458
+ # Address line 1, such as the street, PO Box, or company name.
1459
+ attr_reader :line1
1460
+ # Address line 2, such as the apartment, suite, unit, or building.
1461
+ attr_reader :line2
1462
+ # ZIP or postal code.
1463
+ attr_reader :postal_code
1464
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1465
+ attr_reader :state
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = {}
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
1474
+ end
1475
+ # Attribute for field affiliate
1476
+ attr_reader :affiliate
1477
+ # The booking number associated with the car rental.
1478
+ attr_reader :booking_number
1479
+ # Class code of the car.
1480
+ attr_reader :car_class_code
1481
+ # Make of the car.
1482
+ attr_reader :car_make
1483
+ # Model of the car.
1484
+ attr_reader :car_model
1485
+ # The name of the rental car company.
1486
+ attr_reader :company
1487
+ # The customer service phone number of the car rental company.
1488
+ attr_reader :customer_service_phone_number
1489
+ # Number of days the car is being rented.
1490
+ attr_reader :days_rented
1491
+ # Attribute for field delivery
1492
+ attr_reader :delivery
1493
+ # Attribute for field distance
1494
+ attr_reader :distance
1495
+ # The details of the drivers associated with the trip.
1496
+ attr_reader :drivers
1497
+ # List of additional charges being billed.
1498
+ attr_reader :extra_charges
1499
+ # Indicates if the customer did not keep nor cancel their booking.
1500
+ attr_reader :no_show
1501
+ # Attribute for field pickup_address
1502
+ attr_reader :pickup_address
1503
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1504
+ attr_reader :pickup_at
1505
+ # Name of the pickup location.
1506
+ attr_reader :pickup_location_name
1507
+ # Rental rate.
1508
+ attr_reader :rate_amount
1509
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1510
+ attr_reader :rate_interval
1511
+ # The full name of the person or entity renting the car.
1512
+ attr_reader :renter_name
1513
+ # Attribute for field return_address
1514
+ attr_reader :return_address
1515
+ # Car return time. Measured in seconds since the Unix epoch.
1516
+ attr_reader :return_at
1517
+ # Name of the return location.
1518
+ attr_reader :return_location_name
1519
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1520
+ attr_reader :tax_exempt
1521
+ # The vehicle identification number of the car.
1522
+ attr_reader :vehicle_identification_number
1523
+
1524
+ def self.inner_class_types
1525
+ @inner_class_types = {
1526
+ affiliate: Affiliate,
1527
+ delivery: Delivery,
1528
+ distance: Distance,
1529
+ drivers: Driver,
1530
+ pickup_address: PickupAddress,
1531
+ return_address: ReturnAddress,
1532
+ }
1533
+ end
1534
+
1535
+ def self.field_remappings
1536
+ @field_remappings = {}
1537
+ end
1538
+ end
1539
+
1289
1540
  class CarRentalDatum < ::Stripe::StripeObject
1290
1541
  class Affiliate < ::Stripe::StripeObject
1291
1542
  # Affiliate code.
@@ -1605,6 +1856,343 @@ module Stripe
1605
1856
  end
1606
1857
  end
1607
1858
 
1859
+ class EventDetails < ::Stripe::StripeObject
1860
+ class Address < ::Stripe::StripeObject
1861
+ # City, district, suburb, town, or village.
1862
+ attr_reader :city
1863
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1864
+ attr_reader :country
1865
+ # Address line 1, such as the street, PO Box, or company name.
1866
+ attr_reader :line1
1867
+ # Address line 2, such as the apartment, suite, unit, or building.
1868
+ attr_reader :line2
1869
+ # ZIP or postal code.
1870
+ attr_reader :postal_code
1871
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1872
+ attr_reader :state
1873
+
1874
+ def self.inner_class_types
1875
+ @inner_class_types = {}
1876
+ end
1877
+
1878
+ def self.field_remappings
1879
+ @field_remappings = {}
1880
+ end
1881
+ end
1882
+
1883
+ class Affiliate < ::Stripe::StripeObject
1884
+ # The name of the affiliate that originated the purchase.
1885
+ attr_reader :name
1886
+
1887
+ def self.inner_class_types
1888
+ @inner_class_types = {}
1889
+ end
1890
+
1891
+ def self.field_remappings
1892
+ @field_remappings = {}
1893
+ end
1894
+ end
1895
+
1896
+ class Delivery < ::Stripe::StripeObject
1897
+ class Recipient < ::Stripe::StripeObject
1898
+ # The email of the recipient the ticket is delivered to.
1899
+ attr_reader :email
1900
+ # The name of the recipient the ticket is delivered to.
1901
+ attr_reader :name
1902
+ # The phone number of the recipient the ticket is delivered to.
1903
+ attr_reader :phone
1904
+
1905
+ def self.inner_class_types
1906
+ @inner_class_types = {}
1907
+ end
1908
+
1909
+ def self.field_remappings
1910
+ @field_remappings = {}
1911
+ end
1912
+ end
1913
+ # The delivery method for the payment
1914
+ attr_reader :mode
1915
+ # Attribute for field recipient
1916
+ attr_reader :recipient
1917
+
1918
+ def self.inner_class_types
1919
+ @inner_class_types = { recipient: Recipient }
1920
+ end
1921
+
1922
+ def self.field_remappings
1923
+ @field_remappings = {}
1924
+ end
1925
+ end
1926
+ # Indicates if the tickets are digitally checked when entering the venue.
1927
+ attr_reader :access_controlled_venue
1928
+ # Attribute for field address
1929
+ attr_reader :address
1930
+ # Attribute for field affiliate
1931
+ attr_reader :affiliate
1932
+ # The name of the company
1933
+ attr_reader :company
1934
+ # Attribute for field delivery
1935
+ attr_reader :delivery
1936
+ # Event end time. Measured in seconds since the Unix epoch.
1937
+ attr_reader :ends_at
1938
+ # Type of the event entertainment (concert, sports event etc)
1939
+ attr_reader :genre
1940
+ # The name of the event.
1941
+ attr_reader :name
1942
+ # Event start time. Measured in seconds since the Unix epoch.
1943
+ attr_reader :starts_at
1944
+
1945
+ def self.inner_class_types
1946
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1947
+ end
1948
+
1949
+ def self.field_remappings
1950
+ @field_remappings = {}
1951
+ end
1952
+ end
1953
+
1954
+ class FlightDatum < ::Stripe::StripeObject
1955
+ class Affiliate < ::Stripe::StripeObject
1956
+ # Affiliate code.
1957
+ attr_reader :code
1958
+ # Affiliate name.
1959
+ attr_reader :name
1960
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1961
+ attr_reader :travel_authorization_code
1962
+
1963
+ def self.inner_class_types
1964
+ @inner_class_types = {}
1965
+ end
1966
+
1967
+ def self.field_remappings
1968
+ @field_remappings = {}
1969
+ end
1970
+ end
1971
+
1972
+ class Insurance < ::Stripe::StripeObject
1973
+ # Amount of the insurance.
1974
+ attr_reader :amount
1975
+ # Currency for the insurance price.
1976
+ attr_reader :currency
1977
+ # Name of the insurance company.
1978
+ attr_reader :insurance_company_name
1979
+ # Type of insurance.
1980
+ attr_reader :insurance_type
1981
+
1982
+ def self.inner_class_types
1983
+ @inner_class_types = {}
1984
+ end
1985
+
1986
+ def self.field_remappings
1987
+ @field_remappings = {}
1988
+ end
1989
+ end
1990
+
1991
+ class Passenger < ::Stripe::StripeObject
1992
+ # Full name of the passenger.
1993
+ attr_reader :name
1994
+
1995
+ def self.inner_class_types
1996
+ @inner_class_types = {}
1997
+ end
1998
+
1999
+ def self.field_remappings
2000
+ @field_remappings = {}
2001
+ end
2002
+ end
2003
+
2004
+ class Segment < ::Stripe::StripeObject
2005
+ class Arrival < ::Stripe::StripeObject
2006
+ # Arrival airport IATA code.
2007
+ attr_reader :airport
2008
+ # Arrival date and time.
2009
+ attr_reader :arrives_at
2010
+ # Arrival city.
2011
+ attr_reader :city
2012
+ # Arrival country.
2013
+ attr_reader :country
2014
+
2015
+ def self.inner_class_types
2016
+ @inner_class_types = {}
2017
+ end
2018
+
2019
+ def self.field_remappings
2020
+ @field_remappings = {}
2021
+ end
2022
+ end
2023
+
2024
+ class Departure < ::Stripe::StripeObject
2025
+ # Departure airport IATA code.
2026
+ attr_reader :airport
2027
+ # Departure city.
2028
+ attr_reader :city
2029
+ # Departure country.
2030
+ attr_reader :country
2031
+ # Departure date and time.
2032
+ attr_reader :departs_at
2033
+
2034
+ def self.inner_class_types
2035
+ @inner_class_types = {}
2036
+ end
2037
+
2038
+ def self.field_remappings
2039
+ @field_remappings = {}
2040
+ end
2041
+ end
2042
+ # Segment fare amount.
2043
+ attr_reader :amount
2044
+ # Attribute for field arrival
2045
+ attr_reader :arrival
2046
+ # Airline carrier code.
2047
+ attr_reader :carrier_code
2048
+ # Carrier name.
2049
+ attr_reader :carrier_name
2050
+ # Segment currency.
2051
+ attr_reader :currency
2052
+ # Attribute for field departure
2053
+ attr_reader :departure
2054
+ # Exchange ticket number.
2055
+ attr_reader :exchange_ticket_number
2056
+ # Fare basis code.
2057
+ attr_reader :fare_basis_code
2058
+ # Additional fees.
2059
+ attr_reader :fees
2060
+ # Flight number.
2061
+ attr_reader :flight_number
2062
+ # Stopover indicator.
2063
+ attr_reader :is_stop_over_indicator
2064
+ # Refundable ticket indicator.
2065
+ attr_reader :refundable
2066
+ # Class of service.
2067
+ attr_reader :service_class
2068
+ # Tax amount for segment.
2069
+ attr_reader :tax_amount
2070
+ # Ticket number.
2071
+ attr_reader :ticket_number
2072
+
2073
+ def self.inner_class_types
2074
+ @inner_class_types = { arrival: Arrival, departure: Departure }
2075
+ end
2076
+
2077
+ def self.field_remappings
2078
+ @field_remappings = {}
2079
+ end
2080
+ end
2081
+
2082
+ class Total < ::Stripe::StripeObject
2083
+ class Discounts < ::Stripe::StripeObject
2084
+ # Corporate client discount code.
2085
+ attr_reader :corporate_client_code
2086
+
2087
+ def self.inner_class_types
2088
+ @inner_class_types = {}
2089
+ end
2090
+
2091
+ def self.field_remappings
2092
+ @field_remappings = {}
2093
+ end
2094
+ end
2095
+
2096
+ class ExtraCharge < ::Stripe::StripeObject
2097
+ # Amount of the extra charge.
2098
+ attr_reader :amount
2099
+ # Type of extra charge.
2100
+ attr_reader :type
2101
+
2102
+ def self.inner_class_types
2103
+ @inner_class_types = {}
2104
+ end
2105
+
2106
+ def self.field_remappings
2107
+ @field_remappings = {}
2108
+ end
2109
+ end
2110
+
2111
+ class Tax < ::Stripe::StripeObject
2112
+ class TaxItem < ::Stripe::StripeObject
2113
+ # Tax amount.
2114
+ attr_reader :amount
2115
+ # Tax rate.
2116
+ attr_reader :rate
2117
+ # Type of tax.
2118
+ attr_reader :type
2119
+
2120
+ def self.inner_class_types
2121
+ @inner_class_types = {}
2122
+ end
2123
+
2124
+ def self.field_remappings
2125
+ @field_remappings = {}
2126
+ end
2127
+ end
2128
+ # Tax details.
2129
+ attr_reader :tax_items
2130
+
2131
+ def self.inner_class_types
2132
+ @inner_class_types = { tax_items: TaxItem }
2133
+ end
2134
+
2135
+ def self.field_remappings
2136
+ @field_remappings = {}
2137
+ end
2138
+ end
2139
+ # Total amount.
2140
+ attr_reader :amount
2141
+ # Reason for credit.
2142
+ attr_reader :credit_reason
2143
+ # Currency for the total amount.
2144
+ attr_reader :currency
2145
+ # Attribute for field discounts
2146
+ attr_reader :discounts
2147
+ # Additional charges for the flight.
2148
+ attr_reader :extra_charges
2149
+ # Attribute for field tax
2150
+ attr_reader :tax
2151
+
2152
+ def self.inner_class_types
2153
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
2154
+ end
2155
+
2156
+ def self.field_remappings
2157
+ @field_remappings = {}
2158
+ end
2159
+ end
2160
+ # Attribute for field affiliate
2161
+ attr_reader :affiliate
2162
+ # The booking number associated with the flight reservation.
2163
+ attr_reader :booking_number
2164
+ # The computerized reservation system used to make the reservation and purchase the ticket.
2165
+ attr_reader :computerized_reservation_system
2166
+ # Ticket restrictions.
2167
+ attr_reader :endorsements_and_restrictions
2168
+ # Insurance details for the flight.
2169
+ attr_reader :insurances
2170
+ # The list of passengers for this flight.
2171
+ attr_reader :passengers
2172
+ # The list of flight segments for this reservation.
2173
+ attr_reader :segments
2174
+ # Electronic ticket indicator.
2175
+ attr_reader :ticket_electronically_issued_indicator
2176
+ # Attribute for field total
2177
+ attr_reader :total
2178
+ # Type of flight transaction.
2179
+ attr_reader :transaction_type
2180
+
2181
+ def self.inner_class_types
2182
+ @inner_class_types = {
2183
+ affiliate: Affiliate,
2184
+ insurances: Insurance,
2185
+ passengers: Passenger,
2186
+ segments: Segment,
2187
+ total: Total,
2188
+ }
2189
+ end
2190
+
2191
+ def self.field_remappings
2192
+ @field_remappings = {}
2193
+ end
2194
+ end
2195
+
1608
2196
  class LodgingDatum < ::Stripe::StripeObject
1609
2197
  class Accommodation < ::Stripe::StripeObject
1610
2198
  # Type of accommodation.
@@ -1841,35 +2429,100 @@ module Stripe
1841
2429
  attr_reader :total
1842
2430
 
1843
2431
  def self.inner_class_types
1844
- @inner_class_types = {
1845
- accommodation: Accommodation,
1846
- affiliate: Affiliate,
1847
- guests: Guest,
1848
- host: Host,
1849
- insurances: Insurance,
1850
- total: Total,
1851
- }
2432
+ @inner_class_types = {
2433
+ accommodation: Accommodation,
2434
+ affiliate: Affiliate,
2435
+ guests: Guest,
2436
+ host: Host,
2437
+ insurances: Insurance,
2438
+ total: Total,
2439
+ }
2440
+ end
2441
+
2442
+ def self.field_remappings
2443
+ @field_remappings = {}
2444
+ end
2445
+ end
2446
+
2447
+ class Subscription < ::Stripe::StripeObject
2448
+ class Affiliate < ::Stripe::StripeObject
2449
+ # The name of the affiliate that originated the purchase.
2450
+ attr_reader :name
2451
+
2452
+ def self.inner_class_types
2453
+ @inner_class_types = {}
2454
+ end
2455
+
2456
+ def self.field_remappings
2457
+ @field_remappings = {}
2458
+ end
2459
+ end
2460
+
2461
+ class BillingInterval < ::Stripe::StripeObject
2462
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2463
+ attr_reader :count
2464
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2465
+ attr_reader :interval
2466
+
2467
+ def self.inner_class_types
2468
+ @inner_class_types = {}
2469
+ end
2470
+
2471
+ def self.field_remappings
2472
+ @field_remappings = {}
2473
+ end
2474
+ end
2475
+ # Attribute for field affiliate
2476
+ attr_reader :affiliate
2477
+ # Info whether the subscription will be auto renewed upon expiry.
2478
+ attr_reader :auto_renewal
2479
+ # Attribute for field billing_interval
2480
+ attr_reader :billing_interval
2481
+ # Subscription end time. Measured in seconds since the Unix epoch.
2482
+ attr_reader :ends_at
2483
+ # Name of the product on subscription. e.g. Apple Music Subscription.
2484
+ attr_reader :name
2485
+ # Subscription start time. Measured in seconds since the Unix epoch.
2486
+ attr_reader :starts_at
2487
+
2488
+ def self.inner_class_types
2489
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
1852
2490
  end
1853
2491
 
1854
2492
  def self.field_remappings
1855
2493
  @field_remappings = {}
1856
2494
  end
1857
2495
  end
2496
+ # Attribute for field car_rental
2497
+ attr_reader :car_rental
1858
2498
  # Attribute for field car_rental_data
1859
2499
  attr_reader :car_rental_data
1860
2500
  # A unique value to identify the customer. This field is available only for card payments.
1861
2501
  #
1862
2502
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1863
2503
  attr_reader :customer_reference
2504
+ # Attribute for field event_details
2505
+ attr_reader :event_details
2506
+ # Attribute for field flight_data
2507
+ attr_reader :flight_data
1864
2508
  # Attribute for field lodging_data
1865
2509
  attr_reader :lodging_data
1866
2510
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1867
2511
  #
1868
2512
  # 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.
1869
2513
  attr_reader :order_reference
2514
+ # Attribute for field subscription
2515
+ attr_reader :subscription
1870
2516
 
1871
2517
  def self.inner_class_types
1872
- @inner_class_types = { car_rental_data: CarRentalDatum, lodging_data: LodgingDatum }
2518
+ @inner_class_types = {
2519
+ car_rental: CarRental,
2520
+ car_rental_data: CarRentalDatum,
2521
+ event_details: EventDetails,
2522
+ flight_data: FlightDatum,
2523
+ lodging_data: LodgingDatum,
2524
+ subscription: Subscription,
2525
+ }
1873
2526
  end
1874
2527
 
1875
2528
  def self.field_remappings
@@ -2319,6 +2972,43 @@ module Stripe
2319
2972
  @field_remappings = {}
2320
2973
  end
2321
2974
  end
2975
+
2976
+ class StatementDetails < ::Stripe::StripeObject
2977
+ class Address < ::Stripe::StripeObject
2978
+ # City, district, suburb, town, or village.
2979
+ attr_reader :city
2980
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2981
+ attr_reader :country
2982
+ # Address line 1, such as the street, PO Box, or company name.
2983
+ attr_reader :line1
2984
+ # Address line 2, such as the apartment, suite, unit, or building.
2985
+ attr_reader :line2
2986
+ # ZIP or postal code.
2987
+ attr_reader :postal_code
2988
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2989
+ attr_reader :state
2990
+
2991
+ def self.inner_class_types
2992
+ @inner_class_types = {}
2993
+ end
2994
+
2995
+ def self.field_remappings
2996
+ @field_remappings = {}
2997
+ end
2998
+ end
2999
+ # Attribute for field address
3000
+ attr_reader :address
3001
+ # Phone number
3002
+ attr_reader :phone
3003
+
3004
+ def self.inner_class_types
3005
+ @inner_class_types = { address: Address }
3006
+ end
3007
+
3008
+ def self.field_remappings
3009
+ @field_remappings = {}
3010
+ end
3011
+ end
2322
3012
  # Controls when the funds will be captured from the customer's account.
2323
3013
  attr_reader :capture_method
2324
3014
  # Installment details for this payment.
@@ -2329,6 +3019,8 @@ module Stripe
2329
3019
  attr_reader :mandate_options
2330
3020
  # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
2331
3021
  attr_reader :network
3022
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3023
+ attr_reader :request_decremental_authorization
2332
3024
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
2333
3025
  attr_reader :request_extended_authorization
2334
3026
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -2337,6 +3029,8 @@ module Stripe
2337
3029
  attr_reader :request_multicapture
2338
3030
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
2339
3031
  attr_reader :request_overcapture
3032
+ # Request partial authorization on this PaymentIntent.
3033
+ attr_reader :request_partial_authorization
2340
3034
  # 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.
2341
3035
  attr_reader :request_three_d_secure
2342
3036
  # 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).
@@ -2355,11 +3049,17 @@ module Stripe
2355
3049
  attr_reader :statement_descriptor_suffix_kana
2356
3050
  # 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.
2357
3051
  attr_reader :statement_descriptor_suffix_kanji
3052
+ # Attribute for field statement_details
3053
+ attr_reader :statement_details
2358
3054
  # Selected usage to indicate the transaction type of the off-session payment.
2359
3055
  attr_reader :stored_credential_usage
2360
3056
 
2361
3057
  def self.inner_class_types
2362
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
3058
+ @inner_class_types = {
3059
+ installments: Installments,
3060
+ mandate_options: MandateOptions,
3061
+ statement_details: StatementDetails,
3062
+ }
2363
3063
  end
2364
3064
 
2365
3065
  def self.field_remappings
@@ -2548,6 +3248,25 @@ module Stripe
2548
3248
  end
2549
3249
  end
2550
3250
 
3251
+ class Gopay < ::Stripe::StripeObject
3252
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3253
+ #
3254
+ # 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.
3255
+ #
3256
+ # 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.
3257
+ #
3258
+ # 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).
3259
+ attr_reader :setup_future_usage
3260
+
3261
+ def self.inner_class_types
3262
+ @inner_class_types = {}
3263
+ end
3264
+
3265
+ def self.field_remappings
3266
+ @field_remappings = {}
3267
+ end
3268
+ end
3269
+
2551
3270
  class Grabpay < ::Stripe::StripeObject
2552
3271
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2553
3272
  #
@@ -2567,6 +3286,29 @@ module Stripe
2567
3286
  end
2568
3287
  end
2569
3288
 
3289
+ class IdBankTransfer < ::Stripe::StripeObject
3290
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
3291
+ attr_reader :expires_after
3292
+ # 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.
3293
+ attr_reader :expires_at
3294
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3295
+ #
3296
+ # 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.
3297
+ #
3298
+ # 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.
3299
+ #
3300
+ # 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).
3301
+ attr_reader :setup_future_usage
3302
+
3303
+ def self.inner_class_types
3304
+ @inner_class_types = {}
3305
+ end
3306
+
3307
+ def self.field_remappings
3308
+ @field_remappings = {}
3309
+ end
3310
+ end
3311
+
2570
3312
  class Ideal < ::Stripe::StripeObject
2571
3313
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2572
3314
  #
@@ -2903,12 +3645,56 @@ module Stripe
2903
3645
  end
2904
3646
 
2905
3647
  class Paypal < ::Stripe::StripeObject
3648
+ class LineItem < ::Stripe::StripeObject
3649
+ class Tax < ::Stripe::StripeObject
3650
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
3651
+ attr_reader :amount
3652
+ # The tax behavior for the line item.
3653
+ attr_reader :behavior
3654
+
3655
+ def self.inner_class_types
3656
+ @inner_class_types = {}
3657
+ end
3658
+
3659
+ def self.field_remappings
3660
+ @field_remappings = {}
3661
+ end
3662
+ end
3663
+ # Type of the line item.
3664
+ attr_reader :category
3665
+ # Description of the line item.
3666
+ attr_reader :description
3667
+ # Descriptive name of the line item.
3668
+ attr_reader :name
3669
+ # Quantity of the line item. Cannot be a negative number.
3670
+ attr_reader :quantity
3671
+ # Client facing stock keeping unit, article number or similar.
3672
+ attr_reader :sku
3673
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
3674
+ attr_reader :sold_by
3675
+ # Attribute for field tax
3676
+ attr_reader :tax
3677
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
3678
+ attr_reader :unit_amount
3679
+
3680
+ def self.inner_class_types
3681
+ @inner_class_types = { tax: Tax }
3682
+ end
3683
+
3684
+ def self.field_remappings
3685
+ @field_remappings = {}
3686
+ end
3687
+ end
2906
3688
  # Controls when the funds will be captured from the customer's account.
2907
3689
  attr_reader :capture_method
3690
+ # The line items purchased by the customer.
3691
+ attr_reader :line_items
2908
3692
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2909
3693
  attr_reader :preferred_locale
2910
3694
  # 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.
2911
3695
  attr_reader :reference
3696
+ # 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.
3697
+ attr_reader :reference_id
2912
3698
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2913
3699
  #
2914
3700
  # 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.
@@ -2917,9 +3703,11 @@ module Stripe
2917
3703
  #
2918
3704
  # 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).
2919
3705
  attr_reader :setup_future_usage
3706
+ # 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.
3707
+ attr_reader :subsellers
2920
3708
 
2921
3709
  def self.inner_class_types
2922
- @inner_class_types = {}
3710
+ @inner_class_types = { line_items: LineItem }
2923
3711
  end
2924
3712
 
2925
3713
  def self.field_remappings
@@ -3052,6 +3840,35 @@ module Stripe
3052
3840
  end
3053
3841
  end
3054
3842
 
3843
+ class Qris < ::Stripe::StripeObject
3844
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3845
+ #
3846
+ # 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.
3847
+ #
3848
+ # 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.
3849
+ #
3850
+ # 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).
3851
+ attr_reader :setup_future_usage
3852
+
3853
+ def self.inner_class_types
3854
+ @inner_class_types = {}
3855
+ end
3856
+
3857
+ def self.field_remappings
3858
+ @field_remappings = {}
3859
+ end
3860
+ end
3861
+
3862
+ class Rechnung < ::Stripe::StripeObject
3863
+ def self.inner_class_types
3864
+ @inner_class_types = {}
3865
+ end
3866
+
3867
+ def self.field_remappings
3868
+ @field_remappings = {}
3869
+ end
3870
+ end
3871
+
3055
3872
  class RevolutPay < ::Stripe::StripeObject
3056
3873
  # Controls when the funds will be captured from the customer's account.
3057
3874
  attr_reader :capture_method
@@ -3184,6 +4001,25 @@ module Stripe
3184
4001
  end
3185
4002
  end
3186
4003
 
4004
+ class Shopeepay < ::Stripe::StripeObject
4005
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4006
+ #
4007
+ # 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.
4008
+ #
4009
+ # 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.
4010
+ #
4011
+ # 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).
4012
+ attr_reader :setup_future_usage
4013
+
4014
+ def self.inner_class_types
4015
+ @inner_class_types = {}
4016
+ end
4017
+
4018
+ def self.field_remappings
4019
+ @field_remappings = {}
4020
+ end
4021
+ end
4022
+
3187
4023
  class Sofort < ::Stripe::StripeObject
3188
4024
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
3189
4025
  attr_reader :preferred_language
@@ -3205,6 +4041,25 @@ module Stripe
3205
4041
  end
3206
4042
  end
3207
4043
 
4044
+ class StripeBalance < ::Stripe::StripeObject
4045
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4046
+ #
4047
+ # 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.
4048
+ #
4049
+ # 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.
4050
+ #
4051
+ # 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).
4052
+ attr_reader :setup_future_usage
4053
+
4054
+ def self.inner_class_types
4055
+ @inner_class_types = {}
4056
+ end
4057
+
4058
+ def self.field_remappings
4059
+ @field_remappings = {}
4060
+ end
4061
+ end
4062
+
3208
4063
  class Sunbit < ::Stripe::StripeObject
3209
4064
  # Controls when the funds will be captured from the customer's account.
3210
4065
  attr_reader :capture_method
@@ -3290,6 +4145,21 @@ module Stripe
3290
4145
  class Filters < ::Stripe::StripeObject
3291
4146
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
3292
4147
  attr_reader :account_subcategories
4148
+ # The institution to use to filter for possible accounts to link.
4149
+ attr_reader :institution
4150
+
4151
+ def self.inner_class_types
4152
+ @inner_class_types = {}
4153
+ end
4154
+
4155
+ def self.field_remappings
4156
+ @field_remappings = {}
4157
+ end
4158
+ end
4159
+
4160
+ class ManualEntry < ::Stripe::StripeObject
4161
+ # Settings for configuring manual entry of account details.
4162
+ attr_reader :mode
3293
4163
 
3294
4164
  def self.inner_class_types
3295
4165
  @inner_class_types = {}
@@ -3301,6 +4171,8 @@ module Stripe
3301
4171
  end
3302
4172
  # Attribute for field filters
3303
4173
  attr_reader :filters
4174
+ # Attribute for field manual_entry
4175
+ attr_reader :manual_entry
3304
4176
  # The list of permissions to request. The `payment_method` permission must be included.
3305
4177
  attr_reader :permissions
3306
4178
  # Data features requested to be retrieved upon account creation.
@@ -3309,7 +4181,7 @@ module Stripe
3309
4181
  attr_reader :return_url
3310
4182
 
3311
4183
  def self.inner_class_types
3312
- @inner_class_types = { filters: Filters }
4184
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
3313
4185
  end
3314
4186
 
3315
4187
  def self.field_remappings
@@ -3383,6 +4255,25 @@ module Stripe
3383
4255
  end
3384
4256
  end
3385
4257
 
4258
+ class Wero < ::Stripe::StripeObject
4259
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4260
+ #
4261
+ # 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.
4262
+ #
4263
+ # 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.
4264
+ #
4265
+ # 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).
4266
+ attr_reader :setup_future_usage
4267
+
4268
+ def self.inner_class_types
4269
+ @inner_class_types = {}
4270
+ end
4271
+
4272
+ def self.field_remappings
4273
+ @field_remappings = {}
4274
+ end
4275
+ end
4276
+
3386
4277
  class Zip < ::Stripe::StripeObject
3387
4278
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3388
4279
  #
@@ -3443,8 +4334,12 @@ module Stripe
3443
4334
  attr_reader :fpx
3444
4335
  # Attribute for field giropay
3445
4336
  attr_reader :giropay
4337
+ # Attribute for field gopay
4338
+ attr_reader :gopay
3446
4339
  # Attribute for field grabpay
3447
4340
  attr_reader :grabpay
4341
+ # Attribute for field id_bank_transfer
4342
+ attr_reader :id_bank_transfer
3448
4343
  # Attribute for field ideal
3449
4344
  attr_reader :ideal
3450
4345
  # Attribute for field interac_present
@@ -3489,6 +4384,10 @@ module Stripe
3489
4384
  attr_reader :pix
3490
4385
  # Attribute for field promptpay
3491
4386
  attr_reader :promptpay
4387
+ # Attribute for field qris
4388
+ attr_reader :qris
4389
+ # Attribute for field rechnung
4390
+ attr_reader :rechnung
3492
4391
  # Attribute for field revolut_pay
3493
4392
  attr_reader :revolut_pay
3494
4393
  # Attribute for field samsung_pay
@@ -3501,8 +4400,12 @@ module Stripe
3501
4400
  attr_reader :sepa_debit
3502
4401
  # Attribute for field sequra
3503
4402
  attr_reader :sequra
4403
+ # Attribute for field shopeepay
4404
+ attr_reader :shopeepay
3504
4405
  # Attribute for field sofort
3505
4406
  attr_reader :sofort
4407
+ # Attribute for field stripe_balance
4408
+ attr_reader :stripe_balance
3506
4409
  # Attribute for field sunbit
3507
4410
  attr_reader :sunbit
3508
4411
  # Attribute for field swish
@@ -3515,6 +4418,8 @@ module Stripe
3515
4418
  attr_reader :us_bank_account
3516
4419
  # Attribute for field wechat_pay
3517
4420
  attr_reader :wechat_pay
4421
+ # Attribute for field wero
4422
+ attr_reader :wero
3518
4423
  # Attribute for field zip
3519
4424
  attr_reader :zip
3520
4425
 
@@ -3541,7 +4446,9 @@ module Stripe
3541
4446
  eps: Eps,
3542
4447
  fpx: Fpx,
3543
4448
  giropay: Giropay,
4449
+ gopay: Gopay,
3544
4450
  grabpay: Grabpay,
4451
+ id_bank_transfer: IdBankTransfer,
3545
4452
  ideal: Ideal,
3546
4453
  interac_present: InteracPresent,
3547
4454
  kakao_pay: KakaoPay,
@@ -3564,19 +4471,24 @@ module Stripe
3564
4471
  payto: Payto,
3565
4472
  pix: Pix,
3566
4473
  promptpay: Promptpay,
4474
+ qris: Qris,
4475
+ rechnung: Rechnung,
3567
4476
  revolut_pay: RevolutPay,
3568
4477
  samsung_pay: SamsungPay,
3569
4478
  satispay: Satispay,
3570
4479
  scalapay: Scalapay,
3571
4480
  sepa_debit: SepaDebit,
3572
4481
  sequra: Sequra,
4482
+ shopeepay: Shopeepay,
3573
4483
  sofort: Sofort,
4484
+ stripe_balance: StripeBalance,
3574
4485
  sunbit: Sunbit,
3575
4486
  swish: Swish,
3576
4487
  twint: Twint,
3577
4488
  upi: Upi,
3578
4489
  us_bank_account: UsBankAccount,
3579
4490
  wechat_pay: WechatPay,
4491
+ wero: Wero,
3580
4492
  zip: Zip,
3581
4493
  }
3582
4494
  end
@@ -3642,6 +4554,19 @@ module Stripe
3642
4554
  end
3643
4555
  end
3644
4556
 
4557
+ class Redaction < ::Stripe::StripeObject
4558
+ # Indicates whether this object and its related objects have been redacted or not.
4559
+ attr_reader :status
4560
+
4561
+ def self.inner_class_types
4562
+ @inner_class_types = {}
4563
+ end
4564
+
4565
+ def self.field_remappings
4566
+ @field_remappings = {}
4567
+ end
4568
+ end
4569
+
3645
4570
  class Shipping < ::Stripe::StripeObject
3646
4571
  class Address < ::Stripe::StripeObject
3647
4572
  # City, district, suburb, town, or village.
@@ -3735,6 +4660,8 @@ module Stripe
3735
4660
  attr_reader :application
3736
4661
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
3737
4662
  attr_reader :application_fee_amount
4663
+ # Attribute for field async_workflows
4664
+ attr_reader :async_workflows
3738
4665
  # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
3739
4666
  attr_reader :automatic_payment_methods
3740
4667
  # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
@@ -3771,6 +4698,8 @@ module Stripe
3771
4698
  attr_reader :description
3772
4699
  # The list of payment method types to exclude from use with this payment.
3773
4700
  attr_reader :excluded_payment_method_types
4701
+ # The FX Quote used for the PaymentIntent.
4702
+ attr_reader :fx_quote
3774
4703
  # Attribute for field hooks
3775
4704
  attr_reader :hooks
3776
4705
  # Unique identifier for the object.
@@ -3810,8 +4739,12 @@ module Stripe
3810
4739
  attr_reader :processing
3811
4740
  # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
3812
4741
  attr_reader :receipt_email
4742
+ # Redaction status of this PaymentIntent. If the PaymentIntent isn't redacted, this field is null.
4743
+ attr_reader :redaction
3813
4744
  # ID of the review associated with this PaymentIntent, if any.
3814
4745
  attr_reader :review
4746
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
4747
+ attr_reader :secret_key_confirmation
3815
4748
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3816
4749
  #
3817
4750
  # 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.
@@ -4005,6 +4938,56 @@ module Stripe
4005
4938
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
4006
4939
  end
4007
4940
 
4941
+ # Perform a decremental authorization on an eligible
4942
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
4943
+ # PaymentIntent's status must be requires_capture and
4944
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
4945
+ # must be available.
4946
+ #
4947
+ # Decremental authorizations decrease the authorized amount on your customer's card
4948
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
4949
+ #
4950
+ # After decrement, the PaymentIntent object
4951
+ # returns with the updated
4952
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
4953
+ # The PaymentIntent will now be capturable up to the new authorized amount.
4954
+ #
4955
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
4956
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
4957
+ def decrement_authorization(params = {}, opts = {})
4958
+ request_stripe_object(
4959
+ method: :post,
4960
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
4961
+ params: params,
4962
+ opts: opts
4963
+ )
4964
+ end
4965
+
4966
+ # Perform a decremental authorization on an eligible
4967
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
4968
+ # PaymentIntent's status must be requires_capture and
4969
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
4970
+ # must be available.
4971
+ #
4972
+ # Decremental authorizations decrease the authorized amount on your customer's card
4973
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
4974
+ #
4975
+ # After decrement, the PaymentIntent object
4976
+ # returns with the updated
4977
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
4978
+ # The PaymentIntent will now be capturable up to the new authorized amount.
4979
+ #
4980
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
4981
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
4982
+ def self.decrement_authorization(intent, params = {}, opts = {})
4983
+ request_stripe_object(
4984
+ method: :post,
4985
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
4986
+ params: params,
4987
+ opts: opts
4988
+ )
4989
+ end
4990
+
4008
4991
  # Perform an incremental authorization on an eligible
4009
4992
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
4010
4993
  # PaymentIntent's status must be requires_capture and
@@ -4093,6 +5076,26 @@ module Stripe
4093
5076
  search(params, opts).auto_paging_each(&blk)
4094
5077
  end
4095
5078
 
5079
+ # Trigger an external action on a PaymentIntent.
5080
+ def trigger_action(params = {}, opts = {})
5081
+ request_stripe_object(
5082
+ method: :post,
5083
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
5084
+ params: params,
5085
+ opts: opts
5086
+ )
5087
+ end
5088
+
5089
+ # Trigger an external action on a PaymentIntent.
5090
+ def self.trigger_action(intent, params = {}, opts = {})
5091
+ request_stripe_object(
5092
+ method: :post,
5093
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
5094
+ params: params,
5095
+ opts: opts
5096
+ )
5097
+ end
5098
+
4096
5099
  # Updates properties on a PaymentIntent object without confirming.
4097
5100
  #
4098
5101
  # Depending on which properties you update, you might need to confirm the
@@ -4132,6 +5135,7 @@ module Stripe
4132
5135
  def self.inner_class_types
4133
5136
  @inner_class_types = {
4134
5137
  amount_details: AmountDetails,
5138
+ async_workflows: AsyncWorkflows,
4135
5139
  automatic_payment_methods: AutomaticPaymentMethods,
4136
5140
  hooks: Hooks,
4137
5141
  last_payment_error: LastPaymentError,
@@ -4142,6 +5146,7 @@ module Stripe
4142
5146
  payment_method_options: PaymentMethodOptions,
4143
5147
  presentment_details: PresentmentDetails,
4144
5148
  processing: Processing,
5149
+ redaction: Redaction,
4145
5150
  shipping: Shipping,
4146
5151
  transfer_data: TransferData,
4147
5152
  }