mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-19 00:01:13 -05:00
Update generated code for v2110 and
This commit is contained in:
parent
9aef335f34
commit
cac6193802
@ -1 +1 @@
|
||||
07c094f7c1f64823539941252667a6620cc6bb44
|
||||
a9b4d5059aeb24192ebc26c24160bb6e495bd6cb
|
||||
@ -1 +1 @@
|
||||
v2109
|
||||
v2110
|
||||
@ -169,6 +169,7 @@ module Stripe
|
||||
Token.object_name => Token,
|
||||
Topup.object_name => Topup,
|
||||
Transfer.object_name => Transfer,
|
||||
TransitBalance.object_name => TransitBalance,
|
||||
Treasury::CreditReversal.object_name => Treasury::CreditReversal,
|
||||
Treasury::DebitReversal.object_name => Treasury::DebitReversal,
|
||||
Treasury::FinancialAccount.object_name => Treasury::FinancialAccount,
|
||||
|
||||
@ -3,6 +3,15 @@
|
||||
|
||||
module Stripe
|
||||
class PaymentIntentConfirmParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
attr_accessor :enabled
|
||||
|
||||
def initialize(enabled: nil)
|
||||
@enabled = enabled
|
||||
end
|
||||
end
|
||||
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -3720,6 +3729,8 @@ module Stripe
|
||||
attr_accessor :shipping
|
||||
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
||||
attr_accessor :use_stripe_sdk
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
attr_accessor :allocated_funds
|
||||
|
||||
def initialize(
|
||||
amount_details: nil,
|
||||
@ -3744,7 +3755,8 @@ module Stripe
|
||||
return_url: nil,
|
||||
setup_future_usage: nil,
|
||||
shipping: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
)
|
||||
@amount_details = amount_details
|
||||
@application_fee_amount = application_fee_amount
|
||||
@ -3769,6 +3781,7 @@ module Stripe
|
||||
@setup_future_usage = setup_future_usage
|
||||
@shipping = shipping
|
||||
@use_stripe_sdk = use_stripe_sdk
|
||||
@allocated_funds = allocated_funds
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -3,6 +3,15 @@
|
||||
|
||||
module Stripe
|
||||
class PaymentIntentCreateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
attr_accessor :enabled
|
||||
|
||||
def initialize(enabled: nil)
|
||||
@enabled = enabled
|
||||
end
|
||||
end
|
||||
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -3797,6 +3806,8 @@ module Stripe
|
||||
attr_accessor :transfer_group
|
||||
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
||||
attr_accessor :use_stripe_sdk
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
attr_accessor :allocated_funds
|
||||
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -3837,7 +3848,8 @@ module Stripe
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
)
|
||||
@amount = amount
|
||||
@amount_details = amount_details
|
||||
@ -3878,6 +3890,7 @@ module Stripe
|
||||
@transfer_data = transfer_data
|
||||
@transfer_group = transfer_group
|
||||
@use_stripe_sdk = use_stripe_sdk
|
||||
@allocated_funds = allocated_funds
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -3,6 +3,15 @@
|
||||
|
||||
module Stripe
|
||||
class PaymentIntentUpdateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
attr_accessor :enabled
|
||||
|
||||
def initialize(enabled: nil)
|
||||
@enabled = enabled
|
||||
end
|
||||
end
|
||||
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -3725,6 +3734,8 @@ module Stripe
|
||||
attr_accessor :transfer_data
|
||||
# A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
||||
attr_accessor :transfer_group
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
attr_accessor :allocated_funds
|
||||
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -3753,7 +3764,8 @@ module Stripe
|
||||
statement_descriptor: nil,
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil
|
||||
transfer_group: nil,
|
||||
allocated_funds: nil
|
||||
)
|
||||
@amount = amount
|
||||
@amount_details = amount_details
|
||||
@ -3782,6 +3794,7 @@ module Stripe
|
||||
@statement_descriptor_suffix = statement_descriptor_suffix
|
||||
@transfer_data = transfer_data
|
||||
@transfer_group = transfer_group
|
||||
@allocated_funds = allocated_funds
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -157,6 +157,7 @@ require "stripe/resources/test_helpers/test_clock"
|
||||
require "stripe/resources/token"
|
||||
require "stripe/resources/topup"
|
||||
require "stripe/resources/transfer"
|
||||
require "stripe/resources/transit_balance"
|
||||
require "stripe/resources/treasury/credit_reversal"
|
||||
require "stripe/resources/treasury/debit_reversal"
|
||||
require "stripe/resources/treasury/financial_account"
|
||||
|
||||
@ -2467,6 +2467,8 @@ module Stripe
|
||||
attr_reader :transfer_data
|
||||
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
||||
attr_reader :transfer_group
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
attr_reader :allocated_funds
|
||||
|
||||
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
||||
#
|
||||
|
||||
45
lib/stripe/resources/transit_balance.rb
Normal file
45
lib/stripe/resources/transit_balance.rb
Normal file
@ -0,0 +1,45 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
class TransitBalance < APIResource
|
||||
OBJECT_NAME = "transit_balance"
|
||||
def self.object_name
|
||||
"transit_balance"
|
||||
end
|
||||
|
||||
class Balance < ::Stripe::StripeObject
|
||||
# Attribute for field available
|
||||
attr_reader :available
|
||||
# Attribute for field pending
|
||||
attr_reader :pending
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field balance
|
||||
attr_reader :balance
|
||||
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
attr_reader :created
|
||||
# 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).
|
||||
attr_reader :currency
|
||||
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
attr_reader :livemode
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { balance: Balance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
101
rbi/stripe.rbi
101
rbi/stripe.rbi
@ -2714,6 +2714,41 @@ module Stripe
|
||||
end
|
||||
end
|
||||
# typed: true
|
||||
module Stripe
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
class TransitBalance < APIResource
|
||||
class Balance < ::Stripe::StripeObject
|
||||
# Attribute for field available
|
||||
sig { returns(Integer) }
|
||||
def available; end
|
||||
# Attribute for field pending
|
||||
sig { returns(Integer) }
|
||||
def pending; end
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field balance
|
||||
sig { returns(Balance) }
|
||||
def balance; end
|
||||
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
sig { returns(Integer) }
|
||||
def created; end
|
||||
# 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).
|
||||
sig { returns(String) }
|
||||
def currency; end
|
||||
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
sig { returns(T::Boolean) }
|
||||
def livemode; end
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
sig { returns(String) }
|
||||
def object; end
|
||||
end
|
||||
end
|
||||
# typed: true
|
||||
module Stripe
|
||||
# Account Links are the means by which a Connect platform grants a connected account permission to access
|
||||
# Stripe-hosted applications, such as Connect Onboarding.
|
||||
@ -11203,6 +11238,9 @@ module Stripe
|
||||
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
||||
sig { returns(T.nilable(String)) }
|
||||
def transfer_group; end
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
sig { returns(T.nilable(::Stripe::TransitBalance)) }
|
||||
def allocated_funds; end
|
||||
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
||||
#
|
||||
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
||||
@ -120670,6 +120708,15 @@ end
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentCreateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -126403,8 +126450,15 @@ module Stripe
|
||||
def use_stripe_sdk; end
|
||||
sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def use_stripe_sdk=(_use_stripe_sdk); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentCreateParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::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), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentCreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::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(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::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(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentCreateParams::AllocatedFunds)).returns(T.nilable(PaymentIntentCreateParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::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), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentCreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::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(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::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(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), allocated_funds: T.nilable(PaymentIntentCreateParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -126445,13 +126499,23 @@ module Stripe
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentUpdateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -132062,8 +132126,15 @@ module Stripe
|
||||
def transfer_group; end
|
||||
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
||||
def transfer_group=(_transfer_group); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentUpdateParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: 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), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentUpdateParams::Hooks), mandate_data: T.nilable(PaymentIntentUpdateParams::MandateData), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentUpdateParams::AllocatedFunds)).returns(T.nilable(PaymentIntentUpdateParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: 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), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentUpdateParams::Hooks), mandate_data: T.nilable(PaymentIntentUpdateParams::MandateData), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String), allocated_funds: T.nilable(PaymentIntentUpdateParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -132092,7 +132163,8 @@ module Stripe
|
||||
statement_descriptor: nil,
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil
|
||||
transfer_group: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
@ -133625,6 +133697,15 @@ end
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentConfirmParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -139229,8 +139310,15 @@ module Stripe
|
||||
def use_stripe_sdk; end
|
||||
sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def use_stripe_sdk=(_use_stripe_sdk); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentConfirmParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentConfirmParams::AllocatedFunds)).returns(T.nilable(PaymentIntentConfirmParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean), allocated_funds: T.nilable(PaymentIntentConfirmParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount_details: nil,
|
||||
@ -139255,7 +139343,8 @@ module Stripe
|
||||
return_url: nil,
|
||||
setup_future_usage: nil,
|
||||
shipping: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
|
||||
@ -4,6 +4,15 @@
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentConfirmParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -5608,8 +5617,15 @@ module Stripe
|
||||
def use_stripe_sdk; end
|
||||
sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def use_stripe_sdk=(_use_stripe_sdk); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentConfirmParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentConfirmParams::AllocatedFunds)).returns(T.nilable(PaymentIntentConfirmParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentConfirmParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean), allocated_funds: T.nilable(PaymentIntentConfirmParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount_details: nil,
|
||||
@ -5634,7 +5650,8 @@ module Stripe
|
||||
return_url: nil,
|
||||
setup_future_usage: nil,
|
||||
shipping: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
@ -4,6 +4,15 @@
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentCreateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -5737,8 +5746,15 @@ module Stripe
|
||||
def use_stripe_sdk; end
|
||||
sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def use_stripe_sdk=(_use_stripe_sdk); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentCreateParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::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), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentCreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::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(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::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(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentCreateParams::AllocatedFunds)).returns(T.nilable(PaymentIntentCreateParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::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), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentCreateParams::Hooks), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::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(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::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(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), allocated_funds: T.nilable(PaymentIntentCreateParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -5779,7 +5795,8 @@ module Stripe
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil,
|
||||
use_stripe_sdk: nil
|
||||
use_stripe_sdk: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
@ -4,6 +4,15 @@
|
||||
# typed: true
|
||||
module Stripe
|
||||
class PaymentIntentUpdateParams < ::Stripe::RequestParams
|
||||
class AllocatedFunds < ::Stripe::RequestParams
|
||||
# Whether Allocated Funds creation is enabled for this PaymentIntent.
|
||||
sig { returns(T.nilable(T::Boolean)) }
|
||||
def enabled; end
|
||||
sig { params(_enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def enabled=(_enabled); end
|
||||
sig { params(enabled: T.nilable(T::Boolean)).void }
|
||||
def initialize(enabled: nil); end
|
||||
end
|
||||
class AmountDetails < ::Stripe::RequestParams
|
||||
class LineItem < ::Stripe::RequestParams
|
||||
class PaymentMethodOptions < ::Stripe::RequestParams
|
||||
@ -5614,8 +5623,15 @@ module Stripe
|
||||
def transfer_group; end
|
||||
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
||||
def transfer_group=(_transfer_group); end
|
||||
# Allocated Funds configuration for this PaymentIntent.
|
||||
sig { returns(T.nilable(PaymentIntentUpdateParams::AllocatedFunds)) }
|
||||
def allocated_funds; end
|
||||
sig {
|
||||
params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: 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), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentUpdateParams::Hooks), mandate_data: T.nilable(PaymentIntentUpdateParams::MandateData), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void
|
||||
params(_allocated_funds: T.nilable(PaymentIntentUpdateParams::AllocatedFunds)).returns(T.nilable(PaymentIntentUpdateParams::AllocatedFunds))
|
||||
}
|
||||
def allocated_funds=(_allocated_funds); end
|
||||
sig {
|
||||
params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: 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), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), hooks: T.nilable(PaymentIntentUpdateParams::Hooks), mandate_data: T.nilable(PaymentIntentUpdateParams::MandateData), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String), allocated_funds: T.nilable(PaymentIntentUpdateParams::AllocatedFunds)).void
|
||||
}
|
||||
def initialize(
|
||||
amount: nil,
|
||||
@ -5644,7 +5660,8 @@ module Stripe
|
||||
statement_descriptor: nil,
|
||||
statement_descriptor_suffix: nil,
|
||||
transfer_data: nil,
|
||||
transfer_group: nil
|
||||
transfer_group: nil,
|
||||
allocated_funds: nil
|
||||
); end
|
||||
end
|
||||
end
|
||||
@ -2677,6 +2677,9 @@ module Stripe
|
||||
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
||||
sig { returns(T.nilable(String)) }
|
||||
def transfer_group; end
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
sig { returns(T.nilable(::Stripe::TransitBalance)) }
|
||||
def allocated_funds; end
|
||||
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
||||
#
|
||||
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
||||
|
||||
38
rbi/stripe/resources/transit_balance.rbi
Normal file
38
rbi/stripe/resources/transit_balance.rbi
Normal file
@ -0,0 +1,38 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
# typed: true
|
||||
module Stripe
|
||||
# Funds that are in transit and destined for another balance or another connected account.
|
||||
class TransitBalance < APIResource
|
||||
class Balance < ::Stripe::StripeObject
|
||||
# Attribute for field available
|
||||
sig { returns(Integer) }
|
||||
def available; end
|
||||
# Attribute for field pending
|
||||
sig { returns(Integer) }
|
||||
def pending; end
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field balance
|
||||
sig { returns(Balance) }
|
||||
def balance; end
|
||||
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
sig { returns(Integer) }
|
||||
def created; end
|
||||
# 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).
|
||||
sig { returns(String) }
|
||||
def currency; end
|
||||
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
sig { returns(T::Boolean) }
|
||||
def livemode; end
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
sig { returns(String) }
|
||||
def object; end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user