From 3d51e0695bc7f437ba3c3df390f5ea8034cdb2b9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 16 May 2025 10:26:21 +0000 Subject: [PATCH] Update generated code for v1765 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/payment_intent.rb | 112 +++--- lib/stripe/services/payment_intent_service.rb | 88 ++-- rbi/stripe.rbi | 380 ++++++++---------- rbi/stripe/resources/payment_intent.rbi | 200 +++++---- .../services/payment_intent_service.rbi | 180 ++++----- 6 files changed, 457 insertions(+), 505 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d9a8885b..1b1c10eb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1764 \ No newline at end of file +v1765 \ No newline at end of file diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index c746ece5..eabab44a 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -58,7 +58,16 @@ module Stripe attr_reader :tip end - class AsyncWorkflows < Stripe::StripeObject + class AutomaticPaymentMethods < Stripe::StripeObject + # Controls whether this PaymentIntent will accept redirect-based payment methods. + # + # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. + attr_reader :allow_redirects + # Automatically calculates compatible payment methods + attr_reader :enabled + end + + class Hooks < Stripe::StripeObject class Inputs < Stripe::StripeObject class Tax < Stripe::StripeObject # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -71,15 +80,6 @@ module Stripe attr_reader :inputs end - class AutomaticPaymentMethods < Stripe::StripeObject - # Controls whether this PaymentIntent will accept redirect-based payment methods. - # - # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. - attr_reader :allow_redirects - # Automatically calculates compatible payment methods - attr_reader :enabled - end - class LastPaymentError < Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. attr_reader :advice_code @@ -2031,7 +2031,21 @@ module Stripe end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class AutomaticPaymentMethods < Stripe::RequestParams + # Controls whether this PaymentIntent will accept redirect-based payment methods. + # + # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. + attr_accessor :allow_redirects + # Whether this feature is enabled. + attr_accessor :enabled + + def initialize(allow_redirects: nil, enabled: nil) + @allow_redirects = allow_redirects + @enabled = enabled + end + end + + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -2056,20 +2070,6 @@ module Stripe end end - class AutomaticPaymentMethods < Stripe::RequestParams - # Controls whether this PaymentIntent will accept redirect-based payment methods. - # - # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. - attr_accessor :allow_redirects - # Whether this feature is enabled. - attr_accessor :enabled - - def initialize(allow_redirects: nil, enabled: nil) - @allow_redirects = allow_redirects - @enabled = enabled - end - end - class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -5370,8 +5370,6 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. attr_accessor :automatic_payment_methods # Controls when the funds will be captured from the customer's account. @@ -5406,6 +5404,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). attr_accessor :mandate # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). @@ -5469,7 +5469,6 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -5482,6 +5481,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -5507,7 +5507,6 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @automatic_payment_methods = automatic_payment_methods @capture_method = capture_method @confirm = confirm @@ -5520,6 +5519,7 @@ module Stripe @error_on_requires_action = error_on_requires_action @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate = mandate @mandate_data = mandate_data @metadata = metadata @@ -5546,7 +5546,7 @@ module Stripe end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -8842,8 +8842,6 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -8866,6 +8864,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # This hash contains details about the Mandate to create. attr_accessor :mandate_data # Set of [key-value pairs](https://stripe.com/docs/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`. @@ -8912,7 +8912,6 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -8920,6 +8919,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -8938,7 +8938,6 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @capture_method = capture_method @currency = currency @customer = customer @@ -8946,6 +8945,7 @@ module Stripe @description = description @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate_data = mandate_data @metadata = metadata @payment_details = payment_details @@ -9014,7 +9014,7 @@ module Stripe end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -9756,12 +9756,12 @@ module Stripe attr_accessor :amount_to_capture # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # Provides industry-specific information about the charge. @@ -9779,9 +9779,9 @@ module Stripe def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -9790,9 +9790,9 @@ module Stripe ) @amount_to_capture = amount_to_capture @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @expand = expand @final_capture = final_capture + @hooks = hooks @metadata = metadata @payment_details = payment_details @statement_descriptor = statement_descriptor @@ -9802,7 +9802,7 @@ module Stripe end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -13104,8 +13104,6 @@ module Stripe end # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # ID of the ConfirmationToken used to confirm this PaymentIntent. @@ -13118,6 +13116,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # ID of the mandate that's used for this payment. attr_accessor :mandate # Attribute for param field mandate_data @@ -13162,12 +13162,12 @@ module Stripe def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -13184,12 +13184,12 @@ module Stripe use_stripe_sdk: nil ) @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @capture_method = capture_method @confirmation_token = confirmation_token @error_on_requires_action = error_on_requires_action @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate = mandate @mandate_data = mandate_data @off_session = off_session @@ -13208,7 +13208,7 @@ module Stripe end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -13245,12 +13245,12 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # The parameters used to automatically create a transfer after the payment is captured. @@ -13260,24 +13260,24 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @description = description @expand = expand + @hooks = hooks @metadata = metadata @transfer_data = transfer_data end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -13331,12 +13331,12 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # Payment method-specific configuration for this PaymentIntent. @@ -13350,9 +13350,9 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil, @@ -13360,9 +13360,9 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @description = description @expand = expand + @hooks = hooks @metadata = metadata @payment_method_options = payment_method_options @statement_descriptor = statement_descriptor @@ -13419,8 +13419,6 @@ module Stripe attr_reader :application # 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://stripe.com/docs/payments/connected-accounts). attr_reader :application_fee_amount - # Attribute for field async_workflows - attr_reader :async_workflows # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) attr_reader :automatic_payment_methods # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch. @@ -13457,6 +13455,8 @@ module Stripe attr_reader :description # The FX Quote used for the PaymentIntent. attr_reader :fx_quote + # Attribute for field hooks + attr_reader :hooks # Unique identifier for the object. attr_reader :id # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason. diff --git a/lib/stripe/services/payment_intent_service.rb b/lib/stripe/services/payment_intent_service.rb index c0f5529e..d1da069f 100644 --- a/lib/stripe/services/payment_intent_service.rb +++ b/lib/stripe/services/payment_intent_service.rb @@ -63,7 +63,21 @@ module Stripe end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class AutomaticPaymentMethods < Stripe::RequestParams + # Controls whether this PaymentIntent will accept redirect-based payment methods. + # + # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. + attr_accessor :allow_redirects + # Whether this feature is enabled. + attr_accessor :enabled + + def initialize(allow_redirects: nil, enabled: nil) + @allow_redirects = allow_redirects + @enabled = enabled + end + end + + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -88,20 +102,6 @@ module Stripe end end - class AutomaticPaymentMethods < Stripe::RequestParams - # Controls whether this PaymentIntent will accept redirect-based payment methods. - # - # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. - attr_accessor :allow_redirects - # Whether this feature is enabled. - attr_accessor :enabled - - def initialize(allow_redirects: nil, enabled: nil) - @allow_redirects = allow_redirects - @enabled = enabled - end - end - class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -3402,8 +3402,6 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. attr_accessor :automatic_payment_methods # Controls when the funds will be captured from the customer's account. @@ -3438,6 +3436,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). attr_accessor :mandate # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). @@ -3501,7 +3501,6 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -3514,6 +3513,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -3539,7 +3539,6 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @automatic_payment_methods = automatic_payment_methods @capture_method = capture_method @confirm = confirm @@ -3552,6 +3551,7 @@ module Stripe @error_on_requires_action = error_on_requires_action @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate = mandate @mandate_data = mandate_data @metadata = metadata @@ -3590,7 +3590,7 @@ module Stripe end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -6886,8 +6886,6 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -6910,6 +6908,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # This hash contains details about the Mandate to create. attr_accessor :mandate_data # Set of [key-value pairs](https://stripe.com/docs/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`. @@ -6956,7 +6956,6 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -6964,6 +6963,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -6982,7 +6982,6 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @capture_method = capture_method @currency = currency @customer = customer @@ -6990,6 +6989,7 @@ module Stripe @description = description @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate_data = mandate_data @metadata = metadata @payment_details = payment_details @@ -7058,7 +7058,7 @@ module Stripe end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -7800,12 +7800,12 @@ module Stripe attr_accessor :amount_to_capture # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # Provides industry-specific information about the charge. @@ -7823,9 +7823,9 @@ module Stripe def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -7834,9 +7834,9 @@ module Stripe ) @amount_to_capture = amount_to_capture @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @expand = expand @final_capture = final_capture + @hooks = hooks @metadata = metadata @payment_details = payment_details @statement_descriptor = statement_descriptor @@ -7846,7 +7846,7 @@ module Stripe end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -11148,8 +11148,6 @@ module Stripe end # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # ID of the ConfirmationToken used to confirm this PaymentIntent. @@ -11162,6 +11160,8 @@ module Stripe attr_accessor :expand # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # ID of the mandate that's used for this payment. attr_accessor :mandate # Attribute for param field mandate_data @@ -11206,12 +11206,12 @@ module Stripe def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -11228,12 +11228,12 @@ module Stripe use_stripe_sdk: nil ) @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @capture_method = capture_method @confirmation_token = confirmation_token @error_on_requires_action = error_on_requires_action @expand = expand @fx_quote = fx_quote + @hooks = hooks @mandate = mandate @mandate_data = mandate_data @off_session = off_session @@ -11252,7 +11252,7 @@ module Stripe end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -11289,12 +11289,12 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # The parameters used to automatically create a transfer after the payment is captured. @@ -11304,24 +11304,24 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @description = description @expand = expand + @hooks = hooks @metadata = metadata @transfer_data = transfer_data end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -11375,12 +11375,12 @@ module Stripe attr_accessor :amount # 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://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. attr_accessor :metadata # Payment method-specific configuration for this PaymentIntent. @@ -11394,9 +11394,9 @@ module Stripe def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil, @@ -11404,9 +11404,9 @@ module Stripe ) @amount = amount @application_fee_amount = application_fee_amount - @async_workflows = async_workflows @description = description @expand = expand + @hooks = hooks @metadata = metadata @payment_method_options = payment_method_options @statement_descriptor = statement_descriptor diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 68d908e5..6533328f 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -49795,7 +49795,17 @@ module Stripe sig { returns(Tip) } attr_reader :tip end - class AsyncWorkflows < Stripe::StripeObject + class AutomaticPaymentMethods < Stripe::StripeObject + # Controls whether this PaymentIntent will accept redirect-based payment methods. + # + # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. + sig { returns(String) } + attr_reader :allow_redirects + # Automatically calculates compatible payment methods + sig { returns(T::Boolean) } + attr_reader :enabled + end + class Hooks < Stripe::StripeObject class Inputs < Stripe::StripeObject class Tax < Stripe::StripeObject # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -49810,16 +49820,6 @@ module Stripe sig { returns(Inputs) } attr_reader :inputs end - class AutomaticPaymentMethods < Stripe::StripeObject - # Controls whether this PaymentIntent will accept redirect-based payment methods. - # - # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. - sig { returns(String) } - attr_reader :allow_redirects - # Automatically calculates compatible payment methods - sig { returns(T::Boolean) } - attr_reader :enabled - end class LastPaymentError < Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(String) } @@ -52209,9 +52209,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_reader :application_fee_amount - # Attribute for field async_workflows - sig { returns(AsyncWorkflows) } - attr_reader :async_workflows # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) sig { returns(T.nilable(AutomaticPaymentMethods)) } attr_reader :automatic_payment_methods @@ -52260,6 +52257,9 @@ module Stripe # The FX Quote used for the PaymentIntent. sig { returns(T.nilable(String)) } attr_reader :fx_quote + # Attribute for field hooks + sig { returns(Hooks) } + attr_reader :hooks # Unique identifier for the object. sig { returns(String) } attr_reader :id @@ -52402,33 +52402,6 @@ module Stripe ); end end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams - class Inputs < Stripe::RequestParams - class Tax < Stripe::RequestParams - # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id - sig { returns(T.nilable(String)) } - attr_accessor :calculation - sig { params(calculation: T.nilable(String)).void } - def initialize(calculation: nil); end - end - # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs::Tax)) - } - attr_accessor :tax - sig { - params(tax: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs::Tax)).void - } - def initialize(tax: nil); end - end - # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs)) } - attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs)).void - } - def initialize(inputs: nil); end - end class AutomaticPaymentMethods < Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # @@ -52441,6 +52414,29 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end + class Hooks < Stripe::RequestParams + class Inputs < Stripe::RequestParams + class Tax < Stripe::RequestParams + # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id + sig { returns(T.nilable(String)) } + attr_accessor :calculation + sig { params(calculation: T.nilable(String)).void } + def initialize(calculation: nil); end + end + # Tax arguments for automations + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs::Tax)) } + attr_accessor :tax + sig { + params(tax: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs::Tax)).void + } + def initialize(tax: nil); end + end + # Arguments passed in automations + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs)) } + attr_accessor :inputs + sig { params(inputs: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs)).void } + def initialize(inputs: nil); end + end class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -55930,9 +55926,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods)) } attr_accessor :automatic_payment_methods @@ -55979,6 +55972,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -56063,12 +56059,11 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -56081,6 +56076,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -56106,7 +56102,7 @@ module Stripe ); end end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -56116,21 +56112,17 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs)) } attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs)).void - } + sig { params(inputs: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end class MandateData < Stripe::RequestParams @@ -59594,9 +59586,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -59626,6 +59615,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks)) } + attr_accessor :hooks # This hash contains details about the Mandate to create. sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData)) } attr_accessor :mandate_data @@ -59688,12 +59680,11 @@ module Stripe sig { returns(T.nilable(String)) } attr_accessor :transfer_group sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks), mandate_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -59701,6 +59692,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -59768,7 +59760,7 @@ module Stripe def initialize(cancellation_reason: nil, expand: nil); end end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -59778,20 +59770,18 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -60561,15 +60551,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. sig { returns(T.nilable(T::Boolean)) } attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) } attr_accessor :metadata @@ -60591,14 +60581,14 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)) } attr_accessor :transfer_data sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), hooks: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -60607,7 +60597,7 @@ module Stripe ); end end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -60617,20 +60607,18 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -64123,9 +64111,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -64143,6 +64128,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -64205,16 +64193,16 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void + params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -64232,7 +64220,7 @@ module Stripe ); end end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -64243,21 +64231,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -64274,17 +64262,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -64295,20 +64281,20 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ); end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -64319,21 +64305,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -64368,17 +64354,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -64397,14 +64381,14 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil, @@ -141794,35 +141778,6 @@ module Stripe ); end end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams - class Inputs < Stripe::RequestParams - class Tax < Stripe::RequestParams - # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id - sig { returns(T.nilable(String)) } - attr_accessor :calculation - sig { params(calculation: T.nilable(String)).void } - def initialize(calculation: nil); end - end - # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs::Tax)) - } - attr_accessor :tax - sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs::Tax)).void - } - def initialize(tax: nil); end - end - # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs)) - } - attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs)).void - } - def initialize(inputs: nil); end - end class AutomaticPaymentMethods < Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # @@ -141835,6 +141790,33 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end + class Hooks < Stripe::RequestParams + class Inputs < Stripe::RequestParams + class Tax < Stripe::RequestParams + # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id + sig { returns(T.nilable(String)) } + attr_accessor :calculation + sig { params(calculation: T.nilable(String)).void } + def initialize(calculation: nil); end + end + # Tax arguments for automations + sig { + returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs::Tax)) + } + attr_accessor :tax + sig { + params(tax: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs::Tax)).void + } + def initialize(tax: nil); end + end + # Arguments passed in automations + sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs)) } + attr_accessor :inputs + sig { + params(inputs: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs)).void + } + def initialize(inputs: nil); end + end class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -145386,9 +145368,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods)) @@ -145437,6 +145416,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -145521,12 +145503,11 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -145539,6 +145520,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -145574,7 +145556,7 @@ module Stripe def initialize(client_secret: nil, expand: nil); end end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -145585,21 +145567,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -149126,9 +149106,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -149158,6 +149135,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks)) } + attr_accessor :hooks # This hash contains details about the Mandate to create. sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData)) } attr_accessor :mandate_data @@ -149220,12 +149200,11 @@ module Stripe sig { returns(T.nilable(String)) } attr_accessor :transfer_group sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks), mandate_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -149233,6 +149212,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -149300,7 +149280,7 @@ module Stripe def initialize(cancellation_reason: nil, expand: nil); end end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -149311,21 +149291,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -150099,15 +150077,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. sig { returns(T.nilable(T::Boolean)) } attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) } attr_accessor :metadata @@ -150129,14 +150107,14 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)) } attr_accessor :transfer_data sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), hooks: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -150145,7 +150123,7 @@ module Stripe ); end end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -150156,21 +150134,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -153703,9 +153679,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -153723,6 +153696,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -153787,16 +153763,16 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void + params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -153814,7 +153790,7 @@ module Stripe ); end end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -153825,21 +153801,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -153856,17 +153832,17 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks)) + } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -153877,20 +153853,20 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ); end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -153901,21 +153877,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -153950,17 +153926,17 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks)) + } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -153979,14 +153955,14 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil, diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 8495ae17..837f7c32 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -53,7 +53,17 @@ module Stripe sig { returns(Tip) } attr_reader :tip end - class AsyncWorkflows < Stripe::StripeObject + class AutomaticPaymentMethods < Stripe::StripeObject + # Controls whether this PaymentIntent will accept redirect-based payment methods. + # + # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. + sig { returns(String) } + attr_reader :allow_redirects + # Automatically calculates compatible payment methods + sig { returns(T::Boolean) } + attr_reader :enabled + end + class Hooks < Stripe::StripeObject class Inputs < Stripe::StripeObject class Tax < Stripe::StripeObject # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -68,16 +78,6 @@ module Stripe sig { returns(Inputs) } attr_reader :inputs end - class AutomaticPaymentMethods < Stripe::StripeObject - # Controls whether this PaymentIntent will accept redirect-based payment methods. - # - # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. - sig { returns(String) } - attr_reader :allow_redirects - # Automatically calculates compatible payment methods - sig { returns(T::Boolean) } - attr_reader :enabled - end class LastPaymentError < Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(String) } @@ -2467,9 +2467,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_reader :application_fee_amount - # Attribute for field async_workflows - sig { returns(AsyncWorkflows) } - attr_reader :async_workflows # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) sig { returns(T.nilable(AutomaticPaymentMethods)) } attr_reader :automatic_payment_methods @@ -2518,6 +2515,9 @@ module Stripe # The FX Quote used for the PaymentIntent. sig { returns(T.nilable(String)) } attr_reader :fx_quote + # Attribute for field hooks + sig { returns(Hooks) } + attr_reader :hooks # Unique identifier for the object. sig { returns(String) } attr_reader :id @@ -2660,33 +2660,6 @@ module Stripe ); end end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams - class Inputs < Stripe::RequestParams - class Tax < Stripe::RequestParams - # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id - sig { returns(T.nilable(String)) } - attr_accessor :calculation - sig { params(calculation: T.nilable(String)).void } - def initialize(calculation: nil); end - end - # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs::Tax)) - } - attr_accessor :tax - sig { - params(tax: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs::Tax)).void - } - def initialize(tax: nil); end - end - # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs)) } - attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows::Inputs)).void - } - def initialize(inputs: nil); end - end class AutomaticPaymentMethods < Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # @@ -2699,6 +2672,29 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end + class Hooks < Stripe::RequestParams + class Inputs < Stripe::RequestParams + class Tax < Stripe::RequestParams + # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id + sig { returns(T.nilable(String)) } + attr_accessor :calculation + sig { params(calculation: T.nilable(String)).void } + def initialize(calculation: nil); end + end + # Tax arguments for automations + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs::Tax)) } + attr_accessor :tax + sig { + params(tax: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs::Tax)).void + } + def initialize(tax: nil); end + end + # Arguments passed in automations + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs)) } + attr_accessor :inputs + sig { params(inputs: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks::Inputs)).void } + def initialize(inputs: nil); end + end class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -6188,9 +6184,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods)) } attr_accessor :automatic_payment_methods @@ -6237,6 +6230,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -6321,12 +6317,11 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::CreateParams::AsyncWorkflows), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::CreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -6339,6 +6334,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -6364,7 +6360,7 @@ module Stripe ); end end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -6374,21 +6370,17 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs)) } attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows::Inputs)).void - } + sig { params(inputs: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end class MandateData < Stripe::RequestParams @@ -9852,9 +9844,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -9884,6 +9873,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks)) } + attr_accessor :hooks # This hash contains details about the Mandate to create. sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData)) } attr_accessor :mandate_data @@ -9946,12 +9938,11 @@ module Stripe sig { returns(T.nilable(String)) } attr_accessor :transfer_group sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntent::UpdateParams::AsyncWorkflows), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::UpdateParams::Hooks), mandate_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -9959,6 +9950,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -10026,7 +10018,7 @@ module Stripe def initialize(cancellation_reason: nil, expand: nil); end end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -10036,20 +10028,18 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -10819,15 +10809,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. sig { returns(T.nilable(T::Boolean)) } attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) } attr_accessor :metadata @@ -10849,14 +10839,14 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)) } attr_accessor :transfer_data sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::CaptureParams::AsyncWorkflows), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), hooks: T.nilable(::Stripe::PaymentIntent::CaptureParams::Hooks), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -10865,7 +10855,7 @@ module Stripe ); end end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -10875,20 +10865,18 @@ module Stripe def initialize(calculation: nil); end end # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs::Tax)) - } + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs)) } + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -14381,9 +14369,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -14401,6 +14386,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -14463,16 +14451,16 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntent::ConfirmParams::AsyncWorkflows), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void + params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntent::ConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -14490,7 +14478,7 @@ module Stripe ); end end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -14501,21 +14489,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -14532,17 +14520,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -14553,20 +14539,20 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntent::DecrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ); end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -14577,21 +14563,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -14626,17 +14612,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -14655,14 +14639,14 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil, diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi index e4eea61d..6bd914ad 100644 --- a/rbi/stripe/services/payment_intent_service.rbi +++ b/rbi/stripe/services/payment_intent_service.rbi @@ -61,35 +61,6 @@ module Stripe ); end end class CreateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams - class Inputs < Stripe::RequestParams - class Tax < Stripe::RequestParams - # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id - sig { returns(T.nilable(String)) } - attr_accessor :calculation - sig { params(calculation: T.nilable(String)).void } - def initialize(calculation: nil); end - end - # Tax arguments for automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs::Tax)) - } - attr_accessor :tax - sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs::Tax)).void - } - def initialize(tax: nil); end - end - # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs)) - } - attr_accessor :inputs - sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows::Inputs)).void - } - def initialize(inputs: nil); end - end class AutomaticPaymentMethods < Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # @@ -102,6 +73,33 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end + class Hooks < Stripe::RequestParams + class Inputs < Stripe::RequestParams + class Tax < Stripe::RequestParams + # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id + sig { returns(T.nilable(String)) } + attr_accessor :calculation + sig { params(calculation: T.nilable(String)).void } + def initialize(calculation: nil); end + end + # Tax arguments for automations + sig { + returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs::Tax)) + } + attr_accessor :tax + sig { + params(tax: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs::Tax)).void + } + def initialize(tax: nil); end + end + # Arguments passed in automations + sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs)) } + attr_accessor :inputs + sig { + params(inputs: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks::Inputs)).void + } + def initialize(inputs: nil); end + end class MandateData < Stripe::RequestParams class CustomerAcceptance < Stripe::RequestParams class Offline < Stripe::RequestParams; end @@ -3653,9 +3651,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods)) @@ -3704,6 +3699,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -3788,12 +3786,11 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::CreateParams::AsyncWorkflows), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::CreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), secret_key_confirmation: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, automatic_payment_methods: nil, capture_method: nil, confirm: nil, @@ -3806,6 +3803,7 @@ module Stripe error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, metadata: nil, @@ -3841,7 +3839,7 @@ module Stripe def initialize(client_secret: nil, expand: nil); end end class UpdateParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -3852,21 +3850,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -7393,9 +7389,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -7425,6 +7418,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks)) } + attr_accessor :hooks # This hash contains details about the Mandate to create. sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData)) } attr_accessor :mandate_data @@ -7487,12 +7483,11 @@ module Stripe sig { returns(T.nilable(String)) } attr_accessor :transfer_group sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntentService::UpdateParams::AsyncWorkflows), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::UpdateParams::Hooks), mandate_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::MandateData), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, capture_method: nil, currency: nil, customer: nil, @@ -7500,6 +7495,7 @@ module Stripe description: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate_data: nil, metadata: nil, payment_details: nil, @@ -7567,7 +7563,7 @@ module Stripe def initialize(cancellation_reason: nil, expand: nil); end end class CaptureParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -7578,21 +7574,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -8366,15 +8360,15 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand # Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents. sig { returns(T.nilable(T::Boolean)) } attr_accessor :final_capture + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks)) } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) } attr_accessor :metadata @@ -8396,14 +8390,14 @@ module Stripe sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)) } attr_accessor :transfer_data sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::CaptureParams::AsyncWorkflows), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void + params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), hooks: T.nilable(::Stripe::PaymentIntentService::CaptureParams::Hooks), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CaptureParams::PaymentDetails))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void } def initialize( amount_to_capture: nil, application_fee_amount: nil, - async_workflows: nil, expand: nil, final_capture: nil, + hooks: nil, metadata: nil, payment_details: nil, statement_descriptor: nil, @@ -8412,7 +8406,7 @@ module Stripe ); end end class ConfirmParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -8423,21 +8417,19 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations - sig { - returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs)) - } + sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -11970,9 +11962,6 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows)) } - attr_accessor :async_workflows # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } attr_accessor :capture_method @@ -11990,6 +11979,9 @@ module Stripe # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount. sig { returns(T.nilable(String)) } attr_accessor :fx_quote + # Automations to be run during the PaymentIntent lifecycle + sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks)) } + attr_accessor :hooks # ID of the mandate that's used for this payment. sig { returns(T.nilable(String)) } attr_accessor :mandate @@ -12054,16 +12046,16 @@ module Stripe sig { returns(T.nilable(T::Boolean)) } attr_accessor :use_stripe_sdk sig { - params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), async_workflows: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::AsyncWorkflows), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void + params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentDetails))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( application_fee_amount: nil, - async_workflows: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, expand: nil, fx_quote: nil, + hooks: nil, mandate: nil, mandate_data: nil, off_session: nil, @@ -12081,7 +12073,7 @@ module Stripe ); end end class DecrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -12092,21 +12084,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -12123,17 +12115,17 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { + returns(T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks)) + } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -12144,20 +12136,20 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), transfer_data: T.nilable(::Stripe::PaymentIntentService::DecrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, transfer_data: nil ); end end class IncrementAuthorizationParams < Stripe::RequestParams - class AsyncWorkflows < Stripe::RequestParams + class Hooks < Stripe::RequestParams class Inputs < Stripe::RequestParams class Tax < Stripe::RequestParams # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id @@ -12168,21 +12160,21 @@ module Stripe end # Tax arguments for automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)) + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs::Tax)) } attr_accessor :tax sig { - params(tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs::Tax)).void + params(tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs::Tax)).void } def initialize(tax: nil); end end # Arguments passed in automations sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs)) + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs)) } attr_accessor :inputs sig { - params(inputs: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows::Inputs)).void + params(inputs: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks::Inputs)).void } def initialize(inputs: nil); end end @@ -12217,17 +12209,17 @@ module Stripe # 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://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } attr_accessor :application_fee_amount - # Automations to be run during the PaymentIntent lifecycle - sig { - returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows)) - } - attr_accessor :async_workflows # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } attr_accessor :description # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } attr_accessor :expand + # Automations to be run during the PaymentIntent lifecycle + sig { + returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks)) + } + attr_accessor :hooks # Set of [key-value pairs](https://stripe.com/docs/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`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata @@ -12246,14 +12238,14 @@ module Stripe } attr_accessor :transfer_data sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), async_workflows: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AsyncWorkflows), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void + params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, application_fee_amount: nil, - async_workflows: nil, description: nil, expand: nil, + hooks: nil, metadata: nil, payment_method_options: nil, statement_descriptor: nil,