stripe 21.0.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 (558) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/request.rb +16 -7
  3. data/lib/stripe/api_operations/save.rb +4 -4
  4. data/lib/stripe/api_requestor.rb +58 -34
  5. data/lib/stripe/api_resource.rb +1 -2
  6. data/lib/stripe/api_version.rb +2 -2
  7. data/lib/stripe/connection_manager.rb +3 -0
  8. data/lib/stripe/errors.rb +6 -0
  9. data/lib/stripe/event_types.rb +213 -0
  10. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  11. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  12. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  15. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  22. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  25. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  27. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  28. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  29. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  30. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  31. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  33. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  34. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  35. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  36. data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
  37. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +80 -0
  38. data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
  39. data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
  40. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
  41. data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
  44. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
  45. data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
  46. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  47. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  48. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  49. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  50. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  51. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  52. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  60. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  61. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  62. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  63. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  64. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  65. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  66. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  67. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  68. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  69. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  70. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
  71. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  72. data/lib/stripe/object_types.rb +53 -0
  73. data/lib/stripe/params/account_create_params.rb +299 -1
  74. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  75. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  76. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  77. data/lib/stripe/params/account_session_create_params.rb +191 -0
  78. data/lib/stripe/params/account_update_params.rb +261 -0
  79. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  80. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  81. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  82. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  83. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  84. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  85. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  86. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  87. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  88. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  89. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  90. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  91. data/lib/stripe/params/charge_capture_params.rb +1646 -0
  92. data/lib/stripe/params/charge_update_params.rb +1646 -0
  93. data/lib/stripe/params/checkout/session_create_params.rb +95 -4
  94. data/lib/stripe/params/checkout/session_update_params.rb +161 -1
  95. data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
  96. data/lib/stripe/params/coupon_create_params.rb +49 -2
  97. data/lib/stripe/params/customer_balance_transaction_create_params.rb +23 -1
  98. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  99. data/lib/stripe/params/external_account_create_params.rb +134 -0
  100. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  101. data/lib/stripe/params/external_account_list_params.rb +25 -0
  102. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  103. data/lib/stripe/params/external_account_update_params.rb +91 -0
  104. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  105. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  106. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  107. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  108. data/lib/stripe/params/financial_connections/session_create_params.rb +39 -2
  109. data/lib/stripe/params/fx_quote_create_params.rb +71 -0
  110. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  111. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  112. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  113. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  114. data/lib/stripe/params/invoice_create_params.rb +64 -2
  115. data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
  116. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  117. data/lib/stripe/params/invoice_item_create_params.rb +34 -2
  118. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  119. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  120. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  121. data/lib/stripe/params/invoice_update_params.rb +64 -2
  122. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  123. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  124. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  125. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  126. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  127. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  128. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  129. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  130. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  131. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  132. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  133. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  134. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  135. data/lib/stripe/params/mandate_list_params.rb +39 -0
  136. data/lib/stripe/params/margin_create_params.rb +25 -0
  137. data/lib/stripe/params/margin_list_params.rb +25 -0
  138. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  139. data/lib/stripe/params/margin_update_params.rb +22 -0
  140. data/lib/stripe/params/order_create_params.rb +2083 -0
  141. data/lib/stripe/params/order_list_params.rb +25 -0
  142. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  143. data/lib/stripe/params/order_submit_params.rb +16 -0
  144. data/lib/stripe/params/order_update_params.rb +2087 -0
  145. data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
  146. data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
  147. data/lib/stripe/params/payment_intent_create_params.rb +3051 -98
  148. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
  149. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
  150. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  151. data/lib/stripe/params/payment_intent_update_params.rb +3040 -56
  152. data/lib/stripe/params/payment_link_update_params.rb +4 -0
  153. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  154. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  155. data/lib/stripe/params/payment_method_create_params.rb +88 -0
  156. data/lib/stripe/params/payment_plan_create_params.rb +128 -0
  157. data/lib/stripe/params/payment_plan_list_params.rb +25 -0
  158. data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
  159. data/lib/stripe/params/payment_plan_update_params.rb +105 -0
  160. data/lib/stripe/params/price_update_params.rb +19 -0
  161. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  162. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  163. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  164. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  166. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  167. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  168. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  169. data/lib/stripe/params/product_create_params.rb +4 -1
  170. data/lib/stripe/params/product_update_params.rb +4 -1
  171. data/lib/stripe/params/quote_create_params.rb +810 -4
  172. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  173. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  174. data/lib/stripe/params/quote_list_params.rb +4 -0
  175. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  176. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  177. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  178. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  179. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  180. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  181. data/lib/stripe/params/quote_update_params.rb +818 -5
  182. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  183. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
  184. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  185. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  186. data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
  187. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  188. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  189. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  190. data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
  191. data/lib/stripe/params/setup_intent_create_params.rb +122 -3
  192. data/lib/stripe/params/setup_intent_update_params.rb +122 -3
  193. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  194. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  195. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  196. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
  197. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  198. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  199. data/lib/stripe/params/subscription_create_params.rb +133 -6
  200. data/lib/stripe/params/subscription_item_create_params.rb +50 -3
  201. data/lib/stripe/params/subscription_item_update_params.rb +33 -2
  202. data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
  203. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  204. data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
  205. data/lib/stripe/params/subscription_update_params.rb +116 -5
  206. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  207. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  208. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  209. data/lib/stripe/params/tax/registration_create_params.rb +13 -1
  210. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  211. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  212. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  213. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
  214. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  215. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  216. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
  217. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  218. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  219. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  220. data/lib/stripe/params/transfer_create_params.rb +4 -0
  221. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  222. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  223. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  224. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  225. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
  226. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  227. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
  228. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  229. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  230. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  231. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  232. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  233. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  234. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  235. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  236. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  237. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  238. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  239. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  240. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  241. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  242. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  243. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  244. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  245. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  246. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  247. data/lib/stripe/params/v2/core/account_create_params.rb +530 -9
  248. data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
  249. data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
  250. data/lib/stripe/params/v2/core/account_update_params.rb +514 -8
  251. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  252. data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
  253. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  254. data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
  255. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  256. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  257. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  258. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
  259. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
  260. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
  261. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
  262. data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
  263. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
  264. data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
  265. data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
  266. data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
  267. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
  268. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  269. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
  270. data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
  271. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
  272. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  273. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  274. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  276. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  277. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +26 -0
  278. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  279. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
  280. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
  281. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
  282. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
  283. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
  284. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
  285. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  286. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +61 -1
  287. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
  288. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  289. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
  290. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  291. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  292. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  293. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +37 -0
  294. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  295. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
  296. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  297. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  298. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  299. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  300. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  301. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  302. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  303. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
  304. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  305. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  306. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
  307. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  308. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  309. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  310. data/lib/stripe/params.rb +372 -0
  311. data/lib/stripe/request_options.rb +19 -2
  312. data/lib/stripe/resources/account.rb +176 -1
  313. data/lib/stripe/resources/account_notice.rb +94 -0
  314. data/lib/stripe/resources/account_session.rb +162 -0
  315. data/lib/stripe/resources/apps/install.rb +2 -2
  316. data/lib/stripe/resources/balance.rb +83 -0
  317. data/lib/stripe/resources/balance_settings.rb +4 -0
  318. data/lib/stripe/resources/balance_transaction.rb +1 -1
  319. data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
  320. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  321. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  322. data/lib/stripe/resources/capital/financing_offer.rb +185 -0
  323. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  324. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  325. data/lib/stripe/resources/card.rb +18 -1
  326. data/lib/stripe/resources/charge.rb +501 -6
  327. data/lib/stripe/resources/checkout/session.rb +95 -3
  328. data/lib/stripe/resources/confirmation_token.rb +133 -2
  329. data/lib/stripe/resources/coupon.rb +64 -4
  330. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  331. data/lib/stripe/resources/customer.rb +16 -0
  332. data/lib/stripe/resources/customer_session.rb +36 -0
  333. data/lib/stripe/resources/dispute.rb +19 -1
  334. data/lib/stripe/resources/event.rb +66 -3
  335. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  336. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  337. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  338. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  339. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  340. data/lib/stripe/resources/fx_quote.rb +147 -0
  341. data/lib/stripe/resources/invoice.rb +126 -1
  342. data/lib/stripe/resources/invoice_item.rb +2 -0
  343. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  344. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  345. data/lib/stripe/resources/issuing/card.rb +17 -1
  346. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  347. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  348. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  349. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  350. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  351. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  352. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  353. data/lib/stripe/resources/line_item.rb +42 -0
  354. data/lib/stripe/resources/mandate.rb +12 -0
  355. data/lib/stripe/resources/margin.rb +64 -0
  356. data/lib/stripe/resources/order.rb +927 -0
  357. data/lib/stripe/resources/payment_attempt_record.rb +181 -2
  358. data/lib/stripe/resources/payment_intent.rb +1589 -11
  359. data/lib/stripe/resources/payment_method.rb +153 -2
  360. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  361. data/lib/stripe/resources/payment_plan.rb +213 -0
  362. data/lib/stripe/resources/payment_record.rb +181 -2
  363. data/lib/stripe/resources/price.rb +20 -0
  364. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  365. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  366. data/lib/stripe/resources/product.rb +2 -0
  367. data/lib/stripe/resources/quote.rb +569 -2
  368. data/lib/stripe/resources/quote_line.rb +525 -0
  369. data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
  370. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
  371. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  372. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  373. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  374. data/lib/stripe/resources/refund.rb +56 -0
  375. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  376. data/lib/stripe/resources/reserve/hold.rb +8 -1
  377. data/lib/stripe/resources/reserve/plan.rb +7 -0
  378. data/lib/stripe/resources/reserve/release.rb +12 -0
  379. data/lib/stripe/resources/setup_attempt.rb +37 -2
  380. data/lib/stripe/resources/setup_intent.rb +39 -2
  381. data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
  382. data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
  383. data/lib/stripe/resources/source.rb +54 -0
  384. data/lib/stripe/resources/subscription.rb +73 -0
  385. data/lib/stripe/resources/subscription_item.rb +22 -1
  386. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  387. data/lib/stripe/resources/tax/form.rb +264 -0
  388. data/lib/stripe/resources/tax/registration.rb +16 -1
  389. data/lib/stripe/resources/terminal/reader.rb +8 -0
  390. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  391. data/lib/stripe/resources/token.rb +15 -1
  392. data/lib/stripe/resources/transfer.rb +2 -0
  393. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  394. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  395. data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
  396. data/lib/stripe/resources/treasury/outbound_payment.rb +39 -9
  397. data/lib/stripe/resources/treasury/outbound_transfer.rb +67 -9
  398. data/lib/stripe/resources/treasury/received_credit.rb +31 -1
  399. data/lib/stripe/resources/treasury/received_debit.rb +33 -1
  400. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  401. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  402. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  403. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  404. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  405. data/lib/stripe/resources/v2/core/account.rb +1095 -52
  406. data/lib/stripe/resources/v2/core/account_link.rb +18 -1
  407. data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
  408. data/lib/stripe/resources/v2/core/account_token.rb +3 -1
  409. data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
  410. data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
  411. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
  412. data/lib/stripe/resources/v2/core/event_base.rb +8 -25
  413. data/lib/stripe/resources/v2/core/event_notification.rb +33 -0
  414. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
  415. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
  416. data/lib/stripe/resources/v2/data/query_run.rb +255 -0
  417. data/lib/stripe/resources/v2/data/report.rb +104 -0
  418. data/lib/stripe/resources/v2/data/report_run.rb +246 -0
  419. data/lib/stripe/resources/v2/data/reporting/query_run.rb +143 -0
  420. data/lib/stripe/resources/v2/data/schema.rb +121 -0
  421. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  422. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  423. data/lib/stripe/resources/v2/iam/activity_log.rb +926 -0
  424. data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
  425. data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
  426. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
  427. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  428. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
  429. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
  430. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
  431. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
  432. data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -1
  433. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  434. data/lib/stripe/resources/v2/money_management/received_debit.rb +177 -0
  435. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
  436. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  437. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  438. data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
  439. data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
  440. data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
  441. data/lib/stripe/resources.rb +356 -0
  442. data/lib/stripe/services/account_notice_service.rb +39 -0
  443. data/lib/stripe/services/account_service.rb +15 -0
  444. data/lib/stripe/services/apps/install_service.rb +2 -2
  445. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  446. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  447. data/lib/stripe/services/billing_service.rb +2 -1
  448. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  449. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  450. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  451. data/lib/stripe/services/capital_service.rb +15 -0
  452. data/lib/stripe/services/checkout/session_service.rb +2 -0
  453. data/lib/stripe/services/coupon_service.rb +14 -0
  454. data/lib/stripe/services/customer_service.rb +15 -0
  455. data/lib/stripe/services/event_service.rb +1 -1
  456. data/lib/stripe/services/external_account_service.rb +68 -0
  457. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  458. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  459. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  460. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  461. data/lib/stripe/services/financial_connections_service.rb +3 -1
  462. data/lib/stripe/services/fx_quote_service.rb +27 -0
  463. data/lib/stripe/services/invoice_service.rb +11 -0
  464. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  465. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  466. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  467. data/lib/stripe/services/issuing_service.rb +5 -1
  468. data/lib/stripe/services/mandate_service.rb +5 -0
  469. data/lib/stripe/services/margin_service.rb +50 -0
  470. data/lib/stripe/services/order_service.rb +53 -0
  471. data/lib/stripe/services/payment_intent_service.rb +37 -0
  472. data/lib/stripe/services/payment_plan_service.rb +50 -0
  473. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  474. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  475. data/lib/stripe/services/privacy_service.rb +13 -0
  476. data/lib/stripe/services/promotion_code_service.rb +29 -0
  477. data/lib/stripe/services/quote_line_service.rb +17 -0
  478. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  479. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  480. data/lib/stripe/services/quote_service.rb +49 -1
  481. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  482. data/lib/stripe/services/radar_service.rb +2 -1
  483. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  484. data/lib/stripe/services/reserve/plan_service.rb +30 -0
  485. data/lib/stripe/services/reserve/release_service.rb +30 -0
  486. data/lib/stripe/services/reserve_service.rb +15 -0
  487. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  488. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  489. data/lib/stripe/services/shared_payment_service.rb +14 -0
  490. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  491. data/lib/stripe/services/subscription_service.rb +45 -0
  492. data/lib/stripe/services/tax/form_service.rb +37 -0
  493. data/lib/stripe/services/tax_service.rb +2 -1
  494. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  495. data/lib/stripe/services/terminal_service.rb +2 -1
  496. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  497. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  498. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  499. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  500. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
  501. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
  502. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
  503. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
  504. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
  505. data/lib/stripe/services/test_helpers_service.rb +3 -1
  506. data/lib/stripe/services/v1_services.rb +11 -1
  507. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  508. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  509. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  510. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  511. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  512. data/lib/stripe/services/v2/billing_service.rb +4 -1
  513. data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
  514. data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
  515. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  516. data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
  517. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  518. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
  519. data/lib/stripe/services/v2/core_service.rb +4 -1
  520. data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
  521. data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
  522. data/lib/stripe/services/v2/data/report_service.rb +34 -0
  523. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  524. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  525. data/lib/stripe/services/v2/data/schema_service.rb +32 -0
  526. data/lib/stripe/services/v2/data_service.rb +19 -0
  527. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  528. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  529. data/lib/stripe/services/v2/extend_service.rb +16 -0
  530. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  531. data/lib/stripe/services/v2/iam_service.rb +15 -0
  532. data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
  533. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
  534. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
  535. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  536. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  537. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
  538. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  539. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  540. data/lib/stripe/services/v2/network_service.rb +15 -0
  541. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  542. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  543. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  544. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  545. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  546. data/lib/stripe/services/v2/signals_service.rb +17 -0
  547. data/lib/stripe/services/v2_services.rb +7 -1
  548. data/lib/stripe/services.rb +188 -0
  549. data/lib/stripe/stripe_client.rb +10 -1
  550. data/lib/stripe/stripe_configuration.rb +12 -3
  551. data/lib/stripe/stripe_event_notification_handler.rb +242 -0
  552. data/lib/stripe/stripe_object.rb +23 -10
  553. data/lib/stripe/util.rb +7 -1
  554. data/lib/stripe/version.rb +1 -1
  555. data/lib/stripe.rb +53 -0
  556. data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
  557. data/rbi/stripe.rbi +134977 -66505
  558. metadata +341 -4
@@ -47,6 +47,12 @@ module Stripe
47
47
  @type = type
48
48
  end
49
49
  end
50
+ # Controls how much address information Checkout collects when [automatic_tax](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-automatic_tax-enabled) is enabled.
51
+ #
52
+ # Defaults to `full`, which collects the address fields needed for the most accurate tax calculation. Set to `minimal` to collect only the fields required for tax in the buyer's country, accepting potentially less precise tax calculation in exchange for a streamlined form.
53
+ #
54
+ # Only honored when `automatic_tax.enabled` is `true`, `billing_address_collection` is `auto`, the resolved tax address source is the session billing address, and `ui_mode` is `form`.
55
+ attr_accessor :address_collection_precision
50
56
  # Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
51
57
  #
52
58
  # Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
@@ -54,7 +60,8 @@ module Stripe
54
60
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
55
61
  attr_accessor :liability
56
62
 
57
- def initialize(enabled: nil, liability: nil)
63
+ def initialize(address_collection_precision: nil, enabled: nil, liability: nil)
64
+ @address_collection_precision = address_collection_precision
58
65
  @enabled = enabled
59
66
  @liability = liability
60
67
  end
@@ -326,13 +333,46 @@ module Stripe
326
333
  end
327
334
 
328
335
  class Discount < ::Stripe::RequestParams
336
+ class CouponData < ::Stripe::RequestParams
337
+ # A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
338
+ attr_accessor :amount_off
339
+ # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
340
+ attr_accessor :currency
341
+ # Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
342
+ attr_accessor :duration
343
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
344
+ attr_accessor :metadata
345
+ # Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
346
+ attr_accessor :name
347
+ # A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
348
+ attr_accessor :percent_off
349
+
350
+ def initialize(
351
+ amount_off: nil,
352
+ currency: nil,
353
+ duration: nil,
354
+ metadata: nil,
355
+ name: nil,
356
+ percent_off: nil
357
+ )
358
+ @amount_off = amount_off
359
+ @currency = currency
360
+ @duration = duration
361
+ @metadata = metadata
362
+ @name = name
363
+ @percent_off = percent_off
364
+ end
365
+ end
329
366
  # The ID of the coupon to apply to this Session.
330
367
  attr_accessor :coupon
368
+ # Data used to generate a new [Coupon](https://docs.stripe.com/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
369
+ attr_accessor :coupon_data
331
370
  # The ID of a promotion code to apply to this Session.
332
371
  attr_accessor :promotion_code
333
372
 
334
- def initialize(coupon: nil, promotion_code: nil)
373
+ def initialize(coupon: nil, coupon_data: nil, promotion_code: nil)
335
374
  @coupon = coupon
375
+ @coupon_data = coupon_data
336
376
  @promotion_code = promotion_code
337
377
  end
338
378
  end
@@ -1058,6 +1098,8 @@ module Stripe
1058
1098
  # Installment options for card payments
1059
1099
  attr_accessor :installments
1060
1100
  # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
1101
+ attr_accessor :request_decremental_authorization
1102
+ # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
1061
1103
  attr_accessor :request_extended_authorization
1062
1104
  # Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
1063
1105
  attr_accessor :request_incremental_authorization
@@ -1085,6 +1127,7 @@ module Stripe
1085
1127
  def initialize(
1086
1128
  capture_method: nil,
1087
1129
  installments: nil,
1130
+ request_decremental_authorization: nil,
1088
1131
  request_extended_authorization: nil,
1089
1132
  request_incremental_authorization: nil,
1090
1133
  request_multicapture: nil,
@@ -1097,6 +1140,7 @@ module Stripe
1097
1140
  )
1098
1141
  @capture_method = capture_method
1099
1142
  @installments = installments
1143
+ @request_decremental_authorization = request_decremental_authorization
1100
1144
  @request_extended_authorization = request_extended_authorization
1101
1145
  @request_incremental_authorization = request_incremental_authorization
1102
1146
  @request_multicapture = request_multicapture
@@ -1536,6 +1580,8 @@ module Stripe
1536
1580
  attr_accessor :preferred_locale
1537
1581
  # 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.
1538
1582
  attr_accessor :reference
1583
+ # 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.
1584
+ attr_accessor :reference_id
1539
1585
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1540
1586
  attr_accessor :risk_correlation_id
1541
1587
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1548,19 +1594,25 @@ module Stripe
1548
1594
  #
1549
1595
  # 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`.
1550
1596
  attr_accessor :setup_future_usage
1597
+ # 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.
1598
+ attr_accessor :subsellers
1551
1599
 
1552
1600
  def initialize(
1553
1601
  capture_method: nil,
1554
1602
  preferred_locale: nil,
1555
1603
  reference: nil,
1604
+ reference_id: nil,
1556
1605
  risk_correlation_id: nil,
1557
- setup_future_usage: nil
1606
+ setup_future_usage: nil,
1607
+ subsellers: nil
1558
1608
  )
1559
1609
  @capture_method = capture_method
1560
1610
  @preferred_locale = preferred_locale
1561
1611
  @reference = reference
1612
+ @reference_id = reference_id
1562
1613
  @risk_correlation_id = risk_correlation_id
1563
1614
  @setup_future_usage = setup_future_usage
1615
+ @subsellers = subsellers
1564
1616
  end
1565
1617
  end
1566
1618
 
@@ -2132,6 +2184,37 @@ module Stripe
2132
2184
  end
2133
2185
 
2134
2186
  class Permissions < ::Stripe::RequestParams
2187
+ class Update < ::Stripe::RequestParams
2188
+ # Determines which entity is allowed to update the line items.
2189
+ #
2190
+ # Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2191
+ #
2192
+ # When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2193
+ attr_accessor :line_items
2194
+ # Determines which entity is allowed to update the shipping details.
2195
+ #
2196
+ # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2197
+ #
2198
+ # This parameter is only supported when `ui_mode=elements`.
2199
+ attr_accessor :shipping_details
2200
+
2201
+ def initialize(line_items: nil, shipping_details: nil)
2202
+ @line_items = line_items
2203
+ @shipping_details = shipping_details
2204
+ end
2205
+ end
2206
+ # Permissions for updating the Checkout Session.
2207
+ attr_accessor :update
2208
+ # Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
2209
+ #
2210
+ # Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
2211
+ attr_accessor :update_discounts
2212
+ # Determines which entity is allowed to update the line items.
2213
+ #
2214
+ # Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2215
+ #
2216
+ # When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2217
+ attr_accessor :update_line_items
2135
2218
  # Determines which entity is allowed to update the shipping details.
2136
2219
  #
2137
2220
  # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
@@ -2139,7 +2222,15 @@ module Stripe
2139
2222
  # This parameter is only supported when `ui_mode=elements`.
2140
2223
  attr_accessor :update_shipping_details
2141
2224
 
2142
- def initialize(update_shipping_details: nil)
2225
+ def initialize(
2226
+ update: nil,
2227
+ update_discounts: nil,
2228
+ update_line_items: nil,
2229
+ update_shipping_details: nil
2230
+ )
2231
+ @update = update
2232
+ @update_discounts = update_discounts
2233
+ @update_line_items = update_line_items
2143
2234
  @update_shipping_details = update_shipping_details
2144
2235
  end
2145
2236
  end
@@ -4,6 +4,26 @@
4
4
  module Stripe
5
5
  module Checkout
6
6
  class SessionUpdateParams < ::Stripe::RequestParams
7
+ class AutomaticTax < ::Stripe::RequestParams
8
+ class Liability < ::Stripe::RequestParams
9
+ # The connected account being referenced when `type` is `account`.
10
+ attr_accessor :account
11
+ # Type of the account referenced in the request.
12
+ attr_accessor :type
13
+
14
+ def initialize(account: nil, type: nil)
15
+ @account = account
16
+ @type = type
17
+ end
18
+ end
19
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
20
+ attr_accessor :liability
21
+
22
+ def initialize(liability: nil)
23
+ @liability = liability
24
+ end
25
+ end
26
+
7
27
  class CollectedInformation < ::Stripe::RequestParams
8
28
  class ShippingDetails < ::Stripe::RequestParams
9
29
  class Address < ::Stripe::RequestParams
@@ -54,6 +74,76 @@ module Stripe
54
74
  end
55
75
  end
56
76
 
77
+ class Discount < ::Stripe::RequestParams
78
+ class CouponData < ::Stripe::RequestParams
79
+ # A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
80
+ attr_accessor :amount_off
81
+ # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
82
+ attr_accessor :currency
83
+ # Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
84
+ attr_accessor :duration
85
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
86
+ attr_accessor :metadata
87
+ # Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
88
+ attr_accessor :name
89
+ # A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
90
+ attr_accessor :percent_off
91
+
92
+ def initialize(
93
+ amount_off: nil,
94
+ currency: nil,
95
+ duration: nil,
96
+ metadata: nil,
97
+ name: nil,
98
+ percent_off: nil
99
+ )
100
+ @amount_off = amount_off
101
+ @currency = currency
102
+ @duration = duration
103
+ @metadata = metadata
104
+ @name = name
105
+ @percent_off = percent_off
106
+ end
107
+ end
108
+ # The ID of the [Coupon](https://docs.stripe.com/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
109
+ attr_accessor :coupon
110
+ # Data used to generate a new [Coupon](https://docs.stripe.com/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
111
+ attr_accessor :coupon_data
112
+
113
+ def initialize(coupon: nil, coupon_data: nil)
114
+ @coupon = coupon
115
+ @coupon_data = coupon_data
116
+ end
117
+ end
118
+
119
+ class InvoiceCreation < ::Stripe::RequestParams
120
+ class InvoiceData < ::Stripe::RequestParams
121
+ class Issuer < ::Stripe::RequestParams
122
+ # The connected account being referenced when `type` is `account`.
123
+ attr_accessor :account
124
+ # Type of the account referenced in the request.
125
+ attr_accessor :type
126
+
127
+ def initialize(account: nil, type: nil)
128
+ @account = account
129
+ @type = type
130
+ end
131
+ end
132
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
133
+ attr_accessor :issuer
134
+
135
+ def initialize(issuer: nil)
136
+ @issuer = issuer
137
+ end
138
+ end
139
+ # Parameters passed when creating invoices for payment-mode Checkout Sessions.
140
+ attr_accessor :invoice_data
141
+
142
+ def initialize(invoice_data: nil)
143
+ @invoice_data = invoice_data
144
+ end
145
+ end
146
+
57
147
  class LineItem < ::Stripe::RequestParams
58
148
  class AdjustableQuantity < ::Stripe::RequestParams
59
149
  # Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
@@ -354,10 +444,70 @@ module Stripe
354
444
  @shipping_rate_data = shipping_rate_data
355
445
  end
356
446
  end
447
+
448
+ class SubscriptionData < ::Stripe::RequestParams
449
+ class InvoiceSettings < ::Stripe::RequestParams
450
+ class Issuer < ::Stripe::RequestParams
451
+ # The connected account being referenced when `type` is `account`.
452
+ attr_accessor :account
453
+ # Type of the account referenced in the request.
454
+ attr_accessor :type
455
+
456
+ def initialize(account: nil, type: nil)
457
+ @account = account
458
+ @type = type
459
+ end
460
+ end
461
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
462
+ attr_accessor :issuer
463
+
464
+ def initialize(issuer: nil)
465
+ @issuer = issuer
466
+ end
467
+ end
468
+
469
+ class PendingInvoiceItemInterval < ::Stripe::RequestParams
470
+ # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
471
+ attr_accessor :interval
472
+ # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
473
+ attr_accessor :interval_count
474
+
475
+ def initialize(interval: nil, interval_count: nil)
476
+ @interval = interval
477
+ @interval_count = interval_count
478
+ end
479
+ end
480
+ # All invoices will be billed using the specified settings.
481
+ attr_accessor :invoice_settings
482
+ # Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
483
+ attr_accessor :pending_invoice_item_interval
484
+ # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
485
+ attr_accessor :trial_end
486
+ # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
487
+ attr_accessor :trial_period_days
488
+
489
+ def initialize(
490
+ invoice_settings: nil,
491
+ pending_invoice_item_interval: nil,
492
+ trial_end: nil,
493
+ trial_period_days: nil
494
+ )
495
+ @invoice_settings = invoice_settings
496
+ @pending_invoice_item_interval = pending_invoice_item_interval
497
+ @trial_end = trial_end
498
+ @trial_period_days = trial_period_days
499
+ end
500
+ end
501
+ # Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
502
+ attr_accessor :automatic_tax
357
503
  # Information about the customer collected within the Checkout Session. Can only be set when updating `embedded_page` or `elements` sessions.
358
504
  attr_accessor :collected_information
505
+ # List of coupons and promotion codes attached to the Checkout Session.
506
+ attr_accessor :discounts
359
507
  # Specifies which fields in the response should be expanded.
360
508
  attr_accessor :expand
509
+ # Generate a post-purchase Invoice for one-time payments.
510
+ attr_accessor :invoice_creation
361
511
  # A list of items the customer is purchasing.
362
512
  #
363
513
  # When updating line items, you must retransmit the entire array of line items.
@@ -380,21 +530,31 @@ module Stripe
380
530
  attr_accessor :payment_intent_data
381
531
  # The shipping rate options to apply to this Session. Up to a maximum of 5.
382
532
  attr_accessor :shipping_options
533
+ # A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
534
+ attr_accessor :subscription_data
383
535
 
384
536
  def initialize(
537
+ automatic_tax: nil,
385
538
  collected_information: nil,
539
+ discounts: nil,
386
540
  expand: nil,
541
+ invoice_creation: nil,
387
542
  line_items: nil,
388
543
  metadata: nil,
389
544
  payment_intent_data: nil,
390
- shipping_options: nil
545
+ shipping_options: nil,
546
+ subscription_data: nil
391
547
  )
548
+ @automatic_tax = automatic_tax
392
549
  @collected_information = collected_information
550
+ @discounts = discounts
393
551
  @expand = expand
552
+ @invoice_creation = invoice_creation
394
553
  @line_items = line_items
395
554
  @metadata = metadata
396
555
  @payment_intent_data = payment_intent_data
397
556
  @shipping_options = shipping_options
557
+ @subscription_data = subscription_data
398
558
  end
399
559
 
400
560
  def self.field_encodings
@@ -141,8 +141,18 @@ module Stripe
141
141
  end
142
142
 
143
143
  class Giropay < ::Stripe::RequestParams; end
144
+ class Gopay < ::Stripe::RequestParams; end
144
145
  class Grabpay < ::Stripe::RequestParams; end
145
146
 
147
+ class IdBankTransfer < ::Stripe::RequestParams
148
+ # Bank where the account is held.
149
+ attr_accessor :bank
150
+
151
+ def initialize(bank: nil)
152
+ @bank = bank
153
+ end
154
+ end
155
+
146
156
  class Ideal < ::Stripe::RequestParams
147
157
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
148
158
  attr_accessor :bank
@@ -259,6 +269,7 @@ module Stripe
259
269
 
260
270
  class Pix < ::Stripe::RequestParams; end
261
271
  class Promptpay < ::Stripe::RequestParams; end
272
+ class Qris < ::Stripe::RequestParams; end
262
273
 
263
274
  class RadarOptions < ::Stripe::RequestParams
264
275
  # 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.
@@ -269,6 +280,29 @@ module Stripe
269
280
  end
270
281
  end
271
282
 
283
+ class Rechnung < ::Stripe::RequestParams
284
+ class Dob < ::Stripe::RequestParams
285
+ # The day of birth, between 1 and 31.
286
+ attr_accessor :day
287
+ # The month of birth, between 1 and 12.
288
+ attr_accessor :month
289
+ # The four-digit year of birth.
290
+ attr_accessor :year
291
+
292
+ def initialize(day: nil, month: nil, year: nil)
293
+ @day = day
294
+ @month = month
295
+ @year = year
296
+ end
297
+ end
298
+ # Customer's date of birth
299
+ attr_accessor :dob
300
+
301
+ def initialize(dob: nil)
302
+ @dob = dob
303
+ end
304
+ end
305
+
272
306
  class RevolutPay < ::Stripe::RequestParams; end
273
307
  class SamsungPay < ::Stripe::RequestParams; end
274
308
  class Satispay < ::Stripe::RequestParams; end
@@ -284,6 +318,7 @@ module Stripe
284
318
  end
285
319
 
286
320
  class Sequra < ::Stripe::RequestParams; end
321
+ class Shopeepay < ::Stripe::RequestParams; end
287
322
 
288
323
  class Sofort < ::Stripe::RequestParams
289
324
  # Two-letter ISO code representing the country the bank account is located in.
@@ -294,6 +329,15 @@ module Stripe
294
329
  end
295
330
  end
296
331
 
332
+ class StripeBalance < ::Stripe::RequestParams
333
+ # The connected account ID whose Stripe balance to use as the source of payment
334
+ attr_accessor :account
335
+
336
+ def initialize(account: nil)
337
+ @account = account
338
+ end
339
+ end
340
+
297
341
  class Sunbit < ::Stripe::RequestParams; end
298
342
  class Swish < ::Stripe::RequestParams; end
299
343
  class Twint < ::Stripe::RequestParams; end
@@ -325,12 +369,25 @@ module Stripe
325
369
  end
326
370
 
327
371
  class UsBankAccount < ::Stripe::RequestParams
372
+ class ExternalToken < ::Stripe::RequestParams
373
+ # The Plaid processor token to use for this bank account.
374
+ attr_accessor :plaid_processor_token
375
+ # The type of external token.
376
+ attr_accessor :type
377
+
378
+ def initialize(plaid_processor_token: nil, type: nil)
379
+ @plaid_processor_token = plaid_processor_token
380
+ @type = type
381
+ end
382
+ end
328
383
  # Account holder type: individual or company.
329
384
  attr_accessor :account_holder_type
330
385
  # Account number of the bank account.
331
386
  attr_accessor :account_number
332
387
  # Account type: checkings or savings. Defaults to checking if omitted.
333
388
  attr_accessor :account_type
389
+ # An external token used to create a payment method.
390
+ attr_accessor :external_token
334
391
  # The ID of a Financial Connections Account to use as a payment method.
335
392
  attr_accessor :financial_connections_account
336
393
  # Routing number of the bank account.
@@ -340,18 +397,21 @@ module Stripe
340
397
  account_holder_type: nil,
341
398
  account_number: nil,
342
399
  account_type: nil,
400
+ external_token: nil,
343
401
  financial_connections_account: nil,
344
402
  routing_number: nil
345
403
  )
346
404
  @account_holder_type = account_holder_type
347
405
  @account_number = account_number
348
406
  @account_type = account_type
407
+ @external_token = external_token
349
408
  @financial_connections_account = financial_connections_account
350
409
  @routing_number = routing_number
351
410
  end
352
411
  end
353
412
 
354
413
  class WechatPay < ::Stripe::RequestParams; end
414
+ class Wero < ::Stripe::RequestParams; end
355
415
  class Zip < ::Stripe::RequestParams; end
356
416
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
357
417
  attr_accessor :acss_debit
@@ -395,8 +455,12 @@ module Stripe
395
455
  attr_accessor :fpx
396
456
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
397
457
  attr_accessor :giropay
458
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
459
+ attr_accessor :gopay
398
460
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
399
461
  attr_accessor :grabpay
462
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
463
+ attr_accessor :id_bank_transfer
400
464
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
401
465
  attr_accessor :ideal
402
466
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -443,8 +507,12 @@ module Stripe
443
507
  attr_accessor :pix
444
508
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
445
509
  attr_accessor :promptpay
510
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
511
+ attr_accessor :qris
446
512
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
447
513
  attr_accessor :radar_options
514
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
515
+ attr_accessor :rechnung
448
516
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
449
517
  attr_accessor :revolut_pay
450
518
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -457,8 +525,14 @@ module Stripe
457
525
  attr_accessor :sepa_debit
458
526
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
459
527
  attr_accessor :sequra
528
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
529
+ attr_accessor :shared_payment_granted_token
530
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
531
+ attr_accessor :shopeepay
460
532
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
461
533
  attr_accessor :sofort
534
+ # This hash contains details about the Stripe balance payment method.
535
+ attr_accessor :stripe_balance
462
536
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
463
537
  attr_accessor :sunbit
464
538
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -473,6 +547,8 @@ module Stripe
473
547
  attr_accessor :us_bank_account
474
548
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
475
549
  attr_accessor :wechat_pay
550
+ # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
551
+ attr_accessor :wero
476
552
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
477
553
  attr_accessor :zip
478
554
 
@@ -498,7 +574,9 @@ module Stripe
498
574
  eps: nil,
499
575
  fpx: nil,
500
576
  giropay: nil,
577
+ gopay: nil,
501
578
  grabpay: nil,
579
+ id_bank_transfer: nil,
502
580
  ideal: nil,
503
581
  interac_present: nil,
504
582
  kakao_pay: nil,
@@ -522,14 +600,19 @@ module Stripe
522
600
  payto: nil,
523
601
  pix: nil,
524
602
  promptpay: nil,
603
+ qris: nil,
525
604
  radar_options: nil,
605
+ rechnung: nil,
526
606
  revolut_pay: nil,
527
607
  samsung_pay: nil,
528
608
  satispay: nil,
529
609
  scalapay: nil,
530
610
  sepa_debit: nil,
531
611
  sequra: nil,
612
+ shared_payment_granted_token: nil,
613
+ shopeepay: nil,
532
614
  sofort: nil,
615
+ stripe_balance: nil,
533
616
  sunbit: nil,
534
617
  swish: nil,
535
618
  twint: nil,
@@ -537,6 +620,7 @@ module Stripe
537
620
  upi: nil,
538
621
  us_bank_account: nil,
539
622
  wechat_pay: nil,
623
+ wero: nil,
540
624
  zip: nil
541
625
  )
542
626
  @acss_debit = acss_debit
@@ -560,7 +644,9 @@ module Stripe
560
644
  @eps = eps
561
645
  @fpx = fpx
562
646
  @giropay = giropay
647
+ @gopay = gopay
563
648
  @grabpay = grabpay
649
+ @id_bank_transfer = id_bank_transfer
564
650
  @ideal = ideal
565
651
  @interac_present = interac_present
566
652
  @kakao_pay = kakao_pay
@@ -584,14 +670,19 @@ module Stripe
584
670
  @payto = payto
585
671
  @pix = pix
586
672
  @promptpay = promptpay
673
+ @qris = qris
587
674
  @radar_options = radar_options
675
+ @rechnung = rechnung
588
676
  @revolut_pay = revolut_pay
589
677
  @samsung_pay = samsung_pay
590
678
  @satispay = satispay
591
679
  @scalapay = scalapay
592
680
  @sepa_debit = sepa_debit
593
681
  @sequra = sequra
682
+ @shared_payment_granted_token = shared_payment_granted_token
683
+ @shopeepay = shopeepay
594
684
  @sofort = sofort
685
+ @stripe_balance = stripe_balance
595
686
  @sunbit = sunbit
596
687
  @swish = swish
597
688
  @twint = twint
@@ -599,6 +690,7 @@ module Stripe
599
690
  @upi = upi
600
691
  @us_bank_account = us_bank_account
601
692
  @wechat_pay = wechat_pay
693
+ @wero = wero
602
694
  @zip = zip
603
695
  end
604
696
  end